Abstract
Parse and validate provided connectionstring or configuration
Optional
callback: ErrorCallbackProtected
configConfiguration passed by client or extracted from connection string
Protected
operationsOperations are serialized by waiting an any pending promises
Abstract
connectedReturns true if connection is open
Abstract
closeProtected
connectConnect will establish a tls or websocket transport to the server based on configuration and environment
Optional
callback: ErrorCallbackProtected
Abstract
connectOptional
callback: ErrorCallbackReturns the connection's configuration
Protected
logWill enquee a command to be executed and callback with the resulting rowset/result/error
Optional
callback: ResultsCallbackSql 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.
A sql string or a template string in backticks
format
A SQLiteCloudCommand when the query is defined with question marks and bindings.
An array of rows in case of selections or an object with metadata in case of insert, update, delete.
Protected
Abstract
transportSend a command, return the rowset/result or throw an error
Optional
callback: ResultsCallback
Base class for SQLiteCloudConnection handles basics and defines methods. Actual connection management and communication with the server in concrete classes.