global

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Db

type Db interface {
	Open(dataSourceName string) error
	Close() error
	CreateTable(f interface{}, table string) error
	Exec(query string) error
	GetFields(f interface{}) string
	Insert(query string) error
	InsertInto(f interface{}, table string) error
}

type DbImpl

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

func GetDb

func GetDb() *DbImpl

func (*DbImpl) Close

func (d *DbImpl) Close() error

func (*DbImpl) CreateTable

func (d *DbImpl) CreateTable(f interface{}) error

func (*DbImpl) Exec

func (d *DbImpl) Exec(query string) error

func (*DbImpl) GetFields

func (d *DbImpl) GetFields(f interface{}) string

func (*DbImpl) Insert

func (d *DbImpl) Insert(query []string) error

func (*DbImpl) InsertInto

func (d *DbImpl) InsertInto(f interface{}) error

func (*DbImpl) Open

func (d *DbImpl) Open(dataSourceName string) error

func (*DbImpl) Select

func (d *DbImpl) Select(query string, result interface{}) error

Jump to

Keyboard shortcuts

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