ui-local-db

Simple and fast implementation of DB within user's browser environment.

View the Project on GitHub asduser/ui-local-db

What for

This is fast and helpful Javascript-library to work with client Database through browser. It has a basic CRUD methods, by which you may quickly adjust the data while having easy and convenient interface in the management.

How to

var dbPanel = new dBControl();

This action initializes control to work with data within current user session.

dbPanel.create('First');

Create a new data store in the localStorage. This action is required and have to be involved necessarily to use almost all control methods.

dbPanel.connect('First');

Call specified localDB to work.

dbPanel.clear();

Reset all data for the current localDB. Furthermore, the connection with current localDB wont be lost.

dbPanel.disconnect();

Disconnect and back to the main control state.

dbPanel.drop('Title');

Remove localDB from the common storage by the received title.

dbPanel.displayMessages(bool);

Show\ignore specific infrom messages into browser console.

dbPanel.find('Some title');

Find localDB at the common storage.

dbPanel.getAll();

Find and return collection of existing localDB's in the user localStorage.

dbPanel.getData();

Retrieve data inside current localDB.

dbPanel.getInfo();

Display common info about current localDB.

dbPanel.removeValue('Some');

Delete the property from the current localDB.

dbPanel.setValue('Another');

Set a new value into the current localDB.