ISCPersistenceUnit::ForwardEngineer
Here is the signature for the ForwardEngineer_DB function:
HRESULT FEModel_DB([in] VARIANT ConnectionInfo, [in] VARIANT Password, [in] VARIANT OptionXML, [out, retval] VARIANT_BOOL *ppVal);
The following table contains the valid arguments for the ForwardEngineer function:
|
Parameter |
Valid Type/Value |
Description |
|---|---|---|
|
ConnectionInfo |
VT_BSTR |
Specifies the connection string to the database. For more information, see Connection Sting in ISCPersistenceUnit::ReverseEngineer. |
|
Password |
VT_BSTR Null if the authentication type is Windows. |
Specifies the connection password to the database. |
|
OptionXML |
VT_BSTR |
Specifies the full path to items storage for forward engineering. |
Here is the signature for the ForwardEngineer_DDL function:
HRESULT FEModel_DDL([in] VARIANT Locator, [in] VARIANT OptionXML, [out, retval] VARIANT_BOOL *ppVal);
|
Parameter |
Valid Type/Value |
Description |
|---|---|---|
|
Locator |
VT_BSTR |
Specifies the full path of the output script file. (.sql/.ddl) |
|
OptionXML |
VT_BSTR |
Specifies the full path to items storage for forward engineering. |
|
ppVal |
VT_BOOL |
Specifies a return value. |
Forward Engineering Sample Script:
Dim oAPI
Set oAPI = CreateObject("erwin9.SCAPI.9.0")
Dim oPersistenceUnit
Set oPersistenceUnit = oApi.PersistenceUnits.Add("c:\\test.erwin", "")
Call oPersistenceUnit.FEModel_DB("SERVER=16:10:0|AUTHENTICATION=8|USER=erwin|1=3|2=ModelTest|3=127.0.0.1", "ca123456", "c:\\fe.xml")
Call oPersistenceUnit.FEModel_DDL("c:\\test.sql", "c:\\fe.xml")
|
Copyright © 2025 Quest Software, Inc. |