node_sqlite/lib.rs

deno · ext/node_sqlite/lib.rs · rust · MIT
database

Rust extension exposing SQLite database operations to Deno, providing sync objects and error handling.

// Source: https://github.com/denoland/deno | License: MIT | Copyright 2018-2026 the Deno authors
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2018-2026 the Deno authors. MIT license.

mod backup;
mod database;
mod lru_cache;
mod session;
mod sql_tag_store;
mod statement;
mod validators;

pub use backup::op_node_database_backup;
pub use database::DatabaseSync;
pub use database::DatabaseSyncLimits;
pub use session::Session;
pub use sql_tag_store::SQLTagStore;
pub use statement::StatementSync;

deno_core::extension!(
  deno_node_sqlite,
  ops = [op_node_database_backup,],
  objects = [
    DatabaseSync,
    DatabaseSyncLimits,
    Session,
    SQLTagStore,
    StatementSync,
  ],
);

#[derive(Debug, thiserror::Error, deno_error::JsError)]
pub enum SqliteError

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key