AbstractParse and validate provided connectionstring or configuration
Optionalcallback: ErrorCallbackProtectedconfigConfiguration passed by client or extracted from connection string
ProtectedoperationsOperations are serialized by waiting an any pending promises
AbstractconnectedReturns true if connection is open
AbstractcloseDisconnect from server, release transport.
ProtectedconnectConnect will establish a tls or websocket transport to the server based on configuration and environment
Optionalcallback: ErrorCallbackProtected AbstractconnectOptionalcallback: ErrorCallbackReturns the connection's configuration
ProtectedlogWill log to console if verbose mode is enabled
Will enquee a command to be executed and callback with the resulting rowset/result/error
Optionalcallback: 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 AbstracttransportSend a command, return the rowset/result or throw an error
Optionalcallback: ResultsCallbackEnable verbose logging for debug purposes
Base class for SQLiteCloudConnection handles basics and defines methods. Actual connection management and communication with the server in concrete classes.