store

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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) Close

func (s *SQLStore) Close() error

func (*SQLStore) GetLatestFailedMigration

func (s *SQLStore) GetLatestFailedMigration() (*model.Migration, error)

func (*SQLStore) HasMigrationRun

func (s *SQLStore) HasMigrationRun(filename string) (bool, error)

func (*SQLStore) InsertMigration

func (s *SQLStore) InsertMigration(filename string) (model.Migration, error)

func (*SQLStore) MarkMigrationCompleted

func (s *SQLStore) MarkMigrationCompleted(id uint) (model.Migration, error)

func (*SQLStore) RawExec

func (s *SQLStore) RawExec(rawSQL string) error

Jump to

Keyboard shortcuts

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