awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
WiseLibs avatar

WiseLibs/better-sqlite3

0
View on GitHub↗
7,311 星标·465 分支·JavaScript·MIT·6 次浏览

Better Sqlite3

better-sqlite3 is a high-performance SQLite3 client for Node.js that executes queries synchronously, returning results directly without callbacks or promises. It compiles as a native addon using N-API, binding directly to the SQLite3 C library for immediate query execution and zero-copy result serialization into native JavaScript objects.

The library is optimized for Write-Ahead Logging (WAL) mode, enabling faster concurrent reads and writes in web applications. It provides durability level tuning through the synchronous pragma, allowing adjustments between FULL, NORMAL, and OFF modes to balance write performance against crash safety. The library also includes checkpoint starvation prevention, monitoring WAL file growth and triggering forced checkpoints to prevent unbounded disk usage during high-write workloads.

The project handles multi-gigabyte databases efficiently with proper indexing and joins, and its synchronous API eliminates callback overhead and promise wrappers for straightforward query execution.

Features

  • Synchronous SQL Executions - Runs SQL statements synchronously in Node.js and returns results directly without callbacks or promises.
  • Synchronous - Binds directly to the SQLite3 C library using synchronous calls for immediate query execution.
  • SQLite Write Optimizations - Improves read and write performance for concurrent database access by enabling Write-Ahead Logging.
  • Synchronous - A Node.js database driver that runs SQLite3 queries synchronously, returning results inline without async patterns.
  • WAL Mode Enabling - Switches the database to Write-Ahead Logging for dramatically faster concurrent reads and writes.
  • SQLite3 Clients - A high-speed SQLite3 client for Node.js that handles multi-gigabyte databases with efficient indexing and joins.
  • Synchronous SQLite3 Executions - Runs SQL queries in Node.js with synchronous execution, returning results directly without callbacks or promises.
  • Node.js Bindings - The fastest synchronous SQLite3 library for Node.js, executing queries directly without callbacks or promises.
  • WAL Mode Database Libraries - Provides a SQLite3 library optimized for Write-Ahead Logging, enabling faster concurrent reads and writes.
  • SQLite WAL Integrations - Enables Write-Ahead Logging through direct pragma configuration for concurrent reads and writes.
  • Node.js Native Addons - Compiles as a Node.js native addon using N-API for direct C-level access to SQLite3.
  • Large Data Volume Handling - Processes queries efficiently on multi-gigabyte databases using proper indexing and joins.
  • WAL Checkpointing - Monitors and forces WAL file checkpoints to prevent unbounded disk usage in long-running applications.
  • Starvation Prevention - Monitors WAL file growth and forces checkpoints to prevent unbounded disk usage during high-write workloads.
  • Database Performance Utilities - Processes queries efficiently on multi-gigabyte SQLite3 databases with proper indexing and joins.
  • Zero-Copy - Returns query results as native JavaScript objects without intermediate copying using direct memory access.
  • Transaction Durability Relaxations - Trades write performance for guaranteed durability by setting the synchronous pragma to FULL in WAL mode.
  • SQLite Durability Tunings - Adjusts write durability levels by setting synchronous pragmas to balance performance and data safety.
  • Durability Level Adjustments - Adjusts synchronous pragma settings to balance write performance against crash safety in WAL mode.

Star 历史

wiselibs/better-sqlite3 的 Star 历史图表wiselibs/better-sqlite3 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

wiselibs/better-sqlite3 是做什么的?

better-sqlite3 is a high-performance SQLite3 client for Node.js that executes queries synchronously, returning results directly without callbacks or promises. It compiles as a native addon using N-API, binding directly to the SQLite3 C library for immediate query execution and zero-copy result serialization into native JavaScript objects.

wiselibs/better-sqlite3 的主要功能有哪些?

wiselibs/better-sqlite3 的主要功能包括:Synchronous SQL Executions, Synchronous, SQLite Write Optimizations, WAL Mode Enabling, SQLite3 Clients, Synchronous SQLite3 Executions, Node.js Bindings, WAL Mode Database Libraries。

wiselibs/better-sqlite3 有哪些开源替代品?

wiselibs/better-sqlite3 的开源替代品包括: napi-rs/napi-rs — napi-rs is a framework and toolkit for building high-performance native extensions for Node.js using Rust. It… nodejs/node-addon-api — This project provides a header-only C++ wrapper for the Node-API, serving as a framework for building high-performance… nodejs/nan — This project is a compatibility layer and abstraction library for building native C++ addons for Node.js. It provides… justadudewhohacks/opencv4nodejs — opencv4nodejs is a set of JavaScript wrappers and a C++ native addon that provides Node.js bindings for the OpenCV… 4gray/iptvnator — Iptvnator is an Electron-based desktop application for streaming live television and radio. It serves as an IPTV… automattic/node-canvas — node-canvas is a server-side 2D vector graphics and image processing library for Node.js. It provides a server-side…

Better Sqlite3 的开源替代方案

相似的开源项目,按与 Better Sqlite3 的功能重合度排序。
  • nodejs/nannodejs 的头像

    nodejs/nan

    3,351在 GitHub 上查看↗

    This project is a compatibility layer and abstraction library for building native C++ addons for Node.js. It provides a consistent C++ API that allows a single codebase to compile against multiple versions of the V8 JavaScript engine by hiding version-specific differences behind macros and inline functions. The toolkit differentiates itself through specialized wrappers and managers, including a monadic wrapper for handles to avoid explicit null checks, a persistent reference manager for objects that must survive handle scope disposal, and a buffer abstraction API for version-compatible memory

    C++nodenodejs
    在 GitHub 上查看↗3,351
  • nodejs/node-addon-apinodejs 的头像

    nodejs/node-addon-api

    2,400在 GitHub 上查看↗

    This project provides a header-only C++ wrapper for the Node-API, serving as a framework for building high-performance native addons for Node.js. It acts as a bridge between C++ and JavaScript, offering an object-oriented interface that simplifies the creation of compiled extensions while managing the complexities of the language boundary. The library distinguishes itself by providing type-safe abstractions for data marshalling and memory management, ensuring that native and script-side objects are tracked and reclaimed correctly. It includes mechanisms for coordinating asynchronous tasks bet

    C++nodenodejs
    在 GitHub 上查看↗2,400
  • napi-rs/napi-rsnapi-rs 的头像

    napi-rs/napi-rs

    7,500在 GitHub 上查看↗

    napi-rs is a framework and toolkit for building high-performance native extensions for Node.js using Rust. It functions as a bridge between Rust and JavaScript runtimes, enabling the conversion of data types and the execution of native functions within a JavaScript environment. The project provides a native binary compiler and a cross-platform module orchestrator to automate the compilation and publishing of packages across multiple operating systems and architectures. It generates corresponding JavaScript type definitions and platform-specific binaries to ensure consistent installation. The

    Rustjavascriptnapinapi-rs
    在 GitHub 上查看↗7,500
  • justadudewhohacks/opencv4nodejsjustadudewhohacks 的头像

    justadudewhohacks/opencv4nodejs

    5,045在 GitHub 上查看↗

    opencv4nodejs is a set of JavaScript wrappers and a C++ native addon that provides Node.js bindings for the OpenCV library. It functions as a computer vision library and image processing framework, exposing high-performance C++ algorithms to a JavaScript environment. The project enables the execution of vision algorithms for detecting faces, tracking objects, and analyzing visual data using deep neural networks. It includes capabilities for data pattern classification, text pattern recognition, and the identification of facial landmarks and gestures. The framework covers a broad capability s

    C++asynccvface-detection
    在 GitHub 上查看↗5,045
查看 Better Sqlite3 的所有 30 个替代方案→