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: 14 Imported by: 1

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
	Schemas pq.StringArray
	// 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"`
	// Which UUID package to use (gofrs or google)
	UUIDPkg string `yaml:"uuid_pkg"`
	// How many tables to fetch in parallel
	Concurrency int
}

type DBInfo

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

type IndexExtra added in v0.29.0

type IndexExtra = struct {
	NullsFirst    []bool   `json:"nulls_first"` // same length as Columns
	NullsDistinct bool     `json:"nulls_not_distinct"`
	Where         string   `json:"where_clause"`
	Include       []string `json:"include"`
}

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