postgres
postgres copied to clipboard
Deno v2.0 Deno.errors.PermissionDenied -> Deno.errors.NotCapable
The new version of Deno introduces some changes to the permission system, see.
Notably the introduction of Deno.errors.NotCapable breaks createParams here.
try {
pgEnv = getPgEnv();
} catch (e) {
if (e instanceof Deno.errors.PermissionDenied) {
has_env_access = false;
} else {
throw e;
}
}
I guess for backwards compatibility we should keep both?
- deno-postgres version: 0.19.3
- deno version: 2.0-rc