https://github.com/willowtreeapps/rootx
Wrap sqlx in even more convenience
https://github.com/willowtreeapps/rootx
Last synced: about 1 year ago
JSON representation
Wrap sqlx in even more convenience
- Host: GitHub
- URL: https://github.com/willowtreeapps/rootx
- Owner: willowtreeapps
- License: mit
- Created: 2015-10-08T20:11:18.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T20:25:02.000Z (over 10 years ago)
- Last Synced: 2024-06-20T16:32:33.044Z (about 2 years ago)
- Language: Go
- Size: 135 KB
- Stars: 37
- Watchers: 50
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
### WillowTree is Hiring!
Want to write Go for mobile applications? Want to write anything else for mobile
applications? [Check out our openings!](http://willowtreeapps.com/careers/)
# RootX
Helper functions and code generation tools for https://github.com/jmoiron/sqlx.
Blog post coming soon!
## Installation
```
go get github.com/willowtreeapps/rootx/...
```
## Command Usage
```
$ rootx-gen -h
Usage of rootx-gen:
-dir string
Directory containing sql files
-dryRun
Output to STDOUT instead of writing files
-formatter string
Command to use to format source code (gofmt, goimports) (default "goimports")
-mode string
Mode for generator: code | mock | interface (default "code")
-o string
Output file
-pkg string
Go package to use
-psql
Whether to use Postgres insert strategy, using "RETURNING id" (default true)
-readType string
Type of instance to use for read methods
-writeType string
Type of instance to use for write methods
```