Commit graph

248 commits

Author SHA1 Message Date
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
Tobie Morgan Hitchcock
b6bf75c7b5 Ensure SQL KILL query executes properly 2019-02-01 01:26:47 +00:00
Tobie Morgan Hitchcock
bd9e518f0f Ensure fibre connection id is created if it doesn’t exist 2019-02-01 01:17:41 +00:00
Tobie Morgan Hitchcock
f19a0f1744 Improve detecting document changes
Instead of computing a diff to detect whether the document has changed, the document is marked as ‘changed’ if the initial document is different from the current document after being updated, or after being deleted.
2019-02-01 00:20:16 +00:00
Tobie Morgan Hitchcock
a00a7f17ef Use caching on database level, not in document class 2019-02-01 00:18:55 +00:00
Tobie Morgan Hitchcock
1d988760b3 Update for go@1.11 2019-02-01 00:14:59 +00:00
Tobie Morgan Hitchcock
775c3ca96a Enable DEFINE EVENT queries in exported SQL 2019-02-01 00:13:24 +00:00
Tobie Morgan Hitchcock
71192d2e36 Improve ORDER BY COLLATE queries 2019-02-01 00:12:10 +00:00
Tobie Morgan Hitchcock
ef9c73d4d7 Make SQL parser stateless 2019-01-31 12:38:23 +00:00
Tobie Morgan Hitchcock
26a2c01a9c Remove unused SQL types 2019-01-31 09:52:15 +00:00
Tobie Morgan Hitchcock
7c962f7bdc Add SQL OPTION query statement 2019-01-31 09:47:52 +00:00
Tobie Morgan Hitchcock
62f02015ba Remove custom PARALLEL config support from queries 2019-01-23 00:16:46 +00:00
Tobie Morgan Hitchcock
efeb186200 Ensure all fibre.Contexts have a unique socket id 2019-01-14 16:03:38 +00:00
Tobie Morgan Hitchcock
719bd98544 Use constant string for access all array items 2019-01-13 20:39:32 +00:00
Tobie Morgan Hitchcock
971302ecf5 Implement SPLIT keyword in SELECT statement 2019-01-11 11:17:43 +00:00
Tobie Morgan Hitchcock
b901c78bd1 Ensure test is correct for unique indexes 2019-01-07 13:45:40 +00:00
Tobie Morgan Hitchcock
0402d74708 Remove AND EXPUNGE clause from DELETE expression
When deleting records, it now removes and expunges document versions based on the table definition `DEFINE TABLE test VERSIONED` or `DEFINE TABLE test UNVERSIONED`, as opposed to the query being run. This prevents non-administrators from removing historic document data.
2018-12-31 07:46:44 +01:00
Tobie Morgan Hitchcock
f089dc4d7f Ensure document permissions are rechecked after updating 2018-12-31 07:46:12 +01:00
Tobie Morgan Hitchcock
a8f9198695 Fix comment 2018-12-30 23:02:12 +01:00
Tobie Morgan Hitchcock
9819b64dc6 Ensure unique indexes work with record ids 2018-12-13 02:05:23 +00:00
Tobie Morgan Hitchcock
30639a1ae9 Improve SQL INFO command 2018-10-24 11:29:43 +01:00
Tobie Morgan Hitchcock
20abadf41f Support exporting SQL LOGIN and SQL TOKEN hashes 2018-10-18 01:36:36 +01:00
Tobie Morgan Hitchcock
e52f0d3243 Implement basic executor caching layer 2018-09-28 22:06:07 +01:00
Tobie Morgan Hitchcock
918c696eb1 Complete functionality to define scope tokens 2018-09-13 17:34:27 +01:00
Tobie Morgan Hitchcock
41c2fd0b3e Add scope tokens to SQL INFO queries 2018-09-13 16:08:52 +01:00
Tobie Morgan Hitchcock
44d2fc129f Ensure all byte slices are converted to strings 2018-08-21 11:39:12 +01:00
Tobie Morgan Hitchcock
c91164bc93 Ensure all number types are converted to floats 2018-08-20 08:54:23 +01:00
Tobie Morgan Hitchcock
bf4659d8f9 Add SQL export functionality 2018-08-20 07:53:11 +01:00
Tobie Morgan Hitchcock
8b0674c66d Add support for table versioning 2018-08-20 07:52:13 +01:00
Tobie Morgan Hitchcock
de925ae16e Ensure full duration values are parsed correctly 2018-08-20 07:32:21 +01:00
Tobie Morgan Hitchcock
31ad063ef4 Encode and decode when copying a document 2018-08-20 01:06:52 +01:00
Tobie Morgan Hitchcock
a3787ad274 Simplify and improve internal SQL AST structures 2018-08-20 00:21:35 +01:00
Tobie Morgan Hitchcock
c7ae796275 SQL statements now run in serial mode by default 2018-08-10 19:16:42 +01:00
Tobie Morgan Hitchcock
48df950be5 Remove mysql kvs storage backend 2018-08-08 08:21:42 +01:00
Tobie Morgan Hitchcock
2932bac73e Enable subqueries in CREATE / UPDATE / RELATE / DELETE queries 2018-07-17 09:56:31 +01:00
Tobie Morgan Hitchcock
0e4557bdd3 Remove unused code 2018-07-12 02:49:35 +01:00
Tobie Morgan Hitchcock
ba40fd7285 Enable $this parameter in SELECT queries
It is now possible to select yielded output fields in the same query, without needing to use a subquery.
2018-05-31 14:34:39 +01:00
Tobie Morgan Hitchcock
ddefed03e6 Don’t allow use of $ param with no value in queries
Beforehand it was possible to do  SELECT * FROM $  which would show all of the variables defined. This is now not possible, and variables must be specified using their defined name.
2018-05-30 19:06:48 +01:00
Tobie Morgan Hitchcock
ba4f3c7e15 Simplify permissions fetching code 2018-05-30 13:25:42 +01:00
Tobie Morgan Hitchcock
295285707e Don’t use a cookie for unique Session ID 2018-05-14 02:37:49 +01:00
Tobie Morgan Hitchcock
e120f8961c Add server-generated session info to queries 2018-05-12 23:46:01 +01:00
Tobie Morgan Hitchcock
c8980e2eac Remove connection wide variables 2018-05-09 23:09:51 +01:00