package
0.0.0-20210321185912-8220668f740c
Repository: https://github.com/jamesl33/goamt.git
Documentation: pkg.go.dev
# Functions
ExecuteQuery - Execute the given query against the provided database returning the number of rows affected.
GetPragma - Query the provided pragma and store it in the given interface, note that it's the responsibility of the caller to ensure the provided interface is of the correct type.
QueryRow - Utility function to execute a query which is only expected to return a single row.
QueryRows - Utility function to execute a query an run the provided callback for each row returned.
SetPragma - Set the provided pragma to the given value, note that it's the responsibility of the caller to ensure the value is of the correct type.
# Constants
PragmaForiegnKeys - The pragma to enable/disable foreign keys between tables; this will ensure foreign references exist when creating/updating/modifying rows.
PragmaUserVersion - The pragma to get/set the SQLite user version; this value is ignored by the SQLite library.
# Variables
ErrQueryReturnedNoRows - Returned when the SQLite query didn't return any rows.
# Interfaces
Executable - Narrow interface which represents an executable struct e.g.
Queryable - Narrow interface which represents a queryable struct e.g.
# Type aliases
Pragma - Represents an SQLite pragma which can be used to modify the behavior of the unerlying SQLite library.
RowCallback - The function which will be will run for each row returned by a query.
ScanCallback - Readability wrapper around the sql.Scan function.