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

Function clearUp

python/seldon/shell/attr_schema_utils.py:151–167  ·  view source on GitHub ↗
(db)

Source from the content-addressed store, hash-verified

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

Callers 1

create_schemaFunction · 0.70

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected