db

package
v0.0.0-...-38dac57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableSchedulerRecordName = "scheduler_record"

	FieldSchedulerRecordId              = "id"
	FieldSchedulerRecordAlias           = "alias"
	FieldSchedulerRecordName            = "name"
	FieldSchedulerRecordDate            = "date"
	FieldSchedulerRecordServiceName     = "service_name"
	FieldSchedulerRecordFuncName        = "func_name"
	FieldSchedulerRecordStatus          = "status"
	FieldSchedulerRecordCode            = "code"
	FieldSchedulerRecordErrorMsg        = "error_msg"
	FieldSchedulerRecordParentId        = "parent_id"
	FieldSchedulerRecordCreateTimestamp = "create_timestamp"
	FieldSchedulerRecordModifyTimestamp = "modify_timestamp"
)

Variables

This section is empty.

Functions

func SchedulerRecordWithInsertOne

func SchedulerRecordWithInsertOne(ctx context.Context, exec mysql.Exec, record *SchedulerRecord) (int64, error)

func SchedulerRecordWithUpdateStatus

func SchedulerRecordWithUpdateStatus(ctx context.Context, exec mysql.Exec, status, code, errorMsg string, id string) (int64, error)

Types

type SchedulerRecord

type SchedulerRecord struct {
	Id              string         `json:"id"`
	Alias           string         `json:"alias"`
	Name            string         `json:"name"`
	Date            time.Time      `json:"date"`
	ServiceName     string         `json:"service_name"`
	FuncName        string         `json:"func_name"`
	Status          string         `json:"status"`
	Code            sql.NullString `json:"code"`
	ErrorMsg        sql.NullString `json:"error_msg"`
	ParentId        sql.NullString `json:"parent_id"`
	CreateTimestamp time.Time      `json:"create_timestamp"`
	ModifyTimestamp sql.NullTime   `json:"modify_timestamp"`
}

Scheduler Record

func SchedulerRecordWithSelectOneByDateName

func SchedulerRecordWithSelectOneByDateName(ctx context.Context, exec mysql.Exec, name, date string) (*SchedulerRecord, error)

func SchedulerRecordWithSelectOneById

func SchedulerRecordWithSelectOneById(ctx context.Context, exec mysql.Exec, id string) (*SchedulerRecord, error)

func (*SchedulerRecord) String

func (s *SchedulerRecord) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL