Skip to content

v0.2.0

Choose a tag to compare

@sabrikaragonen sabrikaragonen released this 21 Feb 12:02
· 36 commits to main since this release

bruin-sdk v0.2.0

New Connection Types

  • Databricks
  • ClickHouse
  • Amazon Athena
  • Trino
  • SQLite
  • MotherDuck
  • Synapse (reuses MSSQL driver)

Auth Parity with Bruin CLI

  • GCP: Application Default Credentials (ADC) support, alongside service account JSON
  • Snowflake: Key-pair authentication support, alongside password auth

Improvements

  • Connections are now context managers — use with get_connection("x") as conn: for automatic cleanup
  • Connection.query(sql) method for running queries directly on a connection object
  • __version__ attribute added to the package

Bug Fixes

  • Fixed GCPConnection.close() not actually closing the BigQuery client
  • Fixed commit() being called on non-transactional databases (Athena, Trino)
  • Fixed WITH ... INSERT CTE-based DML being misclassified as data-returning
  • Fixed ClickHouse secure field type mismatch
  • Fixed potential KeyError in Trino connection factory

Stats

  • Tests: 100 → 146
  • Supported connection types: 6 → 13

Install

pip install bruin-sdk==0.2.0