Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
timleslie committed Dec 21, 2020
1 parent ba1b985 commit 84f1016
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/adapter-prisma/lib/adapter-prisma.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ class PrismaAdapter extends BaseKeystoneAdapter {
}

async postConnect({ rels }) {
console.log('TRY TO MAKE EXCLUSIVE');
await this.prisma.$queryRaw('pragma locking_mode = EXCLUSIVE;');
console.log('WIN?');
Object.values(this.listAdapters).forEach(listAdapter => {
listAdapter._postConnect({ rels, prisma: this.prisma });
});
Expand Down

0 comments on commit 84f1016

Please sign in to comment.