package
3.9.0+incompatible
Repository: https://github.com/datomar-labs-inc/db.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

IsKeyValue reports whether v is a valid value for a primary key that can be used with Find(pKey).
NewBaseCollection returns a collection with basic methods.
NewBaseDatabase provides a BaseDatabase given a PartialDatabase.
NewDatabaseTx creates a database session within a transaction.
NewResult creates and Results a new Result set on the given table, this set is limited by the given exql.Where conditions.
NewStatement creates an returns an opened statement.
NumActiveStatements returns the global number of prepared statements in use at any point.
ReplaceWithDollarSign turns a SQL statament with '?' placeholders into dollar placeholders, like $1, $2, ..., $n.
RunTx creates a transaction context and runs fn within it.

# Structs

No description provided by the author
Stmt represents a *sql.Stmt that is cached and provides the OnPurge method to allow it to clean after itself.

# Interfaces

BaseCollection provides logic for methods that can be shared across all SQL adapters.
BaseDatabase provides logic for methods that can be shared across all SQL adapters.
BaseTx provides logic for methods that can be shared across all SQL adapters.
Collection represents a SQL table.
Database represents a SQL database.
DatabaseTx represents a database session within a transaction.
PartialCollection defines methods that must be implemented by the adapter.
PartialDatabase defines methods to be implemented by SQL database adapters.