mysqlengine 1.0.0__cp310-cp310-macosx_11_0_arm64.whl → 1.0.3__cp310-cp310-macosx_11_0_arm64.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.cpython-310-darwin.so +0 -0
- mysqlengine/column.pxd +149 -0
- mysqlengine/constraint.c +104 -38
- mysqlengine/constraint.cpython-310-darwin.so +0 -0
- mysqlengine/constraint.pxd +121 -0
- mysqlengine/database.c +104 -38
- mysqlengine/database.cpython-310-darwin.so +0 -0
- mysqlengine/database.pxd +58 -0
- mysqlengine/dml.c +6686 -6544
- mysqlengine/dml.cpython-310-darwin.so +0 -0
- mysqlengine/dml.pxd +387 -0
- mysqlengine/dml.py +189 -15
- mysqlengine/element.c +3604 -3525
- mysqlengine/element.cpython-310-darwin.so +0 -0
- mysqlengine/element.pxd +179 -0
- mysqlengine/element.py +103 -75
- mysqlengine/index.c +104 -38
- mysqlengine/index.cpython-310-darwin.so +0 -0
- mysqlengine/index.pxd +71 -0
- mysqlengine/partition.c +104 -38
- mysqlengine/partition.cpython-310-darwin.so +0 -0
- mysqlengine/partition.pxd +128 -0
- mysqlengine/table.c +104 -38
- mysqlengine/table.cpython-310-darwin.so +0 -0
- mysqlengine/table.pxd +169 -0
- mysqlengine/utils.c +9 -8
- mysqlengine/utils.cpython-310-darwin.so +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
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"-Wno-incompatible-pointer-types"
|
|
15
15
|
],
|
|
16
16
|
"include_dirs": [
|
|
17
|
-
"/private/var/folders/
|
|
17
|
+
"/private/var/folders/sw/lqy3v8g55m76fhwckg439jjm0000gn/T/pip-build-env-ds11qfsv/overlay/lib/python3.10/site-packages/numpy/_core/include"
|
|
18
18
|
],
|
|
19
19
|
"name": "mysqlengine.index",
|
|
20
20
|
"sources": [
|
|
@@ -1613,6 +1613,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor;
|
|
|
1613
1613
|
struct __pyx_obj_8sqlcycli_10connection_CursorManager;
|
|
1614
1614
|
struct __pyx_obj_8sqlcycli_10connection_TransactionManager;
|
|
1615
1615
|
struct __pyx_obj_8sqlcycli_10connection_BaseConnection;
|
|
1616
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection;
|
|
1616
1617
|
struct __pyx_obj_8sqlcycli_3aio_10connection_MysqlResult;
|
|
1617
1618
|
struct __pyx_obj_8sqlcycli_3aio_10connection_Cursor;
|
|
1618
1619
|
struct __pyx_obj_8sqlcycli_3aio_10connection_DictCursor;
|
|
@@ -1623,6 +1624,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
|
1623
1624
|
struct __pyx_obj_8sqlcycli_3aio_10connection_CursorManager;
|
|
1624
1625
|
struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager;
|
|
1625
1626
|
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection;
|
|
1627
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection;
|
|
1626
1628
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnection;
|
|
1627
1629
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection;
|
|
1628
1630
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnectionManager;
|
|
@@ -1715,7 +1717,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1715
1717
|
PyObject *mode;
|
|
1716
1718
|
};
|
|
1717
1719
|
|
|
1718
|
-
/* "sqlcycli/connection.pxd":
|
|
1720
|
+
/* "sqlcycli/connection.pxd":194
|
|
1719
1721
|
* cdef inline bint _setup_internal(self) except -1
|
|
1720
1722
|
* # Cursor
|
|
1721
1723
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1727,7 +1729,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1727
1729
|
PyObject *cursor;
|
|
1728
1730
|
};
|
|
1729
1731
|
|
|
1730
|
-
/* "sqlcycli/connection.pxd":
|
|
1732
|
+
/* "sqlcycli/connection.pxd":195
|
|
1731
1733
|
* # Cursor
|
|
1732
1734
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1733
1735
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1739,7 +1741,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1739
1741
|
PyObject *cursor;
|
|
1740
1742
|
};
|
|
1741
1743
|
|
|
1742
|
-
/* "sqlcycli/connection.pxd":
|
|
1744
|
+
/* "sqlcycli/connection.pxd":198
|
|
1743
1745
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1744
1746
|
* # Query
|
|
1745
1747
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1751,7 +1753,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1751
1753
|
int unbuffered;
|
|
1752
1754
|
};
|
|
1753
1755
|
|
|
1754
|
-
/* "sqlcycli/connection.pxd":
|
|
1756
|
+
/* "sqlcycli/connection.pxd":208
|
|
1755
1757
|
* cpdef tuple show_warnings(self)
|
|
1756
1758
|
* cpdef bint select_database(self, str db) except -1
|
|
1757
1759
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1764,7 +1766,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1764
1766
|
int itemize;
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
1767
|
-
/* "sqlcycli/connection.pxd":
|
|
1769
|
+
/* "sqlcycli/connection.pxd":211
|
|
1768
1770
|
* cpdef bytes encode_sql(self, str sql)
|
|
1769
1771
|
* # . client
|
|
1770
1772
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1776,7 +1778,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1776
1778
|
PyObject *collation;
|
|
1777
1779
|
};
|
|
1778
1780
|
|
|
1779
|
-
/* "sqlcycli/connection.pxd":
|
|
1781
|
+
/* "sqlcycli/connection.pxd":248
|
|
1780
1782
|
* cpdef bint closed(self) except -1
|
|
1781
1783
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1782
1784
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1788,7 +1790,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1788
1790
|
int reconnect;
|
|
1789
1791
|
};
|
|
1790
1792
|
|
|
1791
|
-
/* "sqlcycli/connection.pxd":
|
|
1793
|
+
/* "sqlcycli/connection.pxd":262
|
|
1792
1794
|
* cdef inline bint _set_use_time(self) except -1
|
|
1793
1795
|
* # Read
|
|
1794
1796
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1818,7 +1820,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1818
1820
|
int itemize;
|
|
1819
1821
|
};
|
|
1820
1822
|
|
|
1821
|
-
/* "connection.pxd":
|
|
1823
|
+
/* "connection.pxd":171
|
|
1822
1824
|
* cdef inline bint _setup_internal(self) except -1
|
|
1823
1825
|
* # Cursor
|
|
1824
1826
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1830,7 +1832,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1830
1832
|
PyObject *cursor;
|
|
1831
1833
|
};
|
|
1832
1834
|
|
|
1833
|
-
/* "connection.pxd":
|
|
1835
|
+
/* "connection.pxd":172
|
|
1834
1836
|
* # Cursor
|
|
1835
1837
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1836
1838
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1842,7 +1844,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1842
1844
|
PyObject *cursor;
|
|
1843
1845
|
};
|
|
1844
1846
|
|
|
1845
|
-
/* "connection.pxd":
|
|
1847
|
+
/* "connection.pxd":175
|
|
1846
1848
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1847
1849
|
* # Query
|
|
1848
1850
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2382,10 +2384,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2382
2384
|
PyObject *_encoding;
|
|
2383
2385
|
char *_encoding_c;
|
|
2384
2386
|
int _is_default;
|
|
2387
|
+
Py_ssize_t _hashcode;
|
|
2385
2388
|
};
|
|
2386
2389
|
|
|
2387
2390
|
|
|
2388
|
-
/* "sqlcycli/charset.pxd":
|
|
2391
|
+
/* "sqlcycli/charset.pxd":16
|
|
2389
2392
|
* cpdef bint is_binary(self)
|
|
2390
2393
|
*
|
|
2391
2394
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2407,11 +2410,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
2407
2410
|
* # Auth Plugin
|
|
2408
2411
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2409
2412
|
* cdef:
|
|
2410
|
-
*
|
|
2413
|
+
* # . plugins registry
|
|
2411
2414
|
*/
|
|
2412
2415
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2413
2416
|
PyObject_HEAD
|
|
2414
2417
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2418
|
+
PyObject *_plugins;
|
|
2415
2419
|
PyObject *_mysql_native_password;
|
|
2416
2420
|
PyObject *_caching_sha2_password;
|
|
2417
2421
|
PyObject *_sha256_password;
|
|
@@ -2419,7 +2423,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2419
2423
|
PyObject *_mysql_old_password;
|
|
2420
2424
|
PyObject *_mysql_clear_password;
|
|
2421
2425
|
PyObject *_dialog;
|
|
2422
|
-
PyObject *_plugins;
|
|
2423
2426
|
};
|
|
2424
2427
|
|
|
2425
2428
|
|
|
@@ -2588,7 +2591,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2588
2591
|
|
|
2589
2592
|
/* "sqlcycli/connection.pxd":104
|
|
2590
2593
|
*
|
|
2591
|
-
* #
|
|
2594
|
+
* # Cursor Manager
|
|
2592
2595
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2593
2596
|
* cdef:
|
|
2594
2597
|
* BaseConnection _conn
|
|
@@ -2615,9 +2618,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2615
2618
|
};
|
|
2616
2619
|
|
|
2617
2620
|
|
|
2618
|
-
/* "sqlcycli/connection.pxd":
|
|
2619
|
-
* pass
|
|
2621
|
+
/* "sqlcycli/connection.pxd":117
|
|
2620
2622
|
*
|
|
2623
|
+
* # Connection
|
|
2621
2624
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2622
2625
|
* cdef:
|
|
2623
2626
|
* # Basic
|
|
@@ -2685,6 +2688,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2685
2688
|
};
|
|
2686
2689
|
|
|
2687
2690
|
|
|
2691
|
+
/* "sqlcycli/connection.pxd":270
|
|
2692
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2693
|
+
*
|
|
2694
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2695
|
+
* pass
|
|
2696
|
+
*/
|
|
2697
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2698
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2699
|
+
};
|
|
2700
|
+
|
|
2701
|
+
|
|
2688
2702
|
/* "connection.pxd":7
|
|
2689
2703
|
*
|
|
2690
2704
|
* # Result
|
|
@@ -2800,7 +2814,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2800
2814
|
|
|
2801
2815
|
/* "connection.pxd":81
|
|
2802
2816
|
*
|
|
2803
|
-
* #
|
|
2817
|
+
* # Cursor Manager
|
|
2804
2818
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2805
2819
|
* cdef:
|
|
2806
2820
|
* BaseConnection _conn
|
|
@@ -2826,9 +2840,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2826
2840
|
};
|
|
2827
2841
|
|
|
2828
2842
|
|
|
2829
|
-
/* "connection.pxd":
|
|
2830
|
-
* pass
|
|
2843
|
+
/* "connection.pxd":92
|
|
2831
2844
|
*
|
|
2845
|
+
* # Connection
|
|
2832
2846
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2833
2847
|
* cdef:
|
|
2834
2848
|
* # Basic
|
|
@@ -2897,6 +2911,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
2897
2911
|
};
|
|
2898
2912
|
|
|
2899
2913
|
|
|
2914
|
+
/* "connection.pxd":201
|
|
2915
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
2916
|
+
*
|
|
2917
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2918
|
+
* pass
|
|
2919
|
+
*/
|
|
2920
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
2921
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
2922
|
+
};
|
|
2923
|
+
|
|
2924
|
+
|
|
2900
2925
|
/* "sqlcycli/aio/pool.pxd":12
|
|
2901
2926
|
*
|
|
2902
2927
|
* # Connection
|
|
@@ -3537,7 +3562,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3537
3562
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3538
3563
|
|
|
3539
3564
|
|
|
3540
|
-
/* "sqlcycli/charset.pxd":
|
|
3565
|
+
/* "sqlcycli/charset.pxd":16
|
|
3541
3566
|
* cpdef bint is_binary(self)
|
|
3542
3567
|
*
|
|
3543
3568
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3547,10 +3572,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3547
3572
|
|
|
3548
3573
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3549
3574
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3550
|
-
int (*
|
|
3551
|
-
int (*
|
|
3552
|
-
int (*
|
|
3553
|
-
int (*
|
|
3575
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3576
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3577
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3578
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3554
3579
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3555
3580
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3556
3581
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3565,11 +3590,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
3565
3590
|
* # Auth Plugin
|
|
3566
3591
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3567
3592
|
* cdef:
|
|
3568
|
-
*
|
|
3593
|
+
* # . plugins registry
|
|
3569
3594
|
*/
|
|
3570
3595
|
|
|
3571
3596
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3572
3597
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
3598
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
3599
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
3600
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
3573
3601
|
};
|
|
3574
3602
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
3575
3603
|
|
|
@@ -3765,7 +3793,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
3765
3793
|
|
|
3766
3794
|
/* "sqlcycli/connection.pxd":104
|
|
3767
3795
|
*
|
|
3768
|
-
* #
|
|
3796
|
+
* # Cursor Manager
|
|
3769
3797
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
3770
3798
|
* cdef:
|
|
3771
3799
|
* BaseConnection _conn
|
|
@@ -3792,9 +3820,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
3792
3820
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
3793
3821
|
|
|
3794
3822
|
|
|
3795
|
-
/* "sqlcycli/connection.pxd":
|
|
3796
|
-
* pass
|
|
3823
|
+
/* "sqlcycli/connection.pxd":117
|
|
3797
3824
|
*
|
|
3825
|
+
* # Connection
|
|
3798
3826
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
3799
3827
|
* cdef:
|
|
3800
3828
|
* # Basic
|
|
@@ -3875,6 +3903,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
3875
3903
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
3876
3904
|
|
|
3877
3905
|
|
|
3906
|
+
/* "sqlcycli/connection.pxd":270
|
|
3907
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
3908
|
+
*
|
|
3909
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
3910
|
+
* pass
|
|
3911
|
+
*/
|
|
3912
|
+
|
|
3913
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
3914
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
3915
|
+
};
|
|
3916
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
3917
|
+
|
|
3918
|
+
|
|
3878
3919
|
/* "connection.pxd":7
|
|
3879
3920
|
*
|
|
3880
3921
|
* # Result
|
|
@@ -3986,9 +4027,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
3986
4027
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
3987
4028
|
|
|
3988
4029
|
|
|
3989
|
-
/* "connection.pxd":
|
|
3990
|
-
* pass
|
|
4030
|
+
/* "connection.pxd":92
|
|
3991
4031
|
*
|
|
4032
|
+
* # Connection
|
|
3992
4033
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
3993
4034
|
* cdef:
|
|
3994
4035
|
* # Basic
|
|
@@ -4025,6 +4066,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4025
4066
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4026
4067
|
|
|
4027
4068
|
|
|
4069
|
+
/* "connection.pxd":201
|
|
4070
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4071
|
+
*
|
|
4072
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4073
|
+
* pass
|
|
4074
|
+
*/
|
|
4075
|
+
|
|
4076
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4077
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4078
|
+
};
|
|
4079
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4080
|
+
|
|
4081
|
+
|
|
4028
4082
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4029
4083
|
*
|
|
4030
4084
|
* # Connection
|
|
@@ -4111,10 +4165,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4111
4165
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4112
4166
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4113
4167
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4168
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4114
4169
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4115
4170
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4116
4171
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4117
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4118
4172
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4119
4173
|
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);
|
|
4120
4174
|
};
|
|
@@ -6184,6 +6238,7 @@ typedef struct {
|
|
|
6184
6238
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
6185
6239
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
6186
6240
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
6241
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
6187
6242
|
#if CYTHON_USE_MODULE_STATE
|
|
6188
6243
|
#endif
|
|
6189
6244
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -6200,6 +6255,7 @@ typedef struct {
|
|
|
6200
6255
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
6201
6256
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
6202
6257
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
6258
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
6203
6259
|
#if CYTHON_USE_MODULE_STATE
|
|
6204
6260
|
#endif
|
|
6205
6261
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -6903,6 +6959,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
6903
6959
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
6904
6960
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
6905
6961
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
6962
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
6906
6963
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
6907
6964
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
6908
6965
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -6913,6 +6970,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
6913
6970
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
6914
6971
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
6915
6972
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
6973
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
6916
6974
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
6917
6975
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
6918
6976
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -7492,6 +7550,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
7492
7550
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
7493
7551
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
7494
7552
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
7553
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
7495
7554
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
7496
7555
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
7497
7556
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -7502,6 +7561,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
7502
7561
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
7503
7562
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
7504
7563
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
7564
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
7505
7565
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
7506
7566
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
7507
7567
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -8099,6 +8159,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8099
8159
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
8100
8160
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
8101
8161
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
8162
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
8102
8163
|
#if CYTHON_USE_MODULE_STATE
|
|
8103
8164
|
#endif
|
|
8104
8165
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -8115,6 +8176,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8115
8176
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
8116
8177
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
8117
8178
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
8179
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
8118
8180
|
#if CYTHON_USE_MODULE_STATE
|
|
8119
8181
|
#endif
|
|
8120
8182
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -55040,8 +55102,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
55040
55102
|
__Pyx_GOTREF(__pyx_t_1);
|
|
55041
55103
|
__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)
|
|
55042
55104
|
__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)
|
|
55043
|
-
__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,
|
|
55044
|
-
__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,
|
|
55105
|
+
__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)
|
|
55106
|
+
__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)
|
|
55045
55107
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
55046
55108
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 10, __pyx_L1_error)
|
|
55047
55109
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -55075,8 +55137,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
55075
55137
|
__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)
|
|
55076
55138
|
__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)
|
|
55077
55139
|
__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)
|
|
55078
|
-
__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,
|
|
55079
|
-
__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,
|
|
55140
|
+
__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)
|
|
55141
|
+
__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)
|
|
55142
|
+
__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)
|
|
55143
|
+
__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)
|
|
55080
55144
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
55081
55145
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
55082
55146
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -55096,8 +55160,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
55096
55160
|
__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)
|
|
55097
55161
|
__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)
|
|
55098
55162
|
__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)
|
|
55099
|
-
__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,
|
|
55100
|
-
__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,
|
|
55163
|
+
__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)
|
|
55164
|
+
__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)
|
|
55165
|
+
__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)
|
|
55166
|
+
__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)
|
|
55101
55167
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
55102
55168
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
55103
55169
|
__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
|