head 1.3; access; symbols pkgsrc-2023Q4:1.3.0.8 pkgsrc-2023Q4-base:1.3 pkgsrc-2023Q3:1.3.0.6 pkgsrc-2023Q3-base:1.3 pkgsrc-2023Q2:1.3.0.4 pkgsrc-2023Q2-base:1.3 pkgsrc-2023Q1:1.3.0.2 pkgsrc-2023Q1-base:1.3 pkgsrc-2022Q4:1.2.0.16 pkgsrc-2022Q4-base:1.2 pkgsrc-2022Q3:1.2.0.14 pkgsrc-2022Q3-base:1.2 pkgsrc-2022Q2:1.2.0.12 pkgsrc-2022Q2-base:1.2 pkgsrc-2022Q1:1.2.0.10 pkgsrc-2022Q1-base:1.2 pkgsrc-2021Q4:1.2.0.8 pkgsrc-2021Q4-base:1.2 pkgsrc-2021Q3:1.2.0.6 pkgsrc-2021Q3-base:1.2 pkgsrc-2021Q2:1.2.0.4 pkgsrc-2021Q2-base:1.2 pkgsrc-2021Q1:1.2.0.2 pkgsrc-2021Q1-base:1.2 pkgsrc-2020Q4:1.1.0.22 pkgsrc-2020Q4-base:1.1 pkgsrc-2020Q3:1.1.0.20 pkgsrc-2020Q3-base:1.1 pkgsrc-2020Q2:1.1.0.18 pkgsrc-2020Q2-base:1.1 pkgsrc-2020Q1:1.1.0.14 pkgsrc-2020Q1-base:1.1 pkgsrc-2019Q4:1.1.0.16 pkgsrc-2019Q4-base:1.1 pkgsrc-2019Q3:1.1.0.12 pkgsrc-2019Q3-base:1.1 pkgsrc-2019Q2:1.1.0.10 pkgsrc-2019Q2-base:1.1 pkgsrc-2019Q1:1.1.0.8 pkgsrc-2019Q1-base:1.1 pkgsrc-2018Q4:1.1.0.6 pkgsrc-2018Q4-base:1.1 pkgsrc-2018Q3:1.1.0.4 pkgsrc-2018Q3-base:1.1 pkgsrc-2018Q2:1.1.0.2 pkgsrc-2018Q2-base:1.1; locks; strict; comment @# @; 1.3 date 2022.12.29.22.24.48; author prlw1; state Exp; branches; next 1.2; commitid wL2zyKH2Bbfjfv7E; 1.2 date 2021.01.07.16.29.30; author prlw1; state Exp; branches; next 1.1; commitid 0b9xZFXxhVEwvOCC; 1.1 date 2018.05.03.13.29.57; author prlw1; state Exp; branches; next ; commitid EZAwjZ2WZE891RAA; desc @@ 1.3 log @Update libpqx to 7.7.4 You now have three basic ways to query data, all through methods on your transaction object: - "query" methods execute the query, load the full result set, and then let you iterate the rows. They convert each row to a tuple of values of your chosen types. - "stream" methods do the same thing, except they run the query in a different way that's slower to start up, but starts giving you rows right away without waiting for the full result to come in. The rows also come in faster. - "exec" methods execute the query, load the full result set, and return a pqxx::result object. It contains both the result data and metadata such as how many rows there are in the result. Highlights: - Build docs in `doc/html/`, no longer in `doc/html/Reference/`. - New `result::for_stream()`: simple iteration and conversion of rows. - New `transaction_base::for_query()` is similar, but non-streaming. (#580) - Query data and iterate directly as client-side types: `query()`. (#580) - New ways to query a single row! `query01()` and `query1()`. (#580) - We now have 3 kinds of execution: "exec", "query", and "stream" functions. - Use C++23 `std::unreachable()` where available. - New class, `connecting` for nonblocking connection to the database. (#487) - New class, `range` for SQL range types. (#490) - Support `result::at(row_num, col_num)`. - Support `result[row_num, col_num]` if the compiler allows it. - `result::iter()` return value now keeps its `result` alive. - Add C++20 concepts: `binary`, `char_string`, `char_strings`. - New helper: `pqxx::value_type`. - New helper: `pqxx::binary_cast`. (#450) - Helper for generating parameter placeholders `$1`, `$2`, etc. (#443) - Now requires `std::variant` support! No longer works with gcc7. - New `blob::read()` using `std::span`. (#429) - New, simpler API for large objects: `blob` ("binary large object"). For full changelog, see https://github.com/jtv/libpqxx/blob/7.7.4/NEWS @ text @# $NetBSD: options.mk,v 1.2 2021/01/07 16:29:30 prlw1 Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.libpqxx PKG_SUPPORTED_OPTIONS= doc PKG_SUGGESTED_OPTIONS= .include "../../mk/bsd.options.mk" PLIST_VARS+= doc .if !empty(PKG_OPTIONS:Mdoc) CONFIGURE_ARGS+= --enable-documentation PLIST.doc= yes TOOL_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen TOOL_DEPENDS+= graphviz-[0-9]*:../../graphics/graphviz PQXXDOCSRC= ${WRKSRC}/doc/html PQXXDOC= ${PREFIX}/share/doc/libpqxx INSTALLATION_DIRS+= share/doc/libpqxx INSTALLATION_DIRS+= share/examples/libpqxx post-install: ${INSTALL_DATA} ${PQXXDOCSRC}/*.html \ ${DESTDIR}${PQXXDOC} ${INSTALL_DATA} ${PQXXDOCSRC}/doxygen.* \ ${DESTDIR}${PQXXDOC} ${INSTALL_DATA} ${WRKSRC}/test/*.cxx \ ${DESTDIR}${PREFIX}/share/examples/libpqxx .else CONFIGURE_ARGS+= --disable-documentation .endif @ 1.2 log @Update libpqxx to 7.3.0 7.3.0 - `stream_to` now quotes and escapes its table name. - Removed `transaction_base::classname()`. Did anyone ever use it? - Internal reorg of the `transaction` and `transactionfocus` hierarchies. - Removed the only case of virtual inheritance, related to `namedclass`. - Internal `concat()` for faster, simpler string concatentation. - Fix compile omission in string conversions for `nullptr_t`. - `pqxx::size_buffer()` can now size multiple values at once. - `multi_to_string()` to convert multiple values into one `std::string`. - Implicit `zview` constructor from `char const *`. (#389) - Many `std::string&` parameters are now `zview` or `std::string_view`. - Now checking statement parameter lengths for overflow. - `#include ` in connection.cxx. (#394) 7.2.1 - Fix infinite loop in converting `char *` to string. (#377) - Deprecated `namedclass`. - Convert an entire row using `row::as()`. - Internal rework of `field::to()` and `field::as()` functions. - Some more warning options in maintainer mode. - Removed the old, DocBook-based tutorial. - Fixed wrong `query` and SQLSTATE params to some exceptions. (#378) @ text @d1 1 a1 1 # $NetBSD: options.mk,v 1.1 2018/05/03 13:29:57 prlw1 Exp $ d17 2 a18 2 PQXXDOC= ${PREFIX}/share/doc/${PKGBASE} INSTALLATION_DIRS+= ${PQXXDOC}/Reference d22 4 a25 4 ${INSTALL_DATA} ${PQXXDOCSRC}/Reference/*.html \ ${DESTDIR}${PQXXDOC}/Reference ${INSTALL_DATA} ${PQXXDOCSRC}/Reference/doxygen.* \ ${DESTDIR}${PQXXDOC}/Reference @ 1.1 log @Missed libpqxx/options.mk @ text @d1 1 a1 1 # $NetBSD$ a14 1 TOOL_DEPENDS+= xmlto-[0-9]*:../../textproc/xmlto d18 1 a18 1 INSTALLATION_DIRS+= ${PQXXDOC}/Reference ${PQXXDOC}/Tutorial a25 2 ${INSTALL_DATA} ${PQXXDOCSRC}/Tutorial/*.html \ ${DESTDIR}${PQXXDOC}/Tutorial @