Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsWritableColumn ¶
Types ¶
type Config ¶
type Config struct {
Dialect string
TemplateFS fs.FS
TemplateName string
SQLIdentifier func(string) string
SQLTableIdentifier func(catalog, schema, name string) string
Placeholder func(index int) string
InsertStrategy InsertStrategy
EmptyInsert string
UnsignedLastInsertID bool
RejectNullUpdateKey bool
TypeDefaults map[string]manifest.TypeMapping
ScanSQLServerUUID bool
TypedBinaryNulls bool
ScanBinary bool
}
type Data ¶
type Data struct {
Table Table
IdentityColumns []Column
Imports []Import
InsertStrategy InsertStrategy
EmptyInsert string
Names map[string]string
ScanJSON bool
ScanBoolean bool
ScanTime bool
ScanUUID bool
ScanSQLServerUUID bool
UUIDArguments bool
JSONArguments bool
BinaryArguments bool
ScanBinary bool
UnsignedLastInsertID bool
RejectNullUpdateKey bool
}
type InsertStrategy ¶ added in v0.2.0
type InsertStrategy string
const ( InsertExecLastInsertID InsertStrategy = "last-insert-id" InsertQueryReturning InsertStrategy = "returning" InsertScopeIdentity InsertStrategy = "scope-identity" )
Directories
¶
| Path | Synopsis |
|---|---|
|
Package query composes SQL fragments and binds named values for its generated dialect.
|
Package query composes SQL fragments and binds named values for its generated dialect. |
Click to show internal directories.
Click to hide internal directories.