storage

package
v0.0.0-...-b45fbc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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) Exec

func (self *StorageManager) Exec(query string, params []interface{}, f func(result sql.Result, err error) error) error

func (*StorageManager) GetConnection

func (self *StorageManager) GetConnection() *sql.DB

func (*StorageManager) Open

func (self *StorageManager) Open() error

func (*StorageManager) Query

func (self *StorageManager) Query(query string, params []interface{}, f func(rows *sql.Rows) error) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL