Documentation ¶
Index ¶
- type PostgresStore
- type SQLStore
- func (s *SQLStore) Close() error
- func (s *SQLStore) GetLatestFailedMigration() (*model.Migration, error)
- func (s *SQLStore) HasMigrationRun(filename string) (bool, error)
- func (s *SQLStore) InsertMigration(filename string) (model.Migration, error)
- func (s *SQLStore) MarkMigrationCompleted(id uint) (model.Migration, error)
- func (s *SQLStore) RawExec(rawSQL string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStore ¶
type PostgresStore struct {
SQLStore
}
func NewPostgresStore ¶
func NewPostgresStore(logger *zap.Logger, migrationTableName, connectionString string) (*PostgresStore, error)
func (*PostgresStore) EnsureMigrationTableExists ¶
func (pg *PostgresStore) EnsureMigrationTableExists() error
type SQLStore ¶
type SQLStore struct {
// contains filtered or unexported fields
}
func (*SQLStore) GetLatestFailedMigration ¶
func (*SQLStore) HasMigrationRun ¶
func (*SQLStore) InsertMigration ¶
func (*SQLStore) MarkMigrationCompleted ¶
Click to show internal directories.
Click to hide internal directories.