Skip to content

mylocaldatabase it's a local database based on AsynchStorage and pleex. It's for all project react native (ios, android and web) and Expo.

Notifications You must be signed in to change notification settings

fvdf/mylocaldatabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

mylocaldatabase

mylocaldatabase it's a local database based on AsynchStorage and pleex. It's for all project react native (ios, android and web) and Expo.

mylocaldatabase

Local Javascript Async Storage for ⚛️ react native and Expo


Built with ❤ By Dubos Rudy


Get Started

Installation

install mylocaldatabase with npm or yarn

npm i mylocaldatabase

or

yarn add mylocaldatabase

this is example of creating schemas with mylocaldatabase

import {MyLocalDatabase} from 'mylocaldatabase';

const my_collection = MyLocalDatabase.collection('test');

const my_schema = MyLocalDatabase.schema({
  name: String,
  age: Number,
});

my_collection.insert(
    {
      name: 'Jack',
      age: 12,
    },
    my_schema,
    (success) => // Success,
    (error) => console.error(error)
);

This package helps you in:

  • Having simple storage

  • Create Schema and use them

  • Type cheking for schemas

  • Async workflow

  • Integrated with async storage

  • Save and use Json objects

  • Built in searching api

Current api's:

  • Collection

  • Schema

  • Insert

  • removeItem

  • removeItems

  • getItem

  • getItems

  • clearCollection

  • getAll

  • Multiple insert

About

mylocaldatabase it's a local database based on AsynchStorage and pleex. It's for all project react native (ios, android and web) and Expo.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published