Documentation ¶
Index ¶
- Variables
- func JSONScan(dbValue interface{}, value interface{}) error
- func JSONValue(value interface{}) (driver.Value, error)
- type Bool
- type MySQLDatetime
- func (MySQLDatetime) DataType(e string) string
- func (dt MySQLDatetime) Format(layout string) string
- func (dt MySQLDatetime) In(loc *time.Location) MySQLDatetime
- func (dt MySQLDatetime) IsZero() bool
- func (dt MySQLDatetime) MarshalText() ([]byte, error)
- func (dt *MySQLDatetime) Scan(value interface{}) error
- func (dt MySQLDatetime) String() string
- func (dt MySQLDatetime) Unix() int64
- func (dt *MySQLDatetime) UnmarshalText(data []byte) (err error)
- func (dt MySQLDatetime) Value() (driver.Value, error)
- type MySQLTimestamp
- func (dt *MySQLTimestamp) DataType(engine string) string
- func (dt MySQLTimestamp) Format(layout string) string
- func (dt MySQLTimestamp) In(loc *time.Location) MySQLTimestamp
- func (dt MySQLTimestamp) IsZero() bool
- func (dt MySQLTimestamp) MarshalText() ([]byte, error)
- func (dt *MySQLTimestamp) Scan(value interface{}) error
- func (dt MySQLTimestamp) String() string
- func (dt MySQLTimestamp) Unix() int64
- func (dt *MySQLTimestamp) UnmarshalText(data []byte) (err error)
- func (dt MySQLTimestamp) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UTC = time.UTC CST = time.FixedZone("CST", 8*60*60) MySQLTimestampZero = MySQLTimestamp(time.Time{}) MySQLTimestampUnixZero = MySQLTimestamp(time.Unix(0, 0)) )
View Source
var (
MySQLDatetimeZero = MySQLDatetime(time.Time{})
)
Functions ¶
Types ¶
type Bool ¶
type Bool int
openapi:type boolean
func (Bool) MarshalJSON ¶
func (Bool) MarshalText ¶
func (*Bool) UnmarshalJSON ¶
func (*Bool) UnmarshalText ¶
type MySQLDatetime ¶
openapi:strfmt date-time
func ParseMySQLDatetimeFromString ¶
func ParseMySQLDatetimeFromString(s string) (dt MySQLDatetime, err error)
func ParseMySQLDatetimeFromStringWithFormatterInCST ¶
func ParseMySQLDatetimeFromStringWithFormatterInCST(s, formatter string) (dt MySQLDatetime, err error)
func (MySQLDatetime) DataType ¶
func (MySQLDatetime) DataType(e string) string
func (MySQLDatetime) Format ¶
func (dt MySQLDatetime) Format(layout string) string
func (MySQLDatetime) In ¶
func (dt MySQLDatetime) In(loc *time.Location) MySQLDatetime
func (MySQLDatetime) IsZero ¶
func (dt MySQLDatetime) IsZero() bool
func (MySQLDatetime) MarshalText ¶
func (dt MySQLDatetime) MarshalText() ([]byte, error)
func (*MySQLDatetime) Scan ¶
func (dt *MySQLDatetime) Scan(value interface{}) error
func (MySQLDatetime) String ¶
func (dt MySQLDatetime) String() string
func (MySQLDatetime) Unix ¶
func (dt MySQLDatetime) Unix() int64
func (*MySQLDatetime) UnmarshalText ¶
func (dt *MySQLDatetime) UnmarshalText(data []byte) (err error)
type MySQLTimestamp ¶
openapi:strfmt date-time
func ParseMySQLTimestampFromString ¶
func ParseMySQLTimestampFromString(s string) (dt MySQLTimestamp, err error)
func ParseMySQLTimestampFromStringWithLayout ¶
func ParseMySQLTimestampFromStringWithLayout(input, layout string) (MySQLTimestamp, error)
func (*MySQLTimestamp) DataType ¶
func (dt *MySQLTimestamp) DataType(engine string) string
func (MySQLTimestamp) Format ¶
func (dt MySQLTimestamp) Format(layout string) string
func (MySQLTimestamp) In ¶
func (dt MySQLTimestamp) In(loc *time.Location) MySQLTimestamp
func (MySQLTimestamp) IsZero ¶
func (dt MySQLTimestamp) IsZero() bool
func (MySQLTimestamp) MarshalText ¶
func (dt MySQLTimestamp) MarshalText() ([]byte, error)
func (*MySQLTimestamp) Scan ¶
func (dt *MySQLTimestamp) Scan(value interface{}) error
func (MySQLTimestamp) String ¶
func (dt MySQLTimestamp) String() string
func (MySQLTimestamp) Unix ¶
func (dt MySQLTimestamp) Unix() int64
func (*MySQLTimestamp) UnmarshalText ¶
func (dt *MySQLTimestamp) UnmarshalText(data []byte) (err error)
Click to show internal directories.
Click to hide internal directories.