##### Firebase SQL Connect

# Build realtime, secure apps on PostgreSQL

## An AI-native database solution for securely connecting web and mobile apps to a Cloud SQL for PostgreSQL database. Query, write and sync relational data in realtime.

[Get started](https://console.firebase.google.com/) [View docs](https://firebase.google.com/docs/sql-connect.md.txt)

### Leverage the power of PostgreSQL

SQL Connect makes it easy to securely connect apps to a managed [Cloud SQL for PostgreSQL](https://cloud.google.com/sql/postgresql) database. You get the full portability and power of Postgres, including extensions, combined with the scalability of Google Cloud.
![Leverage the power of PostgreSQL](https://firebase.google.com/static/images/products/sql-connect/Firebase_DataConnect_SQLComestoFirebase_FinalArtwork.png) ![Relational data, delivered in realtime](https://firebase.google.com/static/images/products/sql-connect/relational-data.png)

### Relational data, delivered in realtime

With realtime sync, you can turn complex relational queries into reactive, in-app features, like newsfeeds or leaderboards. Optimize performance and cost by only reacting on important data changes.
[Learn more](https://firebase.google.com/docs/sql-connect/realtime.md.txt)

### Optimized for your agentic workflow

SQL Connect is built for both developers and AI agents. Our LLM-friendly APIs let you seamlessly design, build, and query your database using natural language, whether you use our built-in Gemini tools or bring your favorite third-party agent via our [MCP server](https://firebase.google.com/docs/ai-assistance/mcp-server.md.txt) or [Agent Skills for Firebase.](https://firebase.google.com/docs/ai-assistance/agent-skills.md.txt)
[Get started with AI](https://firebase.google.com/docs/sql-connect/ai-assistance.md.txt) ![Optimized for your agentic workflow](https://firebase.google.com/static/images/products/sql-connect/ai-enabled.png)

### Everything you need to build modern app
experiences on PostgreSQL

![Built-in Authentication](https://firebase.google.com/static/images/products/sql-connect/built-in-auth.png) Built-in Authentication
Integrated client and server-side authorization, featuring granular controls and performance at scale.
![Precise realtime querying](https://firebase.google.com/static/images/products/sql-connect/realtime-querying.png) Precise realtime querying
Any query can be made realtime--and efficient: only listen for data changes that matter for your users.
![Full-text and vector search](https://firebase.google.com/static/images/products/sql-connect/vector-search.png) Full-text and vector search
Built-in hybrid search allows for both keyword precision and semantic depth.
![Integrated type safety](https://firebase.google.com/static/images/products/sql-connect/type-safety.png) Integrated type safety
Auto-generated SDKs for each platform make connecting apps and maintaining type safety effortless.
![Full console experience](https://firebase.google.com/static/images/products/sql-connect/console-experience.png) Full console experience
View, manage, and optimize app performance using a complete Gemini-powered console experience.
![Local tooling](https://firebase.google.com/static/images/products/sql-connect/local-tooling.png) Local tooling
Iterate with confidence using the Firebase CLI, local emulators, and a Visual Studio Code extension with built-in Gemini support.
![Queries supercharge your development](https://firebase.google.com/static/images/products/sql-connect/Firebase_DataConnect_QueryDefined_FinalArtwork_2x.png) ![Queries supercharge your development](https://firebase.google.com/static/images/products/sql-connect/Firebase_DataConnect_QueryDefined_FinalArtwork.png)

### Queries supercharge your development

SQL Connect starts with a simple premise: you describe your data and your queries, and from that we can generate your Postgres database schema, secure API endpoints, and typesafe SDKs to build your app. It's like a "self-driving app server" made-to-order for your specific application.
[Learn more](https://firebase.google.com/docs/sql-connect/schemas-queries-mutations)

### Documentation

Learn more about SQL Connect through our documentation.
[View docs](https://firebase.google.com/docs/sql-connect.md.txt)

### Pricing

Understand your charges and estimate your invoice on the pricing page.
[View pricing](https://firebase.google.com/pricing.md.txt) Try Firebase today


Integrating it into your app is easy.
[Get started](https://console.firebase.google.com/)

#### All Firebase products

##### Build

- [App Check](https://firebase.google.com/products/app-check.md.txt)
- [App Hosting](https://firebase.google.com/products/app-hosting.md.txt)
- [Authentication](https://firebase.google.com/products/auth.md.txt)
- [Cloud Functions](https://firebase.google.com/products/functions.md.txt)
- [Cloud Storage](https://firebase.google.com/products/storage.md.txt)
- [SQL Connect](https://firebase.google.com/products/sql-connect.md.txt)
- [Extensions](https://firebase.google.com/products/extensions.md.txt)
- [Firestore](https://firebase.google.com/products/firestore.md.txt)
- [Hosting](https://firebase.google.com/products/hosting.md.txt)
- [Phone Number Verification](https://firebase.google.com/products/phone-number-verification.md.txt)
- [Realtime Database](https://firebase.google.com/products/realtime-database.md.txt)
- [Firebase AI Logic](https://firebase.google.com/products/firebase-ai-logic.md.txt)

[Generative AI](https://firebase.google.com/products/generative-ai.md.txt)

##### Run

- [A/B Testing](https://firebase.google.com/products/ab-testing.md.txt)
- [App Distribution](https://firebase.google.com/products/app-distribution.md.txt)
- [Cloud Messaging](https://firebase.google.com/products/cloud-messaging.md.txt)
- [Crashlytics](https://firebase.google.com/products/crashlytics.md.txt)
- [Google Analytics](https://firebase.google.com/products/analytics.md.txt)
- [In-App Messaging](https://firebase.google.com/products/in-app-messaging.md.txt)
- [Performance Monitoring](https://firebase.google.com/products/performance.md.txt)
- [Remote Config](https://firebase.google.com/products/remote-config.md.txt)
- [Test Lab](https://firebase.google.com/products/test-lab.md.txt)