const db = newDb()
const sql = fs.readFileSync('schema.sql', 'utf-8')
db.public.none(sql)
CREATE TYPE public."State" AS ENUM (
'PENDING',
'DECLINED',
'IN_PROGRESS',
'COMPLETED'
);
pg-mem version
"version": "2.6.12"
(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)
Describe the bug
pg_dump exports the schema with schema objects prefixed with
public.
– which causes the pg-mem parser to error.To Reproduce
pg-mem version
"version": "2.6.12"
(nb: the version in your package.json version is often not precise enough... please run "cat ./node_modules/pg-mem/package.json | grep version" to tell which minor version is actually installed)