diff --git a/src/db.cr b/src/db.cr index b7d1f9b..ecadc3e 100644 --- a/src/db.cr +++ b/src/db.cr @@ -72,8 +72,10 @@ module DB # method to be used as query parameters TYPES = [Nil, String, Int32, Int64, Float32, Float64, Slice(UInt8)] - # See `DB::TYPES` in `DB`. `Any` is a nillable version of the union of all types in `DB::TYPES` - alias Any = Nil | String | Int32 | Int64 | Float32 | Float64 | Slice(UInt8) + # See `DB::TYPES` in `DB`. `Any` is a union of all types in `DB::TYPES` + {% begin %} + alias Any = Union({{*TYPES}}) + {% end %} # Result of a `#exec` statement. record ExecResult, rows_affected : Int32, last_insert_id : Int64