Skip to content

Releases: sunboyy/repogen

v0.4.1

Choose a tag to compare

@sunboyy sunboyy released this 08 Feb 10:20
48b6821

Changelog

  • 3e81bf3 Bump version for the next release
  • 48b6821 Fix generation of map parameters (#55)

v0.4.0

Choose a tag to compare

@sunboyy sunboyy released this 08 Feb 09:52

Changelog

v0.3.1

Choose a tag to compare

@sunboyy sunboyy released this 14 Jan 05:11
35eb7a9

Changelog

  • 35eb7a9 Make find many operations return empty slice instead of nil to provide consistency when further encoded (#40)
  • 97619d4 Update documents and examples

v0.3.0

Choose a tag to compare

@sunboyy sunboyy released this 31 Oct 15:05
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)

v0.2.1

Choose a tag to compare

@sunboyy sunboyy released this 27 Nov 05:22
440b92a

Changelog

440b92a Init GoReleaser (#27)
8081ffc Fix error when a method argument is assigned with map type (#26)

v0.2.0

Choose a tag to compare

@sunboyy sunboyy released this 05 Jun 09:54
dd206ba

New features

  • Added query operators: NotIn, True and False
  • Added ability to the update operation: updating the whole model instead of only some fields
  • Added ability to the find operation: sorting
  • Added ability to deeply reference struct fields: e.g. ContactEmail = contact.email
  • Added update operators: Push and Inc
  • Improved error message from generation to help investigate repository interface errors

v0.1.0

Choose a tag to compare

@sunboyy sunboyy released this 16 Feb 12:38
cbcaf37

Initial version of repogen

  • Supports create, read, update, delete and count functionality
  • Supports single-entity and many-entity operations
  • Supports AND and OR query
  • Supports many comparators (equal, less than, less than or equal, greater than, greater than or equal, not equal, between, in)
  • Validate method signature depending on method operations