package
3.3.1+incompatible
Repository: https://github.com/pengsrc/upper-db.git
Documentation: pkg.go.dev

# Functions

Map receives a pointer to map or struct and maps it to columns and values.
New wraps an active *sql.DB session and returns a SQLBuilder database.
NewIterator creates an iterator using the given *sql.Rows.
NewTx wraps an active *sql.Tx transation and returns a SQLBuilder transaction.
Open opens a SQL database.
Preprocess expands arguments that needs to be expanded and compiles a query into a single string.
RegisterAdapter registers a SQL database adapter.
WithSession returns a query builder that is bound to the given database session.
WithTemplate returns a builder that is based on the given template.

# Variables

Common error messages.
Common error messages.
Common error messages.
Common error messages.
Common error messages.

# Structs

AdapterFuncMap is a struct that defines a set of functions that adapters need to provide.
BatchInserter provides a helper that can be used to do massive insertions in batches.
MapOptions represents options for the mapper.

# Interfaces

Database represents a SQL database.
Deleter represents a DELETE statement.
Execer provides methods for executing statements that do not return results.
Getter provides methods for executing statements that return results.
Inserter represents an INSERT statement.
Iterator provides methods for iterating over query results.
Paginator provides tools for splitting the results of a query into chunks containing a fixed number of items.
Preparer provides the Prepare and PrepareContext methods for creating prepared statements.
ResultMapper defined methods for a result mapper.
Selector represents a SELECT statement.
SQLBuilder defines methods that can be used to build a SQL query with chainable method calls.
Tx represents a transaction on a SQL database.
Updater represents an UPDATE statement.