wip
This commit is contained in:
22
sqlgen/README.md
Normal file
22
sqlgen/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# 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>,
|
||||
...
|
||||
);
|
||||
```
|
||||
Reference in New Issue
Block a user