Skip to content

v0.2.3

Choose a tag to compare

@f0rb f0rb released this 09 May 13:42
· 36 commits to main since this release
68fdcee

What's Changed

  • Support querying entities with related entities by abstract entity path tag.
  • Support CRUD for association tables.
  • Rename gen to gooogen as a go:generate tool.
  • Enhance generation for SQL builder.

Usages:

gooogen

  1. Define the go:generate gooogen command before a query struct:
//go:generate gooogen
type UserQuery struct {
	PageQuery
	IdGt     *int
	IdIn     *[]int
	//...
}
  1. Run the go generate command to generate the corresponding query construction methods in the specified file.

Check the README or the document for more details.