Skip to content

Commit

Permalink
Improve pg example
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed Aug 6, 2023
1 parent 8aeafe8 commit f53d5f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ const umzug = new Umzug({
// cwd: process.cwd(),
}),
// Other contexts can be created and plugins can support multiple contexts
context: createUmzeptionPgContext(new pg.Pool({ connectionString: '...' })),
context: createUmzeptionPgContext(new pg.Pool({
allowExitOnIdle: true,
connectionString: '...',
})),
// Any type of storage can be used, but UmzeptionStorage ones re-use the context's connection + ensures a match with the context types
storage: new UmzeptionPgStorage(),
logger: console,
Expand Down

0 comments on commit f53d5f0

Please sign in to comment.