vertebra-mysql 0.3.0__tar.gz
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.
- vertebra_mysql-0.3.0/PKG-INFO +7 -0
- vertebra_mysql-0.3.0/py/vertebra/_mysql.pyi +319 -0
- vertebra_mysql-0.3.0/py/vertebra/framework/assets/welcome.css +301 -0
- vertebra_mysql-0.3.0/py/vertebra/framework/assets/welcome.html +146 -0
- vertebra_mysql-0.3.0/pyproject.toml +37 -0
- vertebra_mysql-0.3.0/rs/Cargo.lock +7673 -0
- vertebra_mysql-0.3.0/rs/Cargo.toml +96 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/Cargo.toml +73 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/benches/codec.rs +101 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/benches/guards.rs +60 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/benches/ring_throughput.rs +102 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/benches/shm_transport.rs +237 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/benches/spsc.rs +261 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/bridge.rs +1650 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/broker.rs +4845 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/broker_attach.rs +1113 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/buffer.rs +203 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/channel.rs +3098 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/cleanup.rs +420 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/dbrpc/mod.rs +173 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/gcp_auth.rs +3231 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/gcp_identity.rs +733 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/guards.rs +174 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/id.rs +341 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/ipc.rs +174 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/layout.rs +32 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/lib.rs +54 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/logger.rs +449 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/notify.rs +878 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/platform/linux.rs +107 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/platform/macos.rs +92 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/platform/mod.rs +48 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/platform/windows.rs +73 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/process.rs +84 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/proto.rs +259 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/protocol/codec.rs +345 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/protocol/mod.rs +52 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/py_async.rs +1497 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/router.rs +133 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/shm.rs +2012 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/sync.rs +188 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/telemetry.rs +197 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/text.rs +1354 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/tiered_ring.rs +170 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/transport/mod.rs +2393 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/transport/ring_pair.rs +1704 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/util.rs +43 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/src/vector.rs +2117 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/broker.rs +631 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/gcp_auth.rs +1891 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/main.rs +19 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/mpmc.rs +278 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/ring.rs +336 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/shm.rs +661 -0
- vertebra_mysql-0.3.0/rs/vertebra-core/tests/it/shm_streaming.rs +130 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/Cargo.toml +107 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/build.rs +11 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/arrow_shm.rs +526 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/aws_rds_root_cas.pem +2888 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/broker_capsule.rs +1312 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/connection.rs +1834 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/dialer.rs +1760 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/duckdb/mod.rs +101 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/gcp.rs +268 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/lease_guard.rs +147 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/lib.rs +103 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/mssql/mod.rs +216 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/oracle/mod.rs +279 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/oracle/tns.rs +277 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/postgres/mod.rs +442 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/py_async.rs +669 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/py_broker.rs +98 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/py_cursor.rs +241 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/src/py_errors.rs +303 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/tests/arrow_shm_stream_tests.rs +105 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/tests/broker_engine_capsule_tests.rs +198 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/tests/gcp_credentials_tests.rs +57 -0
- vertebra_mysql-0.3.0/rs/vertebra-db/tests/postgres_vector_tests.rs +114 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/Cargo.toml +47 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/build.rs +9 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/arrow_ipc.rs +777 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/client.rs +2214 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/codecs.rs +777 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/config.rs +1213 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/cursor.rs +1381 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/errors.rs +324 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/lib.rs +303 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/loopback.rs +2639 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/src/protocol.rs +717 -0
- vertebra_mysql-0.3.0/rs/vertebra-mysql/tests/wire_conformance.rs +279 -0
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
"""Type stubs for the vertebra._mysql native extension module."""
|
|
2
|
+
|
|
3
|
+
from collections.abc import Awaitable, Callable, Mapping, Sequence
|
|
4
|
+
from typing import Any, final
|
|
5
|
+
|
|
6
|
+
from vertebra._vertebra import ArrowCursor
|
|
7
|
+
|
|
8
|
+
__version__: str
|
|
9
|
+
FREE_THREADED: bool
|
|
10
|
+
GIL_USED: bool
|
|
11
|
+
|
|
12
|
+
__all__ = [
|
|
13
|
+
"FREE_THREADED",
|
|
14
|
+
"GIL_USED",
|
|
15
|
+
"AsyncMySQLClient",
|
|
16
|
+
"AsyncMySQLCursor",
|
|
17
|
+
"MySQLWireTestServer",
|
|
18
|
+
"SyncMySQLClient",
|
|
19
|
+
"SyncMySQLCursor",
|
|
20
|
+
"__version__",
|
|
21
|
+
"broker_engine_capsule",
|
|
22
|
+
"compile_binds",
|
|
23
|
+
"compute_caching_sha2_scramble",
|
|
24
|
+
"compute_mysql_native_scramble",
|
|
25
|
+
"encrypt_caching_sha2_rsa_password",
|
|
26
|
+
"map_mysql_error",
|
|
27
|
+
"next_mysql_shm_name",
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
def broker_engine_capsule() -> object: ...
|
|
31
|
+
def compile_binds(
|
|
32
|
+
sql: str,
|
|
33
|
+
parameters: Sequence[Any] | Mapping[str, Any] | None = None,
|
|
34
|
+
) -> tuple[str, tuple[Any, ...]]: ...
|
|
35
|
+
def compute_caching_sha2_scramble(password: bytes, nonce: bytes) -> bytes: ...
|
|
36
|
+
def compute_mysql_native_scramble(password: bytes, nonce: bytes) -> bytes: ...
|
|
37
|
+
def encrypt_caching_sha2_rsa_password(password: bytes, nonce: bytes, public_key_pem: str) -> bytes: ...
|
|
38
|
+
def map_mysql_error(
|
|
39
|
+
errno: int,
|
|
40
|
+
sqlstate: str | None = None,
|
|
41
|
+
message: str = "MySQL error",
|
|
42
|
+
) -> Exception: ...
|
|
43
|
+
def next_mysql_shm_name() -> str: ...
|
|
44
|
+
|
|
45
|
+
@final
|
|
46
|
+
class MySQLWireTestServer:
|
|
47
|
+
def __new__(
|
|
48
|
+
cls,
|
|
49
|
+
auth_plugin: str = "caching_sha2_password",
|
|
50
|
+
require_rsa_full_auth: bool = False,
|
|
51
|
+
expected_password: str = "secret",
|
|
52
|
+
) -> MySQLWireTestServer: ...
|
|
53
|
+
@property
|
|
54
|
+
def host(self) -> str: ...
|
|
55
|
+
@property
|
|
56
|
+
def port(self) -> int: ...
|
|
57
|
+
@property
|
|
58
|
+
def dsn(self) -> str: ...
|
|
59
|
+
@property
|
|
60
|
+
def prepare_count(self) -> int: ...
|
|
61
|
+
@property
|
|
62
|
+
def execute_count(self) -> int: ...
|
|
63
|
+
@property
|
|
64
|
+
def close_stmt_count(self) -> int: ...
|
|
65
|
+
@property
|
|
66
|
+
def kill_query_count(self) -> int: ...
|
|
67
|
+
@property
|
|
68
|
+
def query_count(self) -> int: ...
|
|
69
|
+
def close(self) -> None: ...
|
|
70
|
+
|
|
71
|
+
@final
|
|
72
|
+
class SyncMySQLClient:
|
|
73
|
+
def __new__(
|
|
74
|
+
cls,
|
|
75
|
+
dsn: str = "mysql://root@127.0.0.1:3306/mysql",
|
|
76
|
+
*,
|
|
77
|
+
host: str | None = None,
|
|
78
|
+
port: int | None = None,
|
|
79
|
+
user: str | None = None,
|
|
80
|
+
password: str | None = None,
|
|
81
|
+
database: str | None = None,
|
|
82
|
+
unix_socket: str | None = None,
|
|
83
|
+
ssl_mode: str = "prefer",
|
|
84
|
+
ssl_ca: str | None = None,
|
|
85
|
+
ssl_cert: str | None = None,
|
|
86
|
+
ssl_key: str | None = None,
|
|
87
|
+
connect_timeout_ms: int = 10000,
|
|
88
|
+
read_timeout_ms: int = 30000,
|
|
89
|
+
write_timeout_ms: int = 30000,
|
|
90
|
+
pool_min_size: int = 1,
|
|
91
|
+
pool_max_size: int = 10,
|
|
92
|
+
statement_cache_size: int = 128,
|
|
93
|
+
charset: str = "utf8mb4",
|
|
94
|
+
autocommit: bool = True,
|
|
95
|
+
init_command: str | None = None,
|
|
96
|
+
cloud_sql_instance: str | None = None,
|
|
97
|
+
cloud_sql_ip_type: str = "PUBLIC",
|
|
98
|
+
enable_iam_auth: bool = False,
|
|
99
|
+
credentials_path: str | None = None,
|
|
100
|
+
credentials_json: str | None = None,
|
|
101
|
+
target_service_account: str | None = None,
|
|
102
|
+
) -> SyncMySQLClient: ...
|
|
103
|
+
@property
|
|
104
|
+
def dsn(self) -> str: ...
|
|
105
|
+
@property
|
|
106
|
+
def host(self) -> str: ...
|
|
107
|
+
@property
|
|
108
|
+
def port(self) -> int: ...
|
|
109
|
+
@property
|
|
110
|
+
def user(self) -> str: ...
|
|
111
|
+
@property
|
|
112
|
+
def database(self) -> str: ...
|
|
113
|
+
@property
|
|
114
|
+
def ssl_mode(self) -> str: ...
|
|
115
|
+
@property
|
|
116
|
+
def statement_cache_size(self) -> int: ...
|
|
117
|
+
@property
|
|
118
|
+
def enable_iam_auth(self) -> bool: ...
|
|
119
|
+
@property
|
|
120
|
+
def cloud_sql_instance(self) -> str | None: ...
|
|
121
|
+
@property
|
|
122
|
+
def in_transaction(self) -> bool: ...
|
|
123
|
+
@property
|
|
124
|
+
def is_closed(self) -> bool: ...
|
|
125
|
+
@property
|
|
126
|
+
def connection_id(self) -> int | None: ...
|
|
127
|
+
@property
|
|
128
|
+
def lastrowid(self) -> int | None: ...
|
|
129
|
+
def statement_cache_len(self) -> int: ...
|
|
130
|
+
def __repr__(self) -> str: ...
|
|
131
|
+
def cursor(self, *, lazy_begin: bool = False) -> SyncMySQLCursor: ...
|
|
132
|
+
def attach_lease(self, release: Callable[[], None]) -> None: ...
|
|
133
|
+
def release_lease(self) -> None: ...
|
|
134
|
+
def execute(self, sql: str, parameters: Any = None) -> int: ...
|
|
135
|
+
def execute_many(self, sql: str, parameter_sets: Sequence[Any]) -> int: ...
|
|
136
|
+
def execute_script(self, sql: str) -> int: ...
|
|
137
|
+
def fetch_all_sets(self, sql: str, parameters: Any = None) -> list[list[dict[str, Any]]]: ...
|
|
138
|
+
def begin(self, isolation_level: str | None = None, readonly: bool = False) -> None: ...
|
|
139
|
+
def commit(self) -> None: ...
|
|
140
|
+
def rollback(self) -> None: ...
|
|
141
|
+
def savepoint(self, name: str = "vtb_sp") -> str: ...
|
|
142
|
+
def release_savepoint(self, name: str = "vtb_sp") -> None: ...
|
|
143
|
+
def rollback_to_savepoint(self, name: str = "vtb_sp") -> None: ...
|
|
144
|
+
def ping(self) -> bool: ...
|
|
145
|
+
def cancel(self) -> bool: ...
|
|
146
|
+
def cancel_query(self, connection_id: int) -> bool: ...
|
|
147
|
+
def close(self) -> None: ...
|
|
148
|
+
def select_to_arrow(
|
|
149
|
+
self,
|
|
150
|
+
sql: str,
|
|
151
|
+
parameters: Any = None,
|
|
152
|
+
*,
|
|
153
|
+
batch_size: int = 65536,
|
|
154
|
+
) -> ArrowCursor: ...
|
|
155
|
+
def stream_arrow_batches(
|
|
156
|
+
self,
|
|
157
|
+
sql: str,
|
|
158
|
+
parameters: Any = None,
|
|
159
|
+
*,
|
|
160
|
+
batch_size: int = 65536,
|
|
161
|
+
) -> list[ArrowCursor]: ...
|
|
162
|
+
def load_from_arrow(
|
|
163
|
+
self,
|
|
164
|
+
table_name: str,
|
|
165
|
+
source: Any,
|
|
166
|
+
*,
|
|
167
|
+
columns: Sequence[str] | None = None,
|
|
168
|
+
batch_size: int = 1000,
|
|
169
|
+
) -> int: ...
|
|
170
|
+
|
|
171
|
+
@final
|
|
172
|
+
class AsyncMySQLClient:
|
|
173
|
+
def __new__(
|
|
174
|
+
cls,
|
|
175
|
+
dsn: str = "mysql://root@127.0.0.1:3306/mysql",
|
|
176
|
+
*,
|
|
177
|
+
host: str | None = None,
|
|
178
|
+
port: int | None = None,
|
|
179
|
+
user: str | None = None,
|
|
180
|
+
password: str | None = None,
|
|
181
|
+
database: str | None = None,
|
|
182
|
+
unix_socket: str | None = None,
|
|
183
|
+
ssl_mode: str = "prefer",
|
|
184
|
+
ssl_ca: str | None = None,
|
|
185
|
+
ssl_cert: str | None = None,
|
|
186
|
+
ssl_key: str | None = None,
|
|
187
|
+
connect_timeout_ms: int = 10000,
|
|
188
|
+
read_timeout_ms: int = 30000,
|
|
189
|
+
write_timeout_ms: int = 30000,
|
|
190
|
+
pool_min_size: int = 1,
|
|
191
|
+
pool_max_size: int = 10,
|
|
192
|
+
statement_cache_size: int = 128,
|
|
193
|
+
charset: str = "utf8mb4",
|
|
194
|
+
autocommit: bool = True,
|
|
195
|
+
init_command: str | None = None,
|
|
196
|
+
cloud_sql_instance: str | None = None,
|
|
197
|
+
cloud_sql_ip_type: str = "PUBLIC",
|
|
198
|
+
enable_iam_auth: bool = False,
|
|
199
|
+
credentials_path: str | None = None,
|
|
200
|
+
credentials_json: str | None = None,
|
|
201
|
+
target_service_account: str | None = None,
|
|
202
|
+
) -> AsyncMySQLClient: ...
|
|
203
|
+
@property
|
|
204
|
+
def dsn(self) -> str: ...
|
|
205
|
+
@property
|
|
206
|
+
def host(self) -> str: ...
|
|
207
|
+
@property
|
|
208
|
+
def port(self) -> int: ...
|
|
209
|
+
@property
|
|
210
|
+
def user(self) -> str: ...
|
|
211
|
+
@property
|
|
212
|
+
def database(self) -> str: ...
|
|
213
|
+
@property
|
|
214
|
+
def ssl_mode(self) -> str: ...
|
|
215
|
+
@property
|
|
216
|
+
def statement_cache_size(self) -> int: ...
|
|
217
|
+
@property
|
|
218
|
+
def enable_iam_auth(self) -> bool: ...
|
|
219
|
+
@property
|
|
220
|
+
def cloud_sql_instance(self) -> str | None: ...
|
|
221
|
+
@property
|
|
222
|
+
def in_transaction(self) -> bool: ...
|
|
223
|
+
@property
|
|
224
|
+
def is_closed(self) -> bool: ...
|
|
225
|
+
@property
|
|
226
|
+
def connection_id(self) -> int | None: ...
|
|
227
|
+
@property
|
|
228
|
+
def lastrowid(self) -> int | None: ...
|
|
229
|
+
def statement_cache_len(self) -> int: ...
|
|
230
|
+
def __repr__(self) -> str: ...
|
|
231
|
+
def cursor(self, *, lazy_begin: bool = False) -> AsyncMySQLCursor: ...
|
|
232
|
+
def attach_lease(self, release: Callable[[], None]) -> None: ...
|
|
233
|
+
def release_lease(self) -> None: ...
|
|
234
|
+
def execute(self, sql: str, parameters: Any = None) -> Awaitable[int]: ...
|
|
235
|
+
def execute_many(self, sql: str, parameter_sets: Sequence[Any]) -> Awaitable[int]: ...
|
|
236
|
+
def execute_script(self, sql: str) -> Awaitable[int]: ...
|
|
237
|
+
def fetch_all_sets(self, sql: str, parameters: Any = None) -> Awaitable[list[list[dict[str, Any]]]]: ...
|
|
238
|
+
def begin(self, isolation_level: str | None = None, readonly: bool = False) -> Awaitable[None]: ...
|
|
239
|
+
def commit(self) -> Awaitable[None]: ...
|
|
240
|
+
def rollback(self) -> Awaitable[None]: ...
|
|
241
|
+
def savepoint(self, name: str = "vtb_sp") -> Awaitable[str]: ...
|
|
242
|
+
def release_savepoint(self, name: str = "vtb_sp") -> Awaitable[None]: ...
|
|
243
|
+
def rollback_to_savepoint(self, name: str = "vtb_sp") -> Awaitable[None]: ...
|
|
244
|
+
def ping(self) -> Awaitable[bool]: ...
|
|
245
|
+
def cancel(self) -> Awaitable[bool]: ...
|
|
246
|
+
def cancel_query(self, connection_id: int) -> Awaitable[bool]: ...
|
|
247
|
+
def close(self) -> Awaitable[None]: ...
|
|
248
|
+
def select_to_arrow(
|
|
249
|
+
self,
|
|
250
|
+
sql: str,
|
|
251
|
+
parameters: Any = None,
|
|
252
|
+
*,
|
|
253
|
+
batch_size: int = 65536,
|
|
254
|
+
) -> Awaitable[ArrowCursor]: ...
|
|
255
|
+
def stream_arrow_batches(
|
|
256
|
+
self,
|
|
257
|
+
sql: str,
|
|
258
|
+
parameters: Any = None,
|
|
259
|
+
*,
|
|
260
|
+
batch_size: int = 65536,
|
|
261
|
+
) -> Awaitable[list[ArrowCursor]]: ...
|
|
262
|
+
def load_from_arrow(
|
|
263
|
+
self,
|
|
264
|
+
table_name: str,
|
|
265
|
+
source: Any,
|
|
266
|
+
*,
|
|
267
|
+
columns: Sequence[str] | None = None,
|
|
268
|
+
batch_size: int = 1000,
|
|
269
|
+
) -> Awaitable[int]: ...
|
|
270
|
+
|
|
271
|
+
@final
|
|
272
|
+
class SyncMySQLCursor:
|
|
273
|
+
arraysize: int
|
|
274
|
+
@property
|
|
275
|
+
def description(self) -> tuple[tuple[str, int, None, None, None, None, None], ...] | None: ...
|
|
276
|
+
@property
|
|
277
|
+
def rowcount(self) -> int: ...
|
|
278
|
+
@property
|
|
279
|
+
def lastrowid(self) -> int | None: ...
|
|
280
|
+
def execute(
|
|
281
|
+
self,
|
|
282
|
+
sql: str,
|
|
283
|
+
params: Sequence[Any] | Mapping[str, Any] | None = (),
|
|
284
|
+
) -> SyncMySQLCursor: ...
|
|
285
|
+
def executemany(
|
|
286
|
+
self,
|
|
287
|
+
sql: str,
|
|
288
|
+
seq_of_params: Sequence[Sequence[Any] | Mapping[str, Any]],
|
|
289
|
+
) -> SyncMySQLCursor: ...
|
|
290
|
+
def fetchone(self) -> tuple[Any, ...] | None: ...
|
|
291
|
+
def fetchmany(self, size: int | None = None) -> list[tuple[Any, ...]]: ...
|
|
292
|
+
def fetchall(self) -> list[tuple[Any, ...]]: ...
|
|
293
|
+
def close(self) -> None: ...
|
|
294
|
+
def __enter__(self) -> SyncMySQLCursor: ...
|
|
295
|
+
def __exit__(self, exc_type: Any = None, exc_val: Any = None, exc_tb: Any = None) -> bool: ...
|
|
296
|
+
|
|
297
|
+
@final
|
|
298
|
+
class AsyncMySQLCursor:
|
|
299
|
+
arraysize: int
|
|
300
|
+
@property
|
|
301
|
+
def description(self) -> tuple[tuple[str, int, None, None, None, None, None], ...] | None: ...
|
|
302
|
+
@property
|
|
303
|
+
def rowcount(self) -> int: ...
|
|
304
|
+
@property
|
|
305
|
+
def lastrowid(self) -> int | None: ...
|
|
306
|
+
def execute(
|
|
307
|
+
self,
|
|
308
|
+
sql: str,
|
|
309
|
+
params: Sequence[Any] | Mapping[str, Any] | None = (),
|
|
310
|
+
) -> Awaitable[AsyncMySQLCursor]: ...
|
|
311
|
+
def executemany(
|
|
312
|
+
self,
|
|
313
|
+
sql: str,
|
|
314
|
+
seq_of_params: Sequence[Sequence[Any] | Mapping[str, Any]],
|
|
315
|
+
) -> Awaitable[AsyncMySQLCursor]: ...
|
|
316
|
+
def fetchone(self) -> Awaitable[tuple[Any, ...] | None]: ...
|
|
317
|
+
def fetchmany(self, size: int | None = None) -> Awaitable[list[tuple[Any, ...]]]: ...
|
|
318
|
+
def fetchall(self) -> Awaitable[list[tuple[Any, ...]]]: ...
|
|
319
|
+
def close(self) -> Awaitable[None]: ...
|
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
:root, [data-theme="dark"] {
|
|
2
|
+
--bg-canvas: #0f172a;
|
|
3
|
+
--bg-surface: rgba(30, 41, 59, 0.72);
|
|
4
|
+
--bg-code: #0b1120;
|
|
5
|
+
--bg-code-header: #111827;
|
|
6
|
+
--bg-pill: rgba(30, 41, 59, 0.9);
|
|
7
|
+
--text-primary: #f1f5f9;
|
|
8
|
+
--text-secondary: #94a3b8;
|
|
9
|
+
--text-muted: #64748b;
|
|
10
|
+
--accent-primary: #3b82f6;
|
|
11
|
+
--accent-indigo: #818cf8;
|
|
12
|
+
--border-subtle: rgba(148, 163, 184, 0.16);
|
|
13
|
+
--border-hover: rgba(96, 165, 250, 0.45);
|
|
14
|
+
--glow-a: rgba(37, 99, 235, 0.16);
|
|
15
|
+
--glow-b: rgba(99, 102, 241, 0.12);
|
|
16
|
+
--wave-stroke: rgba(96, 165, 250, 0.12);
|
|
17
|
+
--hl-kw: #c4b5fd;
|
|
18
|
+
--hl-fn: #60a5fa;
|
|
19
|
+
--hl-str: #86efac;
|
|
20
|
+
--hl-dec: #2dd4bf;
|
|
21
|
+
}
|
|
22
|
+
[data-theme="light"] {
|
|
23
|
+
--bg-canvas: #ffffff;
|
|
24
|
+
--bg-surface: rgba(248, 250, 252, 0.88);
|
|
25
|
+
--bg-code: #f8fafc;
|
|
26
|
+
--bg-code-header: #f1f5f9;
|
|
27
|
+
--bg-pill: #f1f5f9;
|
|
28
|
+
--text-primary: #0f172a;
|
|
29
|
+
--text-secondary: #475569;
|
|
30
|
+
--text-muted: #64748b;
|
|
31
|
+
--accent-primary: #1d4ed8;
|
|
32
|
+
--accent-indigo: #4338ca;
|
|
33
|
+
--border-subtle: #e2e8f0;
|
|
34
|
+
--border-hover: #93c5fd;
|
|
35
|
+
--glow-a: rgba(37, 99, 235, 0.07);
|
|
36
|
+
--glow-b: rgba(67, 56, 202, 0.06);
|
|
37
|
+
--wave-stroke: rgba(37, 99, 235, 0.09);
|
|
38
|
+
--hl-kw: #6d28d9;
|
|
39
|
+
--hl-fn: #1d4ed8;
|
|
40
|
+
--hl-str: #15803d;
|
|
41
|
+
--hl-dec: #0f766e;
|
|
42
|
+
}
|
|
43
|
+
* {
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
}
|
|
48
|
+
html, body {
|
|
49
|
+
min-height: 100vh;
|
|
50
|
+
font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
|
|
51
|
+
background-color: var(--bg-canvas);
|
|
52
|
+
color: var(--text-primary);
|
|
53
|
+
line-height: 1.55;
|
|
54
|
+
-webkit-font-smoothing: antialiased;
|
|
55
|
+
}
|
|
56
|
+
body {
|
|
57
|
+
position: relative;
|
|
58
|
+
overflow-x: hidden;
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
justify-content: space-between;
|
|
62
|
+
background-image:
|
|
63
|
+
radial-gradient(ellipse 60% 45% at 25% 15%, var(--glow-a), transparent),
|
|
64
|
+
radial-gradient(ellipse 55% 45% at 78% 82%, var(--glow-b), transparent);
|
|
65
|
+
}
|
|
66
|
+
code, pre, .mono {
|
|
67
|
+
font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
68
|
+
}
|
|
69
|
+
.ambient-waves {
|
|
70
|
+
position: fixed;
|
|
71
|
+
inset: 0;
|
|
72
|
+
width: 100%;
|
|
73
|
+
height: 100%;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
z-index: 0;
|
|
76
|
+
}
|
|
77
|
+
.page {
|
|
78
|
+
position: relative;
|
|
79
|
+
z-index: 1;
|
|
80
|
+
max-width: 820px;
|
|
81
|
+
width: 100%;
|
|
82
|
+
margin: 0 auto;
|
|
83
|
+
padding: 1.75rem 1.5rem 2.5rem;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: 2rem;
|
|
87
|
+
flex: 1;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
}
|
|
90
|
+
.topbar {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: space-between;
|
|
94
|
+
gap: 1rem;
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
}
|
|
97
|
+
.status-badge {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
gap: 0.55rem;
|
|
101
|
+
padding: 0.35rem 0.85rem;
|
|
102
|
+
border-radius: 999px;
|
|
103
|
+
background: var(--bg-pill);
|
|
104
|
+
border: 1px solid var(--border-subtle);
|
|
105
|
+
font-size: 0.78rem;
|
|
106
|
+
color: var(--text-secondary);
|
|
107
|
+
backdrop-filter: blur(8px);
|
|
108
|
+
}
|
|
109
|
+
.status-dot {
|
|
110
|
+
width: 8px;
|
|
111
|
+
height: 8px;
|
|
112
|
+
border-radius: 50%;
|
|
113
|
+
background: #10b981;
|
|
114
|
+
box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
|
|
115
|
+
}
|
|
116
|
+
.status-sep {
|
|
117
|
+
color: var(--text-muted);
|
|
118
|
+
}
|
|
119
|
+
.theme-btn {
|
|
120
|
+
display: inline-flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: 0.4rem;
|
|
123
|
+
padding: 0.35rem 0.8rem;
|
|
124
|
+
border-radius: 8px;
|
|
125
|
+
border: 1px solid var(--border-subtle);
|
|
126
|
+
background: var(--bg-pill);
|
|
127
|
+
color: var(--text-secondary);
|
|
128
|
+
font-size: 0.78rem;
|
|
129
|
+
font-weight: 500;
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
transition: border-color 0.15s ease, color 0.15s ease;
|
|
132
|
+
}
|
|
133
|
+
.theme-btn:hover {
|
|
134
|
+
border-color: var(--border-hover);
|
|
135
|
+
color: var(--text-primary);
|
|
136
|
+
}
|
|
137
|
+
.hero {
|
|
138
|
+
text-align: center;
|
|
139
|
+
padding: 0.5rem 0;
|
|
140
|
+
}
|
|
141
|
+
.hero-lockup {
|
|
142
|
+
display: inline-flex;
|
|
143
|
+
align-items: center;
|
|
144
|
+
justify-content: center;
|
|
145
|
+
gap: 1.35rem;
|
|
146
|
+
margin-bottom: 1.15rem;
|
|
147
|
+
}
|
|
148
|
+
.hero-logo {
|
|
149
|
+
width: 64px;
|
|
150
|
+
height: 64px;
|
|
151
|
+
flex-shrink: 0;
|
|
152
|
+
}
|
|
153
|
+
.hero-divider {
|
|
154
|
+
width: 1px;
|
|
155
|
+
height: 48px;
|
|
156
|
+
background: var(--border-subtle);
|
|
157
|
+
}
|
|
158
|
+
.brand-title {
|
|
159
|
+
font-size: 2.5rem;
|
|
160
|
+
font-weight: 300;
|
|
161
|
+
letter-spacing: 0.24em;
|
|
162
|
+
text-transform: uppercase;
|
|
163
|
+
color: var(--text-primary);
|
|
164
|
+
line-height: 1;
|
|
165
|
+
}
|
|
166
|
+
.hero-lead {
|
|
167
|
+
max-width: 36rem;
|
|
168
|
+
margin: 0 auto;
|
|
169
|
+
font-size: 0.96rem;
|
|
170
|
+
color: var(--text-secondary);
|
|
171
|
+
}
|
|
172
|
+
.hero-lead code {
|
|
173
|
+
padding: 0.12rem 0.4rem;
|
|
174
|
+
border-radius: 5px;
|
|
175
|
+
background: var(--bg-pill);
|
|
176
|
+
border: 1px solid var(--border-subtle);
|
|
177
|
+
color: var(--text-primary);
|
|
178
|
+
font-size: 0.84rem;
|
|
179
|
+
}
|
|
180
|
+
.code-card {
|
|
181
|
+
background: var(--bg-code);
|
|
182
|
+
border: 1px solid var(--border-subtle);
|
|
183
|
+
border-radius: 12px;
|
|
184
|
+
overflow: hidden;
|
|
185
|
+
box-shadow: 0 14px 32px -12px rgba(2, 6, 23, 0.35);
|
|
186
|
+
}
|
|
187
|
+
.code-header {
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: space-between;
|
|
191
|
+
padding: 0.55rem 1rem;
|
|
192
|
+
background: var(--bg-code-header);
|
|
193
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
194
|
+
font-size: 0.76rem;
|
|
195
|
+
color: var(--text-muted);
|
|
196
|
+
}
|
|
197
|
+
.copy-btn {
|
|
198
|
+
padding: 0.2rem 0.6rem;
|
|
199
|
+
border-radius: 6px;
|
|
200
|
+
border: 1px solid var(--border-subtle);
|
|
201
|
+
background: transparent;
|
|
202
|
+
color: var(--text-secondary);
|
|
203
|
+
font-size: 0.72rem;
|
|
204
|
+
font-weight: 600;
|
|
205
|
+
cursor: pointer;
|
|
206
|
+
}
|
|
207
|
+
.copy-btn:hover {
|
|
208
|
+
border-color: var(--border-hover);
|
|
209
|
+
color: var(--text-primary);
|
|
210
|
+
}
|
|
211
|
+
pre.code-body {
|
|
212
|
+
padding: 1.1rem 1.25rem;
|
|
213
|
+
font-size: 0.83rem;
|
|
214
|
+
line-height: 1.65;
|
|
215
|
+
overflow-x: auto;
|
|
216
|
+
color: var(--text-primary);
|
|
217
|
+
}
|
|
218
|
+
.kw { color: var(--hl-kw); }
|
|
219
|
+
.fn { color: var(--hl-fn); }
|
|
220
|
+
.str { color: var(--hl-str); }
|
|
221
|
+
.dec { color: var(--hl-dec); }
|
|
222
|
+
.endpoints-bar {
|
|
223
|
+
display: flex;
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: center;
|
|
226
|
+
flex-wrap: wrap;
|
|
227
|
+
gap: 0.5rem;
|
|
228
|
+
}
|
|
229
|
+
.endpoint-chip {
|
|
230
|
+
display: inline-flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
gap: 0.45rem;
|
|
233
|
+
padding: 0.28rem 0.65rem;
|
|
234
|
+
border-radius: 7px;
|
|
235
|
+
background: var(--bg-surface);
|
|
236
|
+
border: 1px solid var(--border-subtle);
|
|
237
|
+
font-size: 0.75rem;
|
|
238
|
+
color: var(--text-secondary);
|
|
239
|
+
text-decoration: none;
|
|
240
|
+
transition: border-color 0.15s ease, color 0.15s ease;
|
|
241
|
+
}
|
|
242
|
+
a.endpoint-chip:hover {
|
|
243
|
+
border-color: var(--border-hover);
|
|
244
|
+
color: var(--text-primary);
|
|
245
|
+
}
|
|
246
|
+
.chip-method {
|
|
247
|
+
font-weight: 700;
|
|
248
|
+
font-size: 0.68rem;
|
|
249
|
+
color: var(--accent-primary);
|
|
250
|
+
}
|
|
251
|
+
.chip-tag {
|
|
252
|
+
color: var(--text-muted);
|
|
253
|
+
font-size: 0.68rem;
|
|
254
|
+
}
|
|
255
|
+
.links-grid {
|
|
256
|
+
display: grid;
|
|
257
|
+
grid-template-columns: repeat(3, 1fr);
|
|
258
|
+
gap: 0.9rem;
|
|
259
|
+
}
|
|
260
|
+
@media (max-width: 680px) {
|
|
261
|
+
.links-grid {
|
|
262
|
+
grid-template-columns: 1fr;
|
|
263
|
+
}
|
|
264
|
+
.brand-title {
|
|
265
|
+
font-size: 1.85rem;
|
|
266
|
+
letter-spacing: 0.16em;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
.link-card {
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
gap: 0.25rem;
|
|
273
|
+
padding: 1rem 1.15rem;
|
|
274
|
+
border-radius: 11px;
|
|
275
|
+
background: var(--bg-surface);
|
|
276
|
+
border: 1px solid var(--border-subtle);
|
|
277
|
+
text-decoration: none;
|
|
278
|
+
color: var(--text-primary);
|
|
279
|
+
backdrop-filter: blur(8px);
|
|
280
|
+
transition: border-color 0.15s ease, transform 0.15s ease;
|
|
281
|
+
}
|
|
282
|
+
.link-card:hover {
|
|
283
|
+
border-color: var(--border-hover);
|
|
284
|
+
transform: translateY(-1px);
|
|
285
|
+
}
|
|
286
|
+
.link-card-title {
|
|
287
|
+
display: flex;
|
|
288
|
+
align-items: center;
|
|
289
|
+
justify-content: space-between;
|
|
290
|
+
font-size: 0.88rem;
|
|
291
|
+
font-weight: 600;
|
|
292
|
+
color: var(--text-primary);
|
|
293
|
+
}
|
|
294
|
+
.link-card-arrow {
|
|
295
|
+
color: var(--accent-primary);
|
|
296
|
+
font-size: 0.9rem;
|
|
297
|
+
}
|
|
298
|
+
.link-card-desc {
|
|
299
|
+
font-size: 0.78rem;
|
|
300
|
+
color: var(--text-secondary);
|
|
301
|
+
}
|