go/sqlgen/README.md

23 lines
326 B
Markdown
Raw Normal View History

2024-11-11 05:36:55 +00:00
# sqlgen
## Installing
```
2024-11-11 08:22:50 +00:00
go install git.crumpington.com/lib/go/sqlgen/cmd/sqlgen@latest
2024-11-11 05:36:55 +00:00
```
## 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>,
...
);
```