registry

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(product string, kind info.Kind) info.Queries

Lookup lookups queries

func LookupDialect

func LookupDialect(product *database.Product) *info.Dialect

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

func MatchProduct(db *sql.DB) *database.Product

MatchProduct matches product with sql driver

func Products

func Products() map[string]*database.Product

Products access products registry

func Register

func Register(queries ...*info.Query) error

Register register query info

func RegisterDialect

func RegisterDialect(dialect *info.Dialect)

RegisterDialect register dialect

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.

Jump to

Keyboard shortcuts

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