bookstore

package
v0.0.0-...-4ec210f Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func LoadDatabase

func LoadDatabase(path string) (*Database, error)

func (*Database) Connect

func (instance *Database) Connect() error

func (*Database) Disconnect

func (instance *Database) Disconnect() error

func (*Database) GetHost

func (db *Database) GetHost() string

func (*Database) GetLogin

func (db *Database) GetLogin() string

func (*Database) GetName

func (db *Database) GetName() string

func (*Database) GetPort

func (db *Database) GetPort() int

func (*Database) RunMigration

func (instance *Database) RunMigration(migration migrations.IMigration) error

type DatabaseXML

type DatabaseXML struct {
	XMLName  xml.Name `xml:"DatabaseConfig"`
	Name     string   `xml:"name,attr"`
	Host     string   `xml:"host,attr"`
	Port     int      `xml:"port,attr"`
	Login    string   `xml:"login,attr"`
	Password string   `xml:"password,attr"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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