database

package
v0.0.0-...-bd6642e Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: GPL-3.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 Config

type Config struct {
	Host     string
	Port     int
	User     string
	Password string
	DBName   string
	Driver   string
}

func DefaultConfig

func DefaultConfig() *Config

type DataManager

type DataManager struct {
	Config *Config
	// contains filtered or unexported fields
}

func New

func New(config *Config) *DataManager

func (*DataManager) Close

func (data *DataManager) Close()

func (*DataManager) Init

func (data *DataManager) Init()

func (*DataManager) SaveProgram

func (data *DataManager) SaveProgram(program *types.ReconedProgram)

Jump to

Keyboard shortcuts

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