package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Mar 1, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package data implements low-level database functions.
-
func GetInt(db *sqlx.DB, code string, args ...any) (int, error)
-
func GetString(db *sqlx.DB, code string, args ...any) (string, error)
-
func GetTime(db *sqlx.DB, code string, args ...any) (time.Time, error)
-
func Open(path, pragma, schema string) (*sqlx.DB, error)
GetInt returns an integer from the first row of a database query.
GetString returns a string from the first row of a database query.
GetTime returns a Time object from an integer in the first row of a database query.
Open returns an open database connection, executes pragma and initialises the
database if it does not contain any schema.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.