@gibme/sql
    Preparing search index...

    Class SQLiteInstance

    Index

    Constructors

    Accessors

    • get idleConnections(): number

      Gets the total number of idle connections in the pool

      Returns number

    • get inTransaction(): boolean

      Returns if the database is currently in a transaction

      Returns boolean

    • get memory(): boolean

      Returns whether this database is in-memory only

      Returns boolean

    • get name(): string

      Returns the filename of the database

      Returns string

    • get open(): boolean

      Returns if the database is currently open

      Returns boolean

    • get readonly(): boolean

      Returns whether this database is in readonly mode

      Returns boolean

    • get totalConnections(): number

      Gets the total number of connections in the pool

      Returns number

    Methods

    • Closes the database

      Returns Promise<void>

    • Retrieves the current PRAGMA setting

      Parameters

      • option: string

      Returns Promise<unknown>

    • Sets the given PRAGMA setting

      Parameters

      • option: string
      • value: string | number | boolean

      Returns Promise<void>

    • Loads a new instance of an SQLite database or loads from memory if already opened

      Parameters

      • filename: string
      • readonly: boolean = false

      Returns Promise<SQLiteInstance>