PyGreSQL 6.2.0__cp314-cp314-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pg/__init__.py +186 -0
- pg/_pg.cp314-win_amd64.pyd +0 -0
- pg/_pg.pyi +638 -0
- pg/adapt.py +687 -0
- pg/attrs.py +35 -0
- pg/cast.py +446 -0
- pg/core.py +178 -0
- pg/db.py +1506 -0
- pg/error.py +59 -0
- pg/helpers.py +124 -0
- pg/notify.py +149 -0
- pg/py.typed +4 -0
- pg/tz.py +21 -0
- pgdb/__init__.py +182 -0
- pgdb/adapt.py +261 -0
- pgdb/cast.py +594 -0
- pgdb/connect.py +74 -0
- pgdb/connection.py +156 -0
- pgdb/constants.py +14 -0
- pgdb/cursor.py +645 -0
- pgdb/py.typed +1 -0
- pgdb/typecode.py +34 -0
- pygresql-6.2.0.dist-info/METADATA +85 -0
- pygresql-6.2.0.dist-info/RECORD +27 -0
- pygresql-6.2.0.dist-info/WHEEL +5 -0
- pygresql-6.2.0.dist-info/licenses/LICENSE.txt +30 -0
- pygresql-6.2.0.dist-info/top_level.txt +2 -0
pg/__init__.py
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
#!/usr/bin/python
|
|
2
|
+
#
|
|
3
|
+
# PyGreSQL - a Python interface for the PostgreSQL database.
|
|
4
|
+
#
|
|
5
|
+
# This file contains the classic pg module.
|
|
6
|
+
#
|
|
7
|
+
# Copyright (c) 2025 by the PyGreSQL Development Team
|
|
8
|
+
#
|
|
9
|
+
# The notification handler is based on pgnotify which is
|
|
10
|
+
# Copyright (c) 2001 Ng Pheng Siong. All rights reserved.
|
|
11
|
+
#
|
|
12
|
+
# Please see the LICENSE.TXT file for specific restrictions.
|
|
13
|
+
|
|
14
|
+
"""PyGreSQL classic interface.
|
|
15
|
+
|
|
16
|
+
This pg module implements some basic database management stuff.
|
|
17
|
+
It includes the _pg module and builds on it, providing the higher
|
|
18
|
+
level wrapper class named DB with additional functionality.
|
|
19
|
+
This is known as the "classic" ("old style") PyGreSQL interface.
|
|
20
|
+
For a DB-API 2 compliant interface use the newer pgdb module.
|
|
21
|
+
"""
|
|
22
|
+
|
|
23
|
+
from __future__ import annotations
|
|
24
|
+
|
|
25
|
+
from .adapt import Adapter, Bytea, Hstore, Json, Literal
|
|
26
|
+
from .cast import Typecasts, get_typecast, set_typecast
|
|
27
|
+
from .core import (
|
|
28
|
+
INV_READ,
|
|
29
|
+
INV_WRITE,
|
|
30
|
+
POLLING_FAILED,
|
|
31
|
+
POLLING_OK,
|
|
32
|
+
POLLING_READING,
|
|
33
|
+
POLLING_WRITING,
|
|
34
|
+
RESULT_DDL,
|
|
35
|
+
RESULT_DML,
|
|
36
|
+
RESULT_DQL,
|
|
37
|
+
RESULT_EMPTY,
|
|
38
|
+
SEEK_CUR,
|
|
39
|
+
SEEK_END,
|
|
40
|
+
SEEK_SET,
|
|
41
|
+
TRANS_ACTIVE,
|
|
42
|
+
TRANS_IDLE,
|
|
43
|
+
TRANS_INERROR,
|
|
44
|
+
TRANS_INTRANS,
|
|
45
|
+
TRANS_UNKNOWN,
|
|
46
|
+
Connection,
|
|
47
|
+
DatabaseError,
|
|
48
|
+
DataError,
|
|
49
|
+
Error,
|
|
50
|
+
IntegrityError,
|
|
51
|
+
InterfaceError,
|
|
52
|
+
InternalError,
|
|
53
|
+
InvalidResultError,
|
|
54
|
+
MultipleResultsError,
|
|
55
|
+
NoResultError,
|
|
56
|
+
NotSupportedError,
|
|
57
|
+
OperationalError,
|
|
58
|
+
ProgrammingError,
|
|
59
|
+
Query,
|
|
60
|
+
Warning,
|
|
61
|
+
cast_array,
|
|
62
|
+
cast_hstore,
|
|
63
|
+
cast_record,
|
|
64
|
+
connect,
|
|
65
|
+
escape_bytea,
|
|
66
|
+
escape_string,
|
|
67
|
+
get_array,
|
|
68
|
+
get_bool,
|
|
69
|
+
get_bytea_escaped,
|
|
70
|
+
get_datestyle,
|
|
71
|
+
get_decimal,
|
|
72
|
+
get_decimal_point,
|
|
73
|
+
get_defbase,
|
|
74
|
+
get_defhost,
|
|
75
|
+
get_defopt,
|
|
76
|
+
get_defport,
|
|
77
|
+
get_defuser,
|
|
78
|
+
get_jsondecode,
|
|
79
|
+
get_pqlib_version,
|
|
80
|
+
set_array,
|
|
81
|
+
set_bool,
|
|
82
|
+
set_bytea_escaped,
|
|
83
|
+
set_datestyle,
|
|
84
|
+
set_decimal,
|
|
85
|
+
set_decimal_point,
|
|
86
|
+
set_defbase,
|
|
87
|
+
set_defhost,
|
|
88
|
+
set_defopt,
|
|
89
|
+
set_defpasswd,
|
|
90
|
+
set_defport,
|
|
91
|
+
set_defuser,
|
|
92
|
+
set_jsondecode,
|
|
93
|
+
set_query_helpers,
|
|
94
|
+
unescape_bytea,
|
|
95
|
+
version,
|
|
96
|
+
)
|
|
97
|
+
from .db import DB
|
|
98
|
+
from .helpers import RowCache, init_core
|
|
99
|
+
from .notify import NotificationHandler
|
|
100
|
+
|
|
101
|
+
__all__ = [
|
|
102
|
+
'DB',
|
|
103
|
+
'INV_READ',
|
|
104
|
+
'INV_WRITE',
|
|
105
|
+
'POLLING_FAILED',
|
|
106
|
+
'POLLING_OK',
|
|
107
|
+
'POLLING_READING',
|
|
108
|
+
'POLLING_WRITING',
|
|
109
|
+
'RESULT_DDL',
|
|
110
|
+
'RESULT_DML',
|
|
111
|
+
'RESULT_DQL',
|
|
112
|
+
'RESULT_EMPTY',
|
|
113
|
+
'SEEK_CUR',
|
|
114
|
+
'SEEK_END',
|
|
115
|
+
'SEEK_SET',
|
|
116
|
+
'TRANS_ACTIVE',
|
|
117
|
+
'TRANS_IDLE',
|
|
118
|
+
'TRANS_INERROR',
|
|
119
|
+
'TRANS_INTRANS',
|
|
120
|
+
'TRANS_UNKNOWN',
|
|
121
|
+
'Adapter',
|
|
122
|
+
'Bytea',
|
|
123
|
+
'Connection',
|
|
124
|
+
'DataError',
|
|
125
|
+
'DatabaseError',
|
|
126
|
+
'Error',
|
|
127
|
+
'Hstore',
|
|
128
|
+
'IntegrityError',
|
|
129
|
+
'InterfaceError',
|
|
130
|
+
'InternalError',
|
|
131
|
+
'InvalidResultError',
|
|
132
|
+
'Json',
|
|
133
|
+
'Literal',
|
|
134
|
+
'MultipleResultsError',
|
|
135
|
+
'NoResultError',
|
|
136
|
+
'NotSupportedError',
|
|
137
|
+
'NotificationHandler',
|
|
138
|
+
'OperationalError',
|
|
139
|
+
'ProgrammingError',
|
|
140
|
+
'Query',
|
|
141
|
+
'RowCache',
|
|
142
|
+
'Typecasts',
|
|
143
|
+
'Warning',
|
|
144
|
+
'__version__',
|
|
145
|
+
'cast_array',
|
|
146
|
+
'cast_hstore',
|
|
147
|
+
'cast_record',
|
|
148
|
+
'connect',
|
|
149
|
+
'escape_bytea',
|
|
150
|
+
'escape_string',
|
|
151
|
+
'get_array',
|
|
152
|
+
'get_bool',
|
|
153
|
+
'get_bytea_escaped',
|
|
154
|
+
'get_datestyle',
|
|
155
|
+
'get_decimal',
|
|
156
|
+
'get_decimal_point',
|
|
157
|
+
'get_defbase',
|
|
158
|
+
'get_defhost',
|
|
159
|
+
'get_defopt',
|
|
160
|
+
'get_defport',
|
|
161
|
+
'get_defuser',
|
|
162
|
+
'get_jsondecode',
|
|
163
|
+
'get_pqlib_version',
|
|
164
|
+
'get_typecast',
|
|
165
|
+
'set_array',
|
|
166
|
+
'set_bool',
|
|
167
|
+
'set_bytea_escaped',
|
|
168
|
+
'set_datestyle',
|
|
169
|
+
'set_decimal',
|
|
170
|
+
'set_decimal_point',
|
|
171
|
+
'set_defbase',
|
|
172
|
+
'set_defhost',
|
|
173
|
+
'set_defopt',
|
|
174
|
+
'set_defpasswd',
|
|
175
|
+
'set_defport',
|
|
176
|
+
'set_defuser',
|
|
177
|
+
'set_jsondecode',
|
|
178
|
+
'set_query_helpers',
|
|
179
|
+
'set_typecast',
|
|
180
|
+
'unescape_bytea',
|
|
181
|
+
'version',
|
|
182
|
+
]
|
|
183
|
+
|
|
184
|
+
__version__ = version
|
|
185
|
+
|
|
186
|
+
init_core()
|
|
Binary file
|