Interface SnowflakeDatabaseMetaData

  • All Superinterfaces:
    DatabaseMetaData, Wrapper

    public interface SnowflakeDatabaseMetaData
    extends DatabaseMetaData
    Snowflake-specific extension of DatabaseMetaData.

    This interface extends the standard JDBC DatabaseMetaData interface with Snowflake-specific metadata operations.

    • Method Detail

      • getStreams

        ResultSet getStreams​(String catalog,
                             String schemaPattern,
                             String streamName)
                      throws SQLException
        Retrieves a description of the streams available in the given catalog.

        This is a Snowflake-specific extension for retrieving information about Snowflake streams.

        Parameters:
        catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
        schemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
        streamName - a stream name pattern; must match the stream name as it is stored in the database
        Returns:
        a ResultSet object in which each row is a stream description
        Throws:
        SQLException - if a database access error occurs
      • getColumns

        ResultSet getColumns​(String catalog,
                             String schemaPattern,
                             String tableNamePattern,
                             String columnNamePattern,
                             boolean extendedSet)
                      throws SQLException
        Retrieves a description of the table columns available in the specified catalog with extended metadata.

        This is a Snowflake-specific overload of DatabaseMetaData.getColumns(java.lang.String, java.lang.String, java.lang.String, java.lang.String) that allows retrieving extended column metadata.

        Parameters:
        catalog - a catalog name; must match the catalog name as it is stored in the database; "" retrieves those without a catalog; null means that the catalog name should not be used to narrow the search
        schemaPattern - a schema name pattern; must match the schema name as it is stored in the database; "" retrieves those without a schema; null means that the schema name should not be used to narrow the search
        tableNamePattern - a table name pattern; must match the table name as it is stored in the database
        columnNamePattern - a column name pattern; must match the column name as it is stored in the database
        extendedSet - if true, returns extended metadata including base type information
        Returns:
        ResultSet - each row is a column description
        Throws:
        SQLException - if a database access error occurs