CreateSchema
Generates a schema definition for a table, supporting metadata documentation and streamlined integrations in Cloud Financials.
CreateSchema
データモデル内の既存のテーブルまたはビューからローカルスキーマファイル(.rsd)を作成します。
スキーマファイルは、このプロシージャが実行されると、Location 接続プロパティで設定されたディレクトリに作成されます。ファイルを編集してカラムを含めたり除外したり、カラム名を変更したり、カラムのデータ型を変更したりできます。
本製品 はLocation を確認し、.rsd ファイルの名前がデータモデルのテーブルまたはビューに一致するかどうかを判断します。重複がある場合、スキーマファイルはデータモデル内のこのテーブルのデフォルトインスタンスよりも優先されます。既存のテーブルまたはビューに一致しないスキーマファイルがLocation に存在する場合、新しいテーブルまたはビューのエントリが本製品 のデータモデルに追加されます。
Input
| Name | Type | Description |
| TableName | String | The name of the specific table for which the schema generation is requested. This refers to a database table in the target schema. |
| SchemaName | String | The name of the schema in which the table resides. The schema helps to organize database objects and permissions. |
| FileName | String | The full path and filename where the generated schema is saved, for example, 'C:\\scripts\\Accounts.rsd'. This specifies the location for the output file. |
| SimplifyNames | String | Indicates whether to simplify the column names in the schema output. When set to true, the schema uses shorter or more concise names for easier readability. |
Result Set Columns
| Name | Type | Description |
| Result | String | A flag indicating whether the schema download operation was successful. A value of true means the schema was successfully downloaded. |
| FileData | String | The Base64-encoded content of the generated schema. This is returned only if neither 'FileName' nor 'FileStream' is provided, allowing the schema to be retrieved directly. |