database

package
v0.0.0-...-ee39297 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	Conn *sql.DB
}

func New

func New() *DB

func (*DB) Connect

func (d *DB) Connect(connection string) error

func (*DB) CreateContainer

func (d *DB) CreateContainer(id, bundle string) error

func (*DB) DeleteContainerByID

func (d *DB) DeleteContainerByID(id string) error

func (*DB) GetBundleFromID

func (d *DB) GetBundleFromID(id string) (string, error)

type Migration

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

func NewMigration

func NewMigration(db *sql.DB, migrations source.Driver) (*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