MCPcopy Create free account
hub / github.com/TalkingData/owl / GetActions

Method GetActions

controller/mysql.go:109–116  ·  view source on GitHub ↗
(strategy_id, action_type int)

Source from the content-addressed store, hash-verified

107}
108
109func (this *db) GetActions(strategy_id, action_type int) []*types.Action {
110 actions := []*types.Action{}
111 if err := this.Select(&actions, "SELECT * FROM `action` WHERE `strategy_id` = ? AND `type` = ?", strategy_id, action_type); err != nil {
112 lg.Error(err.Error())
113 return nil
114 }
115 return actions
116}
117
118func (this *db) GetAllActions(strategy_id int) []*types.Action {
119 actions := []*types.Action{}

Callers 1

doRestoreActionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected