Skip to content

Tags: lazar-push/gorm-gen

Tags

v0.2.10

Toggle v0.2.10's commit message
Fix: nested recursive relationships consumed by first reference

v0.2.9

Toggle v0.2.9's commit message
Fix: nested relationship preload on cache hit

Cache was previously used to just prevent infinite recursion if a
relationship type was already processed. This would prevent preloading
of a type if it was previously encountered, even for indirect relationships.

Direct relationship example (tags excluded for brevity):

type A struct {
	ID int
	A []A
	AB []AB
}

type B struct {
	ID int
	AB []AB
}

type AB struct {
	A A
	B B
}

Valid: query.A.A.AB.B
Invalid: query.A.AB.B --> query.A.A has already "consumed" the child relationships

Instead, use cache for memoization and store previously computed values,
so that it can be reused.

v0.2.8

Toggle v0.2.8's commit message
fix: Fix Query field names

v0.2.7

Toggle v0.2.7's commit message
fix: Client use exported interfaces

v0.2.6

Toggle v0.2.6's commit message
fix: Interface decomp to avoid method shadowing (i.e., underlyingDB a…

…nd UnderlyingDB)

v0.2.5

Toggle v0.2.5's commit message
fix: Fix invalid struct template