Documentation ¶
Index ¶
- func Lookup(product string, kind info.Kind) info.Queries
- func LookupDialect(product *database.Product) *info.Dialect
- func LookupMergeExecutor(dialect *info.Dialect, config info.MergeConfig) (io.MergeExecutor, error)
- func MatchLoadSession(dialect *info.Dialect) io.LoadExecutor
- func MatchProduct(db *sql.DB) *database.Product
- func Products() map[string]*database.Product
- func Register(queries ...*info.Query) error
- func RegisterDialect(dialect *info.Dialect)
- func RegisterLoad(load io.LoadExecutorResolver, productName string)
- func RegisterMergeExecutorResolver(merge io.MergeExecutorResolver, productName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupDialect ¶
LookupDialect lookups dialect
func LookupMergeExecutor ¶ added in v0.14.0
func LookupMergeExecutor(dialect *info.Dialect, config info.MergeConfig) (io.MergeExecutor, error)
LookupMergeExecutor returns merge executor for given dialect and config
func MatchLoadSession ¶
func MatchLoadSession(dialect *info.Dialect) io.LoadExecutor
MatchLoadSession returns LoadExecutor for Dialect
func MatchProduct ¶
MatchProduct matches product with sql driver
func RegisterLoad ¶
func RegisterLoad(load io.LoadExecutorResolver, productName string)
RegisterLoad register session provider
func RegisterMergeExecutorResolver ¶ added in v0.14.0
func RegisterMergeExecutorResolver(merge io.MergeExecutorResolver, productName string)
RegisterMergeExecutorResolver registers merge executor resolver
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.