Tobie Morgan Hitchcock
405a1e7b8d
Ensure http SQL functions run correctly in WebAssembly
2022-08-10 17:49:32 +01:00
Tobie Morgan Hitchcock
c8cba2c64d
Remove VOID type
2022-07-28 21:54:59 +01:00
Tobie Morgan Hitchcock
f633769b57
Fix linter warnings when using as external library
2022-07-27 14:13:30 +01:00
Tobie Morgan Hitchcock
d6269bbe3d
Ensure http module only builds when feature is enabled
2022-07-27 09:15:35 +01:00
Tobie Morgan Hitchcock
db3115fc7c
Add surrealdb module as a global object in JavaScript runtime
2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
3dc29e1228
Add initial ES6 JavaScript modules implementation with ‘os’ module
2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
d647e40d49
Define main embedded function script as a JavaScript module
2022-07-24 01:15:26 +01:00
Tobie Morgan Hitchcock
e9476b9f85
Add ability to handle quickjs errors ourselves
2022-07-24 01:15:25 +01:00
Tobie Morgan Hitchcock
c9ad4e60ce
Implement http SQL functions
2022-07-17 19:58:27 +01:00
Tobie Morgan Hitchcock
90dfa9f49f
Ensure LIMIT BY clause does not cause query to fail
2022-07-09 19:44:15 +01:00
Tobie Morgan Hitchcock
63d099e305
Fix code comment typo
2022-07-07 10:55:59 +01:00
Tobie Morgan Hitchcock
338bf3e142
Switch from Boa to QuickJS for JavaScript runtime
2022-07-06 14:40:20 +01:00
Tobie Morgan Hitchcock
8ca211f96d
Simplify SQL string::slug function implementation
2022-07-04 10:41:18 +01:00
Tobie Morgan Hitchcock
527361efd4
Ensure script function is asynchronous
2022-07-04 01:25:35 +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
0c86061086
Accept Thing as argument to type::thing SQL function
2022-07-03 19:22:12 +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
ccdce709f2
Add UUID data type to SQL for efficient storage of UUIDs
2022-06-28 11:54:04 +01:00
Tobie Morgan Hitchcock
a78df680d2
Implement embedded javascript script functions
2022-05-21 09:39:40 +01:00
Tobie Morgan Hitchcock
1017e2fffb
Don’t clone variables when processing sub-contexts
...
Closes SUR-53
When creating a new context for subqueries or statement clauses, we used to have to clone any variables/values, and freeze the context, so that it could be used across threads and async boundaries.
Now with the new executor pattern for parallel queries, we can pass references instead, improving performance by removing unnecessary cloning of values.
2022-05-14 13:38:17 +01:00
Tobie Morgan Hitchcock
98fc9055af
Implement SQL Duration as a newtype tuple struct
2022-05-05 10:24:52 +01:00
Tobie Morgan Hitchcock
10f2911d44
Implement SQL Datetime as a newtype tuple struct
2022-05-05 10:24:52 +01:00
Tobie Morgan Hitchcock
1ed5df005e
Implement SQL Strand as a newtype tuple struct
2022-05-05 10:24:52 +01:00
Tobie Morgan Hitchcock
3233660037
Implement SQL Table as a newtype tuple struct
2022-05-05 10:24:46 +01:00
Tobie Morgan Hitchcock
143da56728
Implement SQL Array as a newtype tuple struct
2022-05-04 23:37:57 +01:00
Tobie Morgan Hitchcock
01ab9375a3
Remove duplicate SQL string::substr() function
2022-05-02 23:22:22 +01:00
Tobie Morgan Hitchcock
d5fab4fbf0
Remove string::contains() SQL function
2022-04-30 21:47:19 +01:00
Tobie Morgan Hitchcock
6f93c38cd2
Add SQL OUTSIDE operator for geometry types
2022-04-29 21:41:57 +01:00
Tobie Morgan Hitchcock
4275f93c57
Ensure random times are generated correctly
2022-04-24 12:03:17 +01:00
Tobie Morgan Hitchcock
24752a75d9
Enable support for numbers and strings in record ids
2022-03-18 07:24:36 +00:00
Tobie Morgan Hitchcock
77844ab06b
Convert error names according to clippy recommendations
2022-03-06 22:21:37 +00:00
Tobie Morgan Hitchcock
d1c2daaee4
Apply cargo clippy lint recommendations
2022-03-05 14:42:58 +00:00
Tobie Morgan Hitchcock
cf707bf5e3
Remove crypto::bcrypt functions
2022-02-22 16:34:09 +00:00
Tobie Morgan Hitchcock
d5c53b7791
Extract core surrealdb code into separate library
2022-02-22 14:16:50 +00:00