# README
[dbdiff] Tool to detect data difference in the database
How to setup
Install
go get github.com/jparound30/dbdiff/cmd/dbdiff
or Update
go get -u github.com/jparound30/dbdiff/cmd/dbdiff
Configuration
Put configuration.yaml
file in the current directory.
Or specify a configuration file path by -conf
option.
A sample of configuration.yaml
is as follows.
db:
type: postgresql (or mysql)
host: localhost
port: 5432
user: username
password: password
name: sampledatabase
schema: hoge.
Run
- Execute
dbdiff
on the command line.
dbdiff
Usage:
-conf string
Specify path of configuration file. (default "configuration.yaml")
-o string
Filename of result file(.xlsx). (default "dbdiff_yyyymmdd_hhmmss.xlsx")
-
Please operate accoding to the messages.
-
Output result to console, and generate Excel file(.xlsx) in the current directory.
LIMITATIONS
- Tested only on macOS High Sierra / Go 1.11
# Packages
No description provided by the author
# Functions
No description provided by the author
Get all table name from db.
No description provided by the author
No description provided by the author
Get Primary key information.
No description provided by the author
# Constants
No description provided by the author
: Add,.
: Delete,.
: 比較前,.
: Mod,.
: NotModified.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author