Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ujjwalguptaofficial/sqlweb
SqlWeb is an extension of JsStore which allows to use sql query for performing database operation in IndexedDB.
https://github.com/ujjwalguptaofficial/sqlweb
alternative-websql indexeddb javascript javascript-library jsstore sql storage syntax typescript-library websql
Last synced: 26 days ago
JSON representation
SqlWeb is an extension of JsStore which allows to use sql query for performing database operation in IndexedDB.
- Host: GitHub
- URL: https://github.com/ujjwalguptaofficial/sqlweb
- Owner: ujjwalguptaofficial
- License: mit
- Created: 2017-12-09T12:02:56.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-30T01:52:31.000Z (almost 2 years ago)
- Last Synced: 2024-12-06T00:36:00.386Z (about 1 month ago)
- Topics: alternative-websql, indexeddb, javascript, javascript-library, jsstore, sql, storage, syntax, typescript-library, websql
- Language: JavaScript
- Homepage: https://github.com/ujjwalguptaofficial/sqlweb/wiki
- Size: 4.41 MB
- Stars: 53
- Watchers: 4
- Forks: 15
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/ujjwalguptaofficial/sqlweb.svg?branch=master)](https://travis-ci.org/ujjwalguptaofficial/sqlweb)
[![npm version](https://badge.fury.io/js/sqlweb.svg)](https://badge.fury.io/js/sqlweb)
[![](https://data.jsdelivr.com/v1/package/npm/sqlweb/badge)](https://www.jsdelivr.com/package/npm/sqlweb)# SqlWeb
SqlWeb is an extension of [JsStore](http://jsstore.net/) which allows to use sql query for performing database operation in IndexedDB.
### Website
[https://github.com/ujjwalguptaofficial/sqlweb/wiki](https://github.com/ujjwalguptaofficial/sqlweb/wiki)
### Examples
```
import * as JsStore from 'jsstore';
import SqlWeb from "sqlweb";// create jsstore connection
var connection = new JsStore.Instance('jsstore worker path');// add SqlWeb
connection.addPlugin(SqlWeb);// run select query
connection.$sql.run("select * from Customers").then(function(result) {
console.log(result);
});
```
For a complete example - check out below link.* [Using it in react](https://github.com/ujjwalguptaofficial/sqlweb/tree/master/examples/react)
* [Using it with typescript](https://github.com/ujjwalguptaofficial/sqlweb/tree/master/examples/typescript)
* [Using it with webpack](https://github.com/ujjwalguptaofficial/sqlweb/tree/master/examples/webpack)
* [Simple example without any framework](https://github.com/ujjwalguptaofficial/sqlweb/tree/master/examples/simple%20example)