Skip to content

Prisma Postgres Added #11974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

aidankmcalister
Copy link

Description (required)

Added Prisma Postgres to the backend services section

This PR adds docs for connecting Astro projects to a Prisma Postgres DB, offering two approaches:

  1. Prisma ORM: Complete setup with type-safe queries, migrations, and Prisma Accelerate for global performance
  2. Direct TCP Connection: Lightweight approach using raw SQL queries without ORM overhead

The guide includes:

  • Step-by-step installation and configuration
  • Environment variable setup
  • Code examples for both approaches
  • Prerequisites and resource links

This documentation follows the patterns from other backend service guides and provides developers with clear instructions for using Prisma Postgres with Astro.

Copy link

netlify bot commented Jul 2, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 79a38d2
🔍 Latest deploy log https://app.netlify.com/projects/astro-docs-2/deploys/686592094e0b440008bce160
😎 Deploy Preview https://deploy-preview-11974--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@astrobot-houston
Copy link
Contributor

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
en/guides/backend/prisma-postgres.mdx Localization added, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@astrobot-houston
Copy link
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants