driver

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: MIT Imports: 19 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	helpers.Config `yaml:",squash"`
	// The database schemas to generate models for
	// a map of the schema name to the DSN
	Attach map[string]string
	// The name of this schema will not be included in the generated models
	// a context value can then be used to set the schema at runtime
	// useful for multi-tenant setups
	SharedSchema string `yaml:"shared_schema"`
}

func (Config) AttachQueries added in v0.35.0

func (c Config) AttachQueries() []string

type DBInfo

type DBInfo = drivers.DBInfo[any, any, IndexExtra]

type IndexExtra added in v0.29.0

type IndexExtra = parser.IndexExtra

type Interface

type Interface = drivers.Interface[any, any, IndexExtra]

func New

func New(config Config) Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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