MCPcopy Create free account
hub / github.com/BaseXdb/basex / execute

Method execute

basex-api/src/main/python/BaseXClient/BaseXClient.py:137–147  ·  view source on GitHub ↗

Execute a command and return the result

(self, com)

Source from the content-addressed store, hash-verified

135 raise IOError('Access Denied.')
136
137 def execute(self, com):
138 """Execute a command and return the result"""
139 # send command to server
140 self.send(com)
141
142 # receive result
143 result = self.receive()
144 self.__info = self.recv_c_str()
145 if not self.server_response_success():
146 raise IOError(self.__info)
147 return result
148
149 def query(self, querytxt):
150 """Creates a new query instance (having id returned from server)."""

Callers

nothing calls this directly

Calls 4

sendMethod · 0.95
receiveMethod · 0.95
recv_c_strMethod · 0.95

Tested by

no test coverage detected