package
0.0.0-20230925091837-55f7a6b23beb
Repository: https://github.com/xdbfoundation/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

ColumnsForStruct returns a slice of column names for the provided value (which should be a struct, a slice of structs).
No description provided by the author
Open the database at `dsn` and returns a new *Session using it.
No description provided by the author
No description provided by the author
Wrap wraps a bare *sql.DB (from the database/sql stdlib package) in a *db.Session instance.

# Constants

PostgresQueryMaxParams defines the maximum number of parameters in a query.

# Variables

No description provided by the author
No description provided by the author
ErrBadConnection is an error returned when driver returns `bad connection` error.
ErrCancelled is an error returned by Session methods when request has been cancelled (ex.
ErrConflictWithRecovery is an error returned by Session methods when read replica cancels the query due to conflict with about-to-be-applied WAL entries (https://www.postgresql.org/docs/current/hot-standby.html).
ErrStatementTimeout is an error returned by Session methods when request has been cancelled due to a statement timeout.
ErrTimeout is an error returned by Session methods when request has taken longer than context's deadline max duration.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

BatchInsertBuilder works like sq.InsertBuilder but has a better support for batching large number of rows.
No description provided by the author
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.
No description provided by the author
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

# Type aliases

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