# 项目连接管理

项目连接是与 Recurve 中特定项目关联的数据连接。对于每个项目连接，您可以定义连接类型，并为**开发**和**生产环境**分别指定目标数据库。此设置确保将修改从开发环境推广到生产环境时的平稳过渡。

尽管一个项目可以拥有多个项目连接，但同一时间只能有一个连接被设为主数据库。这个主数据库也被称为**分析数据库**，它经过优化，适合大批量的数据读取和聚合。项目中的所有模型都会在该数据库下执行和构建。

本指南将向您展示如何创建项目连接并设置分析数据库。

## 创建项目连接

按照以下步骤操作：

1. 打开您的项目，进入 **设置/ Settings > 数据连接/ Data connections**。
2. &#x5728;**“定义连接/ Define connection”**&#x90E8;分，点击 **+ 添加连接/ + Add connection**。
3. 提供连接名称，并为开发和生产环境选择相同的连接类型。

   注意，开发和生产环境必须为相同的连接类型。

<figure><img src="/files/06l805SXqsvgYpjgTXk5" alt=""><figcaption></figcaption></figure>

## 设置分析数据库

如果你想将其他连接设置为分析数据库，请按照以下步骤操作：

1. 打开您的项目，进&#x5165;**“设置/ Settings”>“数据连接/ Data connections”**。
2. 点击连接源旁边的选中按钮。

   <figure><img src="/files/gQyPAbimMWAUmXTKe0KL" alt=""><figcaption></figcaption></figure>
3. 在弹出的窗口中点击“确认/ **Confirm**”。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.reorc.com/cn-reorc-help-center/lian-jie/xiang-mu-lian-jie-guan-li.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
