package
0.0.0-20201115164506-4b7be03191e8
Repository: https://github.com/aiblocks/go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package sqlutils contains utility functions for manipulating strings of SQL.

# Functions

Open the database at `dsn` and returns a new *Session using it.
Wrap wraps a bare *sql.DB (from the database/sql stdlib package) in a *db.Session instance.

# Variables

ErrCancelled is an error returned by Session methods when request has been cancelled (ex.

# Structs

BatchInsertBuilder works like sq.InsertBuilder but has a better support for batching large number of rows.
DeleteBuilder is a helper struct used to construct sql queries of the DELETE variety.
GetBuilder is a helper struct used to construct sql queries of the SELECT variety.
InsertBuilder is a helper struct used to construct sql queries of the INSERT variety.
No description provided by the author
NoRowsError is returned when an insert is attempted without providing any values to insert.
SelectBuilder is a helper struct used to construct sql queries of the SELECT variety.
Session provides helper methods for making queries against `DB` and provides utilities such as automatic query logging and transaction management.
Table helps to build sql queries against a given table.
UpdateBuilder is a helper struct used to construct sql queries of the UPDATE variety.

# Interfaces

Conn represents a connection to a single database.
No description provided by the author