11#ifndef PQXX_H_SQL_CURSOR
12#define PQXX_H_SQL_CURSOR
45 result fetch(difference_type rows, difference_type &displacement);
46 result fetch(difference_type rows)
48 difference_type d = 0;
49 return fetch(rows, d);
51 difference_type move(difference_type rows, difference_type &displacement);
52 difference_type move(difference_type rows)
54 difference_type d = 0;
65 difference_type
pos() const noexcept {
return m_pos; }
74 difference_type
endpos() const noexcept {
return m_endpos; }
79 void close() noexcept;
82 difference_type adjust(difference_type hoped, difference_type actual);
83 static std::
string stridestring(difference_type);
94 result m_cached_current_row;
103 difference_type m_pos;
106 difference_type m_endpos = -1;
111PQXX_LIBEXPORT
result stateless_cursor_retrieve(
113 result::difference_type begin_pos,
result::difference_type end_pos);
Connection to a database.
Definition connection.hxx:230
Common definitions for cursor types.
Definition cursor.hxx:42
access_policy
Cursor access-pattern policy.
Definition cursor.hxx:52
ownership_policy
Cursor destruction policy.
Definition cursor.hxx:88
update_policy
Cursor update policy.
Definition cursor.hxx:64
Cursor with SQL positioning semantics.
Definition sql_cursor.hxx:32
difference_type endpos() const noexcept
End position, or -1 for unknown.
Definition sql_cursor.hxx:74
result const & empty_result() const noexcept
Return zero-row result for this cursor.
Definition sql_cursor.hxx:77
difference_type pos() const noexcept
Current position, or -1 for unknown.
Definition sql_cursor.hxx:65
Result set containing data returned by a query or command.
Definition result.hxx:73
Interface definition (and common code) for "transaction" classes.
Definition transaction_base.hxx:150
Internal items for libpqxx' own use. Do not use these yourself.
Definition encodings.cxx:33
int result_size_type
Number of rows in a result set.
Definition types.hxx:28