View definition


Defined in


ToSqlType returns the SQL column type to use when creating a table of the given Go Type. maxsize can be used to switch based on size. For example, in MySQL []byte could map to BLOB, MEDIUMBLOB, or LONGBLOB depending on the maxsize

ToSqlType is referenced in 1 repository