@@ -9,6 +9,7 @@ use crate::data_dir;
99
1010/// The application config.
1111#[ derive( Serialize , Deserialize ) ]
12+ #[ serde( rename_all = "PascalCase" ) ]
1213pub ( crate ) struct Config {
1314 /// The selected database backend.
1415 ///
@@ -67,7 +68,7 @@ impl Config {
6768}
6869
6970#[ derive( Serialize , Deserialize , Default , Debug ) ]
70- #[ serde( rename_all = "lowercase " ) ]
71+ #[ serde( rename_all = "PascalCase " ) ]
7172pub enum DbBackend {
7273 #[ cfg_attr( feature = "libsql" , default ) ]
7374 #[ cfg( feature = "libsql" ) ]
@@ -89,13 +90,15 @@ impl fmt::Display for DbBackend {
8990}
9091
9192#[ derive( Serialize , Deserialize ) ]
93+ #[ serde( rename_all = "PascalCase" ) ]
9294pub ( crate ) struct LibsqlConfig {
9395 /// The path to the SQLite database file.
9496 pub ( crate ) path : Utf8PathBuf ,
9597}
9698
9799// TODO: SSL support
98100#[ derive( Serialize , Deserialize ) ]
101+ #[ serde( rename_all = "PascalCase" ) ]
99102pub ( crate ) struct PgConfig {
100103 pub ( crate ) host : String ,
101104 pub ( crate ) dbname : String ,
0 commit comments