2017 © Pedro Peláez
 

library store

Lightweight storage wrapper

image

alternatex/store

Lightweight storage wrapper

  • Saturday, March 8, 2014
  • by alternatex
  • Repository
  • 1 Watchers
  • 0 Stars
  • 28 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Store

Build Status, (*1)

A lightweight datastore wrapper providing CRUD operations for arbitrary objects., (*2)

Index

Quickstart

Embedding

Require.js

require(["store"], function(Store) {
  // ...
});

HTML

<script src="src/client/store.js"></script>

Client API

Store

Configure

Defaults are configured as follows:, (*3)

Store.configure({ 
  url: "http://localhost/datastore.php", 
  ttl: 3600
});

Note, (*4)

configure() alters the prototype object, hence modifications are propagated to instances on property level given that the respective instance properties have not been modified previously., (*5)

Create

var objectStore = new Store({ namespace: 'object' });

Object

Create

Preset
var object = objectStore.create({ 
  country: 'USA', 
  firstname: 'Stephen', 
  lastname: 'Colbert' 
}); 
Barebone
var object = objectStore.create(); 
object.set('country', 'USA');
object.set('firstname', 'Jon'); 
object.set('lastname', 'Stewart'); 

Read

List
objectStore.list();
Single
objectStore.get('8c0c1ff0-d0fe-38b7-376a-b0b1d53bd557');

Update

Instance
object.update();
Datastore
objectStore.update(object);

Delete

Instance
object.remove();
Datastore
objectStore.remove(object);

Summary











Routes

..., (*6)

Server API

Latest Stable Version Dependency Status, (*7)

Repositories

File Stores

Collections stored on a file basis., (*8)

Limitations, (*9)

Built with prototyping in mind. Won't scale., (*10)

CSV

..., (*11)

JSON

Supports embedding binary data base64 encoded., (*12)

Serialized

Stores data using PHPs serialize() function. Supports embedding binary data base64 encoded., (*13)

Documentation

Roadmap

  • Access Control
  • Synchronization
  • JSON Schema
    • Generators

License

Released under two licenses: new BSD, and MIT. You may pick the license that best suits your development needs., (*14)

https://raw.github.com/alternatex/store/master/LICENSE, (*15)

The Versions

08/03 2014

dev-master

9999999-dev http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

21/02 2014

dev-develop

dev-develop http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

06/01 2014

dev-temp

dev-temp http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

15/11 2013

1.0.11

1.0.11.0 http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

15/11 2013

1.0.10

1.0.10.0 http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

22/10 2013

1.0.9

1.0.9.0 http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

20/10 2013

1.0.8

1.0.8.0 http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

18/10 2013

1.0.7

1.0.7.0 http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

18/10 2013

1.0.6

1.0.6.0 http://alternatex.github.io/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

13/10 2013

1.0.4

1.0.4.0 https://github.com/alternatex/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

13/10 2013

1.0.3

1.0.3.0 https://github.com/alternatex/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

13/10 2013

1.0.2

1.0.2.0 https://github.com/alternatex/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger

13/10 2013

1.0.1

1.0.1.0 https://github.com/alternatex/store

Lightweight storage wrapper

  Sources   Download

MIT

The Requires

 

The Development Requires

by Gianni Furger