GitPedia
smallnest

smallnest/gen

Converts a database into gorm structs and RESTful api

19 Releases
Latest: 5y ago
v0.9.27 (08/04/2020)v0.9.27Latest
alexj212alexj212·5y ago·August 4, 2020
GitHub

📋 Changes

  • v0.9.27 (08/04/2020)
  • Updated '--exec' mode to provide various functions for processing
  • copy function updated to provide --include and --exclude patterns. Patterns are processed in order, an include preceeding an exclude will take precedence. Multiple include and excludes can be specified. Files ending with .table.tmpl will be processed for each table. Output filenames will be stored in the proper directory, with a name of the table with the suffix of the template extension. Files ending with .tmpl will be processed as a template and the filename will be the name of the template stripped with the .tmpl suffix.
  • When processing templates, files generated with a .go extension will be formatted with the go fmt.
v0.9.26 (07/31/2020)v0.9.26
alexj212alexj212·5y ago·July 31, 2020
GitHub

📋 Changes

  • Release scripting
  • Added custom script functions to copy, mkdir, touch, pwd
  • Fixed custom script exec example
v0.9.25
alexj212alexj212·5y ago·July 26, 2020
GitHub

📋 Changes

  • Adhere json-fmt flag for all JSON response so when camel or lower_camel is specified, fields name in GetAll variant and DDL info will also have the same name format
  • Fix: Build information embedded through linker in Makefile is not consistent with the variable defined in main file.
  • Added --scheme and --listen options. This allows compiled binary to be used behind reverse proxy.
  • In addition, template for generating URL was fixed, i.e. when PORT is 80, then PORT is omitted from URL segment.
v0.9.24
alexj212alexj212·5y ago·July 13, 2020
GitHub

📋 Changes

  • v0.9.24 (07/13/2020)
  • Fixed array bounds issue parsing mysql db meta
v0.9.23
alexj212alexj212·5y ago·July 10, 2020
GitHub

📋 Changes

  • v0.9.23 (07/10/2020)
  • Added postgres types: bigserial, serial, smallserial, bigserial, float4 to mapping.json
v0.9.22
alexj212alexj212·5y ago·July 8, 2020
GitHub

📋 Changes

  • v0.9.22 (07/08/2020)
  • Modified gogo.proto check to use GOPATH not hardcoded.
  • Updated gen to error exit on first error encountered
  • Added color output for error
  • Added --no-color option for non colorized output
v0.9.21
alexj212alexj212·5y ago·July 7, 2020
GitHub

updated version in info and repacked templates

v0.9.20
alexj212alexj212·5y ago·July 7, 2020
GitHub

📋 Changes

  • v0.9.20 (07/07/2020)
  • Fixed render error in router.go.tmpl
  • upgraded project to use go.mod 1.14
v0.9.19
alexj212alexj212·5y ago·July 7, 2020
GitHub

v0.9.19 Added --windows flag to write files with CRLF windows line endings, otherwise they are all unix based LF line endings

v0.9.18
alexj212alexj212·5y ago·June 30, 2020
GitHub

📋 Changes

  • v0.9.18 (06/30/2020)
  • Fixed naming in templates away from hard coded model package.
v0.9.17
alexj212alexj212·5y ago·June 30, 2020
GitHub

📋 Changes

  • v0.9.17 (06/30/2020)
  • Template loading changes to better report error in template
  • Added option to run gofmt on output directory
v0.9.16
alexj212alexj212·5y ago·June 29, 2020
GitHub

📋 Changes

  • v0.9.16 (06/29/2020)
  • Fixes to router.go.tmpl from calvinchengx
  • Added postgres db support for inet and timestamptz
v0.9.15 (06/23/2020)v0.9.15
alexj212alexj212·5y ago·June 23, 2020
GitHub

📋 Changes

  • v0.9.15 (06/23/2020)
  • Code cleanup using gofmt name suggestions.
  • Template updates for generated code cleanup using gofmt name suggestions.
v0.9.14
alexj212alexj212·5y ago·June 23, 2020
GitHub

📋 Changes

  • v0.9.14 (06/23/2020)
  • Added model comment on field line if available from database.
  • Added exposing TableInfo via api call.
v0.9.13
alexj212alexj212·5y ago·June 22, 2020
GitHub

📋 Changes

  • fixed closing of connections via defer
  • bug fixes in sqlx generated code
v0.9.12
alexj212alexj212·5y ago·June 14, 2020
GitHub

📋 Changes

  • v0.9.12 (06/14/2020)
  • SQLX changed MustExec to Exec and checking/returning error
  • Updated field renaming if duplicated, need more elegant renaming solution.
  • Added exclude to test.sh
v0.9.11
alexj212alexj212·6y ago·June 13, 2020
GitHub

📋 Changes

  • v0.9.11 (06/13/2020)
  • Added ability to pass field, model and file naming format
  • updated test scripts
  • Fixed sqlx sql query placeholders
v0.9.10 (06/11/2020)v0.9.10
alexj212alexj212·6y ago·June 11, 2020
GitHub

📋 Changes

  • v0.9.10 (06/11/2020)
  • Bug fix with retrieving varchar length from mysql
  • Added support for mysql unsigned decimal - maps to float
v0.9.7
alexj212alexj212·6y ago·June 9, 2020
GitHub

📋 Changes

  • v0.9.7 (06/09/2020)
  • Added grpc server generation - WIP (looking for code improvements)
  • Added ability to exclude tables
  • Added support for unsigned from mysql ddl.
  • v0.9.6 (06/08/2020)
  • Updated SQLX codegen
  • Updated templates to split code gen functions into seperate files
  • Added code_dao_gorm, code_dao_sqlx to be generated from templates
  • + 3 more