Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
percona-csalguero committed Dec 29, 2017
1 parent 9dd1ae8 commit 6d98b88
Show file tree
Hide file tree
Showing 8 changed files with 1,004 additions and 328 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,24 @@ clean:
linux-amd64:
@echo "Building linux/amd64 binaries in ${BIN_DIR}"
@mkdir -p ${BIN_DIR}
@$(foreach pkg,$(pkgs),GOOS=linux GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg)_linux_amd64 ./;)
@rm -f ${BIN_DIR}/mysql_random_data_loader_linux_amd64.tar.gz
@GOOS=linux GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/mysql_random_data_loader cmd/main.go
@tar cvzf ${BIN_DIR}/mysql_random_data_loader_linux_amd64.tar.gz -C ${BIN_DIR} mysql_random_data_loader


linux-386:
@echo "Building linux/386 binaries in ${BIN_DIR}"
@mkdir -p ${BIN_DIR}
@$(foreach pkg,$(pkgs),GOOS=linux GOARCH=386 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg)_linux_386 ./;)
@rm -f ${BIN_DIR}/mysql_random_data_loader_linux_386.tar.gz
@GOOS=linux GOARCH=386 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/mysql_random_data_loader cmd/main.go
@tar cvzf ${BIN_DIR}/$(pkg)_linux_386.tar.gz ${BIN_DIR}/$(pkg)

darwin-amd64:
@echo "Building darwin/amd64 binaries in ${BIN_DIR}"
@mkdir -p ${BIN_DIR}
@$(foreach pkg,$(pkgs),GOOS=darwin GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/$(pkg)_darwin_amd64 ./;)
@rm -f ${BIN_DIR}/mysql_random_data_loader_darwin_amd64.tar.gz
@GOOS=darwin GOARCH=amd64 go build -ldflags ${LDFLAGS} -o ${BIN_DIR}/mysql_random_data_loader cmd/main.go
@tar cvzf ${BIN_DIR}/$(pkg)_darwin_amd64.tar.gz ${BIN_DIR}/$(pkg)

style:
@echo ">> checking code style"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ The program can detect if a field accepts NULLs and if it does, it will generate
|--host|Host name/ip|
|--max-fk-samples|Maximum number of samples for fields having foreign keys constarints. Default: 100|
|--max-retries|Maximum number of rows to retry in case of errors. See duplicated keys. Deafult: 100|
|--no-progressbar|Skip showing the progress bar. Default: false|
|--password|Password|
|--port|Port number|
|--show-progressbar|Show the progress bar. Default: true|
|--qps|Queries per second. Default 0 (unlimited)|
|--user|Username|

## Foreign keys support
Expand Down
Loading

0 comments on commit 6d98b88

Please sign in to comment.