You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if a Go field has type 'string', modl gives the corresponding column the type 'varchar' with a fixed character limit that comes from the column's MaxSize, or 255 if MaxSize is unspecified.
Postgres has a type 'text' which stores strings of any length. In the interest of avoiding arbitrary limits, I think 'text' should be the default column type for a Go string field.
The text was updated successfully, but these errors were encountered:
I'd like there to be a much more generic and powerful approach towards the creation of a column, beyond just allowing for a type to be set; perhaps the ability to set some arbitrary SQL.
Please correct me if I'm wrong. We can only specify column name as a field tag and it's not possible to specify sql as a field tag. In addition to current way, having it might be more convenient. If you think so, I'm eager to help you.
Currently if a Go field has type 'string', modl gives the corresponding column the type 'varchar' with a fixed character limit that comes from the column's MaxSize, or 255 if MaxSize is unspecified.
Postgres has a type 'text' which stores strings of any length. In the interest of avoiding arbitrary limits, I think 'text' should be the default column type for a Go string field.
The text was updated successfully, but these errors were encountered: