Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["codegen", "examples", "performance_measurement", "performance_measur

[package]
name = "worktable"
version = "0.8.17"
version = "0.8.18"
edition = "2024"
authors = ["Handy-caT"]
license = "MIT"
Expand All @@ -16,7 +16,7 @@ perf_measurements = ["dep:performance_measurement", "dep:performance_measurement
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
worktable_codegen = { path = "codegen", version = "=0.8.14" }
worktable_codegen = { path = "codegen", version = "=0.8.18" }

eyre = "0.6.12"
derive_more = { version = "2.0.1", features = ["from", "error", "display", "into"] }
Expand Down
2 changes: 1 addition & 1 deletion codegen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "worktable_codegen"
version = "0.8.14"
version = "0.8.18"
edition = "2024"
license = "MIT"
description = "WorkTable codegeneration crate"
Expand Down
8 changes: 8 additions & 0 deletions codegen/src/worktable/generator/queries/type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ pub fn map_to_uppercase(str: &str) -> String {
.expect("OrderedFloat def contains inner type")
.replace(">", "");
format!("Ordered{}", inner_type.to_uppercase().trim())
} else if str.contains("Option") {
let mut split = str.split("<");
let _ = split.next();
let inner_type = split
.next()
.expect("Option def contains inner type")
.replace(">", "");
format!("Option{}", inner_type.to_uppercase().trim())
} else {
str.to_uppercase()
}
Expand Down
1 change: 1 addition & 0 deletions tests/persistence/sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ use worktable::prelude::*;
use worktable::worktable;

mod many_strings;
mod option;
mod string_primary_index;
mod string_re_read;
mod string_secondary_index;
Expand Down
Loading
Loading