-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: init schema option at connection level
- Loading branch information
Showing
13 changed files
with
74 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ fn standard() { | |
database: Some("users".to_string()), | ||
sslmode: None, | ||
connection_url: None, | ||
schema: None, | ||
}; | ||
let expected = ConnectionConfig::Postgres(postgres_auth); | ||
assert_eq!(expected, deserializer_result); | ||
|
@@ -51,6 +52,7 @@ fn standard_with_ssl_mode() { | |
database: Some("users".to_string()), | ||
sslmode: Some("require".to_string()), | ||
connection_url: None, | ||
schema: None, | ||
}; | ||
let expected = ConnectionConfig::Postgres(postgres_auth); | ||
assert_eq!(expected, deserializer_result); | ||
|
@@ -79,6 +81,7 @@ fn standard_url() { | |
database: None, | ||
sslmode: None, | ||
connection_url: Some("postgres://postgres:[email protected]:5432/neondb?sslmode=prefer".to_string()), | ||
schema: None, | ||
}; | ||
let expected = ConnectionConfig::Postgres(postgres_auth); | ||
assert_eq!(expected, deserializer_result); | ||
|
@@ -108,6 +111,7 @@ fn standard_url_missing_user() { | |
database: None, | ||
sslmode: None, | ||
connection_url: Some("postgresql://localhost:5432/stocks?sslmode=prefer".to_string()), | ||
schema: None, | ||
}; | ||
let expected = ConnectionConfig::Postgres(postgres_auth); | ||
assert_eq!(expected, deserializer_result); | ||
|
@@ -138,6 +142,7 @@ fn standard_url_missing_password() { | |
database: None, | ||
sslmode: None, | ||
connection_url: Some("postgresql://localhost:5432/stocks?sslmode=prefer".to_string()), | ||
schema: None, | ||
}; | ||
let expected = ConnectionConfig::Postgres(postgres_auth); | ||
assert_eq!(expected, deserializer_result); | ||
|
@@ -168,6 +173,7 @@ fn standard_url_2() { | |
database: None, | ||
sslmode: None, | ||
connection_url: Some("postgresql://localhost:5432/stocks?sslmode=prefer".to_string()), | ||
schema: None, | ||
}; | ||
let expected = ConnectionConfig::Postgres(postgres_auth); | ||
assert_eq!(expected, deserializer_result); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters