PyGreSQL 6.3.0b1__cp315-cp315-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 ADDED
@@ -0,0 +1,192 @@
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) 2026 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, DbType, DbTypes, 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
+ ConnectError,
47
+ Connection,
48
+ DatabaseError,
49
+ DataError,
50
+ Error,
51
+ IntegrityError,
52
+ InterfaceError,
53
+ InternalError,
54
+ InvalidResultError,
55
+ LargeObject,
56
+ MultipleResultsError,
57
+ NoResultError,
58
+ NotSupportedError,
59
+ OperationalError,
60
+ ProgrammingError,
61
+ Query,
62
+ Warning,
63
+ cast_array,
64
+ cast_hstore,
65
+ cast_record,
66
+ connect,
67
+ escape_bytea,
68
+ escape_string,
69
+ get_array,
70
+ get_bool,
71
+ get_bytea_escaped,
72
+ get_datestyle,
73
+ get_decimal,
74
+ get_decimal_point,
75
+ get_defbase,
76
+ get_defhost,
77
+ get_defopt,
78
+ get_defport,
79
+ get_defuser,
80
+ get_jsondecode,
81
+ get_pqlib_version,
82
+ set_array,
83
+ set_bool,
84
+ set_bytea_escaped,
85
+ set_datestyle,
86
+ set_decimal,
87
+ set_decimal_point,
88
+ set_defbase,
89
+ set_defhost,
90
+ set_defopt,
91
+ set_defpasswd,
92
+ set_defport,
93
+ set_defuser,
94
+ set_jsondecode,
95
+ set_query_helpers,
96
+ unescape_bytea,
97
+ version,
98
+ )
99
+ from .db import DB
100
+ from .helpers import RowCache, init_core
101
+ from .notify import NotificationHandler
102
+
103
+ __all__ = [
104
+ 'DB',
105
+ 'INV_READ',
106
+ 'INV_WRITE',
107
+ 'POLLING_FAILED',
108
+ 'POLLING_OK',
109
+ 'POLLING_READING',
110
+ 'POLLING_WRITING',
111
+ 'RESULT_DDL',
112
+ 'RESULT_DML',
113
+ 'RESULT_DQL',
114
+ 'RESULT_EMPTY',
115
+ 'SEEK_CUR',
116
+ 'SEEK_END',
117
+ 'SEEK_SET',
118
+ 'TRANS_ACTIVE',
119
+ 'TRANS_IDLE',
120
+ 'TRANS_INERROR',
121
+ 'TRANS_INTRANS',
122
+ 'TRANS_UNKNOWN',
123
+ 'Adapter',
124
+ 'Bytea',
125
+ 'ConnectError',
126
+ 'Connection',
127
+ 'DataError',
128
+ 'DatabaseError',
129
+ 'DbType',
130
+ 'DbTypes',
131
+ 'Error',
132
+ 'Hstore',
133
+ 'IntegrityError',
134
+ 'InterfaceError',
135
+ 'InternalError',
136
+ 'InvalidResultError',
137
+ 'Json',
138
+ 'LargeObject',
139
+ 'Literal',
140
+ 'MultipleResultsError',
141
+ 'NoResultError',
142
+ 'NotSupportedError',
143
+ 'NotificationHandler',
144
+ 'OperationalError',
145
+ 'ProgrammingError',
146
+ 'Query',
147
+ 'RowCache',
148
+ 'Typecasts',
149
+ 'Warning',
150
+ '__version__',
151
+ 'cast_array',
152
+ 'cast_hstore',
153
+ 'cast_record',
154
+ 'connect',
155
+ 'escape_bytea',
156
+ 'escape_string',
157
+ 'get_array',
158
+ 'get_bool',
159
+ 'get_bytea_escaped',
160
+ 'get_datestyle',
161
+ 'get_decimal',
162
+ 'get_decimal_point',
163
+ 'get_defbase',
164
+ 'get_defhost',
165
+ 'get_defopt',
166
+ 'get_defport',
167
+ 'get_defuser',
168
+ 'get_jsondecode',
169
+ 'get_pqlib_version',
170
+ 'get_typecast',
171
+ 'set_array',
172
+ 'set_bool',
173
+ 'set_bytea_escaped',
174
+ 'set_datestyle',
175
+ 'set_decimal',
176
+ 'set_decimal_point',
177
+ 'set_defbase',
178
+ 'set_defhost',
179
+ 'set_defopt',
180
+ 'set_defpasswd',
181
+ 'set_defport',
182
+ 'set_defuser',
183
+ 'set_jsondecode',
184
+ 'set_query_helpers',
185
+ 'set_typecast',
186
+ 'unescape_bytea',
187
+ 'version',
188
+ ]
189
+
190
+ __version__ = version
191
+
192
+ init_core()
Binary file