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

Method simulate_index

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

Source from the content-addressed store, hash-verified

276 return 0
277
278 def simulate_index(self, index):
279 #table_name = index.table()
280 statement = (
281 "SELECT * FROM hypopg_create_index(E'{}');".format(index)
282 )
283 result = self.execute_sql(statement)
284
285 return result
286
287 def drop_simulated_index(self, oid):
288 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