Skip to content

feat: pass extra_options to database drivers#124

Merged
Maxteabag merged 2 commits intomainfrom
feature/extra-options-passthrough
Jan 31, 2026
Merged

feat: pass extra_options to database drivers#124
Maxteabag merged 2 commits intomainfrom
feature/extra-options-passthrough

Conversation

@Maxteabag
Copy link
Owner

Summary

  • Pass extra_options through to database drivers, allowing custom driver parameters
  • Add Snowflake authentication dropdown (password, SSO, JWT, OAuth)
  • Add conditional fields for private key authentication

Fixes #108

Usage

Users can now pass custom driver options via connections.json:

{
  "name": "my-snowflake",
  "db_type": "snowflake",
  "extra_options": {
    "authenticator": "snowflake_jwt",
    "private_key_file": "/path/to/key.p8"
  }
}

Or via CLI URL:

sqlit "snowflake://user@account/db?authenticator=snowflake_jwt&private_key_file=/path/to/key.p8"

Test plan

  • Unit tests for extra_options pass-through
  • Unit tests for Snowflake auth schema
  • All existing unit tests pass (690 tests)

- Add extra_options pass-through to all adapters, allowing users to pass
  custom driver parameters via connections.json or CLI URLs
- Add Snowflake authentication dropdown with support for:
  - Username & Password (default)
  - SSO (Browser)
  - Key Pair (JWT)
  - OAuth Token
- Add conditional fields for private key file and password when JWT is selected
Resolve conflicts in mssql and mysql adapters by combining:
- extra_options passthrough from this branch
- autocommit enablement (mssql) and charset auto-sync (mysql) from main
@Maxteabag Maxteabag merged commit 852a287 into main Jan 31, 2026
9 of 11 checks passed
@Maxteabag Maxteabag deleted the feature/extra-options-passthrough branch January 31, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing extra properties to driver

1 participant