11 #ifndef PQXX_H_SQL_CURSOR
12 #define PQXX_H_SQL_CURSOR
45 result fetch(difference_type rows, difference_type &displacement);
49 return fetch(rows, d);
51 difference_type move(difference_type rows, difference_type &displacement);
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;
113 result::difference_type begin_pos,
result::difference_type end_pos);
Connection to a database.
Definition: connection.hxx:279
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
result_difference_type difference_type
Definition: cursor.hxx:45
Cursor with SQL positioning semantics.
Definition: sql_cursor.hxx:32
result const & empty_result() const noexcept
Return zero-row result for this cursor.
Definition: sql_cursor.hxx:77
difference_type move(difference_type rows)
Definition: sql_cursor.hxx:52
difference_type endpos() const noexcept
End position, or -1 for unknown.
Definition: sql_cursor.hxx:74
~sql_cursor() noexcept
Definition: sql_cursor.hxx:43
result fetch(difference_type rows)
Definition: sql_cursor.hxx:46
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:92
Interface definition (and common code) for "transaction" classes.
Definition: transaction_base.hxx:152
Internal items for libpqxx' own use. Do not use these yourself.
Definition: encodings.cxx:33
PQXX_LIBEXPORT result_size_type obtain_stateless_cursor_size(sql_cursor &)
Definition: cursor.cxx:34
PQXX_LIBEXPORT result stateless_cursor_retrieve(sql_cursor &, result::difference_type size, result::difference_type begin_pos, result::difference_type end_pos)
Definition: cursor.cxx:42
int result_size_type
Number of rows in a result set.
Definition: types.hxx:28