23 lines
323 B
Markdown
23 lines
323 B
Markdown
|
# sqlgen
|
||
|
|
||
|
## Installing
|
||
|
|
||
|
```
|
||
|
go install git.crumpington.com/lib/sqlgen/cmd/sqlgen@latest
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```
|
||
|
sqlgen [driver] [defs-path] [output-path]
|
||
|
```
|
||
|
|
||
|
## File Format
|
||
|
|
||
|
```
|
||
|
TABLE [sql-name] OF [go-type] <NoInsert> <NoUpdate> <NoDelete> (
|
||
|
[sql-column] [go-type] <AS go-name> <PK> <NoInsert> <NoUpdate>,
|
||
|
...
|
||
|
);
|
||
|
```
|