sql

package
v0.0.66 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: GPL-3.0 Imports: 8 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ErrF_CanNotScanSourceAsInt     = "source can not be scanned as int: %s"
	ErrF_CanNotScanSourceAsString  = "source can not be scanned as string: %s"
	ErrF_CanNotScanSourceAsBoolean = "source can not be scanned as bool: %s"
)

Variables

This section is empty.

Functions

func BoolToSql

func BoolToSql(b bool) bool

func ByteToSql

func ByteToSql(b byte) int64

func IntToSql

func IntToSql(i int) int64

func NewArrayFromScannableSource

func NewArrayFromScannableSource[T any](src base.IScannableSequence) (values []T, err error)

func NewNonNullValueFromScannableSource

func NewNonNullValueFromScannableSource[T any](src base.IScannable) (T, error)

func NewValueFromScannableSource

func NewValueFromScannableSource[T any](src base.IScannable) (*T, error)

func ScanSrcAsBoolean

func ScanSrcAsBoolean(src any) (b bool, err error)

func ScanSrcAsByte

func ScanSrcAsByte(src any) (b byte, err error)

func ScanSrcAsInt

func ScanSrcAsInt(src any) (i int, err error)

func ScanSrcAsString

func ScanSrcAsString(src any) (s string, err error)

func StringToSql

func StringToSql(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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