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

Method cost_estimation

bmtools/tools/database/utils/database.py:200–204  ·  view source on GitHub ↗
(self, sql)

Source from the content-addressed store, hash-verified

198
199 # query cost estimated by the optimizer
200 def cost_estimation(self, sql):
201 if self.args.dbtype == 'mysql':
202 return self.mysql_cost_estimation(sql)
203 else:
204 return self.pgsql_cost_estimation(sql)
205
206 def compute_table_schema(self):
207 """

Callers

nothing calls this directly

Calls 2

mysql_cost_estimationMethod · 0.95
pgsql_cost_estimationMethod · 0.95

Tested by

no test coverage detected