Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
krisajenkins committed Nov 5, 2014
0 parents commit cf9af92
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.org
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.
7 changes: 7 additions & 0 deletions trolldb.js
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 () {}
};

0 comments on commit cf9af92

Please sign in to comment.