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/partition.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.partition",
|
|
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;
|
|
@@ -1721,7 +1723,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1721
1723
|
PyObject *mode;
|
|
1722
1724
|
};
|
|
1723
1725
|
|
|
1724
|
-
/* "sqlcycli/connection.pxd":
|
|
1726
|
+
/* "sqlcycli/connection.pxd":194
|
|
1725
1727
|
* cdef inline bint _setup_internal(self) except -1
|
|
1726
1728
|
* # Cursor
|
|
1727
1729
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1733,7 +1735,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1733
1735
|
PyObject *cursor;
|
|
1734
1736
|
};
|
|
1735
1737
|
|
|
1736
|
-
/* "sqlcycli/connection.pxd":
|
|
1738
|
+
/* "sqlcycli/connection.pxd":195
|
|
1737
1739
|
* # Cursor
|
|
1738
1740
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1739
1741
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1745,7 +1747,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1745
1747
|
PyObject *cursor;
|
|
1746
1748
|
};
|
|
1747
1749
|
|
|
1748
|
-
/* "sqlcycli/connection.pxd":
|
|
1750
|
+
/* "sqlcycli/connection.pxd":198
|
|
1749
1751
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1750
1752
|
* # Query
|
|
1751
1753
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1757,7 +1759,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1757
1759
|
int unbuffered;
|
|
1758
1760
|
};
|
|
1759
1761
|
|
|
1760
|
-
/* "sqlcycli/connection.pxd":
|
|
1762
|
+
/* "sqlcycli/connection.pxd":208
|
|
1761
1763
|
* cpdef tuple show_warnings(self)
|
|
1762
1764
|
* cpdef bint select_database(self, str db) except -1
|
|
1763
1765
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1770,7 +1772,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1770
1772
|
int itemize;
|
|
1771
1773
|
};
|
|
1772
1774
|
|
|
1773
|
-
/* "sqlcycli/connection.pxd":
|
|
1775
|
+
/* "sqlcycli/connection.pxd":211
|
|
1774
1776
|
* cpdef bytes encode_sql(self, str sql)
|
|
1775
1777
|
* # . client
|
|
1776
1778
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1782,7 +1784,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1782
1784
|
PyObject *collation;
|
|
1783
1785
|
};
|
|
1784
1786
|
|
|
1785
|
-
/* "sqlcycli/connection.pxd":
|
|
1787
|
+
/* "sqlcycli/connection.pxd":248
|
|
1786
1788
|
* cpdef bint closed(self) except -1
|
|
1787
1789
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1788
1790
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1794,7 +1796,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1794
1796
|
int reconnect;
|
|
1795
1797
|
};
|
|
1796
1798
|
|
|
1797
|
-
/* "sqlcycli/connection.pxd":
|
|
1799
|
+
/* "sqlcycli/connection.pxd":262
|
|
1798
1800
|
* cdef inline bint _set_use_time(self) except -1
|
|
1799
1801
|
* # Read
|
|
1800
1802
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1824,7 +1826,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1824
1826
|
int itemize;
|
|
1825
1827
|
};
|
|
1826
1828
|
|
|
1827
|
-
/* "connection.pxd":
|
|
1829
|
+
/* "connection.pxd":171
|
|
1828
1830
|
* cdef inline bint _setup_internal(self) except -1
|
|
1829
1831
|
* # Cursor
|
|
1830
1832
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1836,7 +1838,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1836
1838
|
PyObject *cursor;
|
|
1837
1839
|
};
|
|
1838
1840
|
|
|
1839
|
-
/* "connection.pxd":
|
|
1841
|
+
/* "connection.pxd":172
|
|
1840
1842
|
* # Cursor
|
|
1841
1843
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1842
1844
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1848,7 +1850,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1848
1850
|
PyObject *cursor;
|
|
1849
1851
|
};
|
|
1850
1852
|
|
|
1851
|
-
/* "connection.pxd":
|
|
1853
|
+
/* "connection.pxd":175
|
|
1852
1854
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1853
1855
|
* # Query
|
|
1854
1856
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2427,10 +2429,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2427
2429
|
PyObject *_encoding;
|
|
2428
2430
|
char *_encoding_c;
|
|
2429
2431
|
int _is_default;
|
|
2432
|
+
Py_ssize_t _hashcode;
|
|
2430
2433
|
};
|
|
2431
2434
|
|
|
2432
2435
|
|
|
2433
|
-
/* "sqlcycli/charset.pxd":
|
|
2436
|
+
/* "sqlcycli/charset.pxd":16
|
|
2434
2437
|
* cpdef bint is_binary(self)
|
|
2435
2438
|
*
|
|
2436
2439
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2452,11 +2455,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
2452
2455
|
* # Auth Plugin
|
|
2453
2456
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2454
2457
|
* cdef:
|
|
2455
|
-
*
|
|
2458
|
+
* # . plugins registry
|
|
2456
2459
|
*/
|
|
2457
2460
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2458
2461
|
PyObject_HEAD
|
|
2459
2462
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2463
|
+
PyObject *_plugins;
|
|
2460
2464
|
PyObject *_mysql_native_password;
|
|
2461
2465
|
PyObject *_caching_sha2_password;
|
|
2462
2466
|
PyObject *_sha256_password;
|
|
@@ -2464,7 +2468,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2464
2468
|
PyObject *_mysql_old_password;
|
|
2465
2469
|
PyObject *_mysql_clear_password;
|
|
2466
2470
|
PyObject *_dialog;
|
|
2467
|
-
PyObject *_plugins;
|
|
2468
2471
|
};
|
|
2469
2472
|
|
|
2470
2473
|
|
|
@@ -2633,7 +2636,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2633
2636
|
|
|
2634
2637
|
/* "sqlcycli/connection.pxd":104
|
|
2635
2638
|
*
|
|
2636
|
-
* #
|
|
2639
|
+
* # Cursor Manager
|
|
2637
2640
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2638
2641
|
* cdef:
|
|
2639
2642
|
* BaseConnection _conn
|
|
@@ -2660,9 +2663,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2660
2663
|
};
|
|
2661
2664
|
|
|
2662
2665
|
|
|
2663
|
-
/* "sqlcycli/connection.pxd":
|
|
2664
|
-
* pass
|
|
2666
|
+
/* "sqlcycli/connection.pxd":117
|
|
2665
2667
|
*
|
|
2668
|
+
* # Connection
|
|
2666
2669
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2667
2670
|
* cdef:
|
|
2668
2671
|
* # Basic
|
|
@@ -2730,6 +2733,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2730
2733
|
};
|
|
2731
2734
|
|
|
2732
2735
|
|
|
2736
|
+
/* "sqlcycli/connection.pxd":270
|
|
2737
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2738
|
+
*
|
|
2739
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2740
|
+
* pass
|
|
2741
|
+
*/
|
|
2742
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2743
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2744
|
+
};
|
|
2745
|
+
|
|
2746
|
+
|
|
2733
2747
|
/* "connection.pxd":7
|
|
2734
2748
|
*
|
|
2735
2749
|
* # Result
|
|
@@ -2845,7 +2859,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2845
2859
|
|
|
2846
2860
|
/* "connection.pxd":81
|
|
2847
2861
|
*
|
|
2848
|
-
* #
|
|
2862
|
+
* # Cursor Manager
|
|
2849
2863
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2850
2864
|
* cdef:
|
|
2851
2865
|
* BaseConnection _conn
|
|
@@ -2871,9 +2885,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2871
2885
|
};
|
|
2872
2886
|
|
|
2873
2887
|
|
|
2874
|
-
/* "connection.pxd":
|
|
2875
|
-
* pass
|
|
2888
|
+
/* "connection.pxd":92
|
|
2876
2889
|
*
|
|
2890
|
+
* # Connection
|
|
2877
2891
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2878
2892
|
* cdef:
|
|
2879
2893
|
* # Basic
|
|
@@ -2942,6 +2956,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
2942
2956
|
};
|
|
2943
2957
|
|
|
2944
2958
|
|
|
2959
|
+
/* "connection.pxd":201
|
|
2960
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
2961
|
+
*
|
|
2962
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2963
|
+
* pass
|
|
2964
|
+
*/
|
|
2965
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
2966
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
2967
|
+
};
|
|
2968
|
+
|
|
2969
|
+
|
|
2945
2970
|
/* "sqlcycli/aio/pool.pxd":12
|
|
2946
2971
|
*
|
|
2947
2972
|
* # Connection
|
|
@@ -3930,7 +3955,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3930
3955
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3931
3956
|
|
|
3932
3957
|
|
|
3933
|
-
/* "sqlcycli/charset.pxd":
|
|
3958
|
+
/* "sqlcycli/charset.pxd":16
|
|
3934
3959
|
* cpdef bint is_binary(self)
|
|
3935
3960
|
*
|
|
3936
3961
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3940,10 +3965,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3940
3965
|
|
|
3941
3966
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3942
3967
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3943
|
-
int (*
|
|
3944
|
-
int (*
|
|
3945
|
-
int (*
|
|
3946
|
-
int (*
|
|
3968
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3969
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3970
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3971
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3947
3972
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3948
3973
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3949
3974
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3958,11 +3983,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
3958
3983
|
* # Auth Plugin
|
|
3959
3984
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3960
3985
|
* cdef:
|
|
3961
|
-
*
|
|
3986
|
+
* # . plugins registry
|
|
3962
3987
|
*/
|
|
3963
3988
|
|
|
3964
3989
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3965
3990
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
3991
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
3992
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
3993
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
3966
3994
|
};
|
|
3967
3995
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
3968
3996
|
|
|
@@ -4158,7 +4186,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
4158
4186
|
|
|
4159
4187
|
/* "sqlcycli/connection.pxd":104
|
|
4160
4188
|
*
|
|
4161
|
-
* #
|
|
4189
|
+
* # Cursor Manager
|
|
4162
4190
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4163
4191
|
* cdef:
|
|
4164
4192
|
* BaseConnection _conn
|
|
@@ -4185,9 +4213,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
4185
4213
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
4186
4214
|
|
|
4187
4215
|
|
|
4188
|
-
/* "sqlcycli/connection.pxd":
|
|
4189
|
-
* pass
|
|
4216
|
+
/* "sqlcycli/connection.pxd":117
|
|
4190
4217
|
*
|
|
4218
|
+
* # Connection
|
|
4191
4219
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4192
4220
|
* cdef:
|
|
4193
4221
|
* # Basic
|
|
@@ -4268,6 +4296,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
4268
4296
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
4269
4297
|
|
|
4270
4298
|
|
|
4299
|
+
/* "sqlcycli/connection.pxd":270
|
|
4300
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4301
|
+
*
|
|
4302
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4303
|
+
* pass
|
|
4304
|
+
*/
|
|
4305
|
+
|
|
4306
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
4307
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4308
|
+
};
|
|
4309
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
4310
|
+
|
|
4311
|
+
|
|
4271
4312
|
/* "connection.pxd":7
|
|
4272
4313
|
*
|
|
4273
4314
|
* # Result
|
|
@@ -4379,9 +4420,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4379
4420
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
4380
4421
|
|
|
4381
4422
|
|
|
4382
|
-
/* "connection.pxd":
|
|
4383
|
-
* pass
|
|
4423
|
+
/* "connection.pxd":92
|
|
4384
4424
|
*
|
|
4425
|
+
* # Connection
|
|
4385
4426
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4386
4427
|
* cdef:
|
|
4387
4428
|
* # Basic
|
|
@@ -4418,6 +4459,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4418
4459
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4419
4460
|
|
|
4420
4461
|
|
|
4462
|
+
/* "connection.pxd":201
|
|
4463
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4464
|
+
*
|
|
4465
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4466
|
+
* pass
|
|
4467
|
+
*/
|
|
4468
|
+
|
|
4469
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4470
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4471
|
+
};
|
|
4472
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4473
|
+
|
|
4474
|
+
|
|
4421
4475
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4422
4476
|
*
|
|
4423
4477
|
* # Connection
|
|
@@ -4504,10 +4558,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4504
4558
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4505
4559
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4506
4560
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4561
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4507
4562
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4508
4563
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4509
4564
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4510
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4511
4565
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4512
4566
|
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);
|
|
4513
4567
|
};
|
|
@@ -6917,6 +6971,7 @@ typedef struct {
|
|
|
6917
6971
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
6918
6972
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
6919
6973
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
6974
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
6920
6975
|
#if CYTHON_USE_MODULE_STATE
|
|
6921
6976
|
#endif
|
|
6922
6977
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -6933,6 +6988,7 @@ typedef struct {
|
|
|
6933
6988
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
6934
6989
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
6935
6990
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
6991
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
6936
6992
|
#if CYTHON_USE_MODULE_STATE
|
|
6937
6993
|
#endif
|
|
6938
6994
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -7895,6 +7951,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7895
7951
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
7896
7952
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
7897
7953
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
7954
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
7898
7955
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
7899
7956
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
7900
7957
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -7905,6 +7962,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7905
7962
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
7906
7963
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
7907
7964
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
7965
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
7908
7966
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
7909
7967
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
7910
7968
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -8743,6 +8801,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8743
8801
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
8744
8802
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
8745
8803
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
8804
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
8746
8805
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
8747
8806
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
8748
8807
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -8753,6 +8812,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8753
8812
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
8754
8813
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
8755
8814
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
8815
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
8756
8816
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
8757
8817
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
8758
8818
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -9609,6 +9669,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9609
9669
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
9610
9670
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
9611
9671
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
9672
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
9612
9673
|
#if CYTHON_USE_MODULE_STATE
|
|
9613
9674
|
#endif
|
|
9614
9675
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -9625,6 +9686,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9625
9686
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
9626
9687
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
9627
9688
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
9689
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
9628
9690
|
#if CYTHON_USE_MODULE_STATE
|
|
9629
9691
|
#endif
|
|
9630
9692
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -91993,8 +92055,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
91993
92055
|
__Pyx_GOTREF(__pyx_t_1);
|
|
91994
92056
|
__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)
|
|
91995
92057
|
__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)
|
|
91996
|
-
__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,
|
|
91997
|
-
__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,
|
|
92058
|
+
__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)
|
|
92059
|
+
__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)
|
|
91998
92060
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
91999
92061
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 10, __pyx_L1_error)
|
|
92000
92062
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -92028,8 +92090,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
92028
92090
|
__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)
|
|
92029
92091
|
__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)
|
|
92030
92092
|
__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)
|
|
92031
|
-
__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,
|
|
92032
|
-
__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,
|
|
92093
|
+
__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)
|
|
92094
|
+
__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)
|
|
92095
|
+
__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)
|
|
92096
|
+
__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)
|
|
92033
92097
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
92034
92098
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
92035
92099
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -92049,8 +92113,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
92049
92113
|
__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)
|
|
92050
92114
|
__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)
|
|
92051
92115
|
__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)
|
|
92052
|
-
__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,
|
|
92053
|
-
__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,
|
|
92116
|
+
__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)
|
|
92117
|
+
__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)
|
|
92118
|
+
__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)
|
|
92119
|
+
__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)
|
|
92054
92120
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
92055
92121
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
92056
92122
|
__Pyx_GOTREF(__pyx_t_1);
|
|
Binary file
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# cython: language_level=3
|
|
2
|
+
from mysqlengine.element cimport Element, Elements, Logs, Metadata
|
|
3
|
+
|
|
4
|
+
# Partitioning
|
|
5
|
+
cdef class Partitioning(Element):
|
|
6
|
+
cdef:
|
|
7
|
+
# partition
|
|
8
|
+
int _partitioning_flag
|
|
9
|
+
str _partitioning_expression
|
|
10
|
+
# subpartition
|
|
11
|
+
int _subpartitioning_flag
|
|
12
|
+
str _subpartitioning_expression
|
|
13
|
+
# partitions
|
|
14
|
+
Partitions _partitions
|
|
15
|
+
# Configure
|
|
16
|
+
cpdef Partitioning by_hash(self, int partitions, bint linear=?)
|
|
17
|
+
cpdef Partitioning by_key (self, int partitions, bint linear=?)
|
|
18
|
+
# Sync
|
|
19
|
+
cpdef Logs Initialize(self, bint force=?)
|
|
20
|
+
cpdef Logs Create(self)
|
|
21
|
+
cpdef bint Exists(self) except -1
|
|
22
|
+
cpdef Logs Remove(self)
|
|
23
|
+
cpdef PartitioningMetadata ShowMetadata(self)
|
|
24
|
+
cpdef tuple ShowPartitionNames(self)
|
|
25
|
+
cpdef dict ShowPartitionRows(self)
|
|
26
|
+
cpdef tuple ShowSubpartitionNames(self)
|
|
27
|
+
cpdef dict ShowSubpartitionRows(self)
|
|
28
|
+
cpdef Logs SyncFromRemote(self)
|
|
29
|
+
cpdef Logs SyncToRemote(self)
|
|
30
|
+
cpdef bint ExistsPartition(self, object partition)
|
|
31
|
+
cpdef bint EmptyPartition(self, object partition)
|
|
32
|
+
cpdef Logs CoalescePartition(self, int number)
|
|
33
|
+
# Generate SQL
|
|
34
|
+
cpdef str _gen_definition_sql(self)
|
|
35
|
+
cpdef str _gen_create_sql(self)
|
|
36
|
+
cpdef str _gen_exists_sql(self)
|
|
37
|
+
cpdef str _gen_remove_sql(self)
|
|
38
|
+
cpdef str _gen_show_metadata_sql(self)
|
|
39
|
+
cpdef str _gen_show_partition_names_sql(self)
|
|
40
|
+
cpdef str _gen_show_partition_rows_sql(self)
|
|
41
|
+
cpdef str _gen_show_subpartition_names_sql(self)
|
|
42
|
+
cpdef str _gen_show_subpartition_rows_sql(self)
|
|
43
|
+
cpdef str _gen_add_partition_sql(self, tuple partitions)
|
|
44
|
+
cpdef str _gen_exists_partition_sql(self, object partition)
|
|
45
|
+
cpdef str _gen_drop_partition_sql(self, tuple partitions)
|
|
46
|
+
cpdef str _gen_empty_partition_sql(self, object partition)
|
|
47
|
+
cpdef str _gen_reorganize_partition_sql(self, object old_partitions, tuple new_partitions)
|
|
48
|
+
cpdef str _gen_coalesce_partition_sql(self, int number)
|
|
49
|
+
cpdef str _gen_general_partition_sql(self, tuple partitions, str operation)
|
|
50
|
+
# Metadata
|
|
51
|
+
cpdef Logs _sync_from_metadata(self, PartitioningMetadata meta, Logs logs=?)
|
|
52
|
+
cpdef bint _diff_from_metadata(self, PartitioningMetadata meta) except -1
|
|
53
|
+
# Setter
|
|
54
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
55
|
+
cpdef bint _set_partitioning_flag(self, int flag) except -1
|
|
56
|
+
cpdef bint _set_partitions_by_instance(self, tuple partitions) except -1
|
|
57
|
+
cpdef bint _set_partitions_by_integer(self, int partitions) except -1
|
|
58
|
+
cpdef bint _reset_subpartitioning(self) except -1
|
|
59
|
+
# Assure Ready
|
|
60
|
+
cdef inline bint _assure_partitioning_flag_ready(self) except -1
|
|
61
|
+
cdef inline bint _assure_partitions_ready(self) except -1
|
|
62
|
+
# Validate
|
|
63
|
+
cdef inline str _validate_partitioning_expression(self, tuple expressions, bint subpartitioning=?)
|
|
64
|
+
cdef inline str _validate_partition(self, object partition)
|
|
65
|
+
cdef inline tuple _validate_partitions(self, object partitions)
|
|
66
|
+
# Copy
|
|
67
|
+
cpdef Partitioning copy(self)
|
|
68
|
+
|
|
69
|
+
# Partition
|
|
70
|
+
cdef class Partition(Element):
|
|
71
|
+
cdef:
|
|
72
|
+
object _values
|
|
73
|
+
str _comment
|
|
74
|
+
int _partitioning_flag
|
|
75
|
+
int _subpartitioning_flag
|
|
76
|
+
Partitions _subpartitions
|
|
77
|
+
bint _is_subpartition
|
|
78
|
+
# Generate SQL
|
|
79
|
+
cpdef str _gen_definition_sql(self)
|
|
80
|
+
# Metadata
|
|
81
|
+
cpdef Logs _sync_from_metadata(self, dict meta, Logs logs=?)
|
|
82
|
+
# Setter
|
|
83
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
84
|
+
cpdef bint _set_partitioning_flag(self, int flag) except -1
|
|
85
|
+
cpdef bint _setup_subpartitions(self, int flag, int subpartitions) except -1
|
|
86
|
+
cpdef bint _reset_subpartitions(self) except -1
|
|
87
|
+
cpdef bint _set_as_subpartition(self) except -1
|
|
88
|
+
# Assure Ready
|
|
89
|
+
cdef inline bint _assure_partitioning_flag_ready(self) except -1
|
|
90
|
+
# Validate
|
|
91
|
+
cdef inline tuple _validate_partition_values(self, tuple values)
|
|
92
|
+
# Copy
|
|
93
|
+
cpdef Partition copy(self)
|
|
94
|
+
|
|
95
|
+
# Partitions
|
|
96
|
+
cdef class Partitions(Elements):
|
|
97
|
+
cdef:
|
|
98
|
+
int _partitioning_flag
|
|
99
|
+
int _subpartitioning_flag
|
|
100
|
+
int _subpartition_count
|
|
101
|
+
# Generate SQL
|
|
102
|
+
cpdef str _gen_definition_sql(self, int indent=?)
|
|
103
|
+
# Setter
|
|
104
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
105
|
+
cpdef bint _set_partitioning_flag(self, int flag) except -1
|
|
106
|
+
cpdef bint _setup_subpartitions(self, int flag, int subpartitions) except -1
|
|
107
|
+
cpdef bint _reset_subpartitions(self) except -1
|
|
108
|
+
# Assure Ready
|
|
109
|
+
cdef inline bint _assure_partitioning_flag_ready(self) except -1
|
|
110
|
+
# Copy
|
|
111
|
+
cpdef Partitions copy(self)
|
|
112
|
+
|
|
113
|
+
# Metadata
|
|
114
|
+
cdef class PartitioningMetadata(Metadata):
|
|
115
|
+
cdef:
|
|
116
|
+
# Base data
|
|
117
|
+
str _db_name
|
|
118
|
+
str _tb_name
|
|
119
|
+
str _partitioning_method
|
|
120
|
+
str _partitioning_expression
|
|
121
|
+
str _subpartitioning_method
|
|
122
|
+
str _subpartitioning_expression
|
|
123
|
+
list _partitions
|
|
124
|
+
# Additional data
|
|
125
|
+
tuple _partition_names
|
|
126
|
+
int _partition_count
|
|
127
|
+
tuple _subpartition_names
|
|
128
|
+
int _subpartition_count
|