Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
variable dropTablesQuery
import { dropTablesQuery } from "https://deno.land/x/denogres@v4.0.1/Test/model_integration_tests/seed_testdb.ts";

type

` DO $$ DECLARE r RECORD; BEGIN FOR r IN (SELECT tablename FROM pg_tables WHERE schemaname = current_schema()) LOOP EXECUTE 'DROP TABLE ' || quote_ident(r.tablename) || ' CASCADE'; END LOOP; END $$; `