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리뷰는 스냅샷을 저장하고 버전의 변화를 복원하는 것을 이해합니다.연결 및 앱 접근워크스페이스 연결작업 공간의 프로젝트에 대한 재사용 가능한 서비스 연결을 만드십시오.