Commit graph

55 commits

Author SHA1 Message Date
Emmanuel Keller
75fc006c21
Ensure index resources are properly deleted on index deletion () 2023-07-10 08:24:47 +00:00
Emmanuel Keller
e9eeb9aca7
QueryPlanner / indexing / Context / Cursor doc () 2023-07-06 14:57:42 +00:00
Tobie Morgan Hitchcock
4b690c763b
Improve datastore configuration options () 2023-07-05 21:26:13 +00:00
Tobie Morgan Hitchcock
55918b7c0e
Switch to bincode serialization ()
Co-authored-by: Rushmore Mushambi <rushmore@surrealdb.com>
2023-07-01 20:09:15 +01:00
Yusuke Kuoka
781b1f944e
feat: Change Feed option for DEFINE [TABLE|DATABASE] () 2023-06-28 07:19:40 +00:00
Emmanuel Keller
8e64750a60
Feature - Search highlighting () 2023-06-21 19:31:15 +01:00
Emmanuel Keller
668d3fd8fb
Introduce query planner and indexing () 2023-06-19 19:41:13 +01:00
Finn Bear
c45fd12509
Feature - Use rust_decimal (128b) instead of bigdecimal ("arbitrary" precision) () 2023-06-09 15:23:30 +00:00
Finn Bear
ac9f77a62a
Bugfix - Properly escape '\' in strings () 2023-05-31 07:36:29 +00:00
Emmanuel Keller
8e48604e20
Add initial full-text search indexer implementation () 2023-05-29 12:46:41 +01:00
Emmanuel Keller
848be4dafb
Implements analyzer definition () 2023-05-09 22:08:09 -04:00
Tobie Morgan Hitchcock
19b0920e15
Ensure Idiom paths result in writeable transactions where necessary () 2023-05-09 18:17:29 -04:00
Finn Bear
c295cb0509
Optimization - Zero copy key deserialization. () 2023-04-29 17:44:09 +01:00
Tobie Morgan Hitchcock
8083eaf751 Allow :: module separators in custom function names
Closes 
2023-04-06 09:35:01 +01:00
Tobie Morgan Hitchcock
7bb89d5041 Ensure DEFINE and REMOVE statements are serialized with full field information 2023-04-02 00:28:01 +01:00
Tobie Morgan Hitchcock
64873eb881 Ensure DEFINE FIELD statements deserialize correctly 2023-04-01 19:07:00 +01:00
Tobie Morgan Hitchcock
2895026593 Use custom serialization compaction for DEFINE and REMOVE statements 2023-04-01 18:49:10 +01:00
Tobie Morgan Hitchcock
2769033451 Update 3rd party dependencies 2023-03-25 20:49:00 +00:00
Tobie Morgan Hitchcock
cdac4f84cd Add support for custom SQL functions
Closes 
2023-03-25 19:44:03 +00:00
Emmanuel Keller
f3e605afde
Implements transaction isolation testing () 2023-03-10 15:24:27 +00:00
Tobie Morgan Hitchcock
84b026679f Update clippy linting tests 2023-02-03 11:47:07 +00:00
Finn Bear
a1b9201bbd
Add pretty printing for SQL Query, Statement, Value, Array, and Object types () 2023-01-19 09:53:33 +00:00
Tobie Morgan Hitchcock
7fabf54593 Add ability to define global parameters on database
Closes 
2023-01-09 15:49:47 +00:00
Tobie Morgan Hitchcock
f5b21eb363 Add support for FLEXIBLE fields on SCHEMAFULL tables
Closes 
2023-01-04 09:50:01 +00:00
Tobie Morgan Hitchcock
df954a9554 Ensure transaction cache is cleared when necessary
Closes 
2022-12-18 10:30:07 +00:00
Allen Lantz
d1055e6088
Implement hashed implementation of Uniq<Array> () 2022-10-27 05:23:24 -07:00
Tobie Morgan Hitchcock
214971cb86 Ensure UUIDs and Datetimes can be converted to strings correctly
Closes 
2022-10-16 17:36:07 +01:00
Finn Bear
45e1a9adce
Refactor, optimization, cleanup () 2022-10-04 22:51:18 +01:00
Tobie Morgan Hitchcock
75d1e86990 Add DEFINE TOKEN … ON SCOPE … functionality
Closes 
2022-09-25 22:58:38 +01:00
Tobie Morgan Hitchcock
0381b6dad2 Simplify SCHEMAFUL and SCHEMAFULL parsing definitions
Closes 
2022-09-20 08:11:14 +01:00
Tobie Morgan Hitchcock
f90eb542bd Add support SCHEMAFUL keyword spelling
Closes 
2022-09-11 09:08:36 +01:00
Tobie Morgan Hitchcock
56d3b0e861 Fix bug where records couldn’t be updated after defining an index
Closes 
2022-08-25 14:50:11 +01:00
Tobie Morgan Hitchcock
89baebbd24 Fix DEFINE INDEX UNIQUE statement parsing 2022-07-28 20:27:39 +01:00
Tobie Morgan Hitchcock
d619633340 Enable new database strict mode configuration 2022-07-27 18:20:04 +01:00
Tobie Morgan Hitchcock
a2c5ea237b Fix bug when defining NS / DB without first selecting NS / DB
Closes 
2022-07-26 10:06:33 +01:00
Tobie Morgan Hitchcock
29e500017d Ensure foreign table views are updated when redefined 2022-07-08 21:56:33 +01:00
Tobie Morgan Hitchcock
86c2285564 Fix output of SQL DEFINE SCOPE statement 2022-06-20 15:51:29 +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
072b002593 Simplify datastore key serialization 2022-06-15 08:49:57 +01:00
Tobie Morgan Hitchcock
073285574a No need to surround statements with an Arc 2022-05-18 12:18:00 +01:00
Tobie Morgan Hitchcock
15fc4a0126 Ensure statements are properly escaped when output as a string 2022-05-15 09:42:32 +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
640c0b0b12 Allow for alternative phrasing in DEFINE FIELD clause 2022-05-09 23:24:42 +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
a4e07f693b Make certain functions private to crate 2022-05-01 23:25:53 +01:00
Tobie Morgan Hitchcock
285b83244c Remove PRIORITY clause from DEFINE FIELD statement 2022-04-07 08:38:47 +01:00
Tobie Morgan Hitchcock
2b7a23c569 Make DEFINE TABLE and DEFINE FIELD permissions FULL by default 2022-04-04 20:05:50 +01:00
Tobie Morgan Hitchcock
2bf5075dc4 Fix bug with DEFINE and PERMISSIONS statement formatting 2022-04-01 12:23:49 +01:00
Tobie Morgan Hitchcock
9778600304 Ensure all index data is removed when defining an index 2022-03-20 14:27:03 +00:00
Tobie Morgan Hitchcock
cb740dfcb0 Ensure transaction does not deadlock in DEFINE statements 2022-03-20 14:26:31 +00:00