db

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(enableLog bool, path string, migrate Migrator) (*gorm.DB, error)

Types

type Migrator

type Migrator func(db *sql.DB) error

Migrator is a function that executes migrations.

func Migrate

func Migrate(source fs.FS) Migrator

Migrate creates a new Migrator from source. The migrations are run against a sqlite3 db.

Directories

Path Synopsis
golangmigrate

Jump to

Keyboard shortcuts

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