public class PostgreSqlClient extends BaseJdbcClient
caseInsensitiveNameMatching, connectionFactory, connectorId, identifierQuote, remoteSchemaNames, remoteTableNames| Constructor and Description |
|---|
PostgreSqlClient(JdbcConnectorId connectorId,
BaseJdbcConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
createTable(ConnectorSession session,
ConnectorTableMetadata tableMetadata) |
PreparedStatement |
getPreparedStatement(Connection connection,
String sql) |
protected ResultSet |
getTables(Connection connection,
Optional<String> schemaName,
Optional<String> tableName) |
protected void |
renameTable(JdbcIdentity identity,
String catalogName,
SchemaTableName oldTable,
SchemaTableName newTable) |
protected String |
toSqlType(Type type) |
addColumn, beginCreateTable, beginInsertTable, buildInsertSql, buildSql, commitCreateTable, createTable, destroy, dropColumn, dropTable, escapeNamePattern, execute, finishInsertTable, generateTemporaryTableName, getColumns, getConnection, getConnection, getIdentifierQuote, getSchemaNames, getSplits, getTableHandle, getTableNames, getTableSchemaName, getTableStatistics, listSchemas, listSchemasByLowerCase, listTablesByLowerCase, quoted, quoted, renameColumn, renameTable, rollbackCreateTable, toPrestoType, toRemoteSchemaName, toRemoteTableNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabortReadConnection, schemaExists@Inject public PostgreSqlClient(JdbcConnectorId connectorId, BaseJdbcConfig config)
public PreparedStatement getPreparedStatement(Connection connection, String sql) throws SQLException
getPreparedStatement in interface JdbcClientgetPreparedStatement in class BaseJdbcClientSQLExceptionprotected ResultSet getTables(Connection connection, Optional<String> schemaName, Optional<String> tableName) throws SQLException
getTables in class BaseJdbcClientSQLExceptionprotected String toSqlType(Type type)
toSqlType in class BaseJdbcClientpublic void createTable(ConnectorSession session, ConnectorTableMetadata tableMetadata)
createTable in interface JdbcClientcreateTable in class BaseJdbcClientprotected void renameTable(JdbcIdentity identity, String catalogName, SchemaTableName oldTable, SchemaTableName newTable)
renameTable in class BaseJdbcClientCopyright © 2012–2020. All rights reserved.