Versions in this module Expand all Collapse all v3 v3.0.0 Nov 9, 2023 Changes in this version + var CST = time.FixedZone("CST", 8 * 60 * 60) + var DatetimeZero = Datetime(time.Time{}) + var TimestampUnixZero = Timestamp(time.Unix(0, 0)) + var TimestampZero = Timestamp(time.Time{}) + var UTC = time.UTC + func JSONScan(dbValue interface{}, value interface{}) error + func JSONValue(value interface{}) (driver.Value, error) + type Bool int + const BOOL_FALSE + const BOOL_TRUE + const BOOL_UNKNOWN + func (Bool) OpenAPISchemaType() []string + func (v *Bool) UnmarshalJSON(data []byte) (err error) + func (v *Bool) UnmarshalText(data []byte) (err error) + func (v Bool) MarshalJSON() ([]byte, error) + func (v Bool) MarshalText() ([]byte, error) + type Datetime time.Time + func ParseDatetimeFromString(s string) (dt Datetime, err error) + func ParseDatetimeFromStringWithFormatterInCST(s, formatter string) (dt Datetime, err error) + func (Datetime) DataType(e string) string + func (dt *Datetime) Scan(value interface{}) error + func (dt *Datetime) UnmarshalText(data []byte) (err error) + 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) String() string + func (dt Datetime) Unix() int64 + func (dt Datetime) Value() (driver.Value, error) + type MySQLDatetime = Datetime + type MySQLTimestamp = Timestamp + type Timestamp time.Time + func ParseTimestampFromString(s string) (dt Timestamp, err error) + func ParseTimestampFromStringWithLayout(input, layout string) (Timestamp, error) + func (Timestamp) DataType(engine string) string + func (dt *Timestamp) Scan(value interface{}) error + func (dt *Timestamp) UnmarshalText(data []byte) (err error) + 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) String() string + func (dt Timestamp) Unix() int64 + func (dt Timestamp) Value() (driver.Value, error) Other modules containing this package github.com/kunlun-qilian/sqlx/v2