MCPcopy
hub / github.com/go-gorp/gorp / SqlServerDialect

Struct SqlServerDialect

dialect_sqlserver.go:17–21  ·  view source on GitHub ↗

Implementation of Dialect for Microsoft SQL Server databases. Use gorp.SqlServerDialect{"2005"} for legacy datatypes. Tested with driver: github.com/denisenkom/go-mssqldb

Source from the content-addressed store, hash-verified

15// Tested with driver: github.com/denisenkom/go-mssqldb
16
17type SqlServerDialect struct {
18
19 // If set to "2005" legacy datatypes will be used
20 Version string
21}
22
23func (d SqlServerDialect) ToSqlType(val reflect.Type, maxsize int, isAutoIncr bool) string {
24 switch val.Kind() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected