2.4.0 • Published 2 years ago

easy-db-react-native v2.4.0

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years ago

Easy DB for react-native

Easy DB logo

Lite&easy database for react-native, powered by easy-db-code. Not create any database structure, just use it.

Include types for TypeScript.

API

import easyDB from "easy-db-react-native";
const { insert, select, update, remove } = easyDB();

// INSERT
const idOfRow = await insert("collection1", { myRow: 1 });

// SELECT
const allCollection1 = await select("collection1");
const myRow1 = await select("collection1", idOfRow);

// UPDATE
await update("collection1", idOfRow, { ...myRow1, update: 1 });

// REMOVE
await remove("collection1", idOfRow); // only one row

Example of use

import easyDB from "easy-db-react-native";
const { select, update } = easyDB();

// Save nickname 
await update("myAppName", "nickname", nickname);

// Load nickname
const nickname = await select("myAppName", "nickname");
2.4.0

2 years ago

2.3.6

2 years ago

2.3.2

2 years ago

2.3.5

2 years ago

2.2.0

3 years ago

2.0.0

3 years ago

1.10.0

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.8.0

3 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

0.1.0

5 years ago