surrealpatch/lib/tests
Rushmore Mushambi 3e80aa9914
Implement to_value for sql::Value (#1659)
`sql::Value` is an integral part of `surrealdb`. It's the internal type used by our storage layer. Because of this, we do a lot of converting between this type and native Rust types. Currently this conversion is done through `JSON` using the `serde_json` crate because we do not have our own custom data format implementation. This works because `SQL` is a superset of `JSON`.  This, however, means that this conversion is lossy and can cause surprises in some cases. For example expecting record IDs to be deserialized into a `String` instead of its corresponding Rust native type.

This change implements a custom data format around `sql::Value` and introduces a `to_value` function that facilitates that conversion.
2023-03-30 11:41:44 +01:00
..
api Implement to_value for sql::Value (#1659) 2023-03-30 11:41:44 +01:00
api.rs Implement to_value for sql::Value (#1659) 2023-03-30 11:41:44 +01:00
cache.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
compare.rs Don’t treat NONE and NULL as the same 2023-01-07 08:54:12 +00:00
complex.rs Make SQL subquery behaviour understandable and consistent 2023-02-19 17:34:18 +00:00
create.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
datetimes.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
define.rs Add support for custom SQL functions 2023-03-25 19:44:03 +00:00
escape.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
fetch.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
field.rs Add support for FLEXIBLE fields on SCHEMAFULL tables 2023-01-04 09:50:01 +00:00
function.rs Ensure UUIDs convert to strings correctly 2023-02-11 18:21:02 +00:00
future.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
geometry.rs Allow trailing commas in SQL Geometry types 2023-01-03 17:52:22 +00:00
group.rs Add test for multi-aggregate composed grouped maths queries 2023-03-26 22:35:28 +01:00
insert.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
limit.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
merge.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
model.rs Check expressions for SPLIT ON, GROUP BY, and ORDER BY clauses 2023-01-08 17:38:51 +00:00
param.rs Add support for custom SQL functions 2023-03-25 19:44:03 +00:00
parse.rs Add initial integration tests 2022-07-28 10:00:06 +01:00
relate.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
script.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
select.rs Add suport for flattened query results with VALUE field clauses 2023-03-17 07:32:31 -04:00
strict.rs Add support for custom SQL functions 2023-03-25 19:44:03 +00:00
subquery.rs Add operator for unique array add 2023-03-25 23:17:33 +00:00
table.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
yuse.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00