How to change the database provider to EdgeDB.
ShipThing
uses Neon as the database provider with Prisma as the ORM as well as Clerk for authentication. This guide will provide the steps you need to switch the database provider from Neon to EdgeDB.
ShipThing
project.
@repo/database
@repo/database
package@repo/database
directory, run:
<org_name>
and <instance_name>
with the EdgeDB’s organization and instance you’ve previously created in the EdgeDB Cloud.init
command creates a new subdirectory called dbschema
, which contains everything related to EdgeDB:
prisma/
directory from the @repo/database
:
dbschema
directory.
page
query in app/(authenticated)/page.tsx
:
apps/studio
:
EDGEDB_SECRET_KEY
and EDGEDB_INSTANCE
environment variables in your app’s cloud provider to connect to your EdgeDB Cloud instance.
You can generate a dedicated secret key for your instance with npx edgedb cloud secretkey create
or via the web UI’s “Secret Keys” pane in your instance dashboard.