Implement Cloudflare D1 support with Prisma, update scripts, and enhance documentation

This commit is contained in:
2025-06-01 05:22:44 +02:00
parent 0c18e8be57
commit 71c8aff125
11 changed files with 884 additions and 11 deletions

30
pnpm-lock.yaml generated
View File

@ -8,6 +8,9 @@ importers:
.:
dependencies:
'@prisma/adapter-d1':
specifier: ^6.8.2
version: 6.8.2
'@prisma/client':
specifier: ^6.8.2
version: 6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)
@ -220,6 +223,9 @@ packages:
cpu: [x64]
os: [win32]
'@cloudflare/workers-types@4.20250214.0':
resolution: {integrity: sha512-+M8oOFVbyXT5GeJrYLWMUGyPf5wGB4+k59PPqdedtOig7NjZ5r4S79wMdaZ/EV5IV8JPtZBSNjTKpDnNmfxjaQ==}
'@cspotcode/source-map-support@0.8.1':
resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
engines: {node: '>=12'}
@ -779,6 +785,9 @@ packages:
engines: {node: '>=18'}
hasBin: true
'@prisma/adapter-d1@6.8.2':
resolution: {integrity: sha512-YAFT6y0E5WBOY6IeHbT2vORa8h6bpJTEBlGC3by96bcLDSVBA0vdgTkBgg+rFuO4zEN727dWR/IdOaW0/zsHZg==}
'@prisma/client@6.8.2':
resolution: {integrity: sha512-5II+vbyzv4si6Yunwgkj0qT/iY0zyspttoDrL3R4BYgLdp42/d2C8xdi9vqkrYtKt9H32oFIukvyw3Koz5JoDg==}
engines: {node: '>=18.18'}
@ -797,6 +806,9 @@ packages:
'@prisma/debug@6.8.2':
resolution: {integrity: sha512-4muBSSUwJJ9BYth5N8tqts8JtiLT8QI/RSAzEogwEfpbYGFo9mYsInsVo8dqXdPO2+Rm5OG5q0qWDDE3nyUbVg==}
'@prisma/driver-adapter-utils@6.8.2':
resolution: {integrity: sha512-5+CzN/41gBsRmA3ekbVy1TXnSImSPBtMlxWAttVH6tg94bv4zGGRmyk5tUCdT83nl0hG1Sq2oMXR7ml6aqILvw==}
'@prisma/engines-version@6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e':
resolution: {integrity: sha512-Rkik9lMyHpFNGaLpPF3H5q5TQTkm/aE7DsGM5m92FZTvWQsvmi6Va8On3pWvqLHOt5aPUvFb/FeZTmphI4CPiQ==}
@ -2293,6 +2305,10 @@ packages:
keyv@4.5.4:
resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
ky@1.7.5:
resolution: {integrity: sha512-HzhziW6sc5m0pwi5M196+7cEBtbt0lCYi67wNsiwMUmz833wloE0gbzJPWKs1gliFKQb34huItDQX97LyOdPdA==}
engines: {node: '>=18'}
language-subtag-registry@0.3.23:
resolution: {integrity: sha512-0K65Lea881pHotoGEa5gDlMxt3pctLi2RplBb7Ezh4rRdLEOtgi7n4EwK9lamnUCkKBqaeKRVebTq6BAxSkpXQ==}
@ -3353,6 +3369,8 @@ snapshots:
'@cloudflare/workerd-windows-64@1.20250525.0':
optional: true
'@cloudflare/workers-types@4.20250214.0': {}
'@cspotcode/source-map-support@0.8.1':
dependencies:
'@jridgewell/trace-mapping': 0.3.9
@ -3750,6 +3768,12 @@ snapshots:
dependencies:
playwright: 1.52.0
'@prisma/adapter-d1@6.8.2':
dependencies:
'@cloudflare/workers-types': 4.20250214.0
'@prisma/driver-adapter-utils': 6.8.2
ky: 1.7.5
'@prisma/client@6.8.2(prisma@6.8.2(typescript@5.8.3))(typescript@5.8.3)':
optionalDependencies:
prisma: 6.8.2(typescript@5.8.3)
@ -3761,6 +3785,10 @@ snapshots:
'@prisma/debug@6.8.2': {}
'@prisma/driver-adapter-utils@6.8.2':
dependencies:
'@prisma/debug': 6.8.2
'@prisma/engines-version@6.8.0-43.2060c79ba17c6bb9f5823312b6f6b7f4a845738e': {}
'@prisma/engines@6.8.2':
@ -5497,6 +5525,8 @@ snapshots:
dependencies:
json-buffer: 3.0.1
ky@1.7.5: {}
language-subtag-registry@0.3.23: {}
language-tags@1.0.9: