Skip to content

Releases: cresta/smallnest-gen

Support for mulitple schemas in one folder

10 Nov 09:04
06b2007
Compare
Choose a tag to compare

Using the schemas parameter you can filter out on a subset of schemas.

Example:
--schemas=schema1,schema2

Note:
Possible naming collisions are not properly taken care of for now and are to be avoided cross schema for the ones it is generating for

Support custom column type

16 May 22:55
fde5f60
Compare
Choose a tag to compare

Support specifying a custom type for a column by using Go struct tag syntax in
comments:

COMMENT ON COLUMN schema.table.column IS 'go_type:"github.com/package/path:ColumnType"';

Make `database` flag work (e.g. historic, app)

28 Feb 22:28
aefd8fc
Compare
Choose a tag to compare
Merge pull request #8 from cresta/schema-historic

Fix smallgen to only generate model / dao with flag `database` only

v0.9.30-cresta-fix-4: [plat-908] Add default to generated model

14 Dec 18:12
f584c55
Compare
Choose a tag to compare
Add default to generated model regardless it's a function or not

v0.9.30-cresta-fix-3: Merge pull request #3 from xingjianan/patch-1

14 Dec 00:05
06cf3ad
Compare
Choose a tag to compare
Use sql.NullTime instead of time.Time when the column is empty

v0.9.30-cresta-fix-2

20 Nov 07:17
81449f1
Compare
Choose a tag to compare
Merge pull request #2 from cresta/fix-postgres-table-schema

Update packaged templates

v0.9.30-cresta-fix-1

20 Nov 06:51
113e95b
Compare
Choose a tag to compare

Fix generated struct name.

Bump version number so that it can be retrieved with @latest tag

fix 1: Support postgres table schema

20 Nov 01:19
Compare
Choose a tag to compare
v0.9.29-cresta-fix-1

UPdate the package name, so that we can use go install to install it