scanners

package
v0.0.0-...-1e4cd2d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Array

type Array[T any] struct {
	Value    *[]T
	ValueAny *any
}

func (*Array[T]) Ptr

func (s *Array[T]) Ptr(p any) Interface

func (*Array[T]) PtrAny

func (s *Array[T]) PtrAny(p *any) Interface

func (*Array[T]) Scan

func (s *Array[T]) Scan(src any) (err error)

type Bool

type Bool struct {
	Value    *bool
	ValueAny *any
}

func (*Bool) Ptr

func (s *Bool) Ptr(p any) Interface

func (*Bool) PtrAny

func (s *Bool) PtrAny(p *any) Interface

func (*Bool) Scan

func (s *Bool) Scan(src any) (err error)

type Bytes

type Bytes struct {
	Value    *[]byte
	ValueAny *any
}

func (*Bytes) Ptr

func (s *Bytes) Ptr(p any) Interface

func (*Bytes) PtrAny

func (s *Bytes) PtrAny(p *any) Interface

func (*Bytes) Scan

func (s *Bytes) Scan(src any) error

type Float32

type Float32 struct {
	Value    *float32
	ValueAny *any
}

func (*Float32) Ptr

func (s *Float32) Ptr(p any) Interface

func (*Float32) PtrAny

func (s *Float32) PtrAny(p *any) Interface

func (*Float32) Scan

func (s *Float32) Scan(src any) (err error)

type Float64

type Float64 struct {
	Value    *float64
	ValueAny *any
}

func (*Float64) Ptr

func (s *Float64) Ptr(p any) Interface

func (*Float64) PtrAny

func (s *Float64) PtrAny(p *any) Interface

func (*Float64) Scan

func (s *Float64) Scan(src any) (err error)

type Int

type Int struct {
	Value    *int
	ValueAny *any
}

func (*Int) Ptr

func (s *Int) Ptr(p any) Interface

func (*Int) PtrAny

func (s *Int) PtrAny(p *any) Interface

func (*Int) Scan

func (s *Int) Scan(src any) (err error)

type Int16

type Int16 struct {
	Value    *int16
	ValueAny *any
}

func (*Int16) Ptr

func (s *Int16) Ptr(p any) Interface

func (*Int16) PtrAny

func (s *Int16) PtrAny(p *any) Interface

func (*Int16) Scan

func (s *Int16) Scan(src any) (err error)

type Int32

type Int32 struct {
	Value    *int32
	ValueAny *any
}

func (*Int32) Ptr

func (s *Int32) Ptr(p any) Interface

func (*Int32) PtrAny

func (s *Int32) PtrAny(p *any) Interface

func (*Int32) Scan

func (s *Int32) Scan(src any) (err error)

type Int64

type Int64 struct {
	Value    *int64
	ValueAny *any
}

func (*Int64) Ptr

func (s *Int64) Ptr(p any) Interface

func (*Int64) PtrAny

func (s *Int64) PtrAny(p *any) Interface

func (*Int64) Scan

func (s *Int64) Scan(src any) (err error)

type Interface

type Interface interface {
	Scan(src any) error
	Ptr(p any) Interface
	PtrAny(p *any) Interface
}

type Json

type Json struct {
	Value    any
	ValueAny *any
}

func (*Json) Ptr

func (j *Json) Ptr(p any) Interface

func (*Json) PtrAny

func (j *Json) PtrAny(p *any) Interface

func (*Json) Scan

func (j *Json) Scan(src any) error

type Scanner

type Scanner struct {
	Value sql.Scanner
}

func (*Scanner) Ptr

func (s *Scanner) Ptr(p any) Interface

func (*Scanner) PtrAny

func (s *Scanner) PtrAny(p *any) Interface

func (*Scanner) Scan

func (s *Scanner) Scan(src any) (err error)

type ScannerAny

type ScannerAny[T any] struct {
	Value    sql.Scanner
	ValueAny *any
}

func (*ScannerAny[T]) Ptr

func (s *ScannerAny[T]) Ptr(p any) Interface

func (*ScannerAny[T]) PtrAny

func (s *ScannerAny[T]) PtrAny(p *any) Interface

func (*ScannerAny[T]) Scan

func (s *ScannerAny[T]) Scan(src any) (err error)

type String

type String struct {
	Value    *string
	ValueAny *any
}

func (*String) Ptr

func (s *String) Ptr(p any) Interface

func (*String) PtrAny

func (s *String) PtrAny(p *any) Interface

func (*String) Scan

func (s *String) Scan(src any) error

type Time

type Time struct {
	Value    *time.Time
	ValueAny *any
}

func (*Time) Ptr

func (s *Time) Ptr(p any) Interface

func (*Time) PtrAny

func (s *Time) PtrAny(p *any) Interface

func (*Time) Scan

func (s *Time) Scan(src any) (err error)

type Uint

type Uint struct {
	Value    *uint
	ValueAny *any
}

func (*Uint) Ptr

func (s *Uint) Ptr(p any) Interface

func (*Uint) PtrAny

func (s *Uint) PtrAny(p *any) Interface

func (*Uint) Scan

func (s *Uint) Scan(src any) (err error)

type Uint16

type Uint16 struct {
	Value    *uint16
	ValueAny *any
}

func (*Uint16) Ptr

func (s *Uint16) Ptr(p any) Interface

func (*Uint16) PtrAny

func (s *Uint16) PtrAny(p *any) Interface

func (*Uint16) Scan

func (s *Uint16) Scan(src any) (err error)

type Uint32

type Uint32 struct {
	Value    *uint32
	ValueAny *any
}

func (*Uint32) Ptr

func (s *Uint32) Ptr(p any) Interface

func (*Uint32) PtrAny

func (s *Uint32) PtrAny(p *any) Interface

func (*Uint32) Scan

func (s *Uint32) Scan(src any) (err error)

type Uint64

type Uint64 struct {
	Value    *uint64
	ValueAny *any
}

func (*Uint64) Ptr

func (s *Uint64) Ptr(p any) Interface

func (*Uint64) PtrAny

func (s *Uint64) PtrAny(p *any) Interface

func (*Uint64) Scan

func (s *Uint64) Scan(src any) (err error)

Jump to

Keyboard shortcuts

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