1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Database names to Rust identifiers.
//!
//! Rust casing is not a matter of taste the way it is in the TypeScript output:
//! `snake_case` fields and `PascalCase` types are enforced by the compiler's own lint
//! set, so generated code that ignores them warns on every build. The database name is
//! therefore always converted, and any difference between the converted name and the
//! column name is carried by a `rename` attribute so the mapping back to SQL stays
//! exact.
pub use ;
pub use singularize;
/// A field name usable in a struct, plus the rename it needs to reach its column.
/// Builds the field for a column.