You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
sudo pacman -Syu c460e7e7cc chore: update make 4 weeks ago
.github chore: bump go 1.20 github action 4 weeks ago
cmd/populatedb feat: simple populator 5 months ago
internal chore: fix lint 4 months ago
.gitignore feat: init new populator 5 months ago
.golangci.yml chore: update lint 4 weeks ago
.goreleaser.yml chore: fix build github action 5 months ago
CHANGELOG.md chore(changelog): generate v0.0.4 5 months ago
LICENSE chore: add MIT license 5 months ago
Makefile chore: update make 4 weeks ago
README.md chore: add purpose in README 5 months ago
go.mod chore(deps): bump github.com/k1LoW/tbls from 1.62.0 to 1.62.1 1 month ago
go.sum chore(deps): bump github.com/k1LoW/tbls from 1.62.0 to 1.62.1 1 month ago

README.md

populatedb

Quickly populate database with fake data for testing only.

Currently support:

  • mysql:
    • varchar
    • bigint
    • int
    • timestamp
    • json

Install

go install github.com/haunt98/populatedb-go/cmd/populatedb@latest

Run

Example:

populatedb g --dialect "mysql" --url "root:@tcp(localhost:4000)/production" --table "production_2022" --number 10000000

Contribute

Feel free to ask or implement feature yourself :)

Roadmap

  • Support more database (postgres, sqlite, ...)
  • Support more database type

Thanks