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

Function remove_table

bmtools/tools/database/utils/db_utils.py:10–11  ·  view source on GitHub ↗
(sql)

Source from the content-addressed store, hash-verified

8 return re.sub(r'(create|CREATE)\s+(index|INDEX).+?\(.+?\)\s*;','',sql, flags=re.DOTALL)
9
10def remove_table(sql):
11 return re.sub(r'(table|TABLE).+?\(.+?\)\s*;','',sql, flags=re.DOTALL)
12
13def clean_sql(sql):
14 tmp = []

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected