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/index.c
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
]
|
|
11
11
|
],
|
|
12
12
|
"include_dirs": [
|
|
13
|
-
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-
|
|
13
|
+
"C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-anb099wn\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
|
|
14
14
|
],
|
|
15
15
|
"name": "mysqlengine.index",
|
|
16
16
|
"sources": [
|
|
@@ -1609,6 +1609,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor;
|
|
|
1609
1609
|
struct __pyx_obj_8sqlcycli_10connection_CursorManager;
|
|
1610
1610
|
struct __pyx_obj_8sqlcycli_10connection_TransactionManager;
|
|
1611
1611
|
struct __pyx_obj_8sqlcycli_10connection_BaseConnection;
|
|
1612
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection;
|
|
1612
1613
|
struct __pyx_obj_8sqlcycli_3aio_10connection_MysqlResult;
|
|
1613
1614
|
struct __pyx_obj_8sqlcycli_3aio_10connection_Cursor;
|
|
1614
1615
|
struct __pyx_obj_8sqlcycli_3aio_10connection_DictCursor;
|
|
@@ -1619,6 +1620,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
|
1619
1620
|
struct __pyx_obj_8sqlcycli_3aio_10connection_CursorManager;
|
|
1620
1621
|
struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager;
|
|
1621
1622
|
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection;
|
|
1623
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection;
|
|
1622
1624
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnection;
|
|
1623
1625
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection;
|
|
1624
1626
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnectionManager;
|
|
@@ -1711,7 +1713,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1711
1713
|
PyObject *mode;
|
|
1712
1714
|
};
|
|
1713
1715
|
|
|
1714
|
-
/* "sqlcycli/connection.pxd":
|
|
1716
|
+
/* "sqlcycli/connection.pxd":194
|
|
1715
1717
|
* cdef inline bint _setup_internal(self) except -1
|
|
1716
1718
|
* # Cursor
|
|
1717
1719
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1723,7 +1725,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1723
1725
|
PyObject *cursor;
|
|
1724
1726
|
};
|
|
1725
1727
|
|
|
1726
|
-
/* "sqlcycli/connection.pxd":
|
|
1728
|
+
/* "sqlcycli/connection.pxd":195
|
|
1727
1729
|
* # Cursor
|
|
1728
1730
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1729
1731
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1735,7 +1737,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1735
1737
|
PyObject *cursor;
|
|
1736
1738
|
};
|
|
1737
1739
|
|
|
1738
|
-
/* "sqlcycli/connection.pxd":
|
|
1740
|
+
/* "sqlcycli/connection.pxd":198
|
|
1739
1741
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1740
1742
|
* # Query
|
|
1741
1743
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1747,7 +1749,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1747
1749
|
int unbuffered;
|
|
1748
1750
|
};
|
|
1749
1751
|
|
|
1750
|
-
/* "sqlcycli/connection.pxd":
|
|
1752
|
+
/* "sqlcycli/connection.pxd":208
|
|
1751
1753
|
* cpdef tuple show_warnings(self)
|
|
1752
1754
|
* cpdef bint select_database(self, str db) except -1
|
|
1753
1755
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1760,7 +1762,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1760
1762
|
int itemize;
|
|
1761
1763
|
};
|
|
1762
1764
|
|
|
1763
|
-
/* "sqlcycli/connection.pxd":
|
|
1765
|
+
/* "sqlcycli/connection.pxd":211
|
|
1764
1766
|
* cpdef bytes encode_sql(self, str sql)
|
|
1765
1767
|
* # . client
|
|
1766
1768
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1772,7 +1774,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1772
1774
|
PyObject *collation;
|
|
1773
1775
|
};
|
|
1774
1776
|
|
|
1775
|
-
/* "sqlcycli/connection.pxd":
|
|
1777
|
+
/* "sqlcycli/connection.pxd":248
|
|
1776
1778
|
* cpdef bint closed(self) except -1
|
|
1777
1779
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1778
1780
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1784,7 +1786,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1784
1786
|
int reconnect;
|
|
1785
1787
|
};
|
|
1786
1788
|
|
|
1787
|
-
/* "sqlcycli/connection.pxd":
|
|
1789
|
+
/* "sqlcycli/connection.pxd":262
|
|
1788
1790
|
* cdef inline bint _set_use_time(self) except -1
|
|
1789
1791
|
* # Read
|
|
1790
1792
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1814,7 +1816,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1814
1816
|
int itemize;
|
|
1815
1817
|
};
|
|
1816
1818
|
|
|
1817
|
-
/* "connection.pxd":
|
|
1819
|
+
/* "connection.pxd":171
|
|
1818
1820
|
* cdef inline bint _setup_internal(self) except -1
|
|
1819
1821
|
* # Cursor
|
|
1820
1822
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1826,7 +1828,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1826
1828
|
PyObject *cursor;
|
|
1827
1829
|
};
|
|
1828
1830
|
|
|
1829
|
-
/* "connection.pxd":
|
|
1831
|
+
/* "connection.pxd":172
|
|
1830
1832
|
* # Cursor
|
|
1831
1833
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1832
1834
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1838,7 +1840,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1838
1840
|
PyObject *cursor;
|
|
1839
1841
|
};
|
|
1840
1842
|
|
|
1841
|
-
/* "connection.pxd":
|
|
1843
|
+
/* "connection.pxd":175
|
|
1842
1844
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1843
1845
|
* # Query
|
|
1844
1846
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2378,10 +2380,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2378
2380
|
PyObject *_encoding;
|
|
2379
2381
|
char *_encoding_c;
|
|
2380
2382
|
int _is_default;
|
|
2383
|
+
Py_ssize_t _hashcode;
|
|
2381
2384
|
};
|
|
2382
2385
|
|
|
2383
2386
|
|
|
2384
|
-
/* "sqlcycli/charset.pxd":
|
|
2387
|
+
/* "sqlcycli/charset.pxd":16
|
|
2385
2388
|
* cpdef bint is_binary(self)
|
|
2386
2389
|
*
|
|
2387
2390
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2403,11 +2406,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
2403
2406
|
* # Auth Plugin
|
|
2404
2407
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2405
2408
|
* cdef:
|
|
2406
|
-
*
|
|
2409
|
+
* # . plugins registry
|
|
2407
2410
|
*/
|
|
2408
2411
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2409
2412
|
PyObject_HEAD
|
|
2410
2413
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2414
|
+
PyObject *_plugins;
|
|
2411
2415
|
PyObject *_mysql_native_password;
|
|
2412
2416
|
PyObject *_caching_sha2_password;
|
|
2413
2417
|
PyObject *_sha256_password;
|
|
@@ -2415,7 +2419,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2415
2419
|
PyObject *_mysql_old_password;
|
|
2416
2420
|
PyObject *_mysql_clear_password;
|
|
2417
2421
|
PyObject *_dialog;
|
|
2418
|
-
PyObject *_plugins;
|
|
2419
2422
|
};
|
|
2420
2423
|
|
|
2421
2424
|
|
|
@@ -2584,7 +2587,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2584
2587
|
|
|
2585
2588
|
/* "sqlcycli/connection.pxd":104
|
|
2586
2589
|
*
|
|
2587
|
-
* #
|
|
2590
|
+
* # Cursor Manager
|
|
2588
2591
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2589
2592
|
* cdef:
|
|
2590
2593
|
* BaseConnection _conn
|
|
@@ -2611,9 +2614,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2611
2614
|
};
|
|
2612
2615
|
|
|
2613
2616
|
|
|
2614
|
-
/* "sqlcycli/connection.pxd":
|
|
2615
|
-
* pass
|
|
2617
|
+
/* "sqlcycli/connection.pxd":117
|
|
2616
2618
|
*
|
|
2619
|
+
* # Connection
|
|
2617
2620
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2618
2621
|
* cdef:
|
|
2619
2622
|
* # Basic
|
|
@@ -2681,6 +2684,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2681
2684
|
};
|
|
2682
2685
|
|
|
2683
2686
|
|
|
2687
|
+
/* "sqlcycli/connection.pxd":270
|
|
2688
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2689
|
+
*
|
|
2690
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2691
|
+
* pass
|
|
2692
|
+
*/
|
|
2693
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2694
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2695
|
+
};
|
|
2696
|
+
|
|
2697
|
+
|
|
2684
2698
|
/* "connection.pxd":7
|
|
2685
2699
|
*
|
|
2686
2700
|
* # Result
|
|
@@ -2796,7 +2810,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2796
2810
|
|
|
2797
2811
|
/* "connection.pxd":81
|
|
2798
2812
|
*
|
|
2799
|
-
* #
|
|
2813
|
+
* # Cursor Manager
|
|
2800
2814
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2801
2815
|
* cdef:
|
|
2802
2816
|
* BaseConnection _conn
|
|
@@ -2822,9 +2836,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2822
2836
|
};
|
|
2823
2837
|
|
|
2824
2838
|
|
|
2825
|
-
/* "connection.pxd":
|
|
2826
|
-
* pass
|
|
2839
|
+
/* "connection.pxd":92
|
|
2827
2840
|
*
|
|
2841
|
+
* # Connection
|
|
2828
2842
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2829
2843
|
* cdef:
|
|
2830
2844
|
* # Basic
|
|
@@ -2893,6 +2907,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
2893
2907
|
};
|
|
2894
2908
|
|
|
2895
2909
|
|
|
2910
|
+
/* "connection.pxd":201
|
|
2911
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
2912
|
+
*
|
|
2913
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2914
|
+
* pass
|
|
2915
|
+
*/
|
|
2916
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
2917
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
2918
|
+
};
|
|
2919
|
+
|
|
2920
|
+
|
|
2896
2921
|
/* "sqlcycli/aio/pool.pxd":12
|
|
2897
2922
|
*
|
|
2898
2923
|
* # Connection
|
|
@@ -3533,7 +3558,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3533
3558
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3534
3559
|
|
|
3535
3560
|
|
|
3536
|
-
/* "sqlcycli/charset.pxd":
|
|
3561
|
+
/* "sqlcycli/charset.pxd":16
|
|
3537
3562
|
* cpdef bint is_binary(self)
|
|
3538
3563
|
*
|
|
3539
3564
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3543,10 +3568,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3543
3568
|
|
|
3544
3569
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3545
3570
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3546
|
-
int (*
|
|
3547
|
-
int (*
|
|
3548
|
-
int (*
|
|
3549
|
-
int (*
|
|
3571
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3572
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3573
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3574
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3550
3575
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3551
3576
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3552
3577
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3561,11 +3586,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
3561
3586
|
* # Auth Plugin
|
|
3562
3587
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3563
3588
|
* cdef:
|
|
3564
|
-
*
|
|
3589
|
+
* # . plugins registry
|
|
3565
3590
|
*/
|
|
3566
3591
|
|
|
3567
3592
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3568
3593
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
3594
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
3595
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
3596
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
3569
3597
|
};
|
|
3570
3598
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
3571
3599
|
|
|
@@ -3761,7 +3789,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
3761
3789
|
|
|
3762
3790
|
/* "sqlcycli/connection.pxd":104
|
|
3763
3791
|
*
|
|
3764
|
-
* #
|
|
3792
|
+
* # Cursor Manager
|
|
3765
3793
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
3766
3794
|
* cdef:
|
|
3767
3795
|
* BaseConnection _conn
|
|
@@ -3788,9 +3816,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
3788
3816
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
3789
3817
|
|
|
3790
3818
|
|
|
3791
|
-
/* "sqlcycli/connection.pxd":
|
|
3792
|
-
* pass
|
|
3819
|
+
/* "sqlcycli/connection.pxd":117
|
|
3793
3820
|
*
|
|
3821
|
+
* # Connection
|
|
3794
3822
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
3795
3823
|
* cdef:
|
|
3796
3824
|
* # Basic
|
|
@@ -3871,6 +3899,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
3871
3899
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
3872
3900
|
|
|
3873
3901
|
|
|
3902
|
+
/* "sqlcycli/connection.pxd":270
|
|
3903
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
3904
|
+
*
|
|
3905
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
3906
|
+
* pass
|
|
3907
|
+
*/
|
|
3908
|
+
|
|
3909
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
3910
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
3911
|
+
};
|
|
3912
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
3913
|
+
|
|
3914
|
+
|
|
3874
3915
|
/* "connection.pxd":7
|
|
3875
3916
|
*
|
|
3876
3917
|
* # Result
|
|
@@ -3982,9 +4023,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
3982
4023
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
3983
4024
|
|
|
3984
4025
|
|
|
3985
|
-
/* "connection.pxd":
|
|
3986
|
-
* pass
|
|
4026
|
+
/* "connection.pxd":92
|
|
3987
4027
|
*
|
|
4028
|
+
* # Connection
|
|
3988
4029
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
3989
4030
|
* cdef:
|
|
3990
4031
|
* # Basic
|
|
@@ -4021,6 +4062,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4021
4062
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4022
4063
|
|
|
4023
4064
|
|
|
4065
|
+
/* "connection.pxd":201
|
|
4066
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4067
|
+
*
|
|
4068
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4069
|
+
* pass
|
|
4070
|
+
*/
|
|
4071
|
+
|
|
4072
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4073
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4074
|
+
};
|
|
4075
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4076
|
+
|
|
4077
|
+
|
|
4024
4078
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4025
4079
|
*
|
|
4026
4080
|
* # Connection
|
|
@@ -4107,10 +4161,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4107
4161
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4108
4162
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4109
4163
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4164
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4110
4165
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4111
4166
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4112
4167
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4113
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4114
4168
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4115
4169
|
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);
|
|
4116
4170
|
};
|
|
@@ -6180,6 +6234,7 @@ typedef struct {
|
|
|
6180
6234
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
6181
6235
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
6182
6236
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
6237
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
6183
6238
|
#if CYTHON_USE_MODULE_STATE
|
|
6184
6239
|
#endif
|
|
6185
6240
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -6196,6 +6251,7 @@ typedef struct {
|
|
|
6196
6251
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
6197
6252
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
6198
6253
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
6254
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
6199
6255
|
#if CYTHON_USE_MODULE_STATE
|
|
6200
6256
|
#endif
|
|
6201
6257
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -6899,6 +6955,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
6899
6955
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
6900
6956
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
6901
6957
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
6958
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
6902
6959
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
6903
6960
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
6904
6961
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -6909,6 +6966,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
6909
6966
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
6910
6967
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
6911
6968
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
6969
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
6912
6970
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
6913
6971
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
6914
6972
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -7488,6 +7546,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
7488
7546
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
7489
7547
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
7490
7548
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
7549
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
7491
7550
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
7492
7551
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
7493
7552
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -7498,6 +7557,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
7498
7557
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
7499
7558
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
7500
7559
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
7560
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
7501
7561
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
7502
7562
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
7503
7563
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -8095,6 +8155,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8095
8155
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
8096
8156
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
8097
8157
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
8158
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
8098
8159
|
#if CYTHON_USE_MODULE_STATE
|
|
8099
8160
|
#endif
|
|
8100
8161
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -8111,6 +8172,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8111
8172
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
8112
8173
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
8113
8174
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
8175
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
8114
8176
|
#if CYTHON_USE_MODULE_STATE
|
|
8115
8177
|
#endif
|
|
8116
8178
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -55036,8 +55098,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
55036
55098
|
__Pyx_GOTREF(__pyx_t_1);
|
|
55037
55099
|
__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(6, 4, __pyx_L1_error)
|
|
55038
55100
|
__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(6, 4, __pyx_L1_error)
|
|
55039
|
-
__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(6,
|
|
55040
|
-
__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(6,
|
|
55101
|
+
__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(6, 16, __pyx_L1_error)
|
|
55102
|
+
__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(6, 16, __pyx_L1_error)
|
|
55041
55103
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
55042
55104
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 10, __pyx_L1_error)
|
|
55043
55105
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -55071,8 +55133,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
55071
55133
|
__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(9, 104, __pyx_L1_error)
|
|
55072
55134
|
__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(9, 113, __pyx_L1_error)
|
|
55073
55135
|
__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(9, 113, __pyx_L1_error)
|
|
55074
|
-
__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(9,
|
|
55075
|
-
__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(9,
|
|
55136
|
+
__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(9, 117, __pyx_L1_error)
|
|
55137
|
+
__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(9, 117, __pyx_L1_error)
|
|
55138
|
+
__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(9, 270, __pyx_L1_error)
|
|
55139
|
+
__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(9, 270, __pyx_L1_error)
|
|
55076
55140
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
55077
55141
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
55078
55142
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -55092,8 +55156,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
55092
55156
|
__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(10, 77, __pyx_L1_error)
|
|
55093
55157
|
__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(10, 81, __pyx_L1_error)
|
|
55094
55158
|
__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(10, 88, __pyx_L1_error)
|
|
55095
|
-
__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(10,
|
|
55096
|
-
__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(10,
|
|
55159
|
+
__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(10, 92, __pyx_L1_error)
|
|
55160
|
+
__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(10, 92, __pyx_L1_error)
|
|
55161
|
+
__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(10, 201, __pyx_L1_error)
|
|
55162
|
+
__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(10, 201, __pyx_L1_error)
|
|
55097
55163
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
55098
55164
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
55099
55165
|
__Pyx_GOTREF(__pyx_t_1);
|
|
Binary file
|
mysqlengine/index.pxd
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# cython: language_level=3
|
|
2
|
+
from mysqlengine.element cimport Element, Elements, Logs, Metadata, Query
|
|
3
|
+
|
|
4
|
+
# Index
|
|
5
|
+
cdef class Index(Element):
|
|
6
|
+
cdef:
|
|
7
|
+
# Common
|
|
8
|
+
tuple _columns
|
|
9
|
+
str _index_type
|
|
10
|
+
str _comment
|
|
11
|
+
bint _visible
|
|
12
|
+
# FullText Index
|
|
13
|
+
str _parser
|
|
14
|
+
# Sync
|
|
15
|
+
cpdef Logs Initialize(self, bint force=?)
|
|
16
|
+
cpdef Logs Add(self)
|
|
17
|
+
cpdef bint Exists(self) except -1
|
|
18
|
+
cpdef Logs Drop(self)
|
|
19
|
+
cpdef Logs _Alter(self, object columns, object index_type, object parser, object comment, object visible)
|
|
20
|
+
cpdef Logs SetVisible(self, bint visible)
|
|
21
|
+
cpdef IndexMetadata ShowMetadata(self)
|
|
22
|
+
cpdef tuple ShowIndexNames(self)
|
|
23
|
+
cpdef Logs SyncFromRemote(self)
|
|
24
|
+
cpdef Logs SyncToRemote(self)
|
|
25
|
+
# Generate SQL
|
|
26
|
+
cpdef str _gen_definition_sql(self)
|
|
27
|
+
cpdef str _gen_add_sql(self)
|
|
28
|
+
cpdef str _gen_exists_sql(self)
|
|
29
|
+
cpdef str _gen_drop_sql(self)
|
|
30
|
+
cpdef Query _gen_alter_query(self, IndexMetadata meta, object columns, object index_type, object parser, object comment, object visible)
|
|
31
|
+
cpdef str _gen_set_visible_sql(self, bint visible)
|
|
32
|
+
cpdef str _gen_show_metadata_sql(self)
|
|
33
|
+
cpdef str _gen_show_index_names_sql(self)
|
|
34
|
+
# Metadata
|
|
35
|
+
cpdef Logs _sync_from_metadata(self, IndexMetadata meta, Logs logs=?)
|
|
36
|
+
cpdef int _diff_from_metadata(self, IndexMetadata meta) except -1
|
|
37
|
+
# Setter
|
|
38
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
39
|
+
# Copy
|
|
40
|
+
cpdef Index copy(self)
|
|
41
|
+
cpdef Index _construct(self, object columns, object index_type, object parser, object comment, object visible)
|
|
42
|
+
|
|
43
|
+
cdef class FullTextIndex(Index):
|
|
44
|
+
cdef:
|
|
45
|
+
object _parser_regex
|
|
46
|
+
# Validator
|
|
47
|
+
cdef inline str _validate_parser(self, object parser)
|
|
48
|
+
|
|
49
|
+
# Indexex
|
|
50
|
+
cdef class Indexes(Elements):
|
|
51
|
+
# Setter
|
|
52
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
53
|
+
# Copy
|
|
54
|
+
cpdef Indexes copy(self)
|
|
55
|
+
|
|
56
|
+
# Metadata
|
|
57
|
+
cdef class IndexMetadata(Metadata):
|
|
58
|
+
cdef:
|
|
59
|
+
# Base data
|
|
60
|
+
str _db_name
|
|
61
|
+
str _tb_name
|
|
62
|
+
str _index_name
|
|
63
|
+
str _index_type
|
|
64
|
+
bint _unique
|
|
65
|
+
str _comment
|
|
66
|
+
bint _visible
|
|
67
|
+
# Additional data
|
|
68
|
+
str _el_type
|
|
69
|
+
tuple _columns
|
|
70
|
+
# FullText Index
|
|
71
|
+
str _parser
|