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-20 11:04:41 +00:00
|
|
|
Conn *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{
|
2024-10-20 11:04:41 +00:00
|
|
|
Conn: conn,
|
|
|
|
}
|
|
|
|
}
|