This repository was archived by the owner on Jun 12, 2024. It is now read-only.
Releases: contiamo/go-base
Releases · contiamo/go-base
Brilliant Raptor
Generate const if enum has exactly one element (#41) **What** - Generate a Go `const` if the enum values has exactly one element - See https://github.com/OAI/OpenAPI-Specification/issues/1313 and https://github.com/OAI/OpenAPI-Specification/issues/1620 as examples where the openapi team blessed the "singleton enum" example Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Anxious Raptor
Generative Termite
Initial enum generator (#39) **What** - Add new models package to the generators, this package can read an openapi spec and output the enums in a _nice_ way. - Create a templates package inside generators to hold the common template functions - Update CI env to go 1.14 Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Flawless Termite
Enforced Termite
Ensure Max open connections is set during open (#36) **What** - Set the db pool max open connections limit as soon as we open the db this ensures the value is always set Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Deterministic Termite
Make router generation deterministic (#35) Now the router always produces results in the same order, so no more unnecessary diffs after the generation.
Accurate Termite
Allow passing multiple init method for GetDatabase (#32) **What** - Allow passing multiple init methods for the test GetDatabase method - Fix NullTime string formatting consistency Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
Uncomfortable Skunk
Revert GetPageInfo
optimization because it broke the existing code in dependent projects when results are empty.
Agricultural Parrotfish
Introduce `SQLBuilder` interface (#26) So, there is no direct dependency to a structure type. It's more convenient in certain situations for us to have an interface that can be `nil`.