MCPcopy Create free account
hub / github.com/OpenBMB/BMTools / simulate_index

Method simulate_index

bmtools/tools/database/utils/database.py:255–262  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

253 return 0
254
255 def simulate_index(self, index):
256 #table_name = index.table()
257 statement = (
258 "SELECT * FROM hypopg_create_index(E'{}');".format(index)
259 )
260 result = self.execute_sql(statement)
261
262 return result
263
264 def drop_simulated_index(self, oid):
265 statement = f"select * from hypopg_drop_index({oid})"

Callers

nothing calls this directly

Calls 1

execute_sqlMethod · 0.95

Tested by

no test coverage detected