-
Notifications
You must be signed in to change notification settings - Fork 9
/
TODO
30 lines (20 loc) · 904 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Installation
Configuring your DB connection
Store Overview
Get(query, options, callback)
Insert(data, callback)
Update(data, query, options, callback)
Remove(query, options, callback)
query can be integer or options hash
if query is integer then its get / save / remove by ID
if query is an options hash assume A simple condition is pairs of key's and values. This builds a condition where all columns named by the key must equal the corresponding value.
if query is {}, assume all (like WHERE 1=1 in SQL land)
options is an options hash
limit - truncate the amount of rows returned
no-sql only
depth - integer - truncate the depth of nested objects
sort - callback function - sorts the results by custom method
Saving data (Creates and Updates)
Getting data (Reading and Searching)
Removing data (Removing and Deleting)
Using actual SQL with an RDBMS (not advised)