Documentation
¶
Index ¶
- func CurrentTimestamp(d model.Dialect) string
- func GoTypeForSQL(d model.Dialect, sqlType string) string
- func PackageName(d model.Dialect) string
- func Placeholder(d model.Dialect, index int) string
- func RuntimeImportPath(d model.Dialect) string
- func SharedRuntimeImportPath() string
- func TypeMap(d model.Dialect) map[string]string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentTimestamp ¶
CurrentTimestamp returns the dialect's current-time SQL expression.
func GoTypeForSQL ¶
GoTypeForSQL maps a normalized SQL type to its generated Go type.
func PackageName ¶
PackageName returns the generated package name for d.
func Placeholder ¶
Placeholder returns the dialect placeholder for a one-based argument index.
func RuntimeImportPath ¶
RuntimeImportPath returns the runtime package imported by generated code.
func SharedRuntimeImportPath ¶
func SharedRuntimeImportPath() string
SharedRuntimeImportPath returns the dialect-independent runtime package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.