Code Assist MCP for SugarCRM

Build 25.0.9540

CreateSchema

Generates a schema definition file for a specified table or view. This stored procedure supports metadata export and integration tooling.

CreateSchema

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

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

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

Input

Name Type Description
TableName String The stored procedure input parameter that specifies the name of the table or view for which a schema file is generated. This parameter is required. Specify the table or view name exactly as it appears in SugarCRM (for example, 'Accounts').
FileName String The stored procedure input parameter that specifies the full file path and target file name for the generated schema output. This parameter is used when you want the schema written directly to a file (for example, 'C:/Users/Public/Desktop/Accounts.rsd').

Result Set Columns

Name Type Description
Result String A stored procedure output parameter that returns a value of 'Success' when the schema generation operation completes successfully. It returns a value of 'Failure' when the process is unable to complete, which allows calling systems to evaluate execution state.
FileData String The stored procedure output parameter that returns the generated schema data as a Base64-encoded value when neither the FileName nor the FileStream parameter is specified. This parameter enables retrieval of schema content in contexts where direct file writing is not possible.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 25.0.9540