WIP: initial commit

This commit is contained in:
jdl
2026-06-25 13:14:06 +02:00
parent 8f3fac98a9
commit 9f4c86f39f
19 changed files with 1036 additions and 1 deletions

View File

@@ -1,3 +1,22 @@
# sqlgen
SQL crud generator for Go.
## Installing
```
go install git.crumpington.com/lib/go/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>,
...
);
```