package
0.7.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

Count returns the number of rows in the given table.
CountAll returns a map associating each table name in the database with the total count of its rows.
DeleteObject removes the row identified by the given ID.
Dump returns a SQL text dump of all rows across all tables, similar to sqlite3's dump feature.
InsertStrings inserts a new row for each of the given strings, using the given insert statement template, which must define exactly one insertion column and one substitution placeholder for the values.
IsRetriableError returns true if the given error might be transient and the interaction can be safely retried.
No description provided by the author
Params returns a parameters expression with the given number of '?' placeholders.
Retry wraps a function that interacts with the database, and retries it in case a transient error is hit.
Scan runs a query with inArgs and provides the rowFunc with the scan function for each row.
SelectConfig executes a query statement against a "config" table, which must have 'key' and 'value' columns.
SelectIntegers executes a statement which must yield rows with a single integer column.
SelectObjects executes a statement which must yield rows with a specific columns schema.
SelectStrings executes a statement which must yield rows with a single string column.
Transaction executes the given function within a database transaction with a 10s context timeout.
No description provided by the author
UpdateConfig updates the given keys in the given table.
UpsertObject inserts or replaces a new row with the given column values, to the given table using columns order.

# Interfaces

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

# Type aliases

Dest is a function that is expected to return the objects to pass to the 'dest' argument of sql.Rows.Scan().