Documentation ¶
Index ¶
- func ToJsStu(vm *goja.Runtime, stu any) goja.Value
- type CreateOneRet
- type ErrRet
- type SqlFunc
- func (s *SqlFunc) CreateOne() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Exec() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Get() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) GetEnv() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) GetHashField(field string) string
- func (s *SqlFunc) GetHashFieldWithDay(field string, day int) string
- func (s *SqlFunc) GetHashKey(key string) string
- func (s *SqlFunc) GetStringKey(key string) string
- func (s *SqlFunc) HGetAll() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Hdel() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Hexists() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Hget() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Hset() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) LogError() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) LogInfo() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Register() error
- func (s *SqlFunc) Select() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) Set() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) TaskSendSqlJs() func(in goja.FunctionCall) goja.Value
- func (s *SqlFunc) ToRealHashField(field string) string
- type TaskSend
- type TaskSendFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateOneRet ¶
type SqlFunc ¶
type SqlFunc struct { SvcCtx *svc.ServiceContext Task *domain.TaskInfo ExecuteLog []*domain.ScriptLog TaskSend TaskSendFunc SelectNum int64 //查询的数量 ExecNum int64 //执行的数量 logx.Logger // contains filtered or unexported fields }
func NewSqlFunc ¶
func NewSqlFunc(ctx context.Context, svcCtx *svc.ServiceContext, task *domain.TaskInfo, TaskSend TaskSendFunc, vm *goja.Runtime) *SqlFunc
func (*SqlFunc) GetHashField ¶
func (*SqlFunc) GetHashFieldWithDay ¶
func (*SqlFunc) GetHashKey ¶
func (*SqlFunc) GetStringKey ¶
func (*SqlFunc) TaskSendSqlJs ¶
func (s *SqlFunc) TaskSendSqlJs() func(in goja.FunctionCall) goja.Value
func (*SqlFunc) ToRealHashField ¶
type TaskSendFunc ¶
type TaskSendFunc func(context.Context, *timedjob.TaskSendReq) error
Click to show internal directories.
Click to hide internal directories.