database

package
v0.0.0-...-7450946 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SystemMigrations embed.FS
View Source
var TenantMigrations embed.FS

Functions

func NewConnection

func NewConnection(filename string) (*sql.DB, error)

Types

type Migration

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

func NewMigration

func NewMigration(db *sql.DB, migrations embed.FS) (*Migration, error)

func (*Migration) Down

func (m *Migration) Down() error

func (*Migration) Up

func (m *Migration) Up() error

type Migrator

type Migrator interface {
	Up() error
	Down() error
}

Jump to

Keyboard shortcuts

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