mysqlengine 1.0.0__cp311-cp311-macosx_10_9_universal2.whl → 1.0.3__cp311-cp311-macosx_10_9_universal2.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-311-darwin.so +0 -0
- mysqlengine/column.pxd +149 -0
- mysqlengine/constraint.c +104 -38
- mysqlengine/constraint.cpython-311-darwin.so +0 -0
- mysqlengine/constraint.pxd +121 -0
- mysqlengine/database.c +104 -38
- mysqlengine/database.cpython-311-darwin.so +0 -0
- mysqlengine/database.pxd +58 -0
- mysqlengine/dml.c +6686 -6544
- mysqlengine/dml.cpython-311-darwin.so +0 -0
- mysqlengine/dml.pxd +387 -0
- mysqlengine/dml.py +189 -15
- mysqlengine/element.c +3604 -3525
- mysqlengine/element.cpython-311-darwin.so +0 -0
- mysqlengine/element.pxd +179 -0
- mysqlengine/element.py +103 -75
- mysqlengine/index.c +104 -38
- mysqlengine/index.cpython-311-darwin.so +0 -0
- mysqlengine/index.pxd +71 -0
- mysqlengine/partition.c +104 -38
- mysqlengine/partition.cpython-311-darwin.so +0 -0
- mysqlengine/partition.pxd +128 -0
- mysqlengine/table.c +104 -38
- mysqlengine/table.cpython-311-darwin.so +0 -0
- mysqlengine/table.pxd +169 -0
- mysqlengine/utils.c +9 -8
- mysqlengine/utils.cpython-311-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/partition.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-lb0mxsz3/overlay/lib/python3.11/site-packages/numpy/_core/include"
|
|
18
18
|
],
|
|
19
19
|
"name": "mysqlengine.partition",
|
|
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;
|
|
@@ -1725,7 +1727,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1725
1727
|
PyObject *mode;
|
|
1726
1728
|
};
|
|
1727
1729
|
|
|
1728
|
-
/* "sqlcycli/connection.pxd":
|
|
1730
|
+
/* "sqlcycli/connection.pxd":194
|
|
1729
1731
|
* cdef inline bint _setup_internal(self) except -1
|
|
1730
1732
|
* # Cursor
|
|
1731
1733
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1737,7 +1739,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1737
1739
|
PyObject *cursor;
|
|
1738
1740
|
};
|
|
1739
1741
|
|
|
1740
|
-
/* "sqlcycli/connection.pxd":
|
|
1742
|
+
/* "sqlcycli/connection.pxd":195
|
|
1741
1743
|
* # Cursor
|
|
1742
1744
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1743
1745
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1749,7 +1751,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1749
1751
|
PyObject *cursor;
|
|
1750
1752
|
};
|
|
1751
1753
|
|
|
1752
|
-
/* "sqlcycli/connection.pxd":
|
|
1754
|
+
/* "sqlcycli/connection.pxd":198
|
|
1753
1755
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1754
1756
|
* # Query
|
|
1755
1757
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1761,7 +1763,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1761
1763
|
int unbuffered;
|
|
1762
1764
|
};
|
|
1763
1765
|
|
|
1764
|
-
/* "sqlcycli/connection.pxd":
|
|
1766
|
+
/* "sqlcycli/connection.pxd":208
|
|
1765
1767
|
* cpdef tuple show_warnings(self)
|
|
1766
1768
|
* cpdef bint select_database(self, str db) except -1
|
|
1767
1769
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1774,7 +1776,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1774
1776
|
int itemize;
|
|
1775
1777
|
};
|
|
1776
1778
|
|
|
1777
|
-
/* "sqlcycli/connection.pxd":
|
|
1779
|
+
/* "sqlcycli/connection.pxd":211
|
|
1778
1780
|
* cpdef bytes encode_sql(self, str sql)
|
|
1779
1781
|
* # . client
|
|
1780
1782
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1786,7 +1788,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1786
1788
|
PyObject *collation;
|
|
1787
1789
|
};
|
|
1788
1790
|
|
|
1789
|
-
/* "sqlcycli/connection.pxd":
|
|
1791
|
+
/* "sqlcycli/connection.pxd":248
|
|
1790
1792
|
* cpdef bint closed(self) except -1
|
|
1791
1793
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1792
1794
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1798,7 +1800,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1798
1800
|
int reconnect;
|
|
1799
1801
|
};
|
|
1800
1802
|
|
|
1801
|
-
/* "sqlcycli/connection.pxd":
|
|
1803
|
+
/* "sqlcycli/connection.pxd":262
|
|
1802
1804
|
* cdef inline bint _set_use_time(self) except -1
|
|
1803
1805
|
* # Read
|
|
1804
1806
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1828,7 +1830,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1828
1830
|
int itemize;
|
|
1829
1831
|
};
|
|
1830
1832
|
|
|
1831
|
-
/* "connection.pxd":
|
|
1833
|
+
/* "connection.pxd":171
|
|
1832
1834
|
* cdef inline bint _setup_internal(self) except -1
|
|
1833
1835
|
* # Cursor
|
|
1834
1836
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1840,7 +1842,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1840
1842
|
PyObject *cursor;
|
|
1841
1843
|
};
|
|
1842
1844
|
|
|
1843
|
-
/* "connection.pxd":
|
|
1845
|
+
/* "connection.pxd":172
|
|
1844
1846
|
* # Cursor
|
|
1845
1847
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1846
1848
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1852,7 +1854,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1852
1854
|
PyObject *cursor;
|
|
1853
1855
|
};
|
|
1854
1856
|
|
|
1855
|
-
/* "connection.pxd":
|
|
1857
|
+
/* "connection.pxd":175
|
|
1856
1858
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1857
1859
|
* # Query
|
|
1858
1860
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2431,10 +2433,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2431
2433
|
PyObject *_encoding;
|
|
2432
2434
|
char *_encoding_c;
|
|
2433
2435
|
int _is_default;
|
|
2436
|
+
Py_ssize_t _hashcode;
|
|
2434
2437
|
};
|
|
2435
2438
|
|
|
2436
2439
|
|
|
2437
|
-
/* "sqlcycli/charset.pxd":
|
|
2440
|
+
/* "sqlcycli/charset.pxd":16
|
|
2438
2441
|
* cpdef bint is_binary(self)
|
|
2439
2442
|
*
|
|
2440
2443
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2456,11 +2459,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
2456
2459
|
* # Auth Plugin
|
|
2457
2460
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2458
2461
|
* cdef:
|
|
2459
|
-
*
|
|
2462
|
+
* # . plugins registry
|
|
2460
2463
|
*/
|
|
2461
2464
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2462
2465
|
PyObject_HEAD
|
|
2463
2466
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2467
|
+
PyObject *_plugins;
|
|
2464
2468
|
PyObject *_mysql_native_password;
|
|
2465
2469
|
PyObject *_caching_sha2_password;
|
|
2466
2470
|
PyObject *_sha256_password;
|
|
@@ -2468,7 +2472,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2468
2472
|
PyObject *_mysql_old_password;
|
|
2469
2473
|
PyObject *_mysql_clear_password;
|
|
2470
2474
|
PyObject *_dialog;
|
|
2471
|
-
PyObject *_plugins;
|
|
2472
2475
|
};
|
|
2473
2476
|
|
|
2474
2477
|
|
|
@@ -2637,7 +2640,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2637
2640
|
|
|
2638
2641
|
/* "sqlcycli/connection.pxd":104
|
|
2639
2642
|
*
|
|
2640
|
-
* #
|
|
2643
|
+
* # Cursor Manager
|
|
2641
2644
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2642
2645
|
* cdef:
|
|
2643
2646
|
* BaseConnection _conn
|
|
@@ -2664,9 +2667,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2664
2667
|
};
|
|
2665
2668
|
|
|
2666
2669
|
|
|
2667
|
-
/* "sqlcycli/connection.pxd":
|
|
2668
|
-
* pass
|
|
2670
|
+
/* "sqlcycli/connection.pxd":117
|
|
2669
2671
|
*
|
|
2672
|
+
* # Connection
|
|
2670
2673
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2671
2674
|
* cdef:
|
|
2672
2675
|
* # Basic
|
|
@@ -2734,6 +2737,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2734
2737
|
};
|
|
2735
2738
|
|
|
2736
2739
|
|
|
2740
|
+
/* "sqlcycli/connection.pxd":270
|
|
2741
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2742
|
+
*
|
|
2743
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2744
|
+
* pass
|
|
2745
|
+
*/
|
|
2746
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2747
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2750
|
+
|
|
2737
2751
|
/* "connection.pxd":7
|
|
2738
2752
|
*
|
|
2739
2753
|
* # Result
|
|
@@ -2849,7 +2863,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2849
2863
|
|
|
2850
2864
|
/* "connection.pxd":81
|
|
2851
2865
|
*
|
|
2852
|
-
* #
|
|
2866
|
+
* # Cursor Manager
|
|
2853
2867
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2854
2868
|
* cdef:
|
|
2855
2869
|
* BaseConnection _conn
|
|
@@ -2875,9 +2889,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2875
2889
|
};
|
|
2876
2890
|
|
|
2877
2891
|
|
|
2878
|
-
/* "connection.pxd":
|
|
2879
|
-
* pass
|
|
2892
|
+
/* "connection.pxd":92
|
|
2880
2893
|
*
|
|
2894
|
+
* # Connection
|
|
2881
2895
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2882
2896
|
* cdef:
|
|
2883
2897
|
* # Basic
|
|
@@ -2946,6 +2960,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
2946
2960
|
};
|
|
2947
2961
|
|
|
2948
2962
|
|
|
2963
|
+
/* "connection.pxd":201
|
|
2964
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
2965
|
+
*
|
|
2966
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2967
|
+
* pass
|
|
2968
|
+
*/
|
|
2969
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
2970
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
2971
|
+
};
|
|
2972
|
+
|
|
2973
|
+
|
|
2949
2974
|
/* "sqlcycli/aio/pool.pxd":12
|
|
2950
2975
|
*
|
|
2951
2976
|
* # Connection
|
|
@@ -3934,7 +3959,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3934
3959
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3935
3960
|
|
|
3936
3961
|
|
|
3937
|
-
/* "sqlcycli/charset.pxd":
|
|
3962
|
+
/* "sqlcycli/charset.pxd":16
|
|
3938
3963
|
* cpdef bint is_binary(self)
|
|
3939
3964
|
*
|
|
3940
3965
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3944,10 +3969,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3944
3969
|
|
|
3945
3970
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3946
3971
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3947
|
-
int (*
|
|
3948
|
-
int (*
|
|
3949
|
-
int (*
|
|
3950
|
-
int (*
|
|
3972
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3973
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3974
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3975
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3951
3976
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3952
3977
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3953
3978
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3962,11 +3987,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
3962
3987
|
* # Auth Plugin
|
|
3963
3988
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3964
3989
|
* cdef:
|
|
3965
|
-
*
|
|
3990
|
+
* # . plugins registry
|
|
3966
3991
|
*/
|
|
3967
3992
|
|
|
3968
3993
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3969
3994
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
3995
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
3996
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
3997
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
3970
3998
|
};
|
|
3971
3999
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
3972
4000
|
|
|
@@ -4162,7 +4190,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
4162
4190
|
|
|
4163
4191
|
/* "sqlcycli/connection.pxd":104
|
|
4164
4192
|
*
|
|
4165
|
-
* #
|
|
4193
|
+
* # Cursor Manager
|
|
4166
4194
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4167
4195
|
* cdef:
|
|
4168
4196
|
* BaseConnection _conn
|
|
@@ -4189,9 +4217,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
4189
4217
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
4190
4218
|
|
|
4191
4219
|
|
|
4192
|
-
/* "sqlcycli/connection.pxd":
|
|
4193
|
-
* pass
|
|
4220
|
+
/* "sqlcycli/connection.pxd":117
|
|
4194
4221
|
*
|
|
4222
|
+
* # Connection
|
|
4195
4223
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4196
4224
|
* cdef:
|
|
4197
4225
|
* # Basic
|
|
@@ -4272,6 +4300,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
4272
4300
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
4273
4301
|
|
|
4274
4302
|
|
|
4303
|
+
/* "sqlcycli/connection.pxd":270
|
|
4304
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4305
|
+
*
|
|
4306
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4307
|
+
* pass
|
|
4308
|
+
*/
|
|
4309
|
+
|
|
4310
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
4311
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4312
|
+
};
|
|
4313
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
4314
|
+
|
|
4315
|
+
|
|
4275
4316
|
/* "connection.pxd":7
|
|
4276
4317
|
*
|
|
4277
4318
|
* # Result
|
|
@@ -4383,9 +4424,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4383
4424
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
4384
4425
|
|
|
4385
4426
|
|
|
4386
|
-
/* "connection.pxd":
|
|
4387
|
-
* pass
|
|
4427
|
+
/* "connection.pxd":92
|
|
4388
4428
|
*
|
|
4429
|
+
* # Connection
|
|
4389
4430
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4390
4431
|
* cdef:
|
|
4391
4432
|
* # Basic
|
|
@@ -4422,6 +4463,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4422
4463
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4423
4464
|
|
|
4424
4465
|
|
|
4466
|
+
/* "connection.pxd":201
|
|
4467
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4468
|
+
*
|
|
4469
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4470
|
+
* pass
|
|
4471
|
+
*/
|
|
4472
|
+
|
|
4473
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4474
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4475
|
+
};
|
|
4476
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4477
|
+
|
|
4478
|
+
|
|
4425
4479
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4426
4480
|
*
|
|
4427
4481
|
* # Connection
|
|
@@ -4508,10 +4562,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4508
4562
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4509
4563
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4510
4564
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4565
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4511
4566
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4512
4567
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4513
4568
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4514
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4515
4569
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4516
4570
|
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);
|
|
4517
4571
|
};
|
|
@@ -6921,6 +6975,7 @@ typedef struct {
|
|
|
6921
6975
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
6922
6976
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
6923
6977
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
6978
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
6924
6979
|
#if CYTHON_USE_MODULE_STATE
|
|
6925
6980
|
#endif
|
|
6926
6981
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -6937,6 +6992,7 @@ typedef struct {
|
|
|
6937
6992
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
6938
6993
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
6939
6994
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
6995
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
6940
6996
|
#if CYTHON_USE_MODULE_STATE
|
|
6941
6997
|
#endif
|
|
6942
6998
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -7899,6 +7955,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7899
7955
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
7900
7956
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
7901
7957
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
7958
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
7902
7959
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
7903
7960
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
7904
7961
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -7909,6 +7966,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7909
7966
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
7910
7967
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
7911
7968
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
7969
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
7912
7970
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
7913
7971
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
7914
7972
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -8747,6 +8805,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8747
8805
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
8748
8806
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
8749
8807
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
8808
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
8750
8809
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
8751
8810
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
8752
8811
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -8757,6 +8816,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8757
8816
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
8758
8817
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
8759
8818
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
8819
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
8760
8820
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
8761
8821
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
8762
8822
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -9613,6 +9673,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9613
9673
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
9614
9674
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
9615
9675
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
9676
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
9616
9677
|
#if CYTHON_USE_MODULE_STATE
|
|
9617
9678
|
#endif
|
|
9618
9679
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -9629,6 +9690,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9629
9690
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
9630
9691
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
9631
9692
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
9693
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
9632
9694
|
#if CYTHON_USE_MODULE_STATE
|
|
9633
9695
|
#endif
|
|
9634
9696
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -91997,8 +92059,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
91997
92059
|
__Pyx_GOTREF(__pyx_t_1);
|
|
91998
92060
|
__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)
|
|
91999
92061
|
__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)
|
|
92000
|
-
__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,
|
|
92001
|
-
__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,
|
|
92062
|
+
__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)
|
|
92063
|
+
__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)
|
|
92002
92064
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
92003
92065
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 10, __pyx_L1_error)
|
|
92004
92066
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -92032,8 +92094,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
92032
92094
|
__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)
|
|
92033
92095
|
__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)
|
|
92034
92096
|
__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)
|
|
92035
|
-
__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,
|
|
92036
|
-
__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,
|
|
92097
|
+
__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)
|
|
92098
|
+
__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)
|
|
92099
|
+
__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)
|
|
92100
|
+
__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)
|
|
92037
92101
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
92038
92102
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
92039
92103
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -92053,8 +92117,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
92053
92117
|
__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)
|
|
92054
92118
|
__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)
|
|
92055
92119
|
__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)
|
|
92056
|
-
__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,
|
|
92057
|
-
__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,
|
|
92120
|
+
__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)
|
|
92121
|
+
__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)
|
|
92122
|
+
__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)
|
|
92123
|
+
__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)
|
|
92058
92124
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
92059
92125
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
92060
92126
|
__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
|