Flare is a simple and lightweight migration tool for Go projects. You can manage databases and migrations while keeping it up to date with Go structs.
It also helps you to keep you schemas in sync across multiple developers and servers.
macOS, Linux and Docker
PostgreSQL and MySQL
You can start using Flare CLI by creating a flare.toml file in the root path of your project with the database connection info
Driver="postgres"
User="flare"
Name="flare"
Host="localhost"
Port="5432"
Password="12345678"
The database
or shortcut db
command allows you to manage your database directly. With it you can:
# creates the specified database
$ flare database create
# drops the existing database
$ flare database drop
You can find our getting started guides and general CLI usage here.
Want to help develop Flare CLI? Check out our contributing documentation.
If you find an issue, please report it on the issue tracker.
This project is under Apache License 2.0 license.