heliossqlx

package module
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DOLLAR = origin_sqlx.DOLLAR
View Source
const NAMED = origin_sqlx.NAMED
View Source
const QUESTION = origin_sqlx.QUESTION
View Source
const UNKNOWN = origin_sqlx.UNKNOWN

Variables

Functions

func BindDriver

func BindDriver(driverName string, bindType int)

func BindNamed

func BindNamed(bindType int, query string, arg interface{}) (string, []interface{}, error)

func BindType

func BindType(driverName string) int

func Get

func Get(q Queryer, dest interface{}, query string, args ...interface{}) error

func GetContext

func GetContext(ctx context.Context, q QueryerContext, dest interface{}, query string, args ...interface{}) error

func In

func In(query string, args ...interface{}) (string, []interface{}, error)

func LoadFile

func LoadFile(e Execer, path string) (*sql.Result, error)

func LoadFileContext

func LoadFileContext(ctx context.Context, e ExecerContext, path string) (*sql.Result, error)

func MapScan

func MapScan(r ColScanner, dest map[string]interface{}) error

func MustExec

func MustExec(e Execer, query string, args ...interface{}) sql.Result

func MustExecContext

func MustExecContext(ctx context.Context, e ExecerContext, query string, args ...interface{}) sql.Result

func Named

func Named(query string, arg interface{}) (string, []interface{}, error)

func NamedExec

func NamedExec(e Ext, query string, arg interface{}) (sql.Result, error)

func NamedExecContext

func NamedExecContext(ctx context.Context, e ExtContext, query string, arg interface{}) (sql.Result, error)

func Rebind

func Rebind(bindType int, query string) string

func Select

func Select(q Queryer, dest interface{}, query string, args ...interface{}) error

func SelectContext

func SelectContext(ctx context.Context, q QueryerContext, dest interface{}, query string, args ...interface{}) error

func SliceScan

func SliceScan(r ColScanner) ([]interface{}, error)

func StructScan

func StructScan(rows rowsi, dest interface{}) error

Types

type ColScanner

type ColScanner = origin_sqlx.ColScanner

type Conn

type Conn = origin_sqlx.Conn

type DB

type DB = origin_sqlx.DB

func Connect

func Connect(driverName, dataSourceName string, opts ...otelsql.Option) (*DB, error)

func ConnectContext

func ConnectContext(ctx context.Context, driverName, dataSourceName string, opts ...otelsql.Option) (*DB, error)

func MustConnect

func MustConnect(driverName, dataSourceName string, opts ...otelsql.Option) *DB

func MustOpen

func MustOpen(driverName, dataSourceName string, opts ...otelsql.Option) *DB

func NewDb

func NewDb(db *sql.DB, driverName string) *DB

func Open

func Open(driverName, dataSourceName string, opts ...otelsql.Option) (*DB, error)

type Execer

type Execer = origin_sqlx.Execer

type ExecerContext

type ExecerContext = origin_sqlx.ExecerContext

type Ext

type Ext = origin_sqlx.Ext

type ExtContext

type ExtContext = origin_sqlx.ExtContext

type NamedStmt

type NamedStmt = origin_sqlx.NamedStmt

type Preparer

type Preparer = origin_sqlx.Preparer

type PreparerContext

type PreparerContext = origin_sqlx.PreparerContext

type Queryer

type Queryer = origin_sqlx.Queryer

type QueryerContext

type QueryerContext = origin_sqlx.QueryerContext

type Row

type Row = origin_sqlx.Row

type Rows

type Rows = origin_sqlx.Rows

func NamedQuery

func NamedQuery(e Ext, query string, arg interface{}) (*Rows, error)

func NamedQueryContext

func NamedQueryContext(ctx context.Context, e ExtContext, query string, arg interface{}) (*Rows, error)

type Stmt

type Stmt = origin_sqlx.Stmt

func Preparex

func Preparex(p Preparer, query string) (*Stmt, error)

func PreparexContext

func PreparexContext(ctx context.Context, p PreparerContext, query string) (*Stmt, error)

type Tx

type Tx = origin_sqlx.Tx

Directories

Path Synopsis
internal module

Jump to

Keyboard shortcuts

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