/dports/databases/postgresql-libpqxx/libpqxx-7.2.0/include/ |
H A D | Makefile.am | 3 nobase_include_HEADERS= pqxx/pqxx \ 4 pqxx/array pqxx/array.hxx \ 7 pqxx/composite pqxx/composite.hxx \ 9 pqxx/cursor pqxx/cursor.hxx \ 12 pqxx/except pqxx/except.hxx \ 13 pqxx/field pqxx/field.hxx \ 20 pqxx/result pqxx/result.hxx \ 31 pqxx/row pqxx/row.hxx \ 32 pqxx/util pqxx/util.hxx \ 33 pqxx/types pqxx/types.hxx \ [all …]
|
H A D | Makefile.in | 354 pqxx/array pqxx/array.hxx \ 359 pqxx/cursor pqxx/cursor.hxx \ 362 pqxx/except pqxx/except.hxx \ 363 pqxx/field pqxx/field.hxx \ 370 pqxx/result pqxx/result.hxx \ 374 pqxx/strconv pqxx/strconv.hxx \ 381 pqxx/row pqxx/row.hxx \ 382 pqxx/util pqxx/util.hxx \ 383 pqxx/types pqxx/types.hxx \ 384 pqxx/zview pqxx/zview.hxx \ [all …]
|
/dports/databases/postgresql-libpqxx/libpqxx-7.2.0/test/unit/ |
H A D | test_string_conversion.cxx | 21 namespace pqxx namespace 61 pqxx::from_string("0", x); in test_string_conversion() 63 pqxx::from_string("1", x); in test_string_conversion() 65 pqxx::from_string("-1", x); in test_string_conversion() 77 pqxx::from_string("4772185884", u), pqxx::conversion_error, in test_string_conversion() 139 pqxx::ignore_unused(pqxx::from_string<int>("")), pqxx::conversion_error, in test_integer_conversion() 142 pqxx::ignore_unused(pqxx::from_string<int>(" ")), pqxx::conversion_error, in test_integer_conversion() 148 pqxx::ignore_unused(pqxx::from_string<int>("- 3")), pqxx::conversion_error, in test_integer_conversion() 151 pqxx::ignore_unused(pqxx::from_string<int>("-")), pqxx::conversion_error, in test_integer_conversion() 158 pqxx::connection conn; in test_convert_null() [all …]
|
H A D | test_array.cxx | 7 namespace pqxx namespace 16 using junc = pqxx::array_parser::juncture; in to_string() 44 output = pqxx::array_parser("").get_next(); in test_empty_arrays() 51 pqxx::array_parser empty_parser("{}"); in test_empty_arrays() 106 pqxx::array_parser parser("{'item'}"); in test_single_quoted_string() 166 pqxx::array_parser parser("{\"item\"}"); in test_double_quoted_string() 246 pqxx::array_parser parser("{item}"); in test_unquoted_string() 276 pqxx::array_parser parser("{1,2}"); in test_multiple_values() 312 pqxx::array_parser parser("{{item}}"); in test_nested_array() 510 pqxx::connection c; in test_array_roundtrip() [all …]
|
H A D | test_strconv.cxx | 27 namespace pqxx namespace 47 pqxx::from_string("f", result); in test_strconv_bool() 49 pqxx::from_string("F", result); in test_strconv_bool() 51 pqxx::from_string("0", result); in test_strconv_bool() 57 pqxx::from_string("t", result); in test_strconv_bool() 73 pqxx::from_string("2", col); in test_strconv_enum() 86 pqxx::from_string("2", w); in test_strconv_class_enum() 94 pqxx::to_string(many::top), in test_strconv_class_enum() 103 pqxx::to_string(std::optional<int>{}), pqxx::conversion_error, in test_strconv_optional() 117 pqxx::to_string(std::unique_ptr<int>{}), pqxx::conversion_error, in test_strconv_smart_pointer() [all …]
|
H A D | test_sql_cursor.cxx | 10 pqxx::connection conn; in test_forward_sql_cursor() 11 pqxx::work tx{conn}; in test_forward_sql_cursor() 16 pqxx::cursor_base::forward_only, pqxx::cursor_base::read_only, in test_forward_sql_cursor() 73 pqxx::cursor_base::forward_only, pqxx::cursor_base::read_only, in test_forward_sql_cursor() 85 pqxx::cursor_base::forward_only, pqxx::cursor_base::read_only, in test_forward_sql_cursor() 98 pqxx::cursor_base::forward_only, pqxx::cursor_base::read_only, in test_forward_sql_cursor() 111 pqxx::work tx{conn}; in test_scroll_sql_cursor() 114 pqxx::cursor_base::random_access, pqxx::cursor_base::read_only, in test_scroll_sql_cursor() 174 pqxx::work tx{conn}; in test_adopted_sql_cursor() 240 pqxx::cursor_base::forward_only, pqxx::cursor_base::read_only, in test_hold_cursor() [all …]
|
H A D | test_stream_to.cxx | 23 pqxx::work tx{connection}; in test_nonoptionals() 57 pqxx::work tx{connection}; in test_nonoptionals_fold() 241 pqxx::connection conn; in test_stream_to__nonnull_optional() 242 pqxx::work tx{conn}; in test_stream_to__nonnull_optional() 260 pqxx::work tx{connection}; in test_optional() 276 pqxx::work tx{connection}; in test_optional_fold() 293 pqxx::connection conn; in test_container_stream_to() 294 pqxx::work tx{conn}; in test_container_stream_to() 334 pqxx::work tx{conn}; in clear_table() 342 pqxx::connection conn; in test_stream_to() [all …]
|
H A D | test_test_helpers.cxx | 17 catch (pqxx::test::test_failure const &) in test_check_notreached() 22 throw pqxx::test::test_failure( in test_check_notreached() 38 catch (pqxx::test::test_failure const &) in test_check() 65 catch (pqxx::test::test_failure const &) in test_check_throws_exception() 80 catch (pqxx::test::test_failure const &) in test_check_throws_exception() 103 pqxx::test::test_failure, in test_check_throws() 118 catch (pqxx::test::test_failure const &) in test_check_throws() 133 catch (pqxx::test::test_failure const &) in test_check_throws() 142 pqxx::test::test_failure, in test_check_throws() 147 pqxx::test::test_failure, in test_check_throws() [all …]
|
H A D | test_transaction.cxx | 11 pqxx::connection c; in test_nontransaction_continues_after_error() 12 pqxx::nontransaction tx{c}; in test_nontransaction_continues_after_error() 53 pqxx::connection c; in test_db_transaction_rolls_back() 54 pqxx::nontransaction tx1{c}; in test_db_transaction_rolls_back() 63 pqxx::nontransaction tx3{c}; in test_db_transaction_rolls_back() 73 pqxx::connection c; in test_nontransaction_autocommits() 75 pqxx::nontransaction tx1{c}; in test_nontransaction_autocommits() 80 pqxx::nontransaction tx2{c}; in test_nontransaction_autocommits() 84 pqxx::nontransaction tx3{c}; in test_nontransaction_autocommits() 94 pqxx::connection c; in test_double_close() [all …]
|
H A D | test_transaction_base.cxx | 7 void test_exec0(pqxx::transaction_base &trans) in test_exec0() 13 trans.exec0("SELECT 99"), pqxx::unexpected_rows, in test_exec0() 18 void test_exec1(pqxx::transaction_base &trans) in test_exec1() 20 pqxx::row R{trans.exec1("SELECT 99")}; in test_exec1() 33 void test_exec_n(pqxx::transaction_base &trans) in test_exec_n() 40 pqxx::unexpected_rows, in test_exec_n() 44 pqxx::unexpected_rows, in test_exec_n() 49 void test_query_value(pqxx::connection &conn) in test_query_value() 51 pqxx::work tx{conn}; in test_query_value() 73 pqxx::connection conn; in test_transaction_base() [all …]
|
H A D | test_float.cxx | 16 inf_string = pqxx::to_string(inf); in infinity_test() 17 pqxx::from_string(inf_string, back_conversion); in infinity_test() 22 inf_string = pqxx::to_string(-inf); in infinity_test() 39 pqxx::connection conn; in bug_262() 41 pqxx::work tr{conn}; in bug_262() 50 pqxx::row row; in bug_262() 96 x = pqxx::from_string<float>(""), pqxx::conversion_error, in test_bad_float() 100 x = pqxx::from_string<float>("Infancy"), pqxx::conversion_error, in test_bad_float() 103 x = pqxx::from_string<float>("-Infighting"), pqxx::conversion_error, in test_bad_float() 107 x = pqxx::from_string<float>("Nanny"), pqxx::conversion_error, in test_bad_float() [all …]
|
H A D | test_stream_from.cxx | 21 pqxx::work tx{connection}; in test_nonoptionals() 22 pqxx::stream_from extractor{ in test_nonoptionals() 83 pqxx::stream_from ex2{tx, pqxx::from_query, "SELECT 1"}; in test_nonoptionals() 110 pqxx::work tx{conn}; in test_bad_tuples() 208 pqxx::connection conn; in test_stream_from() 209 pqxx::work tx{conn}; in test_stream_from() 244 pqxx::work tx{conn}; in test_stream_from__escaping() 258 pqxx::work tx{conn}; in test_stream_from__iteration() 293 pqxx::work tx{conn}; in test_transaction_stream_from() 321 pqxx::work tx{conn}; in test_stream_from_read_row() [all …]
|
H A D | test_transactor.cxx | 10 pqxx::connection conn; in test_transactor_newstyle_executes_simple_query() 11 auto const r{pqxx::perform([&conn] { in test_transactor_newstyle_executes_simple_query() 25 pqxx::perform([&done]() noexcept { done = true; }); in test_transactor_newstyle_can_return_void() 33 pqxx::perform([&attempts]() noexcept { attempts++; }); in test_transactor_newstyle_completes_upon_success() 44 throw pqxx::broken_connection(); in test_transactor_newstyle_retries_broken_connection() 48 int const result{pqxx::perform(callback)}; in test_transactor_newstyle_retries_broken_connection() 64 int const result{pqxx::perform(callback)}; in test_transactor_newstyle_retries_rollback() 75 throw pqxx::in_doubt_error("Simulated error"); in test_transactor_newstyle_does_not_retry_in_doubt_error() 79 pqxx::perform(callback), pqxx::in_doubt_error, in test_transactor_newstyle_does_not_retry_in_doubt_error() 94 pqxx::perform(callback), std::runtime_error, in test_transactor_newstyle_does_not_retry_other_error() [all …]
|
/dports/databases/postgresql-libpqxx/libpqxx-7.2.0/src/ |
H A D | row.cxx | 30 pqxx::row::const_iterator pqxx::row::begin() const noexcept in begin() 36 pqxx::row::const_iterator pqxx::row::cbegin() const noexcept in cbegin() 42 pqxx::row::const_iterator pqxx::row::end() const noexcept in end() 48 pqxx::row::const_iterator pqxx::row::cend() const noexcept in cend() 54 pqxx::row::reference pqxx::row::front() const noexcept in front() 60 pqxx::row::reference pqxx::row::back() const noexcept in back() 66 pqxx::row::const_reverse_iterator pqxx::row::rbegin() const in rbegin() 78 pqxx::row::const_reverse_iterator pqxx::row::rend() const in rend() 84 pqxx::row::const_reverse_iterator pqxx::row::crend() const in crend() 131 pqxx::field pqxx::row::at(zview col_name) const in at() [all …]
|
H A D | result.cxx | 26 namespace pqxx namespace 62 pqxx::result::const_reverse_iterator pqxx::result::rbegin() const in rbegin() 74 pqxx::result::const_reverse_iterator pqxx::result::rend() const in rend() 80 pqxx::result::const_reverse_iterator pqxx::result::crend() const in crend() 98 pqxx::result::size_type pqxx::result::size() const noexcept in size() 112 pqxx::result::reference pqxx::result::front() const noexcept in front() 118 pqxx::result::reference pqxx::result::back() const noexcept in back() 137 pqxx::row pqxx::result::at(pqxx::result::size_type i) const in at() 317 pqxx::oid pqxx::result::inserted_oid() const in inserted_oid() 326 pqxx::result::size_type pqxx::result::affected_rows() const in affected_rows() [all …]
|
H A D | cursor.cxx | 24 pqxx::cursor_base::difference_type pqxx::cursor_base::all() noexcept in all() 32 pqxx::cursor_base::difference_type pqxx::cursor_base::backward_all() noexcept in backward_all() 46 pqxx::result::size_type 55 pqxx::result pqxx::internal::stateless_cursor_retrieve( in stateless_cursor_retrieve() 120 pqxx::result pqxx::icursorstream::fetchblock() in fetchblock() 130 pqxx::icursorstream &pqxx::icursorstream::ignore(std::streamsize n) in ignore() 140 pqxx::icursorstream::size_type pqxx::icursorstream::forward(size_type n) in forward() 240 pqxx::icursor_iterator pqxx::icursor_iterator::operator++(int) in operator ++() 250 pqxx::icursor_iterator &pqxx::icursor_iterator::operator++() in operator ++() 259 pqxx::icursor_iterator &pqxx::icursor_iterator::operator+=(difference_type n) in operator +=() [all …]
|
H A D | connection.cxx | 147 throw pqxx::usage_error{ in check_movable() 170 pqxx::connection &pqxx::connection::operator=(connection &&rhs) in operator =() 186 pqxx::result pqxx::connection::make_result( in make_result() 354 void pqxx::connection::add_receiver(pqxx::notification_receiver *n) in add_receiver() 378 void pqxx::connection::remove_receiver(pqxx::notification_receiver *T) noexcept in remove_receiver() 567 std::vector<pqxx::errorhandler *> pqxx::connection::get_errorhandlers() const in get_errorhandlers() 574 pqxx::result pqxx::connection::exec(std::string_view query) in exec() 580 pqxx::result pqxx::connection::exec(std::shared_ptr<std::string> query) in exec() 634 pqxx::result pqxx::connection::exec_prepared( in exec_prepared() 780 pqxx::internal::pq::PGresult *pqxx::connection::get_result() in get_result() [all …]
|
H A D | transaction_base.cxx | 32 pqxx::transaction_base::~transaction_base() in ~transaction_base() 68 void pqxx::transaction_base::commit() in commit() 142 void pqxx::transaction_base::abort() in abort() 197 pqxx::result 238 pqxx::result pqxx::transaction_base::exec_n( in exec_n() 284 pqxx::result pqxx::transaction_base::internal_exec_prepared( in internal_exec_prepared() 292 pqxx::result pqxx::transaction_base::internal_exec_params( in internal_exec_params() 300 void pqxx::transaction_base::set_variable( in set_variable() 313 void pqxx::transaction_base::close() noexcept in close() 382 pqxx::result pqxx::transaction_base::direct_exec(std::string_view c) in direct_exec() [all …]
|
H A D | pipeline.cxx | 32 void pqxx::pipeline::init() in init() 52 void pqxx::pipeline::attach() in attach() 59 void pqxx::pipeline::detach() in detach() 66 pqxx::pipeline::query_id pqxx::pipeline::insert(std::string_view q) in insert() 105 void pqxx::pipeline::flush() in flush() 120 void pqxx::pipeline::cancel() in cancel() 143 std::pair<pqxx::pipeline::query_id, pqxx::result> pqxx::pipeline::retrieve() in retrieve() 167 void pqxx::pipeline::resume() in resume() 179 pqxx::pipeline::query_id pqxx::pipeline::generate_id() in generate_id() 188 void pqxx::pipeline::issue() in issue() [all …]
|
H A D | largeobject.cxx | 132 pqxx::internal::pq::PGconn * 155 pqxx::largeobjectaccess::largeobjectaccess( in largeobjectaccess() 163 pqxx::largeobjectaccess::largeobjectaccess( in largeobjectaccess() 171 pqxx::largeobjectaccess::largeobjectaccess( in largeobjectaccess() 179 pqxx::largeobjectaccess::size_type 197 pqxx::largeobjectaccess::pos_type 204 pqxx::largeobjectaccess::pos_type 211 pqxx::largeobjectaccess::pos_type 218 pqxx::largeobjectaccess::pos_type 253 pqxx::largeobjectaccess::size_type [all …]
|
H A D | field.cxx | 20 pqxx::field::field(pqxx::row const &r, pqxx::row::size_type c) noexcept : in field() 25 bool pqxx::field::operator==(field const &rhs) const in operator ==() 36 char const *pqxx::field::name() const in name() 42 pqxx::oid pqxx::field::type() const in type() 48 pqxx::oid pqxx::field::table() const in table() 54 pqxx::row::size_type pqxx::field::table_column() const in table_column() 60 char const *pqxx::field::c_str() const in c_str() 66 bool pqxx::field::is_null() const noexcept in is_null() 72 pqxx::field::size_type pqxx::field::size() const noexcept in size()
|
H A D | except.cxx | 14 pqxx::failure::failure(std::string const &whatarg) : in failure() 19 pqxx::broken_connection::broken_connection() : in broken_connection() 29 pqxx::sql_error::sql_error( in sql_error() 35 pqxx::sql_error::~sql_error() noexcept = default; 50 pqxx::in_doubt_error::in_doubt_error(std::string const &whatarg) : in in_doubt_error() 55 pqxx::transaction_rollback::transaction_rollback( in transaction_rollback() 61 pqxx::serialization_failure::serialization_failure( in serialization_failure() 67 pqxx::statement_completion_unknown::statement_completion_unknown( in statement_completion_unknown() 73 pqxx::deadlock_detected::deadlock_detected( in deadlock_detected() 84 pqxx::usage_error::usage_error(std::string const &whatarg) : in usage_error() [all …]
|
/dports/databases/postgresql-libpqxx/libpqxx-7.2.0/include/pqxx/ |
H A D | pqxx | 2 #include "pqxx/array" 3 #include "pqxx/binarystring" 4 #include "pqxx/connection" 5 #include "pqxx/cursor" 6 #include "pqxx/errorhandler" 7 #include "pqxx/except" 8 #include "pqxx/largeobject" 11 #include "pqxx/pipeline" 13 #include "pqxx/result" 16 #include "pqxx/stream_to" [all …]
|
/dports/databases/postgresql-libpqxx/libpqxx-7.2.0/test/ |
H A D | test76.cxx | 10 pqxx::connection conn; in test_076() 11 pqxx::nontransaction tx{conn}; in test_076() 14 auto False{pqxx::from_string<bool>(RFalse[0])}, in test_076() 15 True{pqxx::from_string<bool>(RTrue[0])}; in test_076() 20 RTrue = tx.exec1("SELECT " + pqxx::to_string(True)); in test_076() 21 False = pqxx::from_string<bool>(RFalse[0]); in test_076() 22 True = pqxx::from_string<bool>(RTrue[0]); in test_076() 29 auto s{pqxx::from_string<short>(pqxx::to_string(svals[i]))}; in test_076() 31 s = pqxx::from_string<short>( in test_076() 39 auto u{pqxx::from_string<unsigned short>(pqxx::to_string(uvals[i]))}; in test_076() [all …]
|
H A D | test88.cxx | 14 pqxx::connection conn; in test_088() 16 pqxx::work tx0{conn}; in test_088() 17 pqxx::test::create_pqxxevents(tx0); in test_088() 22 pqxx::subtransaction T0a(static_cast<pqxx::dbtransaction &>(tx0), "T0a"); in test_088() 25 pqxx::subtransaction T0b(static_cast<pqxx::dbtransaction &>(tx0), "T0b"); in test_088() 31 pqxx::work tx1{conn, "tx1"}; in test_088() 33 pqxx::subtransaction tx1a{tx1, "tx1a"}; in test_088() 36 pqxx::subtransaction tx1b{tx1, "tx1b"}; in test_088() 39 pqxx::subtransaction tx1c{tx1, "tx1c"}; in test_088() 46 pqxx::work tx2{conn, "tx2"}; in test_088() [all …]
|