database

package
v0.0.0-...-8dc4765 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 2 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 {
	Ip   string
	Port int
	Name string
	User string
	Pass string

	Index  int
	DB     *sqlx.DB
	Config string
}

type DatabaseManager

type DatabaseManager struct {
	DBList map[int]*Database
}

func (*DatabaseManager) Get

func (dm *DatabaseManager) Get(index byte) *sqlx.DB

Returns game database instance of index

func (*DatabaseManager) Init

func (dm *DatabaseManager) Init(db map[int]*Database)

Initializes Database Manager which will attempt to connect

Jump to

Keyboard shortcuts

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