Skip to content
Bastin Robin edited this page Dec 11, 2013 · 4 revisions

Welcome to the connectDb.js wiki!

ConnectDb.js

ConnectDb

ConnectDb.js stable v0.1 ConnectDb is an javascript framework for building browser based database web, mobile applications. It is an open source framework which makes easy to Connect, Query and Report.

ConnectDb.js is an advanced implementation of the HTML5 Local Storage API. It is now easy to use the complete offline storage for any purpose of your development process.

Features:

  • Easy connection to DB
  • Easy Querying from collections
  • Easy to update the data
  • Fastest DB processing
  • More to come.

ConnectDb was started as an open source project which can be forked by developers and contribute to our projects.

Let us play with mobile environment

Development Version:

<script type="text/javascript" src="https://github.com/BastinRobin/connectDb.js/raw/master/connectDb.js"></script>

Production Version:

<script type="text/javascript" src="https://github.com/BastinRobin/connectDb.js/raw/master/connectDb.min.js"></script>

Usage:

Check the version of connectDb.js library

_db.version();

Check if browser supports connectDb.js.

_db.checkBrowser();

Check if any db exists.

_db.isempty();

Clear complete db if exist.

_db.clear();

Check the length of DB

_db.length(key);

Create a New Key ,Value Pair DB

_db.createRow(key, value);

Retrieve a row using key

_db.getRow(key);

Remove a Row from Db

_db.removeRow(key);

View all rows in DB.

_db.viewRow();

Store any JSON array to the Db as key value pair

_db.setJSON(key, json);

Retrieve JSON array from DB using Key

_db.getJSON(key);

Create secure row using Key, Value pair

_db.createSecureRow(key, value);

Retrieve secure row using key

_db.getSecureRow(key);

Remove secure row using key

_db.removeSecureRow(key);

Get the list of keys of JSON array

_db.keys(json);

Get the list of values of JSON array

_db.values(json);

Get the current time

_db.time();

Pluck specific attributes values from JSON array returns a list

_db.pluck(json, key);

Contributing:

  • Fork it.
  • Create a branch (git checkout -b my_connectDb)
  • Commit your changes (git commit -am "Added New change")
  • Push to the branch (git push origin my_connectDb)
  • Open a Pull Request
  • Enjoy a refreshing Diet Coke and wait

License

This software is free to use under the GNU license.

Clone this wiki locally