@@ -1347,22 +1347,27 @@ The following example illustrates the implicit and explicit approaches:
1347
1347
.. literalinclude :: ../includes/sqlite3/converter_point.py
1348
1348
1349
1349
1350
+ .. _sqlite3-default-converters :
1351
+
1350
1352
Default adapters and converters (deprecated)
1351
1353
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1352
1354
1353
1355
.. note ::
1354
1356
1355
1357
The default adapters and converters are deprecated as of Python 3.12.
1356
- Instead, use the :ref: `sqlite3-adapter-converter-recipes `,
1358
+ Instead, use the :ref: `sqlite3-adapter-converter-recipes `
1357
1359
and tailor them to your needs.
1358
1360
1359
- The deprecated default adapters and converters consists of:
1361
+ The deprecated default adapters and converters consist of:
1360
1362
1361
- * Adapt :class: `datetime.date ` objects to :class: `strings <str> ` in ISO format.
1362
- * Adapt :class: `datetime.datetime ` objects to strings ISO format.
1363
- * Convert :ref: `declared <sqlite3-converters >` "date" types to ``datetime.date ``
1364
- objects.
1365
- * Convert declared "timestamp" types to ``datetime.datetime `` objects.
1363
+ * An adapter for :class: `datetime.date ` objects to :class: `strings <str> ` in
1364
+ `ISO 8601 `_ format.
1365
+ * An adapter for :class: `datetime.datetime ` objects to strings in
1366
+ ISO 8601 format.
1367
+ * A converter for :ref: `declared <sqlite3-converters >` "date" types to
1368
+ :class: `datetime.date ` objects.
1369
+ * A converter for declared "timestamp" types to
1370
+ :class: `datetime.datetime ` objects.
1366
1371
Fractional parts will be truncated to 6 digits (microsecond precision).
1367
1372
1368
1373
.. note ::
@@ -1372,12 +1377,10 @@ The deprecated default adapters and converters consists of:
1372
1377
offsets in timestamps, either leave converters disabled, or register an
1373
1378
offset-aware converter with :func: `register_converter `.
1374
1379
1375
- .. versionchanged :: 3.12
1376
-
1377
- Deprecated default adapters and converters.
1378
-
1379
1380
.. deprecated :: 3.12
1380
1381
1382
+ .. _ISO 8601 : https://en.wikipedia.org/wiki/ISO_8601
1383
+
1381
1384
1382
1385
.. _sqlite3-adapter-converter-recipes :
1383
1386
0 commit comments