class PostgresConnection implements IStorageConnection {

    public ICompiledQuery compileQuery(final IPreparedQuery preparedQuery)
            throws StorageException {
        try {
            return new JDBCCompiledQuery(((QueryStatement) preparedQuery).compile(connection));
        } catch (SQLException e) {
            throw new StorageException(
                    String.format("Error compiling query statement \"%s\": ",
                            ((QueryStatement) preparedQuery).getBodyWriter().toString()), e);
        }
    }

    public  PostgresConnection(final ConnectionOptions options);

}