database

package
v0.0.0-...-505ae4e Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Wifi     = 0
	Username = 1
	Email    = 2
)

Variables

View Source
var WrongKindError = errors.New("wrong record kind")

Functions

This section is empty.

Types

type DBHandler

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

func CreateDBHandler

func CreateDBHandler(db *sql.DB, output io.Writer) *DBHandler

func (*DBHandler) Close

func (dBhandler *DBHandler) Close()

func (*DBHandler) CreateTable

func (dBhandler *DBHandler) CreateTable(kind int)

func (*DBHandler) DumpTable

func (dBhandler *DBHandler) DumpTable(kind int)

func (*DBHandler) InsertRecord

func (dBhandler *DBHandler) InsertRecord(kind int, user string, pass string)

We are passing db reference connection from main to our method with other parameters

Jump to

Keyboard shortcuts

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