.. | ||
cmd/sqlgen | ||
test-files/TestParse | ||
main.go | ||
parse_test.go | ||
parse.go | ||
README.md | ||
schema.go | ||
sqlite.go.tmpl | ||
template.go |
sqlgen
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>,
...
);