]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Re-export DB-API type constructors and singletons
authorDenis Laxalde <denis.laxalde@dalibo.com>
Thu, 28 Oct 2021 09:31:25 +0000 (11:31 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 28 Oct 2021 14:26:02 +0000 (15:26 +0100)
Following https://www.python.org/dev/peps/pep-0249/#type-objects-and-constructors

psycopg/psycopg/__init__.py

index c1c1dc6ebce06594c770c2f88b0c2416f38ea7cd..40e73eb0a309e7b4cd282dd5864f82e4cd7288d5 100644 (file)
@@ -88,4 +88,17 @@ __all__ = [
     "InternalError",
     "ProgrammingError",
     "NotSupportedError",
+    # DBAPI type constructors and singletons
+    "Date",
+    "Time",
+    "Timestamp",
+    "DateFromTicks",
+    "TimeFromTicks",
+    "TimestampFromTicks",
+    "Binary",
+    "STRING",
+    "BINARY",
+    "NUMBER",
+    "DATETIME",
+    "ROWID",
 ]