All Projects → dyedgreen → Deno Sqlite

dyedgreen / Deno Sqlite

Licence: mit
Deno SQLite module

Programming Languages

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

Projects that are alternatives of or similar to Deno Sqlite

Edge Sql
Cloudflare Workers providing a SQL API
Stars: ✭ 429 (+184.11%)
Mutual labels:  database, sqlite3, wasm
Awesome Wasm Tools
😎 A curated list of awesome, language-agnostic WebAssembly tools
Stars: ✭ 139 (-7.95%)
Mutual labels:  webassembly, wasm
Opencombine
Open source implementation of Apple's Combine framework for processing values over time.
Stars: ✭ 2,040 (+1250.99%)
Mutual labels:  webassembly, wasm
Proxy Wasm Go Sdk
Go SDK for WebAssembly-based Envoy extensions
Stars: ✭ 137 (-9.27%)
Mutual labels:  webassembly, wasm
Wasmex
Execute WebAssembly / WASM from Elixir
Stars: ✭ 136 (-9.93%)
Mutual labels:  webassembly, wasm
Blazormaterial
Blazor components implementing Google's Material components for web - https://material.io/components/web
Stars: ✭ 136 (-9.93%)
Mutual labels:  webassembly, wasm
Nes Rust
NES emulator written in Rust + WASM
Stars: ✭ 141 (-6.62%)
Mutual labels:  webassembly, wasm
Grain
The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
Stars: ✭ 2,199 (+1356.29%)
Mutual labels:  webassembly, wasm
Woz
Woz is a progressive WebAssembly app (PWAA) generator for Rust.
Stars: ✭ 145 (-3.97%)
Mutual labels:  webassembly, wasm
Assemblyscript
A TypeScript-like language for WebAssembly.
Stars: ✭ 13,152 (+8609.93%)
Mutual labels:  webassembly, wasm
Rs Asteroids
A variation on the game Asteroids, written in Rust
Stars: ✭ 146 (-3.31%)
Mutual labels:  webassembly, wasm
Openimu
Open Source Analytics & Visualisation Software for Inertial Measurement Units
Stars: ✭ 133 (-11.92%)
Mutual labels:  database, sqlite3
Made With Webassembly
A showcase of awesome production applications, side projects, and use cases made with WebAssembly (Wasm). 👷
Stars: ✭ 132 (-12.58%)
Mutual labels:  webassembly, wasm
As Wasi
An AssemblyScript API layer for WASI system calls.
Stars: ✭ 135 (-10.6%)
Mutual labels:  webassembly, wasm
Percy
Build frontend browser apps with Rust + WebAssembly. Supports server side rendering.
Stars: ✭ 1,856 (+1129.14%)
Mutual labels:  webassembly, wasm
Proxy Wasm Rust Sdk
WebAssembly for Proxies (Rust SDK)
Stars: ✭ 137 (-9.27%)
Mutual labels:  webassembly, wasm
Libarchivejs
Archive library for browsers
Stars: ✭ 145 (-3.97%)
Mutual labels:  webassembly, wasm
Jsnet
Javascript/WebAssembly deep learning library for MLPs and convolutional neural networks
Stars: ✭ 126 (-16.56%)
Mutual labels:  webassembly, wasm
Stork
🔎 Impossibly fast web search, made for static sites.
Stars: ✭ 1,983 (+1213.25%)
Mutual labels:  wasm, webassembly
Modern Wasm Starter
🛸 Run C++ code on web and create blazingly fast websites! A starter template to easily create WebAssembly packages using type-safe C++ bindings with automatic TypeScript declarations.
Stars: ✭ 140 (-7.28%)
Mutual labels:  webassembly, wasm

Deno SQLite Module

test status docs status deno doc

This is an SQLite module for JavaScript. The wrapper is targeted at Deno and uses a version of SQLite3 compiled to WebAssembly (WASM). This module focuses on ease of use and performance.

This module guarantees API compatibility according to semantic versioning. Please report any issues you encounter.

Documentation

Documentation is available as a website, on Deno Docs, or in the docs folder.

Example

import { DB } from "https://deno.land/x/sqlite/mod.ts";

// Open a database
const db = new DB("test.db");
db.query(
  "CREATE TABLE IF NOT EXISTS people (id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT)",
);

const names = ["Peter Parker", "Clark Kent", "Bruce Wayne"];

// Run a simple query
for (const name of names) {
  db.query("INSERT INTO people (name) VALUES (?)", [name]);
}

// Print out data in table
for (const [name] of db.query("SELECT name FROM people")) {
  console.log(name);
}

// Close connection
db.close();

Comparison to Plugin based Modules

TL;DR

If you just want something that works, use this library. If you need serious speed, or really need to take full advantage of SQLites persistence guarantees and want to use something like WAL, use a plugin based module like the awesome deno_sqlite_plugin.

Advantages

  • Security: benefit from Denos security settings, without the need to trust a third party
  • Portability: runs everywhere Deno runs and can even run in the browser
  • Easy: takes full advantage of Denos module cache and does not require any network access after initial download

Disadvantages

  • Speed: file system IO through Deno can be significantly lower compared to what is achievable using a native binary
  • Weaker Persistence Guarantees: due to limitations in Denos file system APIs, SQLite can't acquire file locks or memory map files, which makes some persistence guarantees less strong (e.g. this module can't safely use WAL mode)

Users

(In alphabetical order)

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].