Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.