Skip to main content

snake_to_camel_case

Function snake_to_camel_case 

Source
pub fn snake_to_camel_case(name: &str) -> String
Expand description

Converts a snake_case string to CamelCase

ยงExample

use polyglot_sql::helper::snake_to_camel_case;

assert_eq!(snake_to_camel_case("snake_case"), "SnakeCase");
assert_eq!(snake_to_camel_case("my_http_server"), "MyHttpServer");