database

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	Config *domain.RuntimeConfig `checkinject:"required"`
	// contains filtered or unexported fields
}

Manager manages the connection for the database

func (*Manager) DeleteSetupKey added in v0.9.0

func (dbm *Manager) DeleteSetupKey() error

func (*Manager) GetHandle

func (dbm *Manager) GetHandle() *domain.DB

GetHandle returns the db handle

func (*Manager) GetSchema

func (dbm *Manager) GetSchema() string

GetSchema returns the schema as its written in the db metadata table.

func (*Manager) GetSetupKey added in v0.9.0

func (dbm *Manager) GetSetupKey() (string, error)

GetSchema returns the schema as its written in the db metadata table.

func (*Manager) Open

func (dbm *Manager) Open() (*domain.DB, error)

Open connects to Database and returns the handle

func (*Manager) SetSchema

func (dbm *Manager) SetSchema(schema string) error

SetSchema sets the schema on the db metada table.

Jump to

Keyboard shortcuts

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