RetronAIRetronAI

قواعد البيانات والسجلات

إحضار قاعدة البيانات الخاصة بك

قم بتوصيل PostgreSQL أو MySQL أو Supabase وبناء البيانات التي تملكها بالفعل.

في هذه الصفحةاحفظ قواعد البيانات الحاليةإعداد اتصالإضافة البيانات إلى مساحة العمل الخاصة بكقم بتخصيص قاعدة البيانات لمشروعكبناء النظام الحاليفحص وتجربة البياناتإعداد الإنتاجحل المشاكل

Translation pending: This updated guide is shown in English until its translation is refreshed.

Select the database connection for Building & Preview and review its access level before saving.
Select the database connection for Building & Preview and review its access level before saving.

Select the database connection for Building & Preview and review its access level before saving.

Keep your existing database

RetronAI lets you connect a database you already manage. You do not need to recreate your data in a RetronAI-owned database to build an app around it. The connection becomes a reusable workspace resource, and each project chooses which connection to use in Preview and Production.

DatabaseHow to connectSetup guide
PostgreSQLPostgreSQL connection URL for an existing databaseConnect PostgreSQL
MySQLMySQL connection URL selecting the intended databaseConnect MySQL
SupabaseOAuth for new connections; existing manual connections remain supported. Migrations require verified database authorizationConnect Supabase

The provider still hosts your data. Its access rules, availability, backups, and usage remain part of your database setup. Connecting a database does not import or duplicate its records into a new service.

Prepare a connection

Start with a database intended for development or a test copy when you plan to experiment with structure or write behavior. An existing production database can contain relationships and constraints that your new app must preserve.

Have these details ready:

  • The intended host, port, database, and database user, usually supplied together as a connection URL.
  • The permissions that user actually has. RetronAI cannot grant access the database itself denies.
  • The provider’s connection requirements, such as TLS and network access.
  • A clear description of existing tables and the actions the app should perform.

Use a dedicated database user with the access your app needs. Keep the connection URL in the credential form; it can include a password and should not be pasted into a build prompt.

Add the database to your workspace

  1. In workspace settings, open Connectors.
  2. Choose PostgreSQL, MySQL, or Supabase.
  3. Select Add connection and give it a recognizable name, such as “Inventory — Preview”.
  4. Complete the provider’s connection fields and connect. Fix connection errors before assigning it to a project.
PostgreSQL’s real connection form in RetronAI, showing a connection name and Database URL field.
PostgreSQL’s real connection form in RetronAI, showing a connection name and Database URL field.

PostgreSQL’s real connection form in RetronAI, showing a connection name and Database URL field.

For PostgreSQL and MySQL, the connection check tests database connectivity. It does not establish that every table is writable or that a proposed schema change is safe. Supabase also has a guided OAuth setup.

Assign the database to your project

Open Project → Settings → Connectors, choose the environment, and select the workspace connection. Configure Preview and Production deliberately. If both point at the same database, a write in Preview can affect the same data used by your published app.

Choose the appropriate access level in the available database controls:

Intended behaviorAccess to consider
Display existing recordsRead data
Add or update recordsWrite data, with the database user’s corresponding permissions
Create or change tablesManage structure, with review of proposed changes

Start with the narrowest access that supports the feature. Review any request to expand it before continuing. See project connectors for environment and permission details.

Build around an existing schema

Tell RetronAI to inspect and reuse the existing schema before creating new tables. Name the important tables, relationships, and operations in ordinary language. Specify what must be preserved.

مثال على طلب
Build a staff inventory dashboard using my connected database. Reuse the existing products and stock_movements tables. Let staff search products and record stock adjustments. Preserve existing columns and relationships, and ask before any schema change.

Review the build’s proposed database changes. Safe additive changes and changes requiring approval are handled differently. Do not assume that a code rollback reverses database writes or schema changes. Read database changes before approving a structural change.

Inspect and test the data

In project settings, open Database, select the correct environment, and complete the access consent when required. PostgreSQL and Supabase browsing uses the public schema; MySQL browsing uses the connected database. Views or tables without supported row identification may be read-only.

Test one complete workflow: load a known record, perform an intended write on a test record, reload, and confirm the result persists. Test an unauthorized user as well. A successful database connection is not an application authorization policy.

The dashboard supports record management, imports and exports, and activity history. It is not a general-purpose SQL console or a backup tool.

Prepare Production

Before publishing, select the Production database connection and verify permissions, environment-specific values, and any migration approvals. Test the app against the intended schema. Keep a provider-managed backup or recovery plan for important data; exporting a table from the dashboard is not a full database backup.

If publishing fails during a database change, inspect the reported state before retrying. Some changes may already have run. Follow database changes and publishing for the release workflow.

Troubleshooting

The connection fails: check the full connection URL, database user, host reachability, TLS requirements, and password encoding. Confirm the database exists and the user can connect to it.

The connection works but records cannot be changed: check both the project access level and the database user’s grants. Some tables or views are not editable through the dashboard.

Preview shows different records from Production: compare the assigned connections and selected environments. This is often expected when they use separate databases.

A credential was changed: update the workspace connection and recheck dependent projects. A refreshed connection can require renewed dashboard consent.

هل تحتاج إلى مساعدة في هذه الخطوة؟تحدث مع فريقنا
بناء الأفكار خارج النموذج.RetronAI

ابدأ الاستكشاف

البدءأنواع التطبيقات وتوافرهاقم بإنشاء تطبيق على شبكة الإنترنت الكامل اليوم ، ومعرفة أنواع المشاريع التي ستأتي في وقت لاحق.البدءقم بإنشاء تطبيقك الأولاذهب من فكرة إلى نظرة عمل مسبقة ، ثم استعد لإطلاقك الأول.البدءإنشاء حسابقم بتسجيل الدخول ، وإكمال التداول ، والعثور على مساحة عملك.البدءمساحة عمل المشروع الخاصة بكالعثور على الدردشة، عرض مسبق، الرمز، بناء التفاصيل، وإعدادات المشروع.استوديو المشروعكتابة طلبات مفيدةإعطاء RetronAI السياق الذي يحتاجه وجعل التغييرات أسهل في مراجعة.استوديو المشروعاختيار وضع البناءتوازن القدرة على بناء مع استخدامها الائتماني.استوديو المشروعبناء التقدم والموافقةفهم بناء المراحل والأسئلة والموافقة والتعافي.استوديو المشروعتحديد وتجربة تطبيقكتحقق من تطبيقك قبل مشاركتها أو نشرها.استوديو المشروعإعداد التصوير البصريتحسين النص والصور والمساحات والأساليب مباشرة في عرضك السابق.استوديو المشروعاكتشاف وتحرير الرمزتصفح ملفات المصدر ومقارنة المشاريع وتحديث نظرة عامة.استوديو المشروعالإصدارات و rollbackمراجعة حفظت الصور النظيفة وفهم ما استعادة نسخة التغييرات.الاتصالات والوصول إلى التطبيقاتصالات الفضاءإنشاء اتصالات خدمة قابلة للاستخدام للمشاريع في مساحة العمل الخاصة بك.