ScriptExecutionProps
Properties for defining a ScriptExecution.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dms-scriptexecution
Initializer
import com.aliyun.ros.cdk.dms.ScriptExecutionProps;
ScriptExecutionProps.builder()
.dbId(java.lang.Number)
.dbId(IResolvable)
.logic(java.lang.Boolean)
.logic(IResolvable)
.script(java.lang.String)
.script(IResolvable)
// .tid(java.lang.Number)
// .tid(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
dbId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property dbId: The database ID. |
logic | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property logic: Whether it is a logical database. |
script | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property script: The specific SQL script to execute. |
tid | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property tid: The tenant ID. |
dbIdRequired
public java.lang.Object getDbId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property dbId: The database ID.
This parameter corresponds to the DatabaseId parameter in interfaces like SearchDatabase, ListDatabases, GetDatabase, etc. You can call these interfaces to obtain the value.
logicRequired
public java.lang.Object getLogic();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property logic: Whether it is a logical database.
scriptRequired
public java.lang.Object getScript();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property script: The specific SQL script to execute.
Includes DQL, DDL, and DML. Whether DDL and DML are allowed depends on the security configuration of the instance.
tidOptional
public java.lang.Object getTid();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property tid: The tenant ID.
Obtain this from the tenant ID information displayed when hovering over the top-right corner avatar.