You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# jSQL
2
-
v1.1
2
+
v1.3
3
3
4
4
Too often web applications rely on server side databases to store state information, causing unnecessary strain on the server and longer load time for the end user. jSQL aims to solve the quandary of the stateless web by using various APIs to store serialized data structures on the user's hard drive.
5
5
@@ -20,7 +20,11 @@ jSQL is written with flexibility, ease of use, and efficiency in mind. It suppor
20
20
jSQL is implemented in a single JavaScript file. Save the [`jSQL.js`](https://github.com/Pamblam/jSQL/blob/master/jSQL.js) file (or if for performance junkies, the minified [`jSQL.min.js`](https://github.com/Pamblam/jSQL/blob/master/jSQL.min.js) file) to your project folder and include it.
21
21
22
22
<script src='jSQL.js'></script>
23
-
23
+
24
+
25
+
26
+
#### Create a table
27
+
24
28
When the database has loaded into memory, you'll want to make sure you have a table to work with. Any database operations that are to be made immediately when the app loads should be called from within the [`jSQL.load()`](https://github.com/Pamblam/jSQL/wiki/Persistence-Management#jsqlloadonloadcallback) callback.
25
29
26
30
jSQL.load(function(){
@@ -30,6 +34,10 @@ When the database has loaded into memory, you'll want to make sure you have a ta
Once you've got the data in there, you're probably going to want to get it back out.
50
60
51
61
var users = jSQL.query("select * from users where name like '%ob'").execute().fetchAll("ASSOC");
@@ -56,7 +66,7 @@ The low level select sytax is easy too:
56
66
57
67
When you've made changes or additions to the database, call [`jSQL.persist()`](https://github.com/Pamblam/jSQL/wiki/Persistence-Management#jsqlpersist) to commit your changes.
58
68
59
-
For more information and to read about other query types, see the [jSQL Documentation](https://github.com/Pamblam/jSQL/wiki#jsql-docs).
69
+
For more information and to read about other update, delete and other operations, see the [jSQL Wiki](https://github.com/Pamblam/jSQL/wiki#jsql-docs).
0 commit comments