mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2026-02-02 09:25:07 +01:00
Add SQLite support
This commit is contained in:
parent
80eec3fe7b
commit
d5f862c00b
6 changed files with 303 additions and 6 deletions
|
|
@ -6,7 +6,7 @@ Dbmate is a database migration tool, to keep your database schema in sync across
|
|||
|
||||
## Features
|
||||
|
||||
* Supports PostgreSQL and MySQL.
|
||||
* Supports MySQL, PostgreSQL, and SQLite.
|
||||
* Powerful, [purpose-built DSL](https://en.wikipedia.org/wiki/SQL#Data_definition) for writing schema migrations.
|
||||
* Migrations are timestamp-versioned, to avoid version number conflicts with multiple developers.
|
||||
* Supports creating and dropping databases (handy in development/test).
|
||||
|
|
@ -53,7 +53,7 @@ DATABASE_URL="postgres://postgres@127.0.0.1:5432/myapp_development?sslmode=disab
|
|||
protocol://username:password@host:port/database_name?options
|
||||
```
|
||||
|
||||
* `protocol` must be either `mysql` or `postgres`
|
||||
* `protocol` must be one of `mysql`, `postgres`, `postgresql`, `sqlite`, `sqlite3`
|
||||
* `host` can be specified either as a hostname or IP address
|
||||
* `options` are driver-specific (refer to the underlying Go SQL drivers if you wish to use these)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue