registry

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 8 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 MatchLoadSession

func MatchLoadSession(dialect *info.Dialect) io.Session

MatchLoadSession returns Session 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.SessionResolver, productName string)

RegisterLoad register session provider

Types

This section is empty.

Jump to

Keyboard shortcuts

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