All Projects → denodrivers → sqlite3

denodrivers / sqlite3

Licence: Apache-2.0 license
The fastest and correct module for SQLite3 in Deno.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to sqlite3

denoffi
Deno Foreign Function Interface.
Stars: ✭ 37 (-74.13%)
Mutual labels:  ffi, deno
rust-flutter-reactive
This is a sample app to improve consistency over Mobile App Development.
Stars: ✭ 25 (-82.52%)
Mutual labels:  native, ffi
deno bindgen
Simplified glue code generation for Deno FFI libraries written in Rust.
Stars: ✭ 142 (-0.7%)
Mutual labels:  ffi, deno
crystal-sqlite3
SQLite3 bindings for Crystal
Stars: ✭ 118 (-17.48%)
Mutual labels:  driver, sqlite3
Dart native
Write iOS&Android Code using Dart. This package liberates you from redundant glue code and low performance of Flutter Channel.
Stars: ✭ 564 (+294.41%)
Mutual labels:  native, ffi
buke
full text search manpages
Stars: ✭ 27 (-81.12%)
Mutual labels:  ffi, sqlite3
generic-linked-in-driver
A generic non-blocking linked-in driver for interfacing Erlang and C
Stars: ✭ 46 (-67.83%)
Mutual labels:  ffi, driver
windigo
Windows API and GUI in idiomatic Go.
Stars: ✭ 187 (+30.77%)
Mutual labels:  native, ffi
winsafe
Windows API and GUI in safe, idiomatic Rust.
Stars: ✭ 110 (-23.08%)
Mutual labels:  native, ffi
PointerScript
Scripting language with pointers and native library access.
Stars: ✭ 26 (-81.82%)
Mutual labels:  native, ffi
Android Luajit Launcher
Android NativeActivity based launcher for LuaJIT, implementing the main loop within Lua land via FFI
Stars: ✭ 87 (-39.16%)
Mutual labels:  native, ffi
Clickhouse Driver
ClickHouse Python Driver with native interface support
Stars: ✭ 562 (+293.01%)
Mutual labels:  native, driver
aioch
aioch - is a library for accessing a ClickHouse database over native interface from the asyncio
Stars: ✭ 145 (+1.4%)
Mutual labels:  native, driver
WebRTC
Universal WebRTC XCFramework for iOS/macOS. AppRTCDemo for iOS/macOS.
Stars: ✭ 48 (-66.43%)
Mutual labels:  native
UnityNativeTool
Allows to unload native plugins in Unity3d editor
Stars: ✭ 147 (+2.8%)
Mutual labels:  native
croner
Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environments.
Stars: ✭ 169 (+18.18%)
Mutual labels:  deno
deno serverless aliyun
为阿里云 serverless 平台添加 Deno Runtime
Stars: ✭ 60 (-58.04%)
Mutual labels:  deno
MPU-9250-Sensors-Data-Collect
MPU9250 (MPU6500 + AK8963) I2C Driver in Python for Raspbery PI
Stars: ✭ 51 (-64.34%)
Mutual labels:  driver
laravel-database-manager
Make your database simple, easier and faster with vuejs.
Stars: ✭ 50 (-65.03%)
Mutual labels:  sqlite3
neo4j-jdbc
JDBC driver for Neo4j
Stars: ✭ 110 (-23.08%)
Mutual labels:  driver

Deno SQLite3

Tags Doc Checks License Sponsor

The fastest and correct module for SQLite3 in Deno.

Example

import { Database } from "https://deno.land/x/[email protected]/mod.ts";

const db = new Database("test.db");

const [version] = db.prepare("select sqlite_version()").value<[string]>()!;
console.log(version);

db.close();

Usage

Since this library depends on the unstable FFI API, you must pass --allow-env, --allow-ffi and --unstable flags. Network and FS permissions are also needed on macOS and Linux to download and cache prebuilt library. It's recommended to just use --allow-all/-A flag since FFI basically gives full access.

deno run -A --unstable <file>

Benchmark

image

Benchmark based on just-js/02-sqlite

See bench for benchmarks source.

Documentation

See doc.md for documentation.

Check out the complete API reference here.

Native Library

It will download and cache a prebuilt shared library from GitHub releases. For which it will also need net and read/write permission.

If you want to use custom library, then you can set the DENO_SQLITE_PATH environment variable, containing full path to the SQLite3 shared library.

Contributing

Code is formatted using deno fmt and linted using deno lint. Please make sure to run these commands before committing.

On Linux and macOS, you need to build sqlite3 from source. Make sure that you have the submodule (git submodule update --init --recursive).

mkdir -p build/
# unix
make
# windows
deno task build-sqlite-win

When running tests and benchmarks, you need to use the DENO_SQLITE_PATH env variable otherwise it won't use to local compiled shared library.

DENO_SQLITE_PATH=build/libsqlite3.dylib deno task bench

Related

License

Apache-2.0. Check LICENSE for details.

Copyright © 2023 DjDeveloperr

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].