From cc9ad9a1e634e42ea5cb1fae839d0ab86f707a5e Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 19 Oct 2019 00:14:56 +0300 Subject: [PATCH] Adding "Usage" section to the README.md. --- README.md | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 957c432..2ca3df1 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,26 @@ This simple utility will help you to migrate your data from legacy Python version of `magneticod` to the new Go version which uses new persistence layer. -## Install +## Installation TBW -## Run +## Usage -TBW \ No newline at end of file +### Important notes: + +- For `--py-database` syntax is similar but not the same. But if you'll use just +`sqlite3://` schema and path to the database you'll be ok. +- For `--go-database` you can use the same syntax as used in `magneticod` CLI interface. + +### Merging with magneticod-go's PostgreSQL + +```shell +./magnetico-go-migrator --py-database=sqlite3:///path/to/old/database.sqlite3 --go-database=postgres://username:password@hostname/db_name?port=5432&sslmode=disable +``` + +### Merging into magneticod-go's Beanstalk + +```shell +./magnetico-go-migrator --py-database=sqlite3:///path/to/old/database.sqlite3 --go-database=beanstalk://127.0.0.1:11300/magneticod_tube +```