database

package
v0.0.0-...-fc45ebb Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package database provides the method of database option this package Encapsulation database/sql

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close function closes this database connection

func Query

func Query(q string, args ...interface{}) (rows *sql.Rows)

func TaskExec

func TaskExec(q string, args ...interface{}) error

TaskExec ...will return error

func TaskQueryRow

func TaskQueryRow(q string, args ...interface{}) (row *sql.Row)

func TaskQueryRows

func TaskQueryRows(q string, args ...interface{}) (rows *sql.Rows)

TaskQueryRows will return rows

Types

type Database

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

Database encapsulates database

Jump to

Keyboard shortcuts

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