View definition

(Dialect).ToSqlType

Defined in github.com/go-gorp/gorp/dialect.go

Description

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

github.com/go-gorp/gorp