JDBC Driver for Cloudant

Build 25.0.9434

CreateSchema

Creates a schema definition of a table in Cloudant. Control column discovery with FlattenObjects, FlattenArrays, TypeDetectionScheme, and RowScanDepth.

CreateSchema

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

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

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

Input

Name Type Required Accepts Output Streams Description
TableName String True False Specify the name of the Cloudant table for which the schema will be created. This ensures that the generated schema reflects the structure of the selected dataset.
FileName String False 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 or FileStream output. For example, 'C:\\Users\\User\\Desktop\\Cloudant\\schema.rsd'.
SimplifyNames String False 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.
FileStream String False True Supply an output stream instance where the generated schema data will be written. This option is used only when FileName is not specified, allowing the schema to be consumed programmatically instead of being stored as a physical file.

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 neither FileName nor FileStream 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.9434