Commit graph

605 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
529c1028a3 Improve and simplify RPC interface methods 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
e10debba6c Enable query params for USE NS / USE DB in queries 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
ac868694eb Enable query params for VERSION in queries 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
fbb0bd79bd Don’t delete txn until we have cancelled/committed 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
a700ef9bc4 Improve debug logging throughout codebase 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
6a719d815b Improve errors throught codebase 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
c3df9d791d Check websocket subprotocol for auth details 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
20d4bfadef Reduce POST content size to 1MB 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
30d8016d0c Reorder middleware 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
55f272a87c Implement database import and export commands 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
8385719834 Enable specifying NS and DB in http headers 2017-02-20 01:44:13 +00:00
Tobie Morgan Hitchcock
e599497728 Tidy up log package 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
e86857bdf7 Enable import / export of database transaction log 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
58ac9d9424 Add code comments to kvs package 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
1c784da214 Export to stdOut not into a file 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
fcfa88a33b Import from stdIn not from a file 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
cd7922db15 Enable query params for LIMIT and START in queries 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
363cfa8758 Use sync pool for query executor 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
83a64c6c29 Enforce default RETURN value in sql parser 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
3ffaec9265 Remove RETURN statement from SELECT query 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
623d55225c Use transaction mem cache for db config data 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
3f82f83cf1 Remove SQL error for embedded DEFINE/REMOVE queries 2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
1cb44cce2f Only product stack trace if log level is debug 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
0e14256e0f Add log level constants to package 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
6fa73071a5 Add HTTP 501 error message 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
fba3a97a24 Improve HTTP 500 error message 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
b62b7ed2c9 Don’t use pointer as we already are a pointer 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
86aed74cd4 Update documentation 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
6c82529d85 JSON Patch expects only array in SQL, not object 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
b724d864f8 Add ability to define NAMESPACE without DATABASE
Once somebody had specified USE NAMESPACE to select a namespace, it was not possible to DEFINE a DATABASE underneath the NAMESPACE, as an error that ‘no database is selected’ would be returned. Not it is possible to DEFINE DATABASE having selected only a NAMESPACE.
2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
7d88c389e1 Enable use of SQL DEFINE/REMOVE in transactions 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
2a35485089 Output full stacktrace for errors when debugging 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
7f0ea653b8 Improve sql query requests timing 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
dd230dca56 Enable SQL ASTs to self-encode and self-decode 2017-02-20 01:44:11 +00:00
Tobie Morgan Hitchcock
1fd450890b Fix typo 2017-02-20 01:44:10 +00:00
Tobie Morgan Hitchcock
a5dc358e4e Don’t pass txn around, but use executor txn 2017-02-20 01:44:08 +00:00
Tobie Morgan Hitchcock
6807d4c338 Switch underlying KV store to rixxdb/dendrodb 2017-02-20 01:31:15 +00:00
Tobie Morgan Hitchcock
f56196a150 Update keys package 2017-02-09 20:35:19 +00:00
Tobie Morgan Hitchcock
99ea0a3368 Use sirupsen/logrus instead of abcum fork 2017-02-09 15:46:27 +00:00
Tobie Morgan Hitchcock
3ea681ca34 Enable ability to bind to specific ip/hostname 2017-02-09 11:20:23 +00:00
Tobie Morgan Hitchcock
a3b9362adb Switch underlying KV store to rixxdb/dendrodb 2017-02-09 11:16:59 +00:00
Tobie Morgan Hitchcock
07b5c5ce38 Add code spacing 2017-02-09 10:32:32 +00:00
Tobie Morgan Hitchcock
dfee11339e Fix SQL bug where NAMESPACE/DATABASE were needed twice
DEFINE NAMESPACE and REMOVE NAMESPACE statements expected two NAMESPACE keywords in the SQL query.

DEFINE DATABASE and REMOVE DATABASE statements expected two DATABASE keywords in the SQL query.
2017-02-09 10:31:53 +00:00
Tobie Morgan Hitchcock
1b83dace69 Add JSON Patch go package 2017-02-07 17:23:12 +00:00
Tobie Morgan Hitchcock
955e736a4d Enable expressive array item selection using [:] 2017-02-07 17:22:57 +00:00
Tobie Morgan Hitchcock
664ab1054c Add Diff method for comparing data docs 2017-02-04 11:23:30 +00:00
Tobie Morgan Hitchcock
e6df3dbeb9 Add Each method
Add Each method for iterating through all of the values in a document. This is in contrast to Walk which will iterate over a given path regardless of whether it exists or not.
2017-02-04 11:22:53 +00:00
Tobie Morgan Hitchcock
865a0b16a3 Improve path parsing enabling [] array characters 2017-02-04 11:13:11 +00:00
Tobie Morgan Hitchcock
db2fb6159c Specify struct fields on struct initialisation 2017-02-04 11:00:13 +00:00
Tobie Morgan Hitchcock
74658132c1 Enable password field types 2017-02-03 19:10:51 +00:00