Documentation ¶
Index ¶
- Constants
- type StorageManager
- func (self *StorageManager) Close() error
- func (self *StorageManager) Exec(query string, params []interface{}, f func(result sql.Result, err error) error) error
- func (self *StorageManager) GetConnection() *sql.DB
- func (self *StorageManager) Open() error
- func (self *StorageManager) Query(query string, params []interface{}, f func(rows *sql.Rows) error) error
Constants ¶
View Source
const STORAGE_MANAGER_ID = "StorageManager"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageManager ¶
type StorageManager struct {
// contains filtered or unexported fields
}
func NewStorageManager ¶
func NewStorageManager(r *registry.Container) *StorageManager
/ Initialize storage
func RestoreStorageManager ¶
func RestoreStorageManager(r *registry.Container) *StorageManager
func (*StorageManager) Close ¶
func (self *StorageManager) Close() error
func (*StorageManager) GetConnection ¶
func (self *StorageManager) GetConnection() *sql.DB
func (*StorageManager) Open ¶
func (self *StorageManager) Open() error
Click to show internal directories.
Click to hide internal directories.