Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BadAutoInc ¶ added in v0.1.0
type BadAutoInc struct {
ID string `db:"autoincrement"`
}
type BadTimeNoTag ¶ added in v0.1.3
type MockParent ¶ added in v0.1.4
type MockParent struct {
ID string
Name string
Kids []MockChild // no tag — relation auto-detected via MockChild.MockParentID
}
MockParent / MockChild: relation auto-detection fixture.
type ModelWithIgnored ¶ added in v0.1.3
type NumericTypes ¶ added in v0.1.1
type NumericTypes struct {
IDNumeric int32 `db:"pk,not_null"` // PK + NotNull → bitmask 5
CountUint uint64
RatioF32 float32
}
NumericTypes covers int32, uint64, float32 mapping and bitmask constraints.
type PointerReceiver ¶ added in v0.1.4
PointerReceiver tests that detectTableName handles pointer receivers (*T).
func (*PointerReceiver) TableName ¶ added in v0.1.4
func (*PointerReceiver) TableName() string
type RefNoColumn ¶ added in v0.1.1
RefNoColumn covers db:"ref=table" without a specific column (RefColumn must be "").
Click to show internal directories.
Click to hide internal directories.