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 {
|
2024-10-24 15:52:38 +00:00
|
|
|
n *nex.Conn
|
2024-10-20 11:55:52 +00:00
|
|
|
|
2024-10-24 15:52:38 +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{
|
2024-10-24 15:52:38 +00:00
|
|
|
n: conn,
|
2024-10-20 11:04:41 +00:00
|
|
|
}
|
|
|
|
}
|