sqldb

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitSQLDBClient

func InitSQLDBClient() error

Types

type SQLDB

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

func NewSQLDB

func NewSQLDB(db *sql.DB) *SQLDB

func (*SQLDB) ExecContext

func (s *SQLDB) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

func (*SQLDB) QueryContext

func (s *SQLDB) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

func (*SQLDB) QueryRowContext

func (s *SQLDB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row

type SQLDBService

type SQLDBService interface {
	QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
	QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
	ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
}
var SQLDBClient SQLDBService

Jump to

Keyboard shortcuts

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