MCPcopy Create free account
hub / github.com/SeldonIO/seldon-server / clearUp

Function clearUp

python/seldon/cli/attr_schema_utils.py:154–170  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

152 return types
153
154def clearUp(db):
155 with db:
156 cur = db.cursor()
157 cur.execute("TRUNCATE TABLE ITEMS")
158 cur.execute("TRUNCATE TABLE DIMENSION")
159 cur.execute("TRUNCATE TABLE ITEM_ATTR_ENUM")
160 cur.execute("TRUNCATE TABLE ITEM_ATTR")
161 cur.execute("TRUNCATE TABLE ITEM_TYPE")
162 cur.execute('truncate table users')
163 cur.execute('truncate table items')
164 cur.execute('truncate table item_map_varchar')
165 cur.execute('truncate table item_map_double')
166 cur.execute('truncate table item_map_datetime')
167 cur.execute('truncate table item_map_int')
168 cur.execute('truncate table item_map_boolean')
169 cur.execute('truncate table item_map_enum')
170 cur.execute('truncate table item_map_text')
171
172def create_schema(client_name, dbSettings, scheme_file_path, clean=False):
173

Callers 1

create_schemaFunction · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected