> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# مصدر قاموس MongoDB

> قم بتهيئة MongoDB كمصدر للقاموس في ClickHouse.

مثال على الإعدادات:

<Tabs>
  <Tab title="DDL">
    ```sql theme={null}
    SOURCE(MONGODB(
        host 'localhost'
        port 27017
        user ''
        password ''
        db 'test'
        collection 'dictionary_source'
        options 'ssl=true'
    ))
    ```

    أو باستخدام URI:

    ```sql theme={null}
    SOURCE(MONGODB(
        uri 'mongodb://localhost:27017/clickhouse'
        collection 'dictionary_source'
    ))
    ```
  </Tab>

  <Tab title="ملف الإعدادات">
    ```xml theme={null}
    <source>
        <mongodb>
            <host>localhost</host>
            <port>27017</port>
            <user></user>
            <password></password>
            <db>test</db>
            <collection>dictionary_source</collection>
            <options>ssl=true</options>
        </mongodb>
    </source>
    ```

    أو باستخدام URI:

    ```xml theme={null}
    <source>
        <mongodb>
            <uri>mongodb://localhost:27017/test?ssl=true</uri>
            <collection>dictionary_source</collection>
        </mongodb>
    </source>
    ```
  </Tab>
</Tabs>

<br />

حقول الإعدادات:

| الإعداد      | الوصف                                                              |
| ------------ | ------------------------------------------------------------------ |
| `host`       | مضيف MongoDB.                                                      |
| `port`       | المنفذ على خادم MongoDB.                                           |
| `user`       | اسم مستخدم MongoDB.                                                |
| `password`   | كلمة مرور مستخدم MongoDB.                                          |
| `db`         | اسم قاعدة البيانات.                                                |
| `collection` | اسم المجموعة.                                                      |
| `options`    | خيارات سلسلة اتصال MongoDB. هذا الحقل اختياري.                     |
| `uri`        | URI المستخدم لإنشاء الاتصال (كبديل عن حقول host/port/db المنفصلة). |

[مزيد من المعلومات حول المحرك](/ar/reference/engines/table-engines/integrations/mongodb)
