Documentation ¶
Index ¶
- Constants
- func Conn() *gorm.DB
- func Count[T any](query *T) (int64, error)
- func Create[T any](data *T) error
- func Delete[T any](query *T) error
- func FindAll[T any](query *T) ([]*T, error)
- func FindOne[T any](query *T) (*T, error)
- func FindWithLimit[T any](query *T, limit int) ([]*T, error)
- func Init(dbType Platform, dsn string, logLevel logger.LogLevel) error
- func Update[T any](data *T) error
- type Platform
Constants ¶
View Source
const ( Silent logger.LogLevel = iota Error Warn Info )
LogLevels ...
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.