CData Python Connector for Apache CouchDB

Build 25.0.9440

CreateSchema

Creates a schema definition of a table in Apache CouchDB. Control column discovery with the connection properties FlattenObjects, FlattenArrays, TypeDetectionScheme, and RowScanDepth.

CreateSchema

データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。

スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。

本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。

Input

Name Type Required Description
TableName String True Specify the name of the CouchDB table for which the schema will be created. This ensures that the generated schema reflects the structure of the selected dataset.
FileName String False Provide the full file path and file name where the generated schema should be saved. If this value is not specified, the schema will instead be returned in the FileData output. For example, 'C:\\Users\\User\\Desktop\\CouchDB\\schema.rsd'.
SimplifyNames String False Indicate whether column names in the generated schema should be simplified for readability. When enabled (default), column names are shortened or adjusted to remove special characters.

Result Set Columns

Name Type Description
Result String Shows whether the schema creation process completed successfully, confirming that the schema was generated and is available in the chosen output format.
FileData String Returns the generated schema as a Base64-encoded string. This output is provided only if no FileName was specified, allowing direct use or further processing of the schema without saving it to disk.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9440