Chapters
Overview
- mountainash-data in the mountainash ecosystem: Where the package sits between mountainash-settings, mountainash expressions and your databases, and what it adds beyond Ibis.
Using the package
- Installing and connecting: Install the right extra and open a connection from a dialect name or a URL.
- Connection profiles and authentication: Configure connections with typed profiles and supply credentials separately at connect time.
- Configuring connections with mountainash-settings: Load connection settings from config files, the environment and secret stores, and carry them to where work runs.
- Inspecting databases: List and inspect catalogs, namespaces, tables, columns and indexes.
- Reading tables and running queries: Read tables as Ibis expressions, run queries and SQL, and compile to SQL.
- Running mountainash expressions against databases: Run the same mountainash expressions on database tables and local data, and join them in one plan.
- Creating and changing tables: Create, insert into, truncate, upsert, add columns to and rename tables.
- Indexes: Create, list, check and drop indexes.
- Transactions: Group operations in transactions and work safely with caller-owned transactions.
- Adopting existing connections: Wrap a connection you already have while keeping control of its lifecycle.
- An end-to-end pipeline: Configure, connect, combine database and local data with mountainash expressions, and write results back in a transaction.
- Supported databases and limits: What each database supports and how unsupported operations fail.
Architecture and internals
- How one backend serves 20 dialects: How per-database behaviour is declared as data and dispatched.
- From settings to driver arguments: How profiles and credentials become driver arguments and connection URLs.
- Transaction and adoption internals: How transaction scopes and connection adoption are implemented.
Extending
- Extending mountainash-data: Add a database dialect, a settings backend or a new kind of backend.
- Contributing and testing: Repository layout, test tiers and the live-database harness.