Repository navigation
v0.20.0
Full Changelog: v0.19.1...v0.20.0
Added
- Add the
PreloadWherepreload mod to filter what relation should be preloaded. ViewQuerynow embedsbob.BaseQuerygiving it additional methods likeApplyandBuild- Add plugin support. Currently 3 plugin hooks are provided.
PlugState,PlugDBInfoandPlugTemplateData.
Changed
- Make
View.Name()return a dialect-specific expression - Improve
Debughelpers.Debugwrites query output to stdoutDebugToWriterwrites the query output to anyio.Writerwith a fallback to stdout.DebugToPrinterprints the query with a givenbob.DebugPrinter. Also falls back to stdout.
- Rename
OnlyColumnstoPreloadOnlyandExceptColumnstoPreloadExceptto be more consistent with the newly addedPreloadWhere. JoinChain.Onnow takes Expressions instead ofany.JoinChain.Usingnow takes strings instead ofany.- Export
gen.TemplateData
Removed
- Remove
ILIKEoperator from MySQL since it is not supported. - Removed
Destination()method in driver interface. - Removed
PackageName()method in driver interface.
Fixed
- Account for possible clashes between column and relationship alias
- Make
Preloadmods work the same way as other query mods - Avoid overwriting manually flipped relationships.
- Account for potentially null relationship in Load methods