Commit graph

1821 commits

Author SHA1 Message Date
Tobie Morgan Hitchcock
338bf3e142 Switch from Boa to QuickJS for JavaScript runtime 2022-07-06 14:40:20 +01:00
Tobie Morgan Hitchcock
6ef120f7ce Ensure record ids are escaped properly in JSON format 2022-07-06 10:09:21 +01:00
Tobie Morgan Hitchcock
073c15b826 Escape record id parts like ⟨this⟩ rather than this 2022-07-06 10:08:11 +01:00
Tobie Morgan Hitchcock
2d076c79a7 Format SQL Durations as a string format 2022-07-05 11:36:10 +01:00
Tobie Morgan Hitchcock
6c5ddbf70f Ensure undefined fields are removed in schemafull mode 2022-07-04 17:54:43 +01:00
Tobie Morgan Hitchcock
59d7e733eb Ignore errors when automatically adding NS, DB, or TB definitions 2022-07-04 17:54:03 +01:00
Tobie Morgan Hitchcock
b575f3a9db Remove unused files 2022-07-04 17:54:03 +01:00
Tobie Morgan Hitchcock
8ebcff6d18 Ensure table is added if it does not exist
If the user is is creating a record in a table / collection that does not exist, and the user is authenticated with KV, NS, or DB level permissions, then we need to add the table with the default definition parameters.
2022-07-04 13:58:59 +01:00
Tobie Morgan Hitchcock
8ca211f96d Simplify SQL string::slug function implementation 2022-07-04 10:41:18 +01:00
Tobie Morgan Hitchcock
508538e0cc Add initial WebSocket JSON RPC implementation 2022-07-04 02:32:26 +01:00
Tobie Morgan Hitchcock
8dc7341cb1 Add functions on SQL Value for matching on type 2022-07-04 02:02:46 +01:00
Tobie Morgan Hitchcock
410295c800 Improve map! macro to allow extending the map with other map 2022-07-04 02:02:03 +01:00
Tobie Morgan Hitchcock
983a7b3f5c Add mrg! macro for merging Maps together 2022-07-04 02:02:03 +01:00
Tobie Morgan Hitchcock
7af9daf159 Update 3rd party dependencies 2022-07-04 01:59:02 +01:00
Tobie Morgan Hitchcock
7bb4aa74f3 Move authentication code to separate module 2022-07-04 01:46:09 +01:00
Tobie Morgan Hitchcock
187d9c08dc Allow ‘application/octet-stream’ content-type when importing 2022-07-04 01:25:35 +01:00
Tobie Morgan Hitchcock
527361efd4 Ensure script function is asynchronous 2022-07-04 01:25:35 +01:00
Tobie Morgan Hitchcock
039d2fbd54 Use alphabetical ordering for Cargo.toml dependencies 2022-07-03 20:33:13 +01:00
Tobie Morgan Hitchcock
663848172e Simplify code for conversion between Boa and SurrealDB 2022-07-03 20:30:18 +01:00
Tobie Morgan Hitchcock
d0c37f4d66 Enable parsing of thing records inside strings
This allows for thing records to be parsed within JSON strings.
2022-07-03 20:28:30 +01:00
Tobie Morgan Hitchcock
0c86061086 Accept Thing as argument to type::thing SQL function 2022-07-03 19:22:12 +01:00
Tobie Morgan Hitchcock
bc16645d38 Ensure library build only includes specified features 2022-07-03 10:43:23 +01:00
Tobie Morgan Hitchcock
d5a6f80460 Ensure all operator keywords are one word only 2022-06-28 14:39:07 +01:00
Tobie Morgan Hitchcock
569182ee7b Implement LIVE and KILL statements 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
219f4a54ed Enable ability to pass arguments to JavaScript functions 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
3f4a144ef0 Ensure Date uses correct prototype in javascript functions 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
519d10fbd3 Update 3rd party dependencies 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
44f20d3740 Remove unnecessary public function definitions in sql module 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
34ba79428c Ensure correct permissions are used on each query 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
ccdce709f2 Add UUID data type to SQL for efficient storage of UUIDs 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
d04db02ee0 Add introductory message to command-line app 2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
4ba6581714 Update status page URL in README 2022-06-21 11:59:43 +01:00
Tobie Morgan Hitchcock
86c2285564 Fix output of SQL DEFINE SCOPE statement 2022-06-20 15:51:29 +01:00
Tobie Morgan Hitchcock
eff4d2c5e9 Implement scope signup and signin functionality 2022-06-20 12:29:06 +01:00
Tobie Morgan Hitchcock
b93b87f2a1 Remove unused CONNECT clause on DEFINE SCOPE statements 2022-06-20 12:28:05 +01:00
Tobie Morgan Hitchcock
951ca55b54 Add SQL Thing parsing functionality to external API 2022-06-20 12:26:43 +01:00
Tobie Morgan Hitchcock
0cb42d7283 Add functionality to compute sql value within database context 2022-06-20 12:26:27 +01:00
Tobie Morgan Hitchcock
b4e2082196 Use BTreeMap for database execution variables 2022-06-20 02:13:28 +01:00
Tobie Morgan Hitchcock
20c4e03446 Ensure graph edges are purged correctly when deleted 2022-06-17 23:55:09 +01:00
Tobie Morgan Hitchcock
27f011d13c Update 3rd party dependencies 2022-06-15 12:49:41 +01:00
Tobie Morgan Hitchcock
bb747edd8b Remove deprecated rustfmt options 2022-06-15 11:08:50 +01:00
Tobie Morgan Hitchcock
1f5acefa7c Only store empty value in datastore for record edges 2022-06-15 08:50:59 +01:00
Tobie Morgan Hitchcock
a687a7f4bf Ensure remote records in FETCH clauses are fetched correctly 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
94a9110e06 Update 3rd party dependencies 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
072b002593 Simplify datastore key serialization 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
18cee9091a Only allow for single values in RELATE statements 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
37a3efc81b Allow for spacing around subquery statements 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
c0a78d8470 Implement graph traversal functionality 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
8ce5d01727 Improve graph traversal expression parsing code 2022-06-08 19:50:29 +01:00
Tobie Morgan Hitchcock
1333ecf0df Use separate module for Dir type 2022-06-08 19:16:06 +01:00