Skip to content

Commit

Permalink
Support execute timeout (#344)
Browse files Browse the repository at this point in the history
* support execute timeout

* update
  • Loading branch information
HarrisChu committed Jun 24, 2024
1 parent 4f1a4e6 commit c23dd4f
Show file tree
Hide file tree
Showing 5 changed files with 1,086 additions and 68 deletions.
4 changes: 4 additions & 0 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ func (cn *connection) executeWithParameter(sessionID int64, stmt string,
return resp, nil
}

func (cn *connection) executeWithParameterTimeout(sessionID int64, stmt string, params map[string]*nebula.Value, timeoutMs int64) (*graph.ExecutionResponse, error) {
return cn.graph.ExecuteWithTimeout(sessionID, []byte(stmt), params, timeoutMs)
}

func (cn *connection) executeJson(sessionID int64, stmt string) ([]byte, error) {
return cn.ExecuteJsonWithParameter(sessionID, stmt, map[string]*nebula.Value{})
}
Expand Down
Loading

0 comments on commit c23dd4f

Please sign in to comment.