dbservice

package
v0.0.0-...-c477d60 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: GPL-3.0 Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringToID

func StringToID(str string) (id datatype.ID, isOK bool)

StringToID converts string to ID

Types

type DB

type DB struct {
	*sql.DB
}

DB database connection type

func MustConnect

func MustConnect(dataSourceName string) *DB

MustConnect connects to database or panics

func TestConnect

func TestConnect() *DB

TestConnect connects to test database

Jump to

Keyboard shortcuts

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