Documentation ¶
Overview ¶
Package datatypes GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE
Index ¶
- Variables
- func JSONScan(dbValue any, value any) error
- func JSONValue(value any) (driver.Value, error)
- func Scan(b []byte, v any) error
- func Value(v any) (driver.Value, error)
- type Bool
- type Datetime
- func (Datetime) DataType(e string) string
- func (dt Datetime) Format(layout string) string
- func (dt Datetime) In(loc *time.Location) Datetime
- func (dt Datetime) IsZero() bool
- func (dt Datetime) MarshalText() ([]byte, error)
- func (dt *Datetime) Scan(value interface{}) error
- func (dt Datetime) String() string
- func (dt Datetime) Unix() int64
- func (dt *Datetime) UnmarshalText(data []byte) (err error)
- func (dt Datetime) Value() (driver.Value, error)
- type SFID
- type SFIDs
- type Timestamp
- func (Timestamp) DataType(engine string) string
- func (dt Timestamp) Format(layout string) string
- func (dt Timestamp) In(loc *time.Location) Timestamp
- func (dt Timestamp) IsZero() bool
- func (dt Timestamp) MarshalText() ([]byte, error)
- func (dt *Timestamp) Scan(value interface{}) error
- func (dt Timestamp) String() string
- func (dt Timestamp) Unix() int64
- func (dt *Timestamp) UnmarshalText(data []byte) (err error)
- func (dt Timestamp) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UTC = time.UTC CST = time.FixedZone("CST", 8*60*60) TimestampZero = Timestamp(time.Time{}) TimestampUnixZero = Timestamp(time.Unix(0, 0)) )
View Source
var (
DatetimeZero = Datetime(time.Time{})
)
Functions ¶
Types ¶
type Bool ¶
type Bool int
func (Bool) MarshalJSON ¶
func (Bool) MarshalText ¶
func (Bool) OpenAPISchemaType ¶
func (*Bool) UnmarshalJSON ¶
func (*Bool) UnmarshalText ¶
type Datetime ¶
openapi:strfmt date-time
func ParseDatetimeFromString ¶
func (Datetime) MarshalText ¶
func (*Datetime) UnmarshalText ¶
type SFID ¶
type SFID uint64
openapi:strfmt snowflake-id
func (SFID) MarshalText ¶
func (*SFID) UnmarshalText ¶
type Timestamp ¶
openapi:strfmt date-time
func (Timestamp) MarshalText ¶
func (*Timestamp) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.