libpqxx  7.0.2
types.hxx
1 /* Basic type aliases and forward declarations.
2  *
3  * Copyright (c) 2000-2020, Jeroen T. Vermeulen
4  *
5  * See COPYING for copyright license. If you did not receive a file called
6  * COPYING with this source code, please notify the distributor of this
7  * mistake, or contact the author.
8  */
9 #ifndef PQXX_H_TYPES
10 #define PQXX_H_TYPES
11 
12 #include <cstddef>
13 #include <cstdint>
14 
15 namespace pqxx
16 {
18 using result_size_type = int;
19 
22 
24 using row_size_type = int;
25 
27 using row_difference_type = int;
28 
30 using field_size_type = size_t;
31 
33 using large_object_size_type = int64_t;
34 
35 
36 // Forward declarations, to help break compilation dependencies.
37 // These won't necessarily include all classes in libpqxx.
38 class binarystring;
39 class connection;
43 class const_row_iterator;
44 class dbtransaction;
45 class field;
46 class largeobjectaccess;
48 struct range_error;
49 class result;
50 class row;
51 class stream_from;
52 class transaction_base;
53 } // namespace pqxx
54 
55 #endif
int result_difference_type
Difference between result sizes.
Definition: types.hxx:21
Definition: notification.hxx:55
Reverse iterator for result. Use as result::const_reverse_iterator.
Definition: result_iterator.hxx:147
int row_difference_type
Difference between row sizes.
Definition: types.hxx:27
Reference to a field in a result set.
Definition: field.hxx:32
Reverse iterator for a row. Use as row::const_reverse_iterator.
Definition: row.hxx:300
Binary data corresponding to PostgreSQL's "BYTEA" binary-string type.
Definition: binarystring.hxx:53
Abstract transaction base class: bracket transactions on the database.
Definition: dbtransaction.hxx:52
size_t field_size_type
Number of bytes in a field of database data.
Definition: types.hxx:30
Iterator for rows in a result. Use as result::const_iterator.
Definition: result_iterator.hxx:35
Something is out of range, similar to std::out_of_range.
Definition: except.hxx:192
Iterator for fields in a row. Use as row::const_iterator.
Definition: row.hxx:203
int row_size_type
Number of fields in a row of database data.
Definition: types.hxx:24
int result_size_type
Number of rows in a result set.
Definition: types.hxx:18
Accessor for large object's contents.
Definition: largeobject.hxx:147
Reference to one row in a result.
Definition: row.hxx:38
Dedicated namespace for helper types related to prepared statements.
Definition: array.hxx:25
Efficiently pull data directly out of a table.
Definition: stream_from.hxx:30
int64_t large_object_size_type
Number of bytes in a large object.
Definition: types.hxx:33