(db)
| 149 | return types |
| 150 | |
| 151 | def 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 | |
| 169 | def create_schema(client_name, dbSettings, scheme_file_path, clean=False): |
| 170 |
no test coverage detected