-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cf9af92
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
* TrollDB | ||
|
||
TrollDB is an in-memory JavaScript database which prioritises | ||
performance over everything. It is blazingly fast. You *will not* find | ||
a faster in-memory JavaScript Database. Stop looking. You've arrived. | ||
|
||
** Usage | ||
|
||
First require the trolldb script: | ||
|
||
#+BEGIN_SRC html | ||
<script type="text/javascript" src="trolldb.js"></script> | ||
#+END_SRC | ||
|
||
*** Insert | ||
|
||
You can insert any form of structured data you like: | ||
|
||
#+BEGIN_SRC javascript | ||
db.insert({"balance": 12345}); | ||
#+END_SRC | ||
|
||
TrollDB will optimize this insert for performance. | ||
|
||
*** Query | ||
|
||
You can query for data with pattern matching. | ||
|
||
#+BEGIN_SRC javascript | ||
db.query({"balance": undefined}); | ||
#+END_SRC | ||
|
||
TrollDB will optimize this query for performance. | ||
|
||
** Bugs | ||
|
||
Please report any bugs in the Github Issue tracker. Please note that | ||
only bugs that affect performance will be considered bugs. | ||
|
||
** Status | ||
|
||
Production-ready, if performance is your only concern. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var db = { | ||
"query": function () { return 42; }, | ||
"insert": function () {}, | ||
"update": function () {}, | ||
"delete": function () {}, | ||
"upsert": function () {} | ||
}; |