Copyright © 2021 by K4.org
  (v.0.48.124)

An instance of an SQLite database. Note: these databases are effectively read-only; although SQL can change their contents, it is not saved to the next session.

Index

Rules

DBFile

DBFile: File

The SQLite database file.

Flags : Cached, Required, Parameter (Note this is uncached)

Expression : ``

getArray

getArray: Any

Internal Use Only.

Flags : Method, Async (Note this is uncached)

Expression : (sql, ...params) => this.instance.all(sql, ...params)

getRow

getRow: Any

Gets a row.

Flags : Method, Async (Note this is uncached)

Expression : (sql, ...params) => this.instance.get(sql, ...params)

getRows

getRows: Any

Gets a collection of rows.

Flags : Method, Async (Note this is uncached)

Expression : (sql, ...params) => this.instance.all(sql, ...params)

getSingle

getSingle: Any

Internal Use Only.

Flags : Method, Async (Note this is uncached)

Expression : (sql, ...params) => this.instance.get(sql, ...params)

getValue

getValue: Any

Gets a single value.

Flags : Method (Note this is uncached)

Expression : (sql, fieldName) => this.getRow(sql)[fieldName]

instance

instance: Any

Internal Use Only.

Flags : Cached, Async (Note this is uncached)

Expression : require('sqlite').open(this.pathName, { Promise, cached: true, mode: this.__readOnly ? 1 : 2 })

pathName

pathName: String

Internal Use Only.

Flags : Cached (Note this is uncached)

Expression : R.loadFile(this.DBFile)