mysqlengine 1.0.0__cp311-cp311-win_amd64.whl → 1.0.3__cp311-cp311-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.
Potentially problematic release.
This version of mysqlengine might be problematic. Click here for more details.
- mysqlengine/__init__.pxd +0 -0
- mysqlengine/column.c +104 -38
- mysqlengine/column.cp311-win_amd64.pyd +0 -0
- mysqlengine/column.pxd +149 -0
- mysqlengine/constraint.c +104 -38
- mysqlengine/constraint.cp311-win_amd64.pyd +0 -0
- mysqlengine/constraint.pxd +121 -0
- mysqlengine/database.c +104 -38
- mysqlengine/database.cp311-win_amd64.pyd +0 -0
- mysqlengine/database.pxd +58 -0
- mysqlengine/dml.c +6686 -6544
- mysqlengine/dml.cp311-win_amd64.pyd +0 -0
- mysqlengine/dml.pxd +387 -0
- mysqlengine/dml.py +189 -15
- mysqlengine/element.c +3604 -3525
- mysqlengine/element.cp311-win_amd64.pyd +0 -0
- mysqlengine/element.pxd +179 -0
- mysqlengine/element.py +103 -75
- mysqlengine/index.c +104 -38
- mysqlengine/index.cp311-win_amd64.pyd +0 -0
- mysqlengine/index.pxd +71 -0
- mysqlengine/partition.c +104 -38
- mysqlengine/partition.cp311-win_amd64.pyd +0 -0
- mysqlengine/partition.pxd +128 -0
- mysqlengine/table.c +104 -38
- mysqlengine/table.cp311-win_amd64.pyd +0 -0
- mysqlengine/table.pxd +169 -0
- mysqlengine/utils.c +9 -8
- mysqlengine/utils.cp311-win_amd64.pyd +0 -0
- mysqlengine/utils.pxd +613 -0
- {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/METADATA +3 -4
- mysqlengine-1.0.3.dist-info/RECORD +52 -0
- mysqlengine-1.0.0.dist-info/RECORD +0 -42
- {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/WHEEL +0 -0
- {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/licenses/LICENSE +0 -0
- {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/top_level.txt +0 -0
mysqlengine/table.c
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
],
|
|
12
12
|
"depends": [],
|
|
13
13
|
"include_dirs": [
|
|
14
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-
|
|
14
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-anb099wn\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
|
|
15
15
|
],
|
|
16
16
|
"name": "mysqlengine.table",
|
|
17
17
|
"sources": [
|
|
@@ -1646,6 +1646,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor;
|
|
|
1646
1646
|
struct __pyx_obj_8sqlcycli_10connection_CursorManager;
|
|
1647
1647
|
struct __pyx_obj_8sqlcycli_10connection_TransactionManager;
|
|
1648
1648
|
struct __pyx_obj_8sqlcycli_10connection_BaseConnection;
|
|
1649
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection;
|
|
1649
1650
|
struct __pyx_obj_8sqlcycli_3aio_10connection_MysqlResult;
|
|
1650
1651
|
struct __pyx_obj_8sqlcycli_3aio_10connection_Cursor;
|
|
1651
1652
|
struct __pyx_obj_8sqlcycli_3aio_10connection_DictCursor;
|
|
@@ -1656,6 +1657,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
|
1656
1657
|
struct __pyx_obj_8sqlcycli_3aio_10connection_CursorManager;
|
|
1657
1658
|
struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager;
|
|
1658
1659
|
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection;
|
|
1660
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection;
|
|
1659
1661
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnection;
|
|
1660
1662
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection;
|
|
1661
1663
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnectionManager;
|
|
@@ -2367,7 +2369,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
2367
2369
|
PyObject *mode;
|
|
2368
2370
|
};
|
|
2369
2371
|
|
|
2370
|
-
/* "connection.pxd":
|
|
2372
|
+
/* "connection.pxd":194
|
|
2371
2373
|
* cdef inline bint _setup_internal(self) except -1
|
|
2372
2374
|
* # Cursor
|
|
2373
2375
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -2379,7 +2381,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
2379
2381
|
PyObject *cursor;
|
|
2380
2382
|
};
|
|
2381
2383
|
|
|
2382
|
-
/* "connection.pxd":
|
|
2384
|
+
/* "connection.pxd":195
|
|
2383
2385
|
* # Cursor
|
|
2384
2386
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
2385
2387
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -2391,7 +2393,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
2391
2393
|
PyObject *cursor;
|
|
2392
2394
|
};
|
|
2393
2395
|
|
|
2394
|
-
/* "connection.pxd":
|
|
2396
|
+
/* "connection.pxd":198
|
|
2395
2397
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
2396
2398
|
* # Query
|
|
2397
2399
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -2403,7 +2405,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
2403
2405
|
int unbuffered;
|
|
2404
2406
|
};
|
|
2405
2407
|
|
|
2406
|
-
/* "connection.pxd":
|
|
2408
|
+
/* "connection.pxd":208
|
|
2407
2409
|
* cpdef tuple show_warnings(self)
|
|
2408
2410
|
* cpdef bint select_database(self, str db) except -1
|
|
2409
2411
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2416,7 +2418,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
2416
2418
|
int itemize;
|
|
2417
2419
|
};
|
|
2418
2420
|
|
|
2419
|
-
/* "connection.pxd":
|
|
2421
|
+
/* "connection.pxd":211
|
|
2420
2422
|
* cpdef bytes encode_sql(self, str sql)
|
|
2421
2423
|
* # . client
|
|
2422
2424
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -2428,7 +2430,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
2428
2430
|
PyObject *collation;
|
|
2429
2431
|
};
|
|
2430
2432
|
|
|
2431
|
-
/* "connection.pxd":
|
|
2433
|
+
/* "connection.pxd":248
|
|
2432
2434
|
* cpdef bint closed(self) except -1
|
|
2433
2435
|
* cpdef bint kill(self, int thread_id) except -1
|
|
2434
2436
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -2440,7 +2442,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
2440
2442
|
int reconnect;
|
|
2441
2443
|
};
|
|
2442
2444
|
|
|
2443
|
-
/* "connection.pxd":
|
|
2445
|
+
/* "connection.pxd":262
|
|
2444
2446
|
* cdef inline bint _set_use_time(self) except -1
|
|
2445
2447
|
* # Read
|
|
2446
2448
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -2470,7 +2472,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
2470
2472
|
int itemize;
|
|
2471
2473
|
};
|
|
2472
2474
|
|
|
2473
|
-
/* "connection.pxd":
|
|
2475
|
+
/* "connection.pxd":171
|
|
2474
2476
|
* cdef inline bint _setup_internal(self) except -1
|
|
2475
2477
|
* # Cursor
|
|
2476
2478
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -2482,7 +2484,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
2482
2484
|
PyObject *cursor;
|
|
2483
2485
|
};
|
|
2484
2486
|
|
|
2485
|
-
/* "connection.pxd":
|
|
2487
|
+
/* "connection.pxd":172
|
|
2486
2488
|
* # Cursor
|
|
2487
2489
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
2488
2490
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -2494,7 +2496,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
2494
2496
|
PyObject *cursor;
|
|
2495
2497
|
};
|
|
2496
2498
|
|
|
2497
|
-
/* "connection.pxd":
|
|
2499
|
+
/* "connection.pxd":175
|
|
2498
2500
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
2499
2501
|
* # Query
|
|
2500
2502
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -4477,10 +4479,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
4477
4479
|
PyObject *_encoding;
|
|
4478
4480
|
char *_encoding_c;
|
|
4479
4481
|
int _is_default;
|
|
4482
|
+
Py_ssize_t _hashcode;
|
|
4480
4483
|
};
|
|
4481
4484
|
|
|
4482
4485
|
|
|
4483
|
-
/* "sqlcycli/charset.pxd":
|
|
4486
|
+
/* "sqlcycli/charset.pxd":16
|
|
4484
4487
|
* cpdef bint is_binary(self)
|
|
4485
4488
|
*
|
|
4486
4489
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -4502,11 +4505,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
4502
4505
|
* # Auth Plugin
|
|
4503
4506
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
4504
4507
|
* cdef:
|
|
4505
|
-
*
|
|
4508
|
+
* # . plugins registry
|
|
4506
4509
|
*/
|
|
4507
4510
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
4508
4511
|
PyObject_HEAD
|
|
4509
4512
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
4513
|
+
PyObject *_plugins;
|
|
4510
4514
|
PyObject *_mysql_native_password;
|
|
4511
4515
|
PyObject *_caching_sha2_password;
|
|
4512
4516
|
PyObject *_sha256_password;
|
|
@@ -4514,7 +4518,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
4514
4518
|
PyObject *_mysql_old_password;
|
|
4515
4519
|
PyObject *_mysql_clear_password;
|
|
4516
4520
|
PyObject *_dialog;
|
|
4517
|
-
PyObject *_plugins;
|
|
4518
4521
|
};
|
|
4519
4522
|
|
|
4520
4523
|
|
|
@@ -4683,7 +4686,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
4683
4686
|
|
|
4684
4687
|
/* "connection.pxd":104
|
|
4685
4688
|
*
|
|
4686
|
-
* #
|
|
4689
|
+
* # Cursor Manager
|
|
4687
4690
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4688
4691
|
* cdef:
|
|
4689
4692
|
* BaseConnection _conn
|
|
@@ -4710,9 +4713,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
4710
4713
|
};
|
|
4711
4714
|
|
|
4712
4715
|
|
|
4713
|
-
/* "connection.pxd":
|
|
4714
|
-
* pass
|
|
4716
|
+
/* "connection.pxd":117
|
|
4715
4717
|
*
|
|
4718
|
+
* # Connection
|
|
4716
4719
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4717
4720
|
* cdef:
|
|
4718
4721
|
* # Basic
|
|
@@ -4780,6 +4783,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
4780
4783
|
};
|
|
4781
4784
|
|
|
4782
4785
|
|
|
4786
|
+
/* "connection.pxd":270
|
|
4787
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4788
|
+
*
|
|
4789
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4790
|
+
* pass
|
|
4791
|
+
*/
|
|
4792
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
4793
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4794
|
+
};
|
|
4795
|
+
|
|
4796
|
+
|
|
4783
4797
|
/* "connection.pxd":7
|
|
4784
4798
|
*
|
|
4785
4799
|
* # Result
|
|
@@ -4895,7 +4909,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4895
4909
|
|
|
4896
4910
|
/* "connection.pxd":81
|
|
4897
4911
|
*
|
|
4898
|
-
* #
|
|
4912
|
+
* # Cursor Manager
|
|
4899
4913
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4900
4914
|
* cdef:
|
|
4901
4915
|
* BaseConnection _conn
|
|
@@ -4921,9 +4935,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
4921
4935
|
};
|
|
4922
4936
|
|
|
4923
4937
|
|
|
4924
|
-
/* "connection.pxd":
|
|
4925
|
-
* pass
|
|
4938
|
+
/* "connection.pxd":92
|
|
4926
4939
|
*
|
|
4940
|
+
* # Connection
|
|
4927
4941
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4928
4942
|
* cdef:
|
|
4929
4943
|
* # Basic
|
|
@@ -4992,6 +5006,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4992
5006
|
};
|
|
4993
5007
|
|
|
4994
5008
|
|
|
5009
|
+
/* "connection.pxd":201
|
|
5010
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
5011
|
+
*
|
|
5012
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
5013
|
+
* pass
|
|
5014
|
+
*/
|
|
5015
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
5016
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
5017
|
+
};
|
|
5018
|
+
|
|
5019
|
+
|
|
4995
5020
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4996
5021
|
*
|
|
4997
5022
|
* # Connection
|
|
@@ -7262,7 +7287,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
7262
7287
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
7263
7288
|
|
|
7264
7289
|
|
|
7265
|
-
/* "sqlcycli/charset.pxd":
|
|
7290
|
+
/* "sqlcycli/charset.pxd":16
|
|
7266
7291
|
* cpdef bint is_binary(self)
|
|
7267
7292
|
*
|
|
7268
7293
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -7272,10 +7297,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
7272
7297
|
|
|
7273
7298
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
7274
7299
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
7275
|
-
int (*
|
|
7276
|
-
int (*
|
|
7277
|
-
int (*
|
|
7278
|
-
int (*
|
|
7300
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
7301
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
7302
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
7303
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
7279
7304
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
7280
7305
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
7281
7306
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -7290,11 +7315,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
7290
7315
|
* # Auth Plugin
|
|
7291
7316
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
7292
7317
|
* cdef:
|
|
7293
|
-
*
|
|
7318
|
+
* # . plugins registry
|
|
7294
7319
|
*/
|
|
7295
7320
|
|
|
7296
7321
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
7297
7322
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
7323
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
7324
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
7325
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
7298
7326
|
};
|
|
7299
7327
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
7300
7328
|
|
|
@@ -7490,7 +7518,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
7490
7518
|
|
|
7491
7519
|
/* "connection.pxd":104
|
|
7492
7520
|
*
|
|
7493
|
-
* #
|
|
7521
|
+
* # Cursor Manager
|
|
7494
7522
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
7495
7523
|
* cdef:
|
|
7496
7524
|
* BaseConnection _conn
|
|
@@ -7517,9 +7545,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
7517
7545
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
7518
7546
|
|
|
7519
7547
|
|
|
7520
|
-
/* "connection.pxd":
|
|
7521
|
-
* pass
|
|
7548
|
+
/* "connection.pxd":117
|
|
7522
7549
|
*
|
|
7550
|
+
* # Connection
|
|
7523
7551
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
7524
7552
|
* cdef:
|
|
7525
7553
|
* # Basic
|
|
@@ -7600,6 +7628,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
7600
7628
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
7601
7629
|
|
|
7602
7630
|
|
|
7631
|
+
/* "connection.pxd":270
|
|
7632
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
7633
|
+
*
|
|
7634
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
7635
|
+
* pass
|
|
7636
|
+
*/
|
|
7637
|
+
|
|
7638
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
7639
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
7640
|
+
};
|
|
7641
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
7642
|
+
|
|
7643
|
+
|
|
7603
7644
|
/* "connection.pxd":7
|
|
7604
7645
|
*
|
|
7605
7646
|
* # Result
|
|
@@ -7711,9 +7752,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
7711
7752
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
7712
7753
|
|
|
7713
7754
|
|
|
7714
|
-
/* "connection.pxd":
|
|
7715
|
-
* pass
|
|
7755
|
+
/* "connection.pxd":92
|
|
7716
7756
|
*
|
|
7757
|
+
* # Connection
|
|
7717
7758
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
7718
7759
|
* cdef:
|
|
7719
7760
|
* # Basic
|
|
@@ -7750,6 +7791,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
7750
7791
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
7751
7792
|
|
|
7752
7793
|
|
|
7794
|
+
/* "connection.pxd":201
|
|
7795
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
7796
|
+
*
|
|
7797
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
7798
|
+
* pass
|
|
7799
|
+
*/
|
|
7800
|
+
|
|
7801
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
7802
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
7803
|
+
};
|
|
7804
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
7805
|
+
|
|
7806
|
+
|
|
7753
7807
|
/* "sqlcycli/aio/pool.pxd":12
|
|
7754
7808
|
*
|
|
7755
7809
|
* # Connection
|
|
@@ -7836,10 +7890,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
7836
7890
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
7837
7891
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
7838
7892
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
7893
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
7839
7894
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
7840
7895
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
7841
7896
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
7842
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
7843
7897
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
7844
7898
|
PyObject *(*escape_args)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch, struct __pyx_opt_args_8sqlcycli_3aio_4pool_4Pool_escape_args *__pyx_optional_args);
|
|
7845
7899
|
};
|
|
@@ -11759,6 +11813,7 @@ typedef struct {
|
|
|
11759
11813
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
11760
11814
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
11761
11815
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
11816
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
11762
11817
|
#if CYTHON_USE_MODULE_STATE
|
|
11763
11818
|
#endif
|
|
11764
11819
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -11773,6 +11828,7 @@ typedef struct {
|
|
|
11773
11828
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
11774
11829
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
11775
11830
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
11831
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
11776
11832
|
#if CYTHON_USE_MODULE_STATE
|
|
11777
11833
|
#endif
|
|
11778
11834
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -13004,6 +13060,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
13004
13060
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
13005
13061
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
13006
13062
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
13063
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
13007
13064
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
13008
13065
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
13009
13066
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -13014,6 +13071,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
13014
13071
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
13015
13072
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
13016
13073
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
13074
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
13017
13075
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
13018
13076
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
13019
13077
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -14193,6 +14251,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
14193
14251
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
14194
14252
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
14195
14253
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
14254
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
14196
14255
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
14197
14256
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
14198
14257
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -14203,6 +14262,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
14203
14262
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
14204
14263
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
14205
14264
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
14265
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
14206
14266
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
14207
14267
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
14208
14268
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -15492,6 +15552,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
15492
15552
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
15493
15553
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
15494
15554
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
15555
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
15495
15556
|
#if CYTHON_USE_MODULE_STATE
|
|
15496
15557
|
#endif
|
|
15497
15558
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -15506,6 +15567,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
15506
15567
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
15507
15568
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
15508
15569
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
15570
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
15509
15571
|
#if CYTHON_USE_MODULE_STATE
|
|
15510
15572
|
#endif
|
|
15511
15573
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -116185,8 +116247,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
116185
116247
|
__Pyx_GOTREF(__pyx_t_1);
|
|
116186
116248
|
__pyx_ptype_8sqlcycli_7charset_Charset = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.charset", "Charset", sizeof(struct __pyx_obj_8sqlcycli_7charset_Charset), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_7charset_Charset),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_7charset_Charset) __PYX_ERR(10, 4, __pyx_L1_error)
|
|
116187
116249
|
__pyx_vtabptr_8sqlcycli_7charset_Charset = (struct __pyx_vtabstruct_8sqlcycli_7charset_Charset*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_7charset_Charset); if (unlikely(!__pyx_vtabptr_8sqlcycli_7charset_Charset)) __PYX_ERR(10, 4, __pyx_L1_error)
|
|
116188
|
-
__pyx_ptype_8sqlcycli_7charset_Charsets = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.charset", "Charsets", sizeof(struct __pyx_obj_8sqlcycli_7charset_Charsets), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_7charset_Charsets),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_7charset_Charsets) __PYX_ERR(10,
|
|
116189
|
-
__pyx_vtabptr_8sqlcycli_7charset_Charsets = (struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_7charset_Charsets); if (unlikely(!__pyx_vtabptr_8sqlcycli_7charset_Charsets)) __PYX_ERR(10,
|
|
116250
|
+
__pyx_ptype_8sqlcycli_7charset_Charsets = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.charset", "Charsets", sizeof(struct __pyx_obj_8sqlcycli_7charset_Charsets), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_7charset_Charsets),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_7charset_Charsets) __PYX_ERR(10, 16, __pyx_L1_error)
|
|
116251
|
+
__pyx_vtabptr_8sqlcycli_7charset_Charsets = (struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_7charset_Charsets); if (unlikely(!__pyx_vtabptr_8sqlcycli_7charset_Charsets)) __PYX_ERR(10, 16, __pyx_L1_error)
|
|
116190
116252
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
116191
116253
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 10, __pyx_L1_error)
|
|
116192
116254
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -116220,8 +116282,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
116220
116282
|
__pyx_vtabptr_8sqlcycli_10connection_CursorManager = (struct __pyx_vtabstruct_8sqlcycli_10connection_CursorManager*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_10connection_CursorManager); if (unlikely(!__pyx_vtabptr_8sqlcycli_10connection_CursorManager)) __PYX_ERR(13, 104, __pyx_L1_error)
|
|
116221
116283
|
__pyx_ptype_8sqlcycli_10connection_TransactionManager = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.connection", "TransactionManager", sizeof(struct __pyx_obj_8sqlcycli_10connection_TransactionManager), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_10connection_TransactionManager),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_10connection_TransactionManager) __PYX_ERR(13, 113, __pyx_L1_error)
|
|
116222
116284
|
__pyx_vtabptr_8sqlcycli_10connection_TransactionManager = (struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_10connection_TransactionManager); if (unlikely(!__pyx_vtabptr_8sqlcycli_10connection_TransactionManager)) __PYX_ERR(13, 113, __pyx_L1_error)
|
|
116223
|
-
__pyx_ptype_8sqlcycli_10connection_BaseConnection = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.connection", "BaseConnection", sizeof(struct __pyx_obj_8sqlcycli_10connection_BaseConnection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_10connection_BaseConnection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_10connection_BaseConnection) __PYX_ERR(13,
|
|
116224
|
-
__pyx_vtabptr_8sqlcycli_10connection_BaseConnection = (struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_10connection_BaseConnection); if (unlikely(!__pyx_vtabptr_8sqlcycli_10connection_BaseConnection)) __PYX_ERR(13,
|
|
116285
|
+
__pyx_ptype_8sqlcycli_10connection_BaseConnection = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.connection", "BaseConnection", sizeof(struct __pyx_obj_8sqlcycli_10connection_BaseConnection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_10connection_BaseConnection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_10connection_BaseConnection) __PYX_ERR(13, 117, __pyx_L1_error)
|
|
116286
|
+
__pyx_vtabptr_8sqlcycli_10connection_BaseConnection = (struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_10connection_BaseConnection); if (unlikely(!__pyx_vtabptr_8sqlcycli_10connection_BaseConnection)) __PYX_ERR(13, 117, __pyx_L1_error)
|
|
116287
|
+
__pyx_ptype_8sqlcycli_10connection_Connection = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.connection", "Connection", sizeof(struct __pyx_obj_8sqlcycli_10connection_Connection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_10connection_Connection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_10connection_Connection) __PYX_ERR(13, 270, __pyx_L1_error)
|
|
116288
|
+
__pyx_vtabptr_8sqlcycli_10connection_Connection = (struct __pyx_vtabstruct_8sqlcycli_10connection_Connection*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_10connection_Connection); if (unlikely(!__pyx_vtabptr_8sqlcycli_10connection_Connection)) __PYX_ERR(13, 270, __pyx_L1_error)
|
|
116225
116289
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
116226
116290
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(14, 7, __pyx_L1_error)
|
|
116227
116291
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -116241,8 +116305,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
116241
116305
|
__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor = (struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_3aio_10connection_SSDfCursor); if (unlikely(!__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor)) __PYX_ERR(14, 77, __pyx_L1_error)
|
|
116242
116306
|
__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.aio.connection", "CursorManager", sizeof(struct __pyx_obj_8sqlcycli_3aio_10connection_CursorManager), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_3aio_10connection_CursorManager),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager) __PYX_ERR(14, 81, __pyx_L1_error)
|
|
116243
116307
|
__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.aio.connection", "TransactionManager", sizeof(struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager) __PYX_ERR(14, 88, __pyx_L1_error)
|
|
116244
|
-
__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.aio.connection", "BaseConnection", sizeof(struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection) __PYX_ERR(14,
|
|
116245
|
-
__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection = (struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection); if (unlikely(!__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection)) __PYX_ERR(14,
|
|
116308
|
+
__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.aio.connection", "BaseConnection", sizeof(struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection) __PYX_ERR(14, 92, __pyx_L1_error)
|
|
116309
|
+
__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection = (struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection); if (unlikely(!__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection)) __PYX_ERR(14, 92, __pyx_L1_error)
|
|
116310
|
+
__pyx_ptype_8sqlcycli_3aio_10connection_Connection = __Pyx_ImportType_3_0_12(__pyx_t_1, "sqlcycli.aio.connection", "Connection", sizeof(struct __pyx_obj_8sqlcycli_3aio_10connection_Connection), __PYX_GET_STRUCT_ALIGNMENT_3_0_12(struct __pyx_obj_8sqlcycli_3aio_10connection_Connection),__Pyx_ImportType_CheckSize_Warn_3_0_12); if (!__pyx_ptype_8sqlcycli_3aio_10connection_Connection) __PYX_ERR(14, 201, __pyx_L1_error)
|
|
116311
|
+
__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection = (struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection*)__Pyx_GetVtable(__pyx_ptype_8sqlcycli_3aio_10connection_Connection); if (unlikely(!__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection)) __PYX_ERR(14, 201, __pyx_L1_error)
|
|
116246
116312
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
116247
116313
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(15, 12, __pyx_L1_error)
|
|
116248
116314
|
__Pyx_GOTREF(__pyx_t_1);
|
|
Binary file
|
mysqlengine/table.pxd
ADDED
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# cython: language_level=3
|
|
2
|
+
from cpython cimport datetime
|
|
3
|
+
from cytimes.pydt cimport _Pydt
|
|
4
|
+
from sqlcycli.charset cimport Charset
|
|
5
|
+
from sqlcycli.aio.pool cimport PoolConnection, PoolSyncConnection
|
|
6
|
+
from mysqlengine.index cimport Indexes
|
|
7
|
+
from mysqlengine.column cimport Columns
|
|
8
|
+
from mysqlengine.constraint cimport Constraints
|
|
9
|
+
from mysqlengine.partition cimport Partitioning
|
|
10
|
+
from mysqlengine.dml cimport InsertDML, ReplaceDML, UpdateDML, DeleteDML
|
|
11
|
+
from mysqlengine.element cimport Element, Elements, Logs, Metadata, Query
|
|
12
|
+
|
|
13
|
+
# BaseTable
|
|
14
|
+
cdef class BaseTable(Element):
|
|
15
|
+
cdef:
|
|
16
|
+
# . options
|
|
17
|
+
str _engine
|
|
18
|
+
str _comment
|
|
19
|
+
int _encryption
|
|
20
|
+
str _row_format
|
|
21
|
+
int _partitioned
|
|
22
|
+
# . internal
|
|
23
|
+
Columns _columns
|
|
24
|
+
Indexes _indexes
|
|
25
|
+
Constraints _constraints
|
|
26
|
+
Partitioning _partitioning
|
|
27
|
+
bint _temporary
|
|
28
|
+
PoolSyncConnection _sync_conn
|
|
29
|
+
PoolConnection _async_conn
|
|
30
|
+
bint _setup_finished
|
|
31
|
+
# DML
|
|
32
|
+
cpdef InsertDML Insert(self, object partition=?, bint ignore=?, object priority=?)
|
|
33
|
+
cpdef ReplaceDML Replace(self, object partition=?, bint low_priority=?)
|
|
34
|
+
cpdef UpdateDML Update(self, object partition=?, bint ignore=?, bint low_priority=?, object alias=?)
|
|
35
|
+
cpdef DeleteDML Delete(self, object partition=?, bint ignore=?, bint low_priority=?, bint quick=?, object alias=?, object multi_tables=?)
|
|
36
|
+
# Generate SQL
|
|
37
|
+
cpdef str _gen_create_sql(self, bint if_not_exists)
|
|
38
|
+
cpdef str _gen_exists_sql(self)
|
|
39
|
+
cpdef str _gen_truncate_sql(self)
|
|
40
|
+
cpdef str _gen_drop_sql(self, bint if_exists)
|
|
41
|
+
cpdef str _gen_empty_sql(self)
|
|
42
|
+
cpdef Query _gen_alter_query(self, TableMetadata meta, object engine, object charset, object collate, object comment, object encryption, object row_format)
|
|
43
|
+
cpdef str _gen_show_metadata_sql(self)
|
|
44
|
+
cpdef str _gen_show_column_names_sql(self)
|
|
45
|
+
cpdef str _gen_show_index_names_sql(self)
|
|
46
|
+
cpdef str _gen_show_constraint_symbols_sql(self)
|
|
47
|
+
cpdef str _gen_lock_sql(self, bint lock_for_read)
|
|
48
|
+
cpdef str _gen_analyze_sql(self, bint write_to_binlog)
|
|
49
|
+
cpdef str _gen_check_sql(self, tuple options)
|
|
50
|
+
cpdef str _gen_optimize_sql(self, bint write_to_binlog)
|
|
51
|
+
cpdef str _gen_repair_sql(self, bint write_to_binlog, object option)
|
|
52
|
+
# Metadata
|
|
53
|
+
cpdef Logs _sync_from_metadata(self, TableMetadata meta, Logs logs=?)
|
|
54
|
+
# Setter
|
|
55
|
+
cpdef bint setup(self, str db_name, object charset, object collate, object pool) except -1
|
|
56
|
+
# Assure Ready
|
|
57
|
+
cdef inline bint _assure_setup_ready(self) except -1
|
|
58
|
+
# Validate
|
|
59
|
+
cdef inline str _validate_engine(self, object engine)
|
|
60
|
+
cdef inline str _validate_row_format(self, object row_format)
|
|
61
|
+
cdef inline str _validate_check_option(self, object option)
|
|
62
|
+
cdef inline str _validate_repair_option(self, object option)
|
|
63
|
+
|
|
64
|
+
# Table
|
|
65
|
+
cdef class Table(BaseTable):
|
|
66
|
+
# Sync
|
|
67
|
+
cpdef Logs Initialize(self, bint force=?)
|
|
68
|
+
cpdef Logs Create(self, bint if_not_exists=?)
|
|
69
|
+
cpdef bint Exists(self) except -1
|
|
70
|
+
cpdef Logs Truncate(self)
|
|
71
|
+
cpdef Logs Drop(self, bint if_exists=?)
|
|
72
|
+
cpdef bint Empty(self) except -1
|
|
73
|
+
cpdef Logs Alter(self, str engine=?, object charset=?, object collate=?, str comment=?, object encryption=?, object row_format=?)
|
|
74
|
+
cpdef TableMetadata ShowMetadata(self)
|
|
75
|
+
cpdef tuple ShowColumnNames(self)
|
|
76
|
+
cpdef tuple ShowIndexNames(self)
|
|
77
|
+
cpdef tuple ShowConstraintSymbols(self)
|
|
78
|
+
cpdef PoolSyncConnection Lock(self, PoolSyncConnection conn, bint lock_for_read=?)
|
|
79
|
+
cpdef tuple Analyze(self, bint write_to_binlog=?)
|
|
80
|
+
cpdef tuple Optimize(self, bint write_to_binlog=?)
|
|
81
|
+
cpdef tuple Repair(self, bint write_to_binlog=?, str option=?)
|
|
82
|
+
cpdef Logs SyncFromRemote(self, bint thorough=?)
|
|
83
|
+
cpdef Logs SyncToRemote(self)
|
|
84
|
+
# Copy
|
|
85
|
+
cpdef Table copy(self)
|
|
86
|
+
|
|
87
|
+
# Time Table
|
|
88
|
+
cdef class TimeTable(Table):
|
|
89
|
+
cdef:
|
|
90
|
+
str _time_column
|
|
91
|
+
bint _timestamp_based
|
|
92
|
+
int _time_unit
|
|
93
|
+
str _pydt_unit
|
|
94
|
+
_Pydt _start_from
|
|
95
|
+
_Pydt _end_with
|
|
96
|
+
# Sync
|
|
97
|
+
cpdef Logs _ExtendToTime(self, bint future, object to_time)
|
|
98
|
+
cpdef Logs _CoalesceToTime(self, bint future, object to_time)
|
|
99
|
+
cpdef Logs _DropToTime(self, bint future, object to_time)
|
|
100
|
+
cpdef Logs ReorganizeOverflow(self, str catcher=?)
|
|
101
|
+
cpdef tuple ShowPartitionNames(self)
|
|
102
|
+
cpdef dict ShowPartitionRows(self)
|
|
103
|
+
cpdef _Pydt GetBoundaryPartitionTime(self, bint future=?)
|
|
104
|
+
cpdef int _GetInRangePartitionCount(self) except -1
|
|
105
|
+
cpdef object _GetOverflowBoundaryValue(self, bint future)
|
|
106
|
+
# Generate SQL
|
|
107
|
+
cpdef str _gen_get_overflow_boundary_value_sql(self, bint future)
|
|
108
|
+
# Time Tools
|
|
109
|
+
cdef inline str _gen_partition_name(self, _Pydt time)
|
|
110
|
+
cdef inline _Pydt _gen_partition_time(self, _Pydt time)
|
|
111
|
+
cdef inline _Pydt _parse_partition_time(self, str name)
|
|
112
|
+
cdef inline _Pydt _shift_partition_time(self, _Pydt time, int offset)
|
|
113
|
+
cdef object _create_partition(self, str name, _Pydt value, str comment)
|
|
114
|
+
cdef object _create_past_partition(self, _Pydt value)
|
|
115
|
+
cdef object _create_future_partition(self)
|
|
116
|
+
cdef object _create_in_range_partition(self, _Pydt time)
|
|
117
|
+
cdef long long _cal_partition_time_diff(self, _Pydt time1, _Pydt time2)
|
|
118
|
+
# Validate
|
|
119
|
+
cdef inline int _validate_time_unit(self, object time_unit) except -1
|
|
120
|
+
cdef inline str _validate_pydt_unit(self, int time_unit)
|
|
121
|
+
cdef inline _Pydt _validate_partition_time(self, object dtobj, str arg_name)
|
|
122
|
+
# Error
|
|
123
|
+
cdef inline bint _raise_partitioning_broken_error(self, Exception tb_exc=?) except -1
|
|
124
|
+
# Copy
|
|
125
|
+
cpdef TimeTable copy(self)
|
|
126
|
+
|
|
127
|
+
# Temporary Table
|
|
128
|
+
cdef class TempTable(BaseTable):
|
|
129
|
+
# Sync
|
|
130
|
+
cpdef Logs Create(self, bint if_not_exists=?)
|
|
131
|
+
cpdef Logs Drop(self, bint if_exists=?)
|
|
132
|
+
cpdef bint Empty(self) except -1
|
|
133
|
+
# Connection
|
|
134
|
+
cpdef bint _set_connection(self, object conn) except -1
|
|
135
|
+
cpdef bint _del_connection(self) except -1
|
|
136
|
+
# Assure Ready
|
|
137
|
+
cdef inline bint _assure_sync_connection_ready(self) except -1
|
|
138
|
+
cdef inline bint _assure_async_connection_ready(self) except -1
|
|
139
|
+
# Copy
|
|
140
|
+
cpdef TempTable copy(self)
|
|
141
|
+
|
|
142
|
+
cdef class TempTableManager:
|
|
143
|
+
cdef:
|
|
144
|
+
TempTable _temp_table
|
|
145
|
+
bint _sync_mode
|
|
146
|
+
# Special Method
|
|
147
|
+
cdef inline bint _cleanup(self) except -1
|
|
148
|
+
|
|
149
|
+
# Tables
|
|
150
|
+
cdef class Tables(Elements):
|
|
151
|
+
# Setter
|
|
152
|
+
cpdef bint setup(self, str db_name, object charset, object collate, object pool) except -1
|
|
153
|
+
# Copy
|
|
154
|
+
cpdef Tables copy(self)
|
|
155
|
+
|
|
156
|
+
# Metadata
|
|
157
|
+
cdef class TableMetadata(Metadata):
|
|
158
|
+
cdef:
|
|
159
|
+
# Base data
|
|
160
|
+
str _db_name
|
|
161
|
+
str _tb_name
|
|
162
|
+
str _engine
|
|
163
|
+
str _row_format
|
|
164
|
+
Charset _charset
|
|
165
|
+
str _options
|
|
166
|
+
str _comment
|
|
167
|
+
# Addtional data
|
|
168
|
+
bint _encryption
|
|
169
|
+
bint _partitioned
|