@Override
    public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException {
        // TODO: handle useCatalogs == true and return schema catalog name
        try {
            return connection.createStatement().executeQuery("SELECT name AS TABLE_SCHEM, " + catalogPlaceholder + " AS TABLE_CATALOG FROM system.databases " +
                    "WHERE name LIKE '" + (schemaPattern == null ? "%" : schemaPattern) + "'");
        } catch (Exception e) {
            throw ExceptionUtils.toSqlState(e);
        }
    }
Returns name of the ClickHouse table types as the broad category (rather than engine name).
@return - ResultSet with one column TABLE_TYPE
@throws SQLException - if an error occurs
jdbc-v2/src/main/java/com/clickhouse/jdbc/metadata/DatabaseMetaDataImpl.java