Skip to content

Commit f047bb1

Browse files
feat: sql type checking and logical plan (#1708)
1 parent 3fcb505 commit f047bb1

File tree

12 files changed

+912
-3
lines changed

12 files changed

+912
-3
lines changed

Cargo.lock

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ members = [
1313
"crates/durability",
1414
"crates/fs-utils",
1515
"crates/lib",
16+
"crates/planner",
1617
"crates/metrics",
1718
"crates/primitives",
1819
"crates/sats",

crates/lib/src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,12 @@ pub fn from_hex_pad<R: hex::FromHex<Error = hex::FromHexError>, T: AsRef<[u8]>>(
379379
hex: T,
380380
) -> Result<R, hex::FromHexError> {
381381
let hex = hex.as_ref();
382-
let hex = if hex.starts_with(b"0x") { &hex[2..] } else { hex };
382+
let hex = if hex.starts_with(b"0x") {
383+
&hex[2..]
384+
} else if hex.starts_with(b"X'") {
385+
&hex[2..hex.len()]
386+
} else {
387+
hex
388+
};
383389
hex::FromHex::from_hex(hex)
384390
}

crates/planner/Cargo.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[package]
2+
name = "spacetimedb-query-planner"
3+
version.workspace = true
4+
edition.workspace = true
5+
license-file = "LICENSE"
6+
7+
[dependencies]
8+
derive_more.workspace = true
9+
thiserror.workspace = true
10+
spacetimedb-lib.workspace = true
11+
spacetimedb-sats.workspace = true
12+
spacetimedb-schema.workspace = true
13+
spacetimedb-sql-parser.workspace = true
14+
15+
[dev-dependencies]
16+
spacetimedb-lib.workspace = true
17+
spacetimedb-primitives.workspace = true

crates/planner/LICENSE

Whitespace-only changes.

crates/planner/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub mod logical;

0 commit comments

Comments
 (0)