dialect

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentTimestamp

func CurrentTimestamp(d model.Dialect) string

CurrentTimestamp returns the dialect's current-time SQL expression.

func GoTypeForSQL

func GoTypeForSQL(d model.Dialect, sqlType string) string

GoTypeForSQL maps a normalized SQL type to its generated Go type.

func PackageName

func PackageName(d model.Dialect) string

PackageName returns the generated package name for d.

func Placeholder

func Placeholder(d model.Dialect, index int) string

Placeholder returns the dialect placeholder for a one-based argument index.

func RuntimeImportPath

func RuntimeImportPath(d model.Dialect) string

RuntimeImportPath returns the runtime package imported by generated code.

func SharedRuntimeImportPath

func SharedRuntimeImportPath() string

SharedRuntimeImportPath returns the dialect-independent runtime package.

func TypeMap

func TypeMap(d model.Dialect) map[string]string

TypeMap returns the Go type mapping for d.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL