@@ -12,7 +12,7 @@ use crate::{
1212///
1313/// Provides a standardized way to obtain JDBC connection details (driver class, URI, and
1414/// credential env vars) regardless of the concrete database type.
15- pub trait JDBCDatabaseConnection {
15+ pub trait JdbcDatabaseConnection {
1616 /// Returns the JDBC connection details for the given `unique_database_name` using the
1717 /// default [`TemplatingMechanism`].
1818 ///
@@ -22,7 +22,7 @@ pub trait JDBCDatabaseConnection {
2222 fn jdbc_connection_details (
2323 & self ,
2424 unique_database_name : & str ,
25- ) -> Result < JDBCDatabaseConnectionDetails , crate :: databases:: Error > {
25+ ) -> Result < JdbcDatabaseConnectionDetails , crate :: databases:: Error > {
2626 self . jdbc_connection_details_with_templating (
2727 unique_database_name,
2828 & TemplatingMechanism :: default ( ) ,
@@ -36,10 +36,10 @@ pub trait JDBCDatabaseConnection {
3636 & self ,
3737 unique_database_name : & str ,
3838 templating_mechanism : & TemplatingMechanism ,
39- ) -> Result < JDBCDatabaseConnectionDetails , crate :: databases:: Error > ;
39+ ) -> Result < JdbcDatabaseConnectionDetails , crate :: databases:: Error > ;
4040}
4141
42- pub struct JDBCDatabaseConnectionDetails {
42+ pub struct JdbcDatabaseConnectionDetails {
4343 /// The Java class name of the driver, e.g. `org.postgresql.Driver`
4444 pub driver : String ,
4545
@@ -54,7 +54,7 @@ pub struct JDBCDatabaseConnectionDetails {
5454 pub password_env : Option < EnvVar > ,
5555}
5656
57- impl JDBCDatabaseConnectionDetails {
57+ impl JdbcDatabaseConnectionDetails {
5858 pub fn add_to_container ( & self , cb : & mut ContainerBuilder ) {
5959 let env_vars = self . username_env . iter ( ) . chain ( self . password_env . iter ( ) ) ;
6060 cb. add_env_vars ( env_vars. cloned ( ) ) ;
@@ -68,7 +68,7 @@ impl JDBCDatabaseConnectionDetails {
6868/// and a fully-formed JDBC URI as well as providing the needed classes on the Java classpath.
6969#[ derive( Clone , Debug , Deserialize , JsonSchema , PartialEq , Serialize ) ]
7070#[ serde( rename_all = "camelCase" ) ]
71- pub struct GenericJDBCDatabaseConnection {
71+ pub struct GenericJdbcDatabaseConnection {
7272 /// Fully-qualified Java class name of the JDBC driver, e.g. `org.postgresql.Driver` or
7373 /// `com.mysql.jdbc.Driver`. The driver JAR must be provided by you on the classpath.
7474 pub driver : String ,
@@ -83,16 +83,16 @@ pub struct GenericJDBCDatabaseConnection {
8383 pub credentials_secret : String ,
8484}
8585
86- impl JDBCDatabaseConnection for GenericJDBCDatabaseConnection {
86+ impl JdbcDatabaseConnection for GenericJdbcDatabaseConnection {
8787 fn jdbc_connection_details_with_templating (
8888 & self ,
8989 unique_database_name : & str ,
9090 _templating_mechanism : & TemplatingMechanism ,
91- ) -> Result < JDBCDatabaseConnectionDetails , crate :: databases:: Error > {
91+ ) -> Result < JdbcDatabaseConnectionDetails , crate :: databases:: Error > {
9292 let ( username_env, password_env) =
9393 username_and_password_envs ( unique_database_name, & self . credentials_secret ) ;
9494
95- Ok ( JDBCDatabaseConnectionDetails {
95+ Ok ( JdbcDatabaseConnectionDetails {
9696 driver : self . driver . clone ( ) ,
9797 connection_uri : self . uri . clone ( ) ,
9898 username_env : Some ( username_env) ,
0 commit comments