https://github.com/hapoon/gendao
generate dao code from database
https://github.com/hapoon/gendao
dao database
Last synced: 5 months ago
JSON representation
generate dao code from database
- Host: GitHub
- URL: https://github.com/hapoon/gendao
- Owner: hapoon
- License: mit
- Created: 2017-01-18T06:14:35.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-03T07:49:03.000Z (over 9 years ago)
- Last Synced: 2024-09-24T04:38:52.886Z (over 1 year ago)
- Topics: dao, database
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gendao
generate dao code from database
[](https://raw.githubusercontent.com/hapoon/gendao/master/LICENSE)
gendao is a tool that generate dao(data access object) code from database for Go.
## Installation
Make sure that Go is installed on your computer. Type the following command in your terminal:
`go get gopkg.in/hapoon/gendao.v1`
## Requirement
- [gorp.v2](https://github.com/go-gorp/gorp)
- [squirrel](https://github.com/Masterminds/squirrel)
## Usage
`gendao`
```
-h, -host arg
Set host name to access database.
-p, -port arg
Set port number to access database.
-u, -user arg
Set user name to access database.
-pass, -password arg
Set password to access database.
-n, -name arg
Set database name to access database.
-verbose
Enable verbose.
-o, -output arg
Save the generated dao in output. Default is current directory.
-e, -exclude arg
Exclude files. To specify multiple files, files are separated by comma.
```
## License
[MIT License](LICENSE)