Tobie Morgan Hitchcock
b92219b04b
Update package name and location
2021-12-14 08:13:19 +00:00
Tobie Morgan Hitchcock
f5bb7ad255
Ensure Points are Longitude/Latitude
2021-06-01 16:25:54 +01:00
Tobie Morgan Hitchcock
e2635e8cf9
Fix bug with record id parsing
2021-05-13 10:09:51 +01:00
Tobie Morgan Hitchcock
97513cdb65
Fix Thing parsing for record IDs
2021-05-12 16:37:50 +01:00
Tobie Morgan Hitchcock
2ef562de06
Remove PARALLEL option from SQL commands
2020-03-06 15:44:53 +00:00
Tobie Morgan Hitchcock
db1864224b
Implement async document processing in queries
2019-06-14 18:33:41 +01: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
ef9c73d4d7
Make SQL parser stateless
2019-01-31 12:38:23 +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
971302ecf5
Implement SPLIT keyword in SELECT statement
2019-01-11 11:17:43 +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
20abadf41f
Support exporting SQL LOGIN and SQL TOKEN hashes
2018-10-18 01:36:36 +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
a3787ad274
Simplify and improve internal SQL AST structures
2018-08-20 00:21:35 +01:00
Tobie Morgan Hitchcock
ae303d062c
Add FETCH expressions to LIVE SELECT queries
2018-04-24 23:59:49 +01:00
Tobie Morgan Hitchcock
1f30035899
Add SQL FETCH functionality to SELECT statements
2018-04-22 00:10:52 +01:00
Tobie Morgan Hitchcock
2d17f69a8c
Ensure all SQL THINGs are processed correctly from JSON
2018-04-20 12:02:58 +01:00
Tobie Morgan Hitchcock
7602b77c6d
Store regex values in special sql.REGEX type
2018-04-14 21:56:29 +01:00
Tobie Morgan Hitchcock
ac19b552e5
Add SQL RUN query statement type
2018-04-14 17:55:05 +01:00
Tobie Morgan Hitchcock
ca392f87a7
Add ON SIGNUP and ON SIGNIN events to SQL SCOPE
...
It is now possible to run queries when a user signs-up or signs-in, by specifying multiple queries within an ON SIGNUP (…) clause, or a ON SIGNIN (...) clause.
2018-03-18 21:30:02 +00:00
Tobie Morgan Hitchcock
0dae9d2366
Add sql.MultExpression type
2018-03-18 21:01:29 +00:00
Tobie Morgan Hitchcock
2f23e84877
Parse times and records within json content
2018-01-10 13:17:50 +00:00
Tobie Morgan Hitchcock
cc8f4ec29e
Use special SQL type for null values
2017-12-12 01:10:37 +00:00
Tobie Morgan Hitchcock
e3c7aacd66
Enable parameters in LIVE queries
2017-12-08 10:29:52 +00:00
Tobie Morgan Hitchcock
ccdc6fb8ea
Add ability to define the order fields are processed
2017-12-05 01:57:25 +00:00
Tobie Morgan Hitchcock
a569ad78d6
Improve statement read/write status detection
...
Only store read-write statement status in the database for statements which can be either read or write. For those statements which are always write statements (Live, Kill, Create, Update, Delete, Relate, Insert, Upsert, Define, Remove….), then hardcode this on the statement itself.
2017-11-24 12:56:53 +00:00
Tobie Morgan Hitchcock
1d08949fff
Full update of the SQL package
2017-11-16 20:53:13 +00:00
Tobie Morgan Hitchcock
4c16dafcf3
Add duration method to killable statements
2017-04-28 17:12:11 +01:00
Tobie Morgan Hitchcock
aa7e4ac561
Enable model expressions in SQL parser
...
The SQL parser now supports model expressions for defining ranges using the |table:0,0.5..100| notation syntax.
2017-04-14 13:21:08 +01:00
Tobie Morgan Hitchcock
2de5a8fa3f
Simplify parsing @table:thing definitions
2017-04-14 13:13:31 +01:00
Tobie Morgan Hitchcock
5a558c0d6f
Implement Authable statements for improved logging
2017-03-24 21:25:22 +00:00
Tobie Morgan Hitchcock
98db89a2d7
Implement query statement timeout functionality
2017-03-02 14:38:56 +00:00
Tobie Morgan Hitchcock
2d5151c8ba
Enable SQL AST string formatting
2017-03-02 10:47:10 +00:00
Tobie Morgan Hitchcock
3ffaec9265
Remove RETURN statement from SELECT query
2017-02-20 01:44:12 +00:00
Tobie Morgan Hitchcock
fbe34c6083
Add PERMISSIONS and remove DEFINE / REMOVE RULES
2016-11-26 13:39:03 +00:00
Tobie Morgan Hitchcock
2fcc2e3668
Improve SQL INFO command to support namespaces
2016-11-23 12:53:27 +00:00
Tobie Morgan Hitchcock
8cdae77483
Generate token keys in SQL and store as binary
2016-11-22 13:51:21 +00:00
Tobie Morgan Hitchcock
bb752eb124
Encrypt SQL LOGIN password immediately
2016-11-22 13:36:57 +00:00
Tobie Morgan Hitchcock
19650ab770
Remove POLICY from SQL DEFINE SCOPE statement
2016-11-21 18:43:15 +00:00
Tobie Morgan Hitchcock
ee6653c289
Improve SQL DEFINE SCOPE statement
2016-11-16 22:47:43 +00:00
Tobie Morgan Hitchcock
cf79487b81
Add SQL DEFINE TOKEN statement
2016-11-16 22:47:23 +00:00
Tobie Morgan Hitchcock
a66c604c2f
Add SQL DEFINE LOGIN statement
2016-11-16 22:46:57 +00:00
Tobie Morgan Hitchcock
2e94c2fe02
Add AND UPSERT to UPDATE statement
2016-11-04 11:43:59 +00:00
Tobie Morgan Hitchcock
b9327723f8
Add SQL command for DEFINE/REMOVE DATABASE
2016-11-04 11:34:37 +00:00
Tobie Morgan Hitchcock
15103e202b
Add SQL command for DEFINE/REMOVE NAMESPACE
2016-11-04 11:33:57 +00:00
Tobie Morgan Hitchcock
b0ab86c4ef
Add KV, NS, DB to LET and RETURN SQL ASTs
...
All queries which manipulate the data layer in any way, should at least store the authenticated/selected NS and DB options, even if they do not actually use them when running the SQL statement.
2016-11-04 11:15:05 +00:00
Tobie Morgan Hitchcock
b5da299ea3
Add CORK self encoding to SQL objects
2016-11-04 10:01:32 +00:00