db

package
v0.0.0-...-74836cc Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, databaseURL string) error

func NewMigrator

func NewMigrator(ctx context.Context, conn *pgx4.Conn, versionTable string) (*migrate.Migrator, error)

func NewPool

func NewPool(ctx context.Context, dbUrl string) (*pgxpool.Pool, error)

Types

type EmbeddedMigratorFS

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

func (*EmbeddedMigratorFS) Glob

func (m *EmbeddedMigratorFS) Glob(pattern string) ([]string, error)

func (*EmbeddedMigratorFS) ReadDir

func (m *EmbeddedMigratorFS) ReadDir(dirname string) ([]os.FileInfo, error)

func (*EmbeddedMigratorFS) ReadFile

func (m *EmbeddedMigratorFS) ReadFile(filename string) ([]byte, error)

Jump to

Keyboard shortcuts

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