Skip to content

Commit e3d84b0

Browse files
committed
fix: update docker test snippets
1 parent 23bea44 commit e3d84b0

File tree

33 files changed

+132
-33
lines changed

33 files changed

+132
-33
lines changed

docker-arm64/almalinux-8-arm64-openssl-1.1.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/almalinux-latest-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/alpine-3.17-arm64-openssl-3.0.x-with-libc/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/alpine-3.17-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/alpine-3.21-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/alpine-latest-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/amazonlinux-2022-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/debian-latest-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-arm64/ubuntu-latest-arm64-openssl-3.0.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

docker-unsupported/alpine-3.16-amd64-openssl-1.1.x/server.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@ const app = express()
55
const port = 3000
66

77
const { PrismaClient } = require('@prisma/client')
8+
const { PrismaPg } = require('@prisma/adapter-pg')
89

9-
const client = new PrismaClient()
10+
const connectionString = process.env.DATABASE_URL
11+
const adapter = new PrismaPg({ connectionString })
12+
const client = new PrismaClient({ adapter })
1013

1114
app.get('/', async (req, res) => {
1215
const data = await client.user.findMany()

0 commit comments

Comments
 (0)