Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateStorageForBeego ¶
func CreateStorageForBeego(db *orm.DB, connectionManager storage.ConnectionManager[*sql.DB]) (storage.Storage, error)
CreateStorageForBeego 尝试从beego orm创建Storage
Types ¶
type BeegoLockFactory ¶
type BeegoLockFactory struct { *storage_lock_factory.StorageLockFactory[*sql.DB] // contains filtered or unexported fields }
var GlobalBeegoLockFactory *BeegoLockFactory
func NewBeegoLockFactory ¶
func NewBeegoLockFactory(db *orm.DB) (*BeegoLockFactory, error)
type BeegoOrmConnectionManager ¶
type BeegoOrmConnectionManager struct {
// contains filtered or unexported fields
}
BeegoOrmConnectionManager 用来复用beego orm(https://github.com/beego/beego)的连接 TODO 2023-8-4 01:31:00 单元测试
func NewBeegoConnectionManager ¶
func NewBeegoConnectionManager(db *orm.DB) *BeegoOrmConnectionManager
func (*BeegoOrmConnectionManager) Name ¶
func (x *BeegoOrmConnectionManager) Name() string
Click to show internal directories.
Click to hide internal directories.