Documentation
¶
Index ¶
- Constants
- func DefinerListToList[T attrs.Definer](list []attrs.Definer) []T
- func GetRelatedName(f attrs.Field, default_ string) string
- func NewDefiner[T attrs.Definer]() T
- func NewObjectFromIface(obj attrs.Definer) attrs.Definer
- func RegisterDriver(driver driver.Driver, database string, supportsReturning ...SupportsReturning)
- func SqlxDriverName(db *sql.DB) string
- func WalkFields(m attrs.Definer, column string, aliasGen *alias.Generator) (definer attrs.Definer, parent attrs.Definer, f attrs.Field, chain []string, ...)
- type QueryInfo
- type SupportsReturning
Constants ¶
View Source
const (
CACHE_TRAVERSAL_RESULTS = false
)
Variables ¶
This section is empty.
Functions ¶
func NewDefiner ¶
func RegisterDriver ¶
func RegisterDriver(driver driver.Driver, database string, supportsReturning ...SupportsReturning)
func SqlxDriverName ¶
Types ¶
type QueryInfo ¶
type SupportsReturning ¶
type SupportsReturning string
const ( SupportsReturningNone SupportsReturning = "" SupportsReturningLastInsertId SupportsReturning = "last_insert_id" SupportsReturningColumns SupportsReturning = "columns" )
func DBSupportsReturning ¶
func DBSupportsReturning(db *sql.DB) SupportsReturning
Click to show internal directories.
Click to hide internal directories.