dbase

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const SkipMigration int = 1

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, logger log.MetaLogger, cfg Config, options ...int) abstract.DB

Types

type Config

type Config struct {
	Type       string `yaml:"type" description:"DB type" default:"postgres" choice:"postgres,mysql,sqlite,oracle,sqlserver"`
	ConnString string `yaml:"conn_string" description:"DB connection string" required:"true"`
	Migrations string `yaml:"migrations" description:"DB migrations path"`
}

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator(db abstract.DB, logger log.MetaLogger) *Migrator

func (*Migrator) Migrate

func (m *Migrator) Migrate(basePath string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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