package
0.0.4
Repository: https://github.com/amanbolat/pkg.git
Documentation: pkg.go.dev

# Functions

EndTx ends the Tx and rollbacks it if an err is not nil, otherwise the function commits the transaction.
NewAtomicStore returns new AtomicStore[T].
NewMigrator returns a new Migrator.
ParseMigrationFormat attempts to convert a string to a MigrationFormat.

# Constants

MigrationFormatFlyway is a MigrationFormat of type Flyway.
MigrationFormatGomigrate is a MigrationFormat of type Gomigrate.

# Variables

No description provided by the author

# Structs

No description provided by the author
Migrator is Postgres database schem migrator.
No description provided by the author

# Interfaces

Beginner begins a transaction.
Committer commits a transaction.
Database represents a database connection.
Execer executes a query without returning sql rows.
Querier runs a single SQL query.
Rollbacker rollbacks a transaction.
TableOperator can run Exec and Query operations on database.
Transactor commits or rollbacks a transaction.
Tx is an interface for SQL transaction.

# Type aliases

MigrationFormat is a format used to create the migration files.
No description provided by the author