db

package module
v0.0.0-...-1f3a6d3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

README

db

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	Db   *sqlx.DB
	InTx bool
	Tx   *sqlx.Tx
}

func NewConnection

func NewConnection(strConn string, transaction bool) (*Connection, error)

func (*Connection) Close

func (c *Connection) Close()

func (*Connection) Error

func (c *Connection) Error(err error) error

func (*Connection) Exec

func (c *Connection) Exec(query string, arg ...interface{}) interface{}

func (*Connection) Select

func (c *Connection) Select(obj interface{}, query string, arg ...interface{}) error

Jump to

Keyboard shortcuts

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