Nexus/pkg/nex/cruda/conn.go

19 lines
220 B
Go
Raw Normal View History

2024-10-20 11:04:41 +00:00
package cruda
2024-10-20 11:55:52 +00:00
import (
"git.solsynth.dev/hypernet/nexus/pkg/nex"
"gorm.io/gorm"
)
2024-10-20 11:04:41 +00:00
2024-10-20 11:55:52 +00:00
type CrudConn struct {
n *nex.Conn
2024-10-20 11:55:52 +00:00
Db *gorm.DB
2024-10-20 11:04:41 +00:00
}
2024-10-20 11:55:52 +00:00
func NewCrudaConn(conn *nex.Conn) *CrudConn {
return &CrudConn{
n: conn,
2024-10-20 11:04:41 +00:00
}
}