treojs / treo-websql

Treo plugin to fallback to WebSQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

treo-websql

Treo plugin to fallback to WebSQL.

This module forces treo to use WebSQL in Safari 8- and when IndexedDB is not available. Also it patches IE implementation to support compound indexes.

Installation

npm install --save treo-websql

Usage

import treo from 'treo'
import treoWebsql from 'treo-websql'

// enable indexeddbshim && custom "idb-factory" setup
treoWebsql()

// works everywhere
const db = treo('mydb')
db.books.get('key').then((val) => {})

License

MIT

About

Treo plugin to fallback to WebSQL

License:MIT License


Languages

Language:JavaScript 100.0%