Files
turso/core/util.rs
Piotr Jastrzebski 9ddb0befc4 Add has_rowid field to BTreeTable
Signed-off-by: Piotr Jastrzebski <haaawk@gmail.com>
2024-07-07 14:32:28 +02:00

9 lines
196 B
Rust

pub fn normalize_ident(ident: &str) -> String {
(if ident.starts_with('"') && ident.ends_with('"') {
&ident[1..ident.len() - 1]
} else {
ident
})
.to_lowercase()
}