Documentation
¶
Index ¶
- Constants
- func ConnectAndWriteDBTest(t *testing.T, dbc DBClient)
- func Create[T any](c DBClient, objs []T)
- func CreateOrOverwrite[T any](c DBClient, objs []T)
- func DeleteAll(c DBClient, obj interface{})
- func Migrate(c DBClient, obj interface{})
- func Query[T any](query *gorm.DB) []T
- func SelectAll[T any](c DBClient) []T
- type DBClient
- type TestData
Constants ¶
View Source
const ( DEFAULT_WHERE = "TRUE" DEFAULT_ORDER = "ID ASC" )
Variables ¶
This section is empty.
Functions ¶
func ConnectAndWriteDBTest ¶
func CreateOrOverwrite ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.