dbsql

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBConnection

func NewDBConnection(driverName string, dataSourceName string) (*sql.DB, error)

NewDBConnection creates a new db connection

func Transact

func Transact(DB *sql.DB, fnTransact func(*sql.Tx) error) error

Transact performs a transaction on a given database

func TransactExec

func TransactExec(tx *sql.Tx, query string, args ...interface{}) (sql.Result, error)

TransactExec executes the query with args inside the transaction

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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