Skip to content

v0.3.0

Choose a tag to compare

@sunboyy sunboyy released this 31 Oct 15:05
· 19 commits to main since this release
3c0b0e4

New Features

  • The command line option -src is replaced with -pkg option to allow package scanning for model struct and repository interface instead of specifying only one file. If the -pkg option is not specified, it will default to the current directory.
  • Added FindTopN keyword to allow finding with limit N such as FindTop5AllOrderByAge.
  • The keyword One after Find is not allowed anymore. If you have FindOne, replace it with Find.
  • New comparators Exists and NotExists
  • Fix decoding error when the struct tag has space characters

Migration guide

  • Remove -src option from the command.
  • If you have FindOne keyword, replace it with Find.

Changelog

  • 3c0b0e4 Edit version variable
  • 655fc34 Fix GoReleaser deprecated field
  • 070903f Update dependencies (#39)
  • 4a7b824 Finalize v0.3 (#38)
  • d2338b8 Implement FindTopN to limit number of results in find many operations (#37)
  • 021de62 Fix struct tag with spaces as values (#36)
  • bdb63c8 Move function body generation into codegen package (#35)
  • b00c2ac Remove ignoring One from query (#34)
  • 1e0ab5d Add new comparators: Exists and NotExists (#33)
  • 482dd09 Enforce new linting rules: errname, errorlint, lll, stylecheck (#32)
  • ec08a5a Segregate base code generation logic to a new package (#31)
  • 737c1a4 Scan directory to find source code in multiple files in the same package (#30)
  • 0a1d5c8 Add comment to interface method (#28)