This commit is contained in:
jdl
2024-11-11 06:36:55 +01:00
parent d0587cc585
commit c5419d662e
102 changed files with 4181 additions and 0 deletions

22
sqlgen/README.md Normal file
View 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>,
...
);
```