Tobie Morgan Hitchcock
97513cdb65
Fix Thing parsing for record IDs
2021-05-12 16:37:50 +01:00
Tobie Morgan Hitchcock
6417cd2c2c
Fix SQL parsing of JSON strings
2020-11-19 21:41:49 +00:00
Tobie Morgan Hitchcock
2ef562de06
Remove PARALLEL option from SQL commands
2020-03-06 15:44:53 +00:00
Tobie Morgan Hitchcock
536493ef45
Ensure sub-queries are correctly specified as read of write
2019-11-21 00:44:31 +00:00
Tobie Morgan Hitchcock
7de6f54547
Remove RETURN BOTH and RETURN DIFF
2019-11-18 11:29:30 +00:00
Tobie Morgan Hitchcock
412ba4fc45
Update RELATE queries to newer syntax
2019-06-15 08:11:33 +01:00
Tobie Morgan Hitchcock
db1864224b
Implement async document processing in queries
2019-06-14 18:33:41 +01: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
1da702e04b
Allow SQL USE queries to run inside transactions
2019-01-31 09:51:54 +00:00
Tobie Morgan Hitchcock
7c962f7bdc
Add SQL OPTION query statement
2019-01-31 09:47:52 +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
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
26b138b9b0
Simplify built-in database field types
2018-10-18 00:39:09 +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
1a37472f3f
Allow proper field names when removing a field
2018-04-27 00:46:36 +01:00
Tobie Morgan Hitchcock
b988b2c890
Remove ‘url’ and ‘color’ SQL field types
2018-04-05 00:35:08 +01:00
Tobie Morgan Hitchcock
b8972ae2c2
Mathmatical sql functions must be prefixed with ‘math’
...
All mathmatical functions must now be used by specifying the full function name. For example `avg` is now `math.avg`.
2018-04-05 00:34:09 +01:00
Tobie Morgan Hitchcock
0dc9ad339c
Enable multiple expressions with database events
...
It is now possible to run multiple query expressions when an event on a table has occured. Query expressions can be separated with a semicolon, and will be run in the same transaction as the main query.
2018-04-04 19:20:07 +01: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
84b9cdc93a
Fix binary equality tree parsing and calculations.
2017-12-06 20:18:57 +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
8a53ed3617
Fix SQL tests
2017-04-14 13:24:53 +01:00
Tobie Morgan Hitchcock
d27e00e737
Fix sql tests
2017-02-23 15:09:02 +00:00
Tobie Morgan Hitchcock
fbe34c6083
Add PERMISSIONS and remove DEFINE / REMOVE RULES
2016-11-26 13:39:03 +00:00
Tobie Morgan Hitchcock
77aa2adaf7
Update SQL tests
2016-11-04 12:15:51 +00:00
Tobie Morgan Hitchcock
d8a2d40d34
Update SQL tests
2016-11-04 11:13:34 +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
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
9d490950a4
Add SQL VIEW to sql tests
2016-10-14 22:15:40 +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
f37ec653d1
Remove SQL EXPLAIN command
2016-09-21 00:34:21 +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
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
19d7c2a14e
Don’t embed document data
2016-09-14 21:46:23 +01:00
Tobie Morgan Hitchcock
48b644f399
Remove RESYNC INDEX command
2016-09-14 10:23:57 +01:00
Tobie Morgan Hitchcock
9492ed7244
Update SQL tests
2016-09-07 16:58:50 +01:00