Documentation ¶
Index ¶
- Constants
- func DeleteManyByDate(exec mysql.Exec, date string, timeout time.Duration) (int64, error)
- func InsertMany(exec mysql.Exec, records []*Model, timeout time.Duration) (int64, error)
- func UpdateOneCompleted(exec mysql.Exec, count int64, date string, t string, timeout time.Duration) (int64, error)
- type Model
Constants ¶
View Source
const ( TypeSyncStock = "sync-stock" TypeCalQuoteDay = "cal-quote-day" TypeCalQuoteWeek = "cal-quote-week" TypeCalKDay = "cal-k-day" TypeCalKWeek = "cal-k-week" TypeCalMaDay = "cal-ma-day" TypeCalMaWeek = "cal-ma-week" TypeCalBollDay = "cal-boll-day" TypeCalBollWeek = "cal-boll-week" )
View Source
const ( FieldID = "id" FieldCompleted = "completed" FieldCount = "`count`" FieldType = "`type`" FieldDate = "`date`" FieldPriority = "priority" FieldCreateTimestamp = "create_timestamp" FieldModifyTimestamp = "modify_timestamp" )
Variables ¶
This section is empty.
Functions ¶
func DeleteManyByDate ¶
func InsertMany ¶
Types ¶
type Model ¶
type Model struct { Id int64 `json:"id"` Completed bool `json:"completed"` Count int `json:"count"` Type string `json:"type"` Date string `json:"date"` Priority int64 `json:"priority"` CreateTimestamp time.Time `json:"create_timestamp"` ModifyTimestamp sql.NullTime `json:"modify_timestamp"` }
func SelectManyByDate ¶
Click to show internal directories.
Click to hide internal directories.