transaction

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginTX

func BeginTX(db *sql.DB) (*sql.Tx, context.Context)

BeginTX inicia una nueva transacción. y contexto

func ExecuteSQLStatement

func ExecuteSQLStatement(sql *string, arg []interface{}, tx *sql.Tx, ctx context.Context) (ok bool)

ExecuteSQLStatement ingresa un objeto en db

func GetObjCTX

func GetObjCTX(sql *string, db *sql.DB, ctx context.Context) (out map[string]string, ok bool)

GetObjCTX retorna objeto según sql

func GetValuesWithContext

func GetValuesWithContext(sql string, db *sql.DB, ctx context.Context) (out map[string]string, ok bool)

getValuesWithContext retorna valor de una consulta sql

func PrepareStatement

func PrepareStatement(sql *string, arg []interface{}, tx *sql.Tx, ctx context.Context) bool

func SelectAll

func SelectAll(sql *string, st *sql.DB, ctx context.Context) (rowsMap []map[string]string, ok bool)

SelectAll...

func SelectOne

func SelectOne(sql string, st *sql.DB, ctx context.Context) (rowsMap map[string]string, ok bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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