@Override
    public void enterUseStmt(ClickHouseParser.UseStmtContext ctx) {
        if (ctx.databaseIdentifier() != null) {
            setUseDatabase(SqlParser.unquoteIdentifier(ctx.databaseIdentifier().getText()));
        }
    }
Parser listener that collects information for prepared statement.
jdbc-v2/src/main/java/com/clickhouse/jdbc/internal/ParsedPreparedStatement.java