- DDL
- 設定ファイル
SOURCE(MONGODB(
host 'localhost'
port 27017
user ''
password ''
db 'test'
collection 'dictionary_source'
options 'ssl=true'
))
SOURCE(MONGODB(
uri 'mongodb://localhost:27017/clickhouse'
collection 'dictionary_source'
))
<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>
<source>
<mongodb>
<uri>mongodb://localhost:27017/test?ssl=true</uri>
<collection>dictionary_source</collection>
</mongodb>
</source>
設定フィールド:
| 設定 | 説明 |
|---|---|
host | MongoDB のホスト。 |
port | MongoDB サーバーのポート。 |
user | MongoDB ユーザー名。 |
password | MongoDB ユーザーのパスワード。 |
db | データベース名。 |
collection | コレクション名。 |
options | MongoDB 接続文字列のオプション。任意です。 |
uri | 接続を確立するための URI (host/port/db を個別に指定する代わりに使用) 。 |