Skip to content

Commit d6009a8

Browse files
committed
revert from connectionName to connection_name. Turns out ndc uses snake_case, not camelCase, so best be consistent.
1 parent 168020e commit d6009a8

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

crates/configuration/src/version5/connection_settings.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl DatabaseConnectionSettings {
4545
pub enum DynamicConnectionSettings {
4646
Named {
4747
connection_uris: ConnectionUris,
48-
/// When set to true, fallback to using the connectionUri if the connectionName request argument is missing
48+
/// When set to true, fallback to using the connectionUri if the connection_name request argument is missing
4949
/// If this is not set, the connectionUri is not used at runtime, but will still be used by cli utilities
5050
#[serde(default)]
5151
fallback_to_static: bool,
@@ -55,6 +55,9 @@ pub enum DynamicConnectionSettings {
5555
eager_connections: bool,
5656
},
5757
Dynamic {
58+
/// When set to true, fallback to using the connectionUri if the connection_string request argument is missing
59+
/// If this is not set, the connectionUri is not used at runtime, but will still be used by cli utilities
60+
#[serde(default)]
5861
fallback_to_static: bool,
5962
},
6063
}

crates/connectors/ndc-postgres/src/state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use ndc_postgres_configuration::PoolSettings;
2323
use query_engine_execution::database_info::{self, DatabaseInfo, DatabaseVersion};
2424
use query_engine_execution::metrics;
2525

26-
const CONNECTION_NAME_ARGUMENT: &str = "connectionName";
27-
const CONNECTION_STRING_ARGUMENT: &str = "connectionString";
26+
const CONNECTION_NAME_ARGUMENT: &str = "connection_name";
27+
const CONNECTION_STRING_ARGUMENT: &str = "connection_string";
2828

2929
/// State for our connector.
3030
#[derive(Debug)]

0 commit comments

Comments
 (0)