gluesql v0.15.1
GlueSQL.js
GlueSQL.js is a SQL database for web browsers and Node.js. It works as an embedded database and entirely runs in the browser. GlueSQL.js supports in-memory storage backend, localStorage, sessionStorage and indexedDB backend supports.
Learn more at the https://gluesql.org/docs
Installation
Yarn
yarn add gluesql
npm
npm install gluesql
JavaScript modules
import { gluesql } from 'https://cdn.jsdelivr.net/npm/gluesql@0.15.0/gluesql.js';
Usage
import { gluesql } from 'gluesql';
const db = await gluesql();
await db.query(`
CREATE TABLE User (id INTEGER, name TEXT);
INSERT INTO User VALUES (1, "Hello"), (2, "World");
`);
const [{ rows }] = await db.query('SELECT * FROM User;');
console.log(rows);
License
This project is licensed under the Apache License, Version 2.0 - see the LICENSE file for details.
6 months ago
6 months ago
6 months ago
12 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
12 months ago
12 months ago
12 months ago
12 months ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago