Skip to content

Commit

Permalink
snake_case + make errors generic
Browse files Browse the repository at this point in the history
  • Loading branch information
albandum committed Dec 12, 2024
1 parent ed4bcc5 commit e45fa09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions core/src/databases/remote_databases/get_remote_database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ pub async fn get_remote_database(
let db = SnowflakeRemoteDatabase::new(content)?;
Ok(Box::new(db) as Box<dyn RemoteDatabase + Sync + Send>)
}
CredentialProvider::Modjo => {
anyhow::bail!("Modjo is not a remote database provider")
_ => {
anyhow::bail!("{:?} is not a supported remote database provider", provider)
}
}
}
2 changes: 1 addition & 1 deletion core/src/oauth/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ impl Credential {
vec!["account", "warehouse", "username", "password", "role"]
}
CredentialProvider::Modjo => {
vec!["apiKey"]
vec!["api_key"]
}
};

Expand Down
2 changes: 1 addition & 1 deletion types/src/oauth/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const SnowflakeCredentialsSchema = t.type({
export type SnowflakeCredentials = t.TypeOf<typeof SnowflakeCredentialsSchema>;

export const ApiKeyCredentialsSchema = t.type({
apiKey: t.string,
api_key: t.string,
});
export type ModjoCredentials = t.TypeOf<typeof ApiKeyCredentialsSchema>;

Expand Down

0 comments on commit e45fa09

Please sign in to comment.