MCPcopy
hub / github.com/rqlite/rqlite / QueryMulti

Method QueryMulti

system_test/helpers.go:205–211  ·  view source on GitHub ↗

QueryMulti runs multiple queries against the node.

(stmts []string)

Source from the content-addressed store, hash-verified

203
204// QueryMulti runs multiple queries against the node.
205func (n *Node) QueryMulti(stmts []string) (string, error) {
206 j, err := json.Marshal(stmts)
207 if err != nil {
208 return "", err
209 }
210 return n.postQuery(string(j), "application/json")
211}
212
213// QueryParameterized run a single parameterized query against the node
214func (n *Node) QueryParameterized(stmt []any) (string, error) {

Callers 1

Test_SingleNodeMultiFunction · 0.80

Calls 2

postQueryMethod · 0.95
MarshalMethod · 0.80

Tested by 1

Test_SingleNodeMultiFunction · 0.64