/// Removes all networks and blocks from the database
Removes all networks and blocks from the database
Removes all networks and blocks from the database
pub fn remove() {
        use db_schema::ethereum_blocks as b;
        use db_schema::ethereum_networks as n;
        let url = super::postgres_test_url();
        let conn = PgConnection::establish(url.as_str()).expect("Failed to connect to Postgres");
        diesel::delete(b::table)
            .execute(&conn)
            .expect("Failed to delete ethereum_blocks");
        diesel::delete(n::table)
            .execute(&conn)
            .expect("Failed to delete ethereum_networks");
    }
pub fn remove ( ) { use db_schema :: ethereum_blocks as b ; use db_schema :: ethereum_networks as n ; let url = super :: postgres_test_url ( ) ; let conn = PgConnection :: establish ( url . as_str ( ) ) . expect ( " " ) ; diesel :: delete ( b :: table ) . execute ( & conn ) . expect ( " " ) ; diesel :: delete ( n :: table ) . execute ( & conn ) . expect ( " " ) ; }
Removes all networks and blocks from the database
Removes all networks and blocks from the database