All Projects → Pamblam → Jsql

Pamblam / Jsql

Licence: apache-2.0
jSQL is the "official" Javascript Query Language - A database written in Javascript for use in a browser or Node.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Jsql

Dumpling
Dumpling is a fast, easy-to-use tool written by Go for dumping data from the database(MySQL, TiDB...) to local/cloud(S3, GCP...) in multifarious formats(SQL, CSV...).
Stars: ✭ 134 (+57.65%)
Mutual labels:  hacktoberfest, sql, mysql
Lucid
AdonisJS official SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
Stars: ✭ 613 (+621.18%)
Mutual labels:  hacktoberfest, sql, mysql
Liquibase
Main Liquibase Source
Stars: ✭ 2,910 (+3323.53%)
Mutual labels:  hacktoberfest, sql, mysql
Tidb
TiDB is an open source distributed HTAP database compatible with the MySQL protocol
Stars: ✭ 29,871 (+35042.35%)
Mutual labels:  hacktoberfest, sql, mysql
Rel
💎 Modern Database Access Layer for Golang - Testable, Extendable and Crafted Into a Clean and Elegant API
Stars: ✭ 317 (+272.94%)
Mutual labels:  hacktoberfest, sql, mysql
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 7,712 (+8972.94%)
Mutual labels:  hacktoberfest, sql, mysql
Xeus Sql
xeus-sql is a Jupyter kernel for general SQL implementations.
Stars: ✭ 85 (+0%)
Mutual labels:  sql, mysql
Takeout
Docker-based development-only dependency manager. macOS, Linux, and WSL2-only and installs via PHP's Composer... for now.
Stars: ✭ 1,086 (+1177.65%)
Mutual labels:  hacktoberfest, mysql
Ascemu
Official AscEmu repo... a never ending place to work. With cutting edge technologies XD
Stars: ✭ 61 (-28.24%)
Mutual labels:  hacktoberfest, mysql
Genesis
🤖 Warframe Discord Cephalon
Stars: ✭ 67 (-21.18%)
Mutual labels:  hacktoberfest, mysql
Goqu
SQL builder and query library for golang
Stars: ✭ 984 (+1057.65%)
Mutual labels:  sql, mysql
Countries States Cities Database
🌍 World countries, states, regions, provinces, cities, towns in JSON, SQL, XML, PLIST, YAML, and CSV. All Countries, States, Cities with ISO2, ISO3, Country Code, Phone Code, Capital, Native Language, Timezones, Latitude, Longitude, Region, Subregion, Flag Emoji, and Currency. #countries #states #cities
Stars: ✭ 1,130 (+1229.41%)
Mutual labels:  sql, mysql
Graphjin
GraphJin - Build APIs in 5 minutes with GraphQL. An instant GraphQL to SQL compiler.
Stars: ✭ 1,264 (+1387.06%)
Mutual labels:  sql, mysql
Aspnetcorenlog
ASP.NET Core NLog MS SQL Server PostgreSQL MySQL Elasticsearch
Stars: ✭ 54 (-36.47%)
Mutual labels:  sql, mysql
Dbbench
🏋️ dbbench is a simple database benchmarking tool which supports several databases and own scripts
Stars: ✭ 52 (-38.82%)
Mutual labels:  hacktoberfest, mysql
Dolt
Dolt – It's Git for Data
Stars: ✭ 9,880 (+11523.53%)
Mutual labels:  sql, mysql
Ddlparse
DDL parase and Convert to BigQuery JSON schema and DDL statements
Stars: ✭ 52 (-38.82%)
Mutual labels:  sql, mysql
Event Management
helps to register an users for on events conducted in college fests with simple logic with secured way
Stars: ✭ 65 (-23.53%)
Mutual labels:  sql, mysql
Ebean
Ebean ORM
Stars: ✭ 1,172 (+1278.82%)
Mutual labels:  sql, mysql
Think Soar
SQL optimizer and rewriter extension package for thinkphp5/6 framework.
Stars: ✭ 71 (-16.47%)
Mutual labels:  sql, mysql

jSQL Logo

jSQL (Official) - Version 3.3.19 - Now available without a prescription!

npm version Build Status Inline docs Coverage Status


jSQL is a state and data management tool as well as a robust SQL engine for both Node and the browser. For complete documentation, please see the jSQL Wiki. For plugins, live demos and other information see the official website.

jSQL Layers

Under the hood, jSQL has 3 layers...

  • At the Lowest level, jSQL automatically chooses the best method of storage to save state and interacts directly with it. This layer exposes a persistence method, jSQL.commit(), which is called to serialize and store all data currently in the jSQL database on the user's hard drive. While the app is open and loaded in the browser, this data is serialized and stored within reach in the jSQL.tables object where the library is able to perform operations on it.

  • In the middle, a set of methods are used to build jSQLQuery objects which execute CRUD commands on the jSQL database and it's tables. (See: jSQL.createTable(), jSQL.select(), jSQL.insertInto(), jSQL.dropTable(), jSQL.update(), and jSQL.deleteFrom())

  • At the highest level, jSQL is an SQL engine (hence the name: Javascript Query Language) which understands a subset of MySQL passed to the jSQL.query() method, which parses a jSQL statement and uses the above methods to create jSQLQuery objects to perform operations on the database.

jSQL is written with flexibility, ease of use, and efficiency in mind. It supports prepared statements, column typing, and can store any kind of data you need it to, including functions and instances of custom objects. It's applications include caching server-sourced data, state persistence, data management and querying and more.


Quick Start

jSQL is implemented in a single JavaScript file. You only need either the jSQL.js file or the minified jSQL.min.js file. Feel free to download them directly or use npm:

npm install jsql-official

If you're running jSQL in a browser, include it in a script tag.

<script src='jSQL.js'></script>

Or use the one hosted on the github.io site:

http://pamblam.github.io/jSQL/scripts/jSQL.min.js

If you're running jSQL in Node, require the jSQL module.

var jSQL = require("jSQL.js");

Create a table

When the database has loaded into memory, you'll want to make sure you have a table to work with. Any database operations that are to be made immediately when the app loads should be called from within the jSQL.load() callback.

jSQL.load(function(){
    var sql = "create table if not exists users (name varchar(25), age int)";
    jSQL.query(sql).execute();
});

Insert into table

At some point, you might want to put some data in that table.

jSQL.query("insert into users ('bob', 34)").execute();

Prefer prepared statements? Just replace values with question marks and pass the values to the execute method in an array.

jSQL.query("insert into users (?, ?)").execute(['bob', 34]);

Select from table

Once you've got the data in there, you're probably going to want to get it back out.

var users = jSQL.query("select * from users where name like '%ob'").execute().fetchAll("ASSOC");

Persisting changes in the browser

When you've made changes or additions to the database, call jSQL.commit() to commit your changes.

For more information and to read about other update, delete and other operations, see the jSQL Wiki.


Documentation & Examples

jSQL is fully documented in the jSQL Wiki, which even includes more simple usage examples. You may also refer to the package's tests for more complete and complex examples. There is also a live demo available on the official website.


Browser Support

Works in basically all browsers. jSQL degrades gracefully because it falls back on cookies for persistence if localStorage, IndexedDB and WebSQL are not available.

While jSQL will work in basically all browsers, these ones are preferred:

FireFox Android Safari Chrome Samsung Blackberry IE Opera Edge
2+ 2.1+ 3.1+ 4+ 4+ 7+ 8+ 11.5+ 12+

It's Official

In the same way Fedex is Federal.


Thanks to


🇺🇸

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