Commit graph

81 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
68c22bc25c Add subqueries, subexpressions, and paths to SQL 2016-11-04 09:58:11 +00:00
Tobie Morgan Hitchcock
28d1806785 Simplify JSON expression parsing 2016-11-04 09:45:11 +00:00
Tobie Morgan Hitchcock
45be69637e Add ‘record’ as a field type 2016-11-04 09:42:00 +00:00
Tobie Morgan Hitchcock
1733f84070 Enable main SQL commands to be within subqueries 2016-11-03 17:20:18 +00:00
Tobie Morgan Hitchcock
dd21b8879a Only do function argument checking in sql parser 2016-11-03 17:16:08 +00:00
Tobie Morgan Hitchcock
3b20033ebf Update PATH token types
Remove unused PATH token and move EDGE tokens to literals.
2016-11-03 08:13:34 +00:00
Tobie Morgan Hitchcock
7e9c595ff7 Add blueprint for RELATE SQL query 2016-10-30 16:59:16 +00:00
Tobie Morgan Hitchcock
feea12f93d Remove unused and backup SQL keywords 2016-10-30 14:05:29 +00:00
Tobie Morgan Hitchcock
151d73b954 Remove MODIFY SQL command and add DIFF to UPDATE
MODIFY SQL statements have now been merged with UPDATE SQL statements, as the functionality was similar, but the code was duplicated.

The DIFF SQL command has been added to the UPDATE query, so that records can be updated with DIFFs.
2016-10-30 00:33:28 +01:00
Tobie Morgan Hitchcock
872f4abf43 Update SQL package tests 2016-10-29 18:47:09 +01:00
Tobie Morgan Hitchcock
d4491d557b Support JSON and ARRAYS in RETURN statements 2016-10-29 18:46:48 +01:00
Tobie Morgan Hitchcock
c08e9d69c9 Use actual @things not strings for item ids 2016-10-29 12:44:49 +01:00
Tobie Morgan Hitchcock
6077dc2952 Add SQL RETURN statements 2016-10-29 12:29:20 +01:00
Tobie Morgan Hitchcock
174cc8bcad Add SQL LET statements with bound parameters 2016-10-29 12:28:20 +01:00
Tobie Morgan Hitchcock
cc74e7a67e Use interface type for @thing TB 2016-10-29 11:38:52 +01:00
Tobie Morgan Hitchcock
abf9c937be Ensure @thing:id is int64 if whole number 2016-10-29 10:20:10 +01:00
Tobie Morgan Hitchcock
4951aa61f6 Enable double slash single line comments 2016-10-24 12:11:12 +01:00
Tobie Morgan Hitchcock
4c8d5213dc Add double FIELD TYPE and improve type checking 2016-10-20 14:14:10 +01:00
Tobie Morgan Hitchcock
2290a95ec6 Add SQL SCOPE query type 2016-10-18 14:27:17 +01:00
Tobie Morgan Hitchcock
b5ff2cc1cb Enable text formatting for some sql ast structs 2016-10-14 22:53:27 +01:00
Tobie Morgan Hitchcock
a38e337513 Add SQL SCOPE query ast 2016-10-14 22:21:25 +01:00
Tobie Morgan Hitchcock
8ebc77465c Add SQL LIVE query ast 2016-10-14 22:21:17 +01:00
Tobie Morgan Hitchcock
a4520ca669 Add reserved keywords for SCOPE queries 2016-10-14 22:21:05 +01:00
Tobie Morgan Hitchcock
99012cb015 Add LIVE as reserved sql keyword 2016-10-14 22:17:58 +01:00
Tobie Morgan Hitchcock
9d490950a4 Add SQL VIEW to sql tests 2016-10-14 22:15:40 +01:00
Tobie Morgan Hitchcock
4e20db990a Add IF to sql reserved words 2016-10-14 22:06:05 +01:00
Tobie Morgan Hitchcock
115c97ce86 Remove code in rules and use SQL WHERE clause 2016-10-14 22:05:44 +01:00
Tobie Morgan Hitchcock
a16f7b2aba Add SCHEMALESS / SCHEMAFULL support to queries 2016-10-14 21:31:45 +01:00
Tobie Morgan Hitchcock
daa8db511c Add RETURN INFO command to sql queries 2016-10-14 08:01:56 +01:00
Tobie Morgan Hitchcock
f23d1e10d7 Use int64 instead of float64 for non decimal numbers 2016-10-14 07:55:53 +01:00
Tobie Morgan Hitchcock
6da2e371ca Remove RECORD keyword 2016-10-14 07:54:26 +01:00
Tobie Morgan Hitchcock
dd79f3c440 Remove SQL RECORD statement 2016-10-07 14:21:01 +01:00
Tobie Morgan Hitchcock
25c86a49da Use cork serialization for data storage 2016-10-02 00:17:19 +01:00
Tobie Morgan Hitchcock
bbae9a5fac Enable ability to RETURN INFO 2016-09-21 17:56:27 +01:00
Tobie Morgan Hitchcock
504c1b81e2 Simplify code 2016-09-21 00:37:03 +01:00
Tobie Morgan Hitchcock
66f09db9f5 Add SQL VIEWs 2016-09-21 00:36:37 +01:00
Tobie Morgan Hitchcock
f37ec653d1 Remove SQL EXPLAIN command 2016-09-21 00:34:21 +01:00
Tobie Morgan Hitchcock
bde073cd36 Update SQL ASTs 2016-09-21 00:25:39 +01:00
Tobie Morgan Hitchcock
7d5bff29aa Add additional sql functions 2016-09-21 00:24:03 +01:00
Tobie Morgan Hitchcock
20fe168587 Remove unused EAT @ token 2016-09-20 14:03:53 +01:00
Tobie Morgan Hitchcock
9436a752d8 Alow @thing to be used as DEFAULT values in fields 2016-09-19 14:47:11 +01:00
Tobie Morgan Hitchcock
3089b6460f Switch SQL RULES and SQL TABLE order 2016-09-19 11:12:08 +01:00
Tobie Morgan Hitchcock
ab30c6b85e Add SQL INFO query command 2016-09-19 11:08:44 +01:00
Tobie Morgan Hitchcock
3bbfa7919a Update Statement ASTs 2016-09-14 22:23:02 +01:00
Tobie Morgan Hitchcock
1fc814bb43 Parse tables and @things better 2016-09-14 22:22:31 +01:00
Tobie Morgan Hitchcock
974f75eea0 Uunexport methods which don’t need to be public 2016-09-14 22:21:25 +01:00
Tobie Morgan Hitchcock
9bbbf4491a Ensure parsed times are stored in UTC 2016-09-14 21:57:42 +01:00
Tobie Morgan Hitchcock
9940640a45 Remove unused token 2016-09-14 21:50:04 +01:00
Tobie Morgan Hitchcock
0a7e93d799 Allow bound params for DIFF, MERGE, CONTENT 2016-09-14 21:49:27 +01:00
Tobie Morgan Hitchcock
19d7c2a14e Don’t embed document data 2016-09-14 21:46:23 +01:00