@sqlitecloud/drivers
    Preparing search index...

    Class SQLiteCloudConnectionAbstract

    Base class for SQLiteCloudConnection handles basics and defines methods. Actual connection management and communication with the server in concrete classes.

    Index

    Constructors

    Properties

    Configuration passed by client or extracted from connection string

    operations: OperationsQueue = ...

    Operations are serialized by waiting an any pending promises

    Accessors

    Methods

    • Will log to console if verbose mode is enabled

      Parameters

      • message: string
      • ...optionalParams: any[]

      Returns void

    • Will enquee a command to be executed and callback with the resulting rowset/result/error

      Parameters

      Returns this

    • Sql is a promise based API for executing SQL statements. You can pass a simple string with a SQL statement or a template string using backticks and parameters in ${parameter} format. These parameters will be properly escaped and quoted like when using a prepared statement.

      Parameters

      • sql: string | SQLiteCloudCommand | TemplateStringsArray

        A sql string or a template string in backticks format A SQLiteCloudCommand when the query is defined with question marks and bindings.

      • ...values: any[]

      Returns Promise<any>

      An array of rows in case of selections or an object with metadata in case of insert, update, delete.

    • Send a command, return the rowset/result or throw an error

      Parameters

      Returns this