Exemplo n.º 1
0
def reset_db(cursor):
    #cursor.execute("DELETE FROM directory.datasource")
    #cursor.execute("DELETE FROM directory.entitytype")
    trend_schema.reset(cursor)

    cursor.execute("DELETE FROM transform.function_set")
    cursor.execute("DELETE FROM transform.function_mapping")
    cursor.execute("DELETE FROM transform.state")

    cursor.execute("DELETE FROM directory.entitytype CASCADE")
Exemplo n.º 2
0
 def reset_schema(self, cursor):
     schema.reset(cursor)