Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/myzhan/dbf
DBF(DB Factory) is a general-purpose test data generator for both PostgreSQL and MySQL
https://github.com/myzhan/dbf
Last synced: 30 days ago
JSON representation
DBF(DB Factory) is a general-purpose test data generator for both PostgreSQL and MySQL
- Host: GitHub
- URL: https://github.com/myzhan/dbf
- Owner: myzhan
- License: mit
- Created: 2018-02-28T11:50:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-28T11:57:13.000Z (almost 7 years ago)
- Last Synced: 2024-11-11T08:35:24.387Z (3 months ago)
- Language: Go
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DBF
## Description
DBF(DB Factory) is a general-purpose test data generator for both PostgreSQL and MySQL.## Features
* **Supports both PostgreSQL and MySQL.**
* **Supports Linux, MacOS, and Windows.**
* **High performance.**
* **Multiply methods to generate random data.**## Install
```bash
go get github.com/myzhan/dbf
```It will install an executable binary under $PATH/bin.
## Build
```bash
# xxx means your os
bash build_xxx.sh
```## Usage
1. Initialize a configuration file, defaults to conf.json
```bash
cp conf.json.sample conf.json
```2. Dump schema
```bash
dbf --op dump
```The schema will be write to a new file named ${table}_schema.json
3. Specify mutators of columns
```bash
vim ${table}_schema.json
```4. Insert data
```bash
dbf --op insert
```## License
Open source licensed under the MIT license (see _LICENSE_ file for details).