public class ShowDatabaseDdlStatement extends IntermediatePortalStatement
SHOW DATABASE DDL [FOR POSTGRESQL] returns a result set with the DDL statements that are needed to (re-)create the schema of the current database. The FOR POSTGRESQL clause will instruct PGAdapter to only return DDL statements that are compatible with PostgreSQL. Cloud Spanner specific clauses will be commented out in the returned DDL.
Inheritance
java.lang.Object > IntermediateStatement > IntermediatePreparedStatement > IntermediatePortalStatement > ShowDatabaseDdlStatementConstructors
ShowDatabaseDdlStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)
public ShowDatabaseDdlStatement(ConnectionHandler connectionHandler, OptionsMetadata options, String name, AbstractStatementParser.ParsedStatement parsedStatement, Statement originalStatement)
Parameters | |
---|---|
Name | Description |
connectionHandler | ConnectionHandler |
options | OptionsMetadata |
name | String |
parsedStatement | ParsedStatement |
originalStatement | com.google.cloud.spanner.Statement |
Methods
createPortal(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)
public IntermediatePortalStatement createPortal(String name, byte[][] parameters, List<Short> parameterFormatCodes, List<Short> resultFormatCodes)
Creates a portal from this statement.
Parameters | |
---|---|
Name | Description |
name | String |
parameters | byte[][] |
parameterFormatCodes | List<Short> |
resultFormatCodes | List<Short> |
Returns | |
---|---|
Type | Description |
IntermediatePortalStatement |
describeAsync(BackendConnection backendConnection)
public Future<StatementResult> describeAsync(BackendConnection backendConnection)
Parameter | |
---|---|
Name | Description |
backendConnection | BackendConnection |
Returns | |
---|---|
Type | Description |
Future<StatementResult> |
executeAsync(BackendConnection backendConnection)
public void executeAsync(BackendConnection backendConnection)
Parameter | |
---|---|
Name | Description |
backendConnection | BackendConnection |
getCommandTag()
public String getCommandTag()
Returns | |
---|---|
Type | Description |
String |
getStatementType()
public AbstractStatementParser.StatementType getStatementType()
Returns | |
---|---|
Type | Description |
StatementType |