.. __: https://www.postgresql.org/docs/current/datatype-boolean.html
+.. versionchanged:: 3.2
+ `numpy.bool_` values can be dumped too.
+
.. index::
single: Adaptation; numbers
an adapter to :ref:`cast PostgreSQL numeric to Python float
<adapt-example-float>`. This of course may imply a loss of precision.
+.. versionchanged:: 3.2
+
+ NumPy integer__ and `floating point`__ values can be dumped too.
+
+.. __: https://numpy.org/doc/stable/reference/arrays.scalars.html#integer-types
+.. __: https://numpy.org/doc/stable/reference/arrays.scalars.html#floating-point-types
+
.. index::
pair: Strings; Adaptation
intersphinx_mapping = {
"py": ("https://docs.python.org/3", None),
"pg2": ("https://www.psycopg.org/docs/", None),
+ "numpy": ("https://numpy.org/doc/stable/", None),
}
autodoc_member_order = "bysource"
Psycopg 3.2 (unreleased)
^^^^^^^^^^^^^^^^^^^^^^^^
+- Add support for integer, floating point, boolean `NumPy scalar types`__
+ (:ticket:`#332`).
- Add support for libpq functions to close prepared statements and portals
introduced in libpq v17 (:ticket:`#603`).
- Disable receiving more than one result on the same cursor in pipeline mode,
The `Cursor` now only preserves the results set of the last
`~Cursor.execute()`, consistently with non-pipeline mode.
+.. __: https://numpy.org/doc/stable/reference/arrays.scalars.html#built-in-scalar-types
+
Current release
---------------