apply

package
v1.54.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchExecDDL

func BatchExecDDL(ctx context.Context, conn *pgx.Conn, sql io.Reader) error

func MigrateDatabase

func MigrateDatabase(ctx context.Context, conn *pgx.Conn, fsys afero.Fs) error

Types

type MigrationFile added in v1.54.0

type MigrationFile struct {
	Lines []string
	// contains filtered or unexported fields
}

func NewMigrationFromFile added in v1.54.0

func NewMigrationFromFile(path string, fsys afero.Fs) (*MigrationFile, error)

func NewMigrationFromReader added in v1.54.0

func NewMigrationFromReader(sql io.Reader) (*MigrationFile, error)

func (*MigrationFile) ExecBatch added in v1.54.0

func (m *MigrationFile) ExecBatch(ctx context.Context, conn *pgx.Conn) error

func (*MigrationFile) ExecBatchWithCache added in v1.54.0

func (m *MigrationFile) ExecBatchWithCache(ctx context.Context, conn *pgx.Conn) error

Jump to

Keyboard shortcuts

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