Commit graph

289 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
66314ef074 Remove pre-executing query logging 2020-11-26 21:37:00 +00:00
Tobie Morgan Hitchcock
9a4a6be868 Condition queries must be treated as boolean values 2020-11-24 12:48:41 +00:00
Tobie Morgan Hitchcock
cc5ba019e8 Add SQL logging before statement is run 2020-11-24 01:05:37 +00:00
Tobie Morgan Hitchcock
66ee13a52d Ensure boolean expressions return actual value not boolean value 2020-11-23 19:25:11 +00:00
Tobie Morgan Hitchcock
26b08c94e8 Update dependencies 2020-11-16 08:48:02 +00:00
Tobie Morgan Hitchcock
511cbbca11 Add query timeout functionality 2020-09-22 10:46:00 +01:00
Tobie Morgan Hitchcock
a94af244ac Ensure all parent queries are available in $parent variable 2020-05-13 23:30:28 +01:00
Tobie Morgan Hitchcock
8a8b8811c9 Don’t display stack trace for simple errors 2020-03-28 09:59:11 +00:00
Tobie Morgan Hitchcock
7d95f5dc5c Allow all permission on subquery records 2020-03-27 11:49:55 +00:00
Tobie Morgan Hitchcock
f3ab0596f5 No need to fetch statement duration more than once 2020-03-07 09:55:25 +00:00
Tobie Morgan Hitchcock
2ef562de06 Remove PARALLEL option from SQL commands 2020-03-06 15:44:53 +00:00
Tobie Morgan Hitchcock
cbf0ec6f41 Ensure transactions are cleared when completed 2020-02-17 13:47:09 +00:00
Tobie Morgan Hitchcock
e57a088688 Live queries from event queries occur in the background
Previously, LIVE queries as a result of an  EVENT query would not be sent to the current connection. Now any LIVE queries resulting from an EVENT query will be delivered to ALL connections, regardless of where it originated.
2020-02-17 13:46:54 +00:00
Tobie Morgan Hitchcock
180ab61207 Ensure live queries occur before event queries 2020-02-17 13:36:27 +00:00
Tobie Morgan Hitchcock
19635d98e4 Update comments 2019-12-08 13:51:49 +00:00
Tobie Morgan Hitchcock
2ab27f1cd2 Reset transaction on executor instantiation 2019-12-03 11:23:48 +00:00
Tobie Morgan Hitchcock
412b15cc11 Clear executor transaction 2019-12-03 10:07:19 +00:00
Tobie Morgan Hitchcock
a675790fef Check that txn is closed 2019-11-30 01:50:19 +00:00
Tobie Morgan Hitchcock
d0e1fd90fd Add error stack to error log 2019-11-29 10:50:13 +00:00
Tobie Morgan Hitchcock
24c11f97f6 Update dependencies 2019-11-28 17:34:49 +00:00
Tobie Morgan Hitchcock
9deae2c466 Simplify errors 2019-11-28 16:33:09 +00:00
Tobie Morgan Hitchcock
e84fe44959 Tidy up live queries on startup 2019-11-21 09:21:29 +00:00
Tobie Morgan Hitchcock
c3b0bf3a26 Don’t use concurrent workers in iterator 2019-11-20 16:59:17 +00:00
Tobie Morgan Hitchcock
b941450e03 Fix indexes 2019-11-20 16:14:15 +00:00
Tobie Morgan Hitchcock
4e79fb34f3 Downgrade ugorji/codec 2019-11-20 14:16:56 +00:00
Tobie Morgan Hitchcock
d0d566bbd9 Improve database speed 2019-11-20 13:20:27 +00:00
Tobie Morgan Hitchcock
ddf87a7188 No need to pass $before and $after values for determining permissions 2019-11-18 11:36:12 +00:00
Tobie Morgan Hitchcock
cca75c70fc Check if log level is enabled before creating entry 2019-11-18 11:29:40 +00:00
Tobie Morgan Hitchcock
7de6f54547 Remove RETURN BOTH and RETURN DIFF 2019-11-18 11:29:30 +00:00
Tobie Morgan Hitchcock
f646d47e24 Update generated go code 2019-10-03 19:15:50 +01:00
Tobie Morgan Hitchcock
0ea0942378 Don’t use diffing in SQL export 2019-10-03 19:15:36 +01:00
Tobie Morgan Hitchcock
6a236b27b2 Improve permission checking efficiency 2019-10-03 18:48:13 +01:00
Tobie Morgan Hitchcock
3f4d12ad2d Switch to go mod 2019-09-29 11:28:53 +01:00
Tobie Morgan Hitchcock
41a19a1708 Update generated codec code 2019-06-17 08:01:58 +01:00
Tobie Morgan Hitchcock
4e3b3682a6 Don’t re-encode the key if we have already encoded it 2019-06-17 07:00:56 +01:00
Tobie Morgan Hitchcock
304c0458e8 Improve speed of document change detection 2019-06-17 07:00:32 +01:00
Tobie Morgan Hitchcock
a1b6d24772 Remove support for write-only streaming storage 2019-06-16 08:12:41 +01:00
Tobie Morgan Hitchcock
2ee1133a4b Simplify command line config arguments 2019-06-16 08:08:23 +01:00
Tobie Morgan Hitchcock
78e4b3d6fa Simplify SQL OPTION statement 2019-06-15 08:12:47 +01:00
Tobie Morgan Hitchcock
0392aa904c Use reflect to check for document changes 2019-06-14 23:03:06 +01:00
Tobie Morgan Hitchcock
db1864224b Implement async document processing in queries 2019-06-14 18:33:41 +01:00
Tobie Morgan Hitchcock
09c32c2d64 Fix live queries 2019-03-05 11:40:08 +00:00
Tobie Morgan Hitchcock
07559e7ff8 Temporarily remove parallel iterator processing 2019-02-10 23:17:22 +00:00
Tobie Morgan Hitchcock
b5998496e0 Convert IfelExpression to SubExpression
Instead of having separate IfelExpression types, instead make IfelseStatement a subtype of SubExpression, and allow it without brackets.
2019-02-10 23:17:01 +00:00
Tobie Morgan Hitchcock
ae7b6ca0e4 Fix live queries 2019-02-06 08:08:07 +00:00
Tobie Morgan Hitchcock
bd8c6fddb2 Diff the document properly to detect any changes 2019-02-06 08:02:43 +00:00
Tobie Morgan Hitchcock
1b4c1bd094 Use common id / name for background SQL queries 2019-02-06 08:02:22 +00:00
Tobie Morgan Hitchcock
80f532436e Ensure conditions in IF ELSE queries are treated as booleans 2019-02-05 18:48:43 +00:00
Tobie Morgan Hitchcock
d3fea6365f Don’t reorder array items when fetching records 2019-02-05 18:47:05 +00:00
Tobie Morgan Hitchcock
f8beab1e17 Only use remote iterator fetch, if the value is a record 2019-02-01 10:49:44 +00:00