Documentation
¶
Overview ¶
Deprecated: use sqltype/... instead
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 Endpoint
- func (e Endpoint) Base() string
- func (e Endpoint) Host() string
- func (e *Endpoint) IsTLS() bool
- func (e Endpoint) IsZero() bool
- func (e Endpoint) MarshalText() (text []byte, err error)
- func (v *Endpoint) RuntimeDoc(names ...string) ([]string, bool)
- func (e Endpoint) SecurityString() string
- func (e Endpoint) String() string
- func (e *Endpoint) UnmarshalText(text []byte) 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 Endpoint ¶
type Endpoint struct { Scheme string Hostname string Port uint16 Path string Username string Password string Extra url.Values }
openapi:strfmt endpoint
func ParseEndpoint ¶
func (Endpoint) MarshalText ¶
func (Endpoint) SecurityString ¶
func (*Endpoint) 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.