Skip to content

Commit a458aa3

Browse files
authored
Update README.md to include MariaDB
Dbmate already supports MariaDB via the MySQL driver and ships mariadb-client in the Docker image for schema dumps. The README only mentioned MySQL. This adds MariaDB to the features list and a short connection section.
1 parent 2d97ccf commit a458aa3

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ For a comparison between dbmate and other popular database schema migration tool
2020
- [Connecting to the Database](#connecting-to-the-database)
2121
- [PostgreSQL](#postgresql)
2222
- [MySQL](#mysql)
23+
- [MariaDB](#mariadb)
2324
- [SQLite](#sqlite)
2425
- [ClickHouse](#clickhouse)
2526
- [BigQuery](#bigquery)
@@ -42,7 +43,7 @@ For a comparison between dbmate and other popular database schema migration tool
4243

4344
## Features
4445

45-
- Supports MySQL, PostgreSQL, SQLite, and ClickHouse
46+
- Supports MySQL, MariaDB, PostgreSQL, SQLite, and ClickHouse
4647
- Uses plain SQL for writing schema migrations
4748
- Migrations are timestamp-versioned, to avoid version number conflicts with multiple developers
4849
- Migrations are run atomically inside a transaction
@@ -244,6 +245,10 @@ A `socket` parameter can be specified to connect through a unix socket:
244245
DATABASE_URL="mysql://username:password@/database_name?socket=/var/run/mysqld/mysqld.sock"
245246
```
246247

248+
#### MariaDB
249+
250+
MariaDB is supported using the same `mysql://` connection URLs as MySQL. The Docker image includes `mariadb-client` for schema dumps; `mariadb-dump` is used when available.
251+
247252
#### SQLite
248253

249254
SQLite databases are stored on the filesystem, so you do not need to specify a host. By default, files are relative to the current directory. For example, the following will create a database at `./db/database.sqlite3`:

0 commit comments

Comments
 (0)