surrealpatch/lib/src/dbs
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
..
auth.rs Upgrade Rust code deprecation warnings 2023-03-18 09:18:40 +00:00
channel.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
executor.rs Add functionality for open telemetry tracing (#1727) 2023-03-29 19:16:18 +01:00
iterate.rs Implement inclusive and unbounded record ranges 2022-10-30 01:32:27 +00:00
iterator.rs Ensure GROUP BY clauses with multi same-aggregate functions work correctly 2023-03-26 10:04:18 +01:00
mod.rs Drop the parallel feature (#1574) 2023-01-07 09:42:45 +00:00
options.rs Improve code comments for documentation (#1476) 2022-11-23 09:42:59 +00:00
response.rs Implement to_value for sql::Value (#1659) 2023-03-30 11:41:44 +01:00
session.rs Miscellaneous performance optimizations and code cleanup (#240) 2022-09-23 00:54:53 +01:00
statement.rs Add initial implementation for processing LIVE queries 2023-02-22 18:04:30 +00:00
test.rs Don’t clone variables when processing sub-contexts 2022-05-14 13:38:17 +01:00
transaction.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00
variables.rs Integrate client library into surrealdb crate (#1514) 2022-12-30 08:23:19 +00:00