Implementation of Dialect for Microsoft SQL Server databases. Use gorp.SqlServerDialect{"2005"} for legacy datatypes. Tested with driver: github.com/denisenkom/go-mssqldb
| 15 | // Tested with driver: github.com/denisenkom/go-mssqldb |
| 16 | |
| 17 | type SqlServerDialect struct { |
| 18 | |
| 19 | // If set to "2005" legacy datatypes will be used |
| 20 | Version string |
| 21 | } |
| 22 | |
| 23 | func (d SqlServerDialect) ToSqlType(val reflect.Type, maxsize int, isAutoIncr bool) string { |
| 24 | switch val.Kind() { |
nothing calls this directly
no outgoing calls
no test coverage detected