types

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Nullable

type Nullable[T driver.Value] struct {
	Val *T
	Set bool
}

func (Nullable[T]) GetValue

func (s Nullable[T]) GetValue() driver.Value

func (Nullable[T]) IsSet

func (s Nullable[T]) IsSet() bool

func (Nullable[T]) MarshalJSON

func (s Nullable[T]) MarshalJSON() ([]byte, error)

func (*Nullable[T]) Scan

func (s *Nullable[T]) Scan(src interface{}) error

func (*Nullable[T]) UnmarshalJSON

func (s *Nullable[T]) UnmarshalJSON(data []byte) error

func (Nullable[T]) Value

func (s Nullable[T]) Value() (driver.Value, error)

type NullableValuer

type NullableValuer interface {
	IsSet() bool
	GetValue() driver.Value
}

Jump to

Keyboard shortcuts

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