Commit graph

1106 commits

Author SHA1 Message Date
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
c8d70c780c Don’t apply text diff if an error occurs 2018-12-28 10:53:28 +01:00
Tobie Morgan Hitchcock
9819b64dc6 Ensure unique indexes work with record ids 2018-12-13 02:05:23 +00:00
Tobie Morgan Hitchcock
ef3ec7c51f use surreal docker organisation instead of abcum 2018-11-29 13:06:54 +00:00
Tobie Morgan Hitchcock
4bad40c309 Use surreal project on Google Container Repository 2018-11-29 12:45:56 +00:00
Tobie Morgan Hitchcock
3d4081bd54 Ensure record ID changes are detected in diff 2018-11-29 10:44:17 +00:00
Tobie Morgan Hitchcock
38f0e3469e Add GROUP BY ALL to SQL SELECT queries 2018-10-24 12:25:07 +01:00
Tobie Morgan Hitchcock
30639a1ae9 Improve SQL INFO command 2018-10-24 11:29:43 +01:00
Tobie Morgan Hitchcock
27f77e8e5d Update 3rd party dependencies 2018-10-24 10:50:48 +01:00
Tobie Morgan Hitchcock
591ff50ac6 Update 3rd party dependencies 2018-10-24 01:28:44 +01:00
Tobie Morgan Hitchcock
9999f8eaf5 Enable default IPV6 address for root authentication 2018-10-23 15:47:50 +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
e52f0d3243 Implement basic executor caching layer 2018-09-28 22:06:07 +01:00
Tobie Morgan Hitchcock
1a0c8b018f Error when accessing table with undefined param
When using the SQL table() function to define a table with an undefined paramater `table($undefined)`, the database would attempt to access a nil table, and would eventually crash.
2018-09-25 09:43:04 +01:00
Tobie Morgan Hitchcock
480ae04046 Add SQL functions time.wday() and time.yday() 2018-09-20 12:55:45 +01:00
Tobie Morgan Hitchcock
391fb53743 Add SQL function time.week() 2018-09-19 14:46:05 +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
6ed01504ec Fix non-used declared properties bug 2018-09-11 17:39:32 +01:00
Tobie Morgan Hitchcock
b5d089d4e0 Update 3rd party dependencies 2018-09-11 13:31:50 +01:00
Tobie Morgan Hitchcock
9bab9f3ce7 Add SQL function string.slug 2018-09-11 13:28:45 +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
05d4d97707 Support JSON unicode characters in SQL 2018-08-20 07:12:32 +01:00
Tobie Morgan Hitchcock
31ad063ef4 Encode and decode when copying a document 2018-08-20 01:06:52 +01:00
Tobie Morgan Hitchcock
445436bff7 Ensure ‘warn’ log level works correctly 2018-08-20 01:06:10 +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
e57e90a2f5 Ensure SQL functions return interface{} types 2018-08-08 08:47:41 +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
c0f9ec1f26 Implement PARALLEL keyword on queries 2018-07-17 09:35:36 +01:00
Tobie Morgan Hitchcock
8a41cc8a08 Use a fake context when running scope auth queries 2018-07-12 02:50:03 +01:00
Tobie Morgan Hitchcock
0e4557bdd3 Remove unused code 2018-07-12 02:49:35 +01:00
Tobie Morgan Hitchcock
fed44641cc Output interface{} not []float64 2018-07-04 11:40:57 +01:00
Tobie Morgan Hitchcock
d32873839a Ignore db files in git 2018-07-04 11:39:34 +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
7277e32d88 Fix distinct() with GROUP BY clauses 2018-05-31 14:18:40 +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
8ab01b510f Remove unused code 2018-05-30 13:25:53 +01:00
Tobie Morgan Hitchcock
ba4f3c7e15 Simplify permissions fetching code 2018-05-30 13:25:42 +01:00
Tobie Morgan Hitchcock
db37b8378b Allow any expression for SELECT VERSION string 2018-05-30 13:25:11 +01:00
Tobie Morgan Hitchcock
7bf408336d Allow expressions in SELECT field AS alias clauses 2018-05-30 13:24:45 +01:00
Tobie Morgan Hitchcock
c89c80f5fb Update 3rd party dependencies
THe github.com/abcum/fibre package now supports ping <-> pong control messages automatically, simplifying the websocket keepalive functionality.
2018-05-16 00:15:52 +01:00