# Functions
CtxWithTx creates a context with a new database transaction.
LoadConfig loads the csql config from the app config.
NewDBConnection creates and returns a new database connection.
NewMigrator creates a new Migrator.
NewQuerier returns a querier using the given database connection and the dialect.
NewTxMiddleware creates a new TxMiddleware.
TxFromCtx returns an existing transaction from the context.
# Constants
MigrationsDirection are valid options for csql.migrations.direction configuration option.
MigrationsDirection are valid options for csql.migrations.direction configuration option.
MigrationsSource are valid options for csql.migrations.source configuration option.
MigrationsSource are valid options for csql.migrations.source configuration option.
# Variables
WireModule can be used as part of google/wire setup.
# Structs
No description provided by the author
No description provided by the author
Migrator can run database migrations by running the provided migrations in the migrations dir.
NewMigratorParams holds the params needed for NewMigrator.
TxMiddleware is a chttp.Middleware that wraps an HTTP request in a database transaction.
# Interfaces
Querier provides a set of helpful methods to run database queries.
# Type aliases
Migrations is a collection of .sql files that represent the database schema.