Documentation ¶
Overview ¶
Package db exposes a lightweight abstraction over the SQLite code. It performs some basic mapping of lower-level types to rqlite types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DBVersion string
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config represents the configuration of the SQLite database.
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is the SQL database.
func OpenWithConfiguration ¶
OpenWithConfiguration an existing database, creating it if it does not exist.
type Result ¶
type Result struct { LastInsertID int64 `json:"last_insert_id,omitempty"` RowsAffected int64 `json:"rows_affected,omitempty"` Error string `json:"error,omitempty"` Time float64 `json:"time,omitempty"` }
Result represents the outcome of an operation that changes rows.
type Rows ¶
type Rows struct { Columns []string `json:"columns,omitempty"` Types []string `json:"types,omitempty"` Values [][]interface{} `json:"values,omitempty"` Error string `json:"error,omitempty"` Time float64 `json:"time,omitempty"` }
Rows represents the outcome of an operation that returns query data.
Click to show internal directories.
Click to hide internal directories.