refactoring, fixes and laniakea v0.8
This commit is contained in:
15
database/ctx.go
Normal file
15
database/ctx.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package database
|
||||
|
||||
import (
|
||||
"git.nix13.pw/scuroneko/laniakea"
|
||||
"github.com/redis/go-redis/v9"
|
||||
"github.com/vinovest/sqlx"
|
||||
"go.mongodb.org/mongo-driver/v2/mongo"
|
||||
)
|
||||
|
||||
type Context struct {
|
||||
laniakea.DbContext
|
||||
Postgres *sqlx.DB
|
||||
Mongo *mongo.Client
|
||||
Redis *redis.Client
|
||||
}
|
||||
Reference in New Issue
Block a user