Example #1
0
def delete_test_tables():
    import psycopg2
    with psycopg2.connect(PG_CONN_STR) as conn:
        with conn.cursor() as cur:
            cur.execute("drop table if exists " +
                        SimpleStorage.get_table_name())
            cur.execute("drop table if exists " + IndexedData.get_table_name())
def delete_test_colls():
    gludb.backends.mongodb.delete_collection(
        'gludb_testing',
        SimpleStorage.get_table_name()
    )
    gludb.backends.mongodb.delete_collection(
        'gludb_testing',
        IndexedData.get_table_name()
    )
Example #3
0
 def tearDown(self):
     # Undo any database setup
     gludb.backends.dynamodb.delete_table(
         SimpleStorage.get_table_name()
     )
     gludb.config.clear_database_config()
Example #4
0
def delete_test_colls():
    gludb.backends.mongodb.delete_collection('gludb_testing',
                                             SimpleStorage.get_table_name())
    gludb.backends.mongodb.delete_collection('gludb_testing',
                                             IndexedData.get_table_name())
Example #5
0
def delete_test_tables():
    import psycopg2
    with psycopg2.connect(PG_CONN_STR) as conn:
        with conn.cursor() as cur:
            cur.execute("drop table if exists " + SimpleStorage.get_table_name())
            cur.execute("drop table if exists " + IndexedData.get_table_name())