Compiles the provided SQL into a SqliteStatement
object. Throws an
exception if the query is invalid.
Text-representation of the SQL query.
Static
openOpens the SQLite v3 database at path
on the filesystem. The database
will by default be opened read-write, and the returned SqliteDatabase
object will allow you to perform queries on it. Throws an exception if
the database cannot be opened.
Filesystem path to database.
Optional
options: SqliteOpenOptionsOptions to customize how the database should be opened.
Static
openJust like open()
but the contents of the database is provided as a
string containing its data, Base64-encoded. We recommend gzipping the
database before Base64-encoding it, but this is optional and detected
by looking for a gzip magic marker. The database is opened read-write,
but is 100% in-memory and never touches the filesystem. Throws an
exception if the database is malformed.
This is useful for agents that need to bundle a cache of precomputed data, e.g. static analysis data used to guide dynamic analysis.
Base64-encoded database contents.
Generated using TypeDoc
Provides read/write access to a SQLite database. Useful for persistence and to embed a cache in an agent.