Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaniog committed Jun 6, 2024
1 parent 13ea96e commit 4b39d50
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Lazymigrate

![logo](readme/logo.png)

Terminal ui for managing migrations based on [golang-migrate](https://github.com/golang-migrate/migrate)

![demo](readme/demo.gif)

### Configuration

Now lazymigrate supports PostgreSQL, MySQL and sqlite

lazymigrate can guess connection string if you have specific fields in __.env__ file

[examples](#Examples)

Also it parses env variables from __.lazymigrate__ file

You can set up config directly with variables:

```
LAZYMIGRATE_URL=postgres://root:root@localhost:5432/root?sslmode=disable
LAZYMIGRATE_SOURCE=migrations
```

### Examples

Naming based on docker images envs naming

Postgres

```
POSTGRES_USER=root
POSTGRES_PASSWORD=root
POSTGRES_HOST=localhost
POSTGRES_DB=root
POSTGRES_PORT=5432
```

MySQL

```
MYSQL_USER=root
MYSQL_PASSWORD=root
MYSQL_HOST=localhost
MYSQL_DATABASE=root
MYSQL_PORT=3306
```

Sqlite

```
SQLITE_DB=app.db
```
Binary file added readme/demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added readme/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4b39d50

Please sign in to comment.