SQLite

The 'sqlite' module provides SQLite3 functionality

Function Signatures

/* Represents a SQLite database connection. */

const SqliteDB = (path: String) => {
    // The latest results of the DB.
    results: List,
    // If the connection is open.
    is_open: Boolean,
    // Raw pointer to the database.
    db: Pointer,
    // Connects to the SQLite database.
    connect: () => SqliteDB,
    // Executes a SQL statement on the database.
    execute: (statement: String) => SqliteDB,
    // Closes the SQLite database connection.
    close: () => SqliteDB,
    // Parses the result into dictionaries based on the provided schema.
    parse: (schema: Object = {}) => Object
}

Last updated