driver

package
v0.0.0-...-b4a328d Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMySQL

func RunMySQL(ctx context.Context, state *gen.State[any], config Config, pluginsConfig plugins.Config) error

func RunPostgres

func RunPostgres(ctx context.Context, state *gen.State[any], config Config, pluginsConfig plugins.Config) error

func RunSQLite

func RunSQLite(ctx context.Context, state *gen.State[any], config Config, pluginsConfig plugins.Config) error

Types

type Config

type Config struct {
	helpers.Config `yaml:",squash"`

	// What dialect to generate with
	// psql | mysql | sqlite
	Dialect string
	// Glob pattern to match migration files
	Pattern string
	// The database schemas to generate models for
	Schemas []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"`
	// How many tables to fetch in parallel
	Concurrency int
	// Which UUID package to use (gofrs or google)
	UUIDPkg string `yaml:"uuid_pkg"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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