typesdb

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullableFloat

func NullableFloat(f float64) sql.NullFloat64

NullableFloat для нулевых значений int

func NullableInt

func NullableInt(i int64) sql.NullInt64

NullableInt export

func NullableString

func NullableString(s string) sql.NullString

NullableString export

Types

type BitBool

type BitBool bool

BitBool

func (BitBool) GormDataType

func (b BitBool) GormDataType() string

func (BitBool) GormValue

func (b BitBool) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*BitBool) Scan

func (b *BitBool) Scan(src interface{}) error

func (BitBool) Value

func (b BitBool) Value() (driver.Value, error)

type Datetime

type Datetime struct {
	time.Time
}

func (*Datetime) UnmarshalJSON

func (m *Datetime) UnmarshalJSON(data []byte) error

type JSONB

type JSONB map[string]interface{}

jsonb from Postgres

func (JSONB) GormDataType

func (JSONB) GormDataType() string

func (JSONB) GormValue

func (j JSONB) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*JSONB) Scan

func (j *JSONB) Scan(v interface{}) error

func (*JSONB) UnmarshalJSON

func (j *JSONB) UnmarshalJSON(b []byte) error

type StringNullable

type StringNullable string

StringNullable

func (StringNullable) GormValue

func (sn StringNullable) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*StringNullable) Scan

func (sn *StringNullable) Scan(v interface{}) error

func (StringNullable) Value

func (sn StringNullable) Value() (driver.Value, error)

type UUID1

type UUID1 string

UUID1

func (UUID1) GormDataType

func (uuid UUID1) GormDataType() string

func (UUID1) GormValue

func (uuid UUID1) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*UUID1) Scan

func (uuid *UUID1) Scan(v interface{}) error

type Uint64Nullable

type Uint64Nullable uint64

Uint64Nullable

func (Uint64Nullable) GormDataType

func (id Uint64Nullable) GormDataType() string

func (Uint64Nullable) GormValue

func (id Uint64Nullable) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*Uint64Nullable) Scan

func (id *Uint64Nullable) Scan(v interface{}) error

func (Uint64Nullable) Value

func (id Uint64Nullable) Value() (driver.Value, error)

type UintNullable

type UintNullable uint

Uint64Nullable

func (UintNullable) GormDataType

func (id UintNullable) GormDataType() string

func (UintNullable) GormValue

func (id UintNullable) GormValue(ctx context.Context, db *gorm.DB) clause.Expr

func (*UintNullable) Scan

func (id *UintNullable) Scan(v interface{}) error

func (UintNullable) Value

func (id UintNullable) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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