docs.rs failed to build rong_sqlite-0.3.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
rong_sqlite
Embedded SQLite database with synchronous JS API. Exposed as Rong.SQLite.
Uses rusqlite with bundled SQLite and prefers WAL for file-backed databases
when available.
JS APIs
Rong.SQLite— SQLite database classnew Rong.SQLite(filename?)— open a database (defaults to":memory:")exec(sql)— execute one or more statements (DDL/schema)run(sql, params?)— execute a statement, returns{ changes, lastInsertRowid }query(sql, params?)— query rows as array of objectsprepare(sql)— create a prepared statementtransaction(callback)— run callback in a transaction (auto commit/rollback)close()— close the connectionfilename— database file path (getter)inTransaction— whether inside a transaction (getter)
Statement— prepared statement (viadb.prepare())all(params?)— all matching rows as objectsget(params?)— first matching row, ornullvalues(params?)— all rows as value arraysrun(params?)— execute, returns{ changes, lastInsertRowid }finalize()— release the statementsql— the SQL text (getter)
Large SQLite integers and lastInsertRowid are returned as JavaScript bigint when they exceed the safe integer range.
For full API documentation, see docs/api/sqlite.md.