dbinterface

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2019 License: MIT Imports: 0 Imported by: 14

README

Go Report Card

Database Interface

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database interface {
	Connect() bool
	Test(query string, args ...interface{}) *DbRow
	Insert(query string, args ...interface{}) (bool, int64)
	Update(query string, args ...interface{}) bool
	Get(query string, args ...interface{}) *DbRow
	GetList(query string, args ...interface{}) *DbRows
	Delete(query string, args ...interface{}) bool
	Close() bool
}

Database Database

type DbRow

type DbRow struct {
	Columns []string
	Row     []string
}

DbRow database row

type DbRows

type DbRows struct {
	Columns []string
	Rows    [][]string
}

DbRows array of database rows

Jump to

Keyboard shortcuts

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