mito
mito copied to clipboard
Multiple Qualifiers for Data Types Not Working as Expected
See https://github.com/fukamachi/mito/pull/147
To keep with the style of other places where qualifiers are provided, like in:
(name :col-type (:varchar 64))
It makes sense to allow parsing of multiple qualifiers like this:
(price :col-type (:numeric 10 2))
Or maybe even like this:
(price :col-type (:numeric (10 2)))
I personally prefer the first version.
There's no need for mito to deal with the data types themselves. Probably this is just a matter of checking if there are more items in the list of the :col-type
and then just passing them to SQL as a comma separated list.