← All Adapters
Official dbt MariaDB adapter docs ↗
MARIADB
type: mariadbCommunity-developed fork of MySQL. Drop-in replacement with enhanced performance and additional storage engines.
DVT SUPPORT
✓ FEDERATION SOURCE
read in federation models
✓ FEDERATION TARGET
materialize federation results
✓ DEFAULT TARGET
run full dbt projects against it
✓ SEED TARGET
dvt seed --target loads here
DVT supports MariaDBbecause both dbt and Sling do: dbt drives standard materializations when it's your default target, Sling moves data in and out during federation. Connectivity for both layers is checked with dvt debug --all.
PREREQUISITES
Driver: mysqlclient — installed automatically by:
dvt sync
CONFIGURATION FIELDS
| FIELD | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| type | string | yes | — | Must be `mariadb` |
| host | string | yes | localhost | Database server hostname |
| port | integer | no | 3306 | Database server port |
| user | string | yes | — | Database username |
| password | string | yes | — | Database password |
| database | string | yes | — | Database name (MariaDB schema = database) |
| schema | string | no | — | Defaults to the database name |
| threads | integer | no | 4 | Number of parallel threads |
PROFILES.YML EXAMPLE
my_project:
target: maria_dev
outputs:
maria_dev:
type: mariadb
host: localhost
port: 3306
user: analyst
password: "{{ env_var('MARIA_PASSWORD') }}"
database: warehouse # MariaDB schema = database
schema: warehouseSOURCES.YML EXAMPLE
sources:
- name: legacy_db
meta:
connection: maria_dev
schema: erp
tables:
- name: invoices
- name: vendorsDBT ADAPTER FEATURES
When MariaDB is your default target, every standard dbt model runs through the official dbt adapter — all of its documented capabilities apply unchanged:
MATERIALIZATIONS
tableviewincrementalephemeralf_tablef_incrementalINCREMENTAL STRATEGIES
appenddelete+insertNOTABLE CONFIGS
- ▸MySQL-wire compatible (uses the mysql adapter)
FEDERATION INCREMENTAL STRATEGIES
Strategies available when this engine is the target of a f_incremental model:
✓ Append✓ Delete+Insert✓ Merge
KNOWN LIMITATIONS
- ⚠Uses MySQL protocol — same driver as MySQL