utils

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TyFloat64 = reflect.TypeOf((*float64)(nil)).Elem()
	TyFloat32 = reflect.TypeOf((*float32)(nil)).Elem()
	TyInt64   = reflect.TypeOf((*int64)(nil)).Elem()
	TyBool    = reflect.TypeOf((*bool)(nil)).Elem()
	TyBytes   = reflect.TypeOf((*[]byte)(nil)).Elem()
	TyString  = reflect.TypeOf((*string)(nil)).Elem()
	//TyNVarChar        = reflect.TypeOf((*NVarChar)(nil)).Elem()
	TyTime = reflect.TypeOf((*time.Time)(nil)).Elem()
	//TyTimeStamp       = reflect.TypeOf((*TimeStamp)(nil)).Elem()
	//TyTimeStampTZ     = reflect.TypeOf((*TimeStampTZ)(nil)).Elem()
	//TyClob            = reflect.TypeOf((*Clob)(nil)).Elem()
	//TyNClob           = reflect.TypeOf((*NClob)(nil)).Elem()
	//TyBlob            = reflect.TypeOf((*Blob)(nil)).Elem()
	//TyBFile           = reflect.TypeOf((*BFile)(nil)).Elem()
	//TyVector          = reflect.TypeOf((*Vector)(nil)).Elem()
	TyNullByte    = reflect.TypeOf((*sql.NullByte)(nil)).Elem()
	TyNullInt16   = reflect.TypeOf((*sql.NullInt16)(nil)).Elem()
	TyNullInt32   = reflect.TypeOf((*sql.NullInt32)(nil)).Elem()
	TyNullInt64   = reflect.TypeOf((*sql.NullInt64)(nil)).Elem()
	TyNullFloat64 = reflect.TypeOf((*sql.NullFloat64)(nil)).Elem()
	TyNullBool    = reflect.TypeOf((*sql.NullBool)(nil)).Elem()
	TyNullString  = reflect.TypeOf((*sql.NullString)(nil)).Elem()
	//TyNullNVarChar    = reflect.TypeOf((*NullNVarChar)(nil)).Elem()
	TyNullTime = reflect.TypeOf((*sql.NullTime)(nil)).Elem()
	//TyNullTimeStamp   = reflect.TypeOf((*NullTimeStamp)(nil)).Elem()
	//TyNullTimeStampTZ = reflect.TypeOf((*NullTimeStampTZ)(nil)).Elem()
	//TyRefCursor       = reflect.TypeOf((*RefCursor)(nil)).Elem()
	//TyPLBool          = reflect.TypeOf((*PLBool)(nil)).Elem()
	//TyObject          = reflect.TypeOf((*Object)(nil)).Elem()
	//TyNumber          = reflect.TypeOf((*Number)(nil)).Elem()
	TyFloat32Array = reflect.TypeOf((*[]float32)(nil)).Elem()
	TyUint8Array   = reflect.TypeOf((*[]uint8)(nil)).Elem()
	TyFloat64Array = reflect.TypeOf((*[]float64)(nil)).Elem()
)

Functions

func CreateQuasiLocator

func CreateQuasiLocator(dataLength uint64) []byte

func ExtractTag

func ExtractTag(tag string) (name, _type string, size int, direction int)

func GetType

func GetType(value driver.Value) reflect.Type

func GetValue

func GetValue(origVal driver.Value) (driver.Value, error)

func IsFloat

func IsFloat(input reflect.Type) bool

func IsInteger

func IsInteger(input reflect.Type) bool

func IsNullNumber

func IsNullNumber(input reflect.Type) bool

func IsNumber

func IsNumber(input reflect.Type) bool

func IsSigned

func IsSigned(input reflect.Type) bool

func IsUnsigned

func IsUnsigned(input reflect.Type) bool

func Max

func Max(params ...int64) int64

Types

type Execuer

type Execuer interface {
	Exec(query string, args ...any) (sql.Result, error)
	Prepare(query string) (*sql.Stmt, error)
}

type ParameterCoderCollectionType

type ParameterCoderCollectionType int
const (
	GoTypeCoder     ParameterCoderCollectionType = 1
	OracleTypeCoder ParameterCoderCollectionType = 2
	NameTypeCoder   ParameterCoderCollectionType = 3
)

type ParameterDirection

type ParameterDirection int

Jump to

Keyboard shortcuts

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