# Packages
No description provided by the author
# README
Kratos ORM
Kratos ORM is a GORM for Kratos Framework.
- Support OpenTelemetry (
Statement.SkipHooks
skip the reporting if not recording)
Installation
with cgo
$ go get -u gorm.io/driver/sqlite
without cgo
$ go get -u github.com/glebarez/sqlite
Usage
crud
type MyModel struct {
ID int64
Name string
crud.DBModel
}
// or interface.
type myRepo struct {
crud.CRUD[MyModel]
}
func NewMyRepo(db *gorm.DB) *myRepo {
return &myRepo{crud.New(db)}
}