- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for AssociationFrom (0.05 sec)
-
clause/joins.go
return JoinTarget{Type: InnerJoin, Association: name} } func (jt JoinType) Association(name string) JoinTarget { return JoinTarget{Type: jt, Association: name} } func (jt JoinType) AssociationFrom(name string, subquery Expression) JoinTarget { return JoinTarget{Type: jt, Association: name, Subquery: subquery} } func (jt JoinTarget) As(name string) JoinTarget { jt.Table = name return jt }
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Sun May 25 07:40:40 UTC 2025 - 1.5K bytes - Viewed (0) -
tests/generics_test.go
} if result.Name != u.Name || result.Company.Name != u.Company.Name { t.Fatalf("Joins expected %s, got %+v", u.Name, result) } // Raw Subquery JOIN + WHERE result, err = db.Joins(clause.LeftJoin.AssociationFrom("Company", gorm.G[Company](DB)).As("t"), func(db gorm.JoinBuilder, joinTable clause.Table, curTable clause.Table) error { if joinTable.Name != "t" { t.Fatalf("Join table should be t, but got %v", joinTable.Name)
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Sep 04 13:13:16 UTC 2025 - 28K bytes - Viewed (0)