Repository navigation
Releases: sunboyy/repogen
Releases · sunboyy/repogen
Release list
v0.4.1
v0.4.0
Changelog
- c379f87 [Feature] Add support for cross-package referencing (#49)
- b441ded Add CHANGELOG.md (#52)
- b55aa4c Extract findOptions variable and edit changelog (#53)
- 9fee73c Finalize v0.4
- ec280dd Fix CI to not warn in unrelevant occasions (#51)
- 0c72075 Fix codecov pipeline (#48)
- 7bb44ba Make constructor return concrete type (#44)
- c49ddcc Move e2e generation logic to internal/generation (#50)
- 1528952 Update Github workflows
- 4992f43 Update examples for v0.3.1
- 441709a Upgrade mongo-driver to v2 (#54)
- ad1ec89 Utilize go/packages to parse packages (#45)
- f199cdd Utilize go/types for code generation (#47)
- 0c00401 Utilize go/types for interface parsing (#46)
v0.3.1
v0.3.0
New Features
- The command line option
-srcis replaced with-pkgoption to allow package scanning for model struct and repository interface instead of specifying only one file. If the-pkgoption is not specified, it will default to the current directory. - Added
FindTopNkeyword to allow finding with limit N such asFindTop5AllOrderByAge. - The keyword
OneafterFindis not allowed anymore. If you haveFindOne, replace it withFind. - New comparators
ExistsandNotExists - Fix decoding error when the struct tag has space characters
Migration guide
- Remove
-srcoption from the command. - If you have
FindOnekeyword, replace it withFind.
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
v0.2.0
New features
- Added query operators:
NotIn,TrueandFalse - 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:
PushandInc - Improved error message from generation to help investigate repository interface errors
v0.1.0
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