Documentation ¶ Index ¶ func QueryTest(t *testing.T, testCases []Case) type Bar type Case type Foo Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func QueryTest ¶ func QueryTest(t *testing.T, testCases []Case) Types ¶ type Bar ¶ type Bar struct { models.BaseModel ID int `json:"id" db:"id,primary,autoincrement"` FooID int `json:"foo_id" db:"foo_id"` Foo *selects.BelongsTo[*Foo] `json:"foo" db:"-"` } type Case ¶ type Case struct { Name string Builder builder.ToSQLer ExpectedSQL string ExpectedBindings []any } type Foo ¶ type Foo struct { models.BaseModel ID int `json:"id" db:"id,primary,autoincrement"` Name string `json:"name" db:"name"` Bar *selects.HasOne[*Bar] `json:"bar" db:"-"` Bars *selects.HasMany[*Bar] `json:"bars" db:"-"` } Source Files ¶ View all Source files test.go Click to show internal directories. Click to hide internal directories.