db

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

DB is sql.DB for operating database.

Functions

func Int64

func Int64(query string, args ...interface{}) (int64, error)

Int64 return int64 result after query.

func Int64s

func Int64s(query string, args ...interface{}) ([]int64, error)

Int64s return []int64 result after query.

func Setup

func Setup()

Setup setups db.

func String

func String(query string, args ...interface{}) (string, error)

String return string result after query.

func Strings

func Strings(query string, args ...interface{}) ([]string, error)

Strings return []string result after query.

Types

This section is empty.

Jump to

Keyboard shortcuts

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