MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / ident

Function ident

tools/xtask-llm-benchmark/src/eval/sql_fmt.rs:33–41  ·  view source on GitHub ↗
(s: &str, casing: Casing)

Source from the content-addressed store, hash-verified

31}
32
33pub fn ident(s: &str, casing: Casing) -> String {
34 match casing {
35 Casing::Snake => s.to_snake_case(),
36 Casing::Pascal => s.to_upper_camel_case(),
37 Casing::LowerCamel => s.to_lower_camel_case(),
38 Casing::Upper => s.to_snake_case().replace('_', "").to_uppercase(),
39 Casing::Lower => s.to_snake_case().replace('_', "").to_lowercase(),
40 }
41}
42
43pub struct SqlBuilder {
44 pub(crate) case: Casing,

Callers 15

colsMethod · 0.85
select_by_idMethod · 0.85
count_by_idMethod · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85
specFunction · 0.85

Calls 2

replaceMethod · 0.80
to_lowercaseMethod · 0.80

Tested by 15

specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68
specFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…