sqlode/naming
Types
pub type NamingContext {
NamingContext(
word_separator: regexp.Regexp,
camel_case: regexp.Regexp,
underscore_before_caps: regexp.Regexp,
)
}
Constructors
-
NamingContext( word_separator: regexp.Regexp, camel_case: regexp.Regexp, underscore_before_caps: regexp.Regexp, )
Values
pub fn new() -> NamingContext
pub fn normalize_identifier(identifier: String) -> String
pub fn singularize(word: String) -> String
pub fn table_type_name(
naming_ctx: NamingContext,
table_name: String,
emit_exact_table_names: Bool,
) -> String
pub fn to_pascal_case(
ctx: NamingContext,
input: String,
) -> String
pub fn to_snake_case(ctx: NamingContext, input: String) -> String