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/constraint.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.constraint",
|
|
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;
|
|
@@ -1724,7 +1726,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1724
1726
|
PyObject *mode;
|
|
1725
1727
|
};
|
|
1726
1728
|
|
|
1727
|
-
/* "sqlcycli/connection.pxd":
|
|
1729
|
+
/* "sqlcycli/connection.pxd":194
|
|
1728
1730
|
* cdef inline bint _setup_internal(self) except -1
|
|
1729
1731
|
* # Cursor
|
|
1730
1732
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1736,7 +1738,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1736
1738
|
PyObject *cursor;
|
|
1737
1739
|
};
|
|
1738
1740
|
|
|
1739
|
-
/* "sqlcycli/connection.pxd":
|
|
1741
|
+
/* "sqlcycli/connection.pxd":195
|
|
1740
1742
|
* # Cursor
|
|
1741
1743
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1742
1744
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1748,7 +1750,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1748
1750
|
PyObject *cursor;
|
|
1749
1751
|
};
|
|
1750
1752
|
|
|
1751
|
-
/* "sqlcycli/connection.pxd":
|
|
1753
|
+
/* "sqlcycli/connection.pxd":198
|
|
1752
1754
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1753
1755
|
* # Query
|
|
1754
1756
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1760,7 +1762,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1760
1762
|
int unbuffered;
|
|
1761
1763
|
};
|
|
1762
1764
|
|
|
1763
|
-
/* "sqlcycli/connection.pxd":
|
|
1765
|
+
/* "sqlcycli/connection.pxd":208
|
|
1764
1766
|
* cpdef tuple show_warnings(self)
|
|
1765
1767
|
* cpdef bint select_database(self, str db) except -1
|
|
1766
1768
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1773,7 +1775,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1773
1775
|
int itemize;
|
|
1774
1776
|
};
|
|
1775
1777
|
|
|
1776
|
-
/* "sqlcycli/connection.pxd":
|
|
1778
|
+
/* "sqlcycli/connection.pxd":211
|
|
1777
1779
|
* cpdef bytes encode_sql(self, str sql)
|
|
1778
1780
|
* # . client
|
|
1779
1781
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1785,7 +1787,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1785
1787
|
PyObject *collation;
|
|
1786
1788
|
};
|
|
1787
1789
|
|
|
1788
|
-
/* "sqlcycli/connection.pxd":
|
|
1790
|
+
/* "sqlcycli/connection.pxd":248
|
|
1789
1791
|
* cpdef bint closed(self) except -1
|
|
1790
1792
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1791
1793
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1797,7 +1799,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1797
1799
|
int reconnect;
|
|
1798
1800
|
};
|
|
1799
1801
|
|
|
1800
|
-
/* "sqlcycli/connection.pxd":
|
|
1802
|
+
/* "sqlcycli/connection.pxd":262
|
|
1801
1803
|
* cdef inline bint _set_use_time(self) except -1
|
|
1802
1804
|
* # Read
|
|
1803
1805
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1827,7 +1829,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1827
1829
|
int itemize;
|
|
1828
1830
|
};
|
|
1829
1831
|
|
|
1830
|
-
/* "connection.pxd":
|
|
1832
|
+
/* "connection.pxd":171
|
|
1831
1833
|
* cdef inline bint _setup_internal(self) except -1
|
|
1832
1834
|
* # Cursor
|
|
1833
1835
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1839,7 +1841,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1839
1841
|
PyObject *cursor;
|
|
1840
1842
|
};
|
|
1841
1843
|
|
|
1842
|
-
/* "connection.pxd":
|
|
1844
|
+
/* "connection.pxd":172
|
|
1843
1845
|
* # Cursor
|
|
1844
1846
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1845
1847
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1851,7 +1853,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1851
1853
|
PyObject *cursor;
|
|
1852
1854
|
};
|
|
1853
1855
|
|
|
1854
|
-
/* "connection.pxd":
|
|
1856
|
+
/* "connection.pxd":175
|
|
1855
1857
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1856
1858
|
* # Query
|
|
1857
1859
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2417,10 +2419,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2417
2419
|
PyObject *_encoding;
|
|
2418
2420
|
char *_encoding_c;
|
|
2419
2421
|
int _is_default;
|
|
2422
|
+
Py_ssize_t _hashcode;
|
|
2420
2423
|
};
|
|
2421
2424
|
|
|
2422
2425
|
|
|
2423
|
-
/* "sqlcycli/charset.pxd":
|
|
2426
|
+
/* "sqlcycli/charset.pxd":16
|
|
2424
2427
|
* cpdef bint is_binary(self)
|
|
2425
2428
|
*
|
|
2426
2429
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2442,11 +2445,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
2442
2445
|
* # Auth Plugin
|
|
2443
2446
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2444
2447
|
* cdef:
|
|
2445
|
-
*
|
|
2448
|
+
* # . plugins registry
|
|
2446
2449
|
*/
|
|
2447
2450
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2448
2451
|
PyObject_HEAD
|
|
2449
2452
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2453
|
+
PyObject *_plugins;
|
|
2450
2454
|
PyObject *_mysql_native_password;
|
|
2451
2455
|
PyObject *_caching_sha2_password;
|
|
2452
2456
|
PyObject *_sha256_password;
|
|
@@ -2454,7 +2458,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2454
2458
|
PyObject *_mysql_old_password;
|
|
2455
2459
|
PyObject *_mysql_clear_password;
|
|
2456
2460
|
PyObject *_dialog;
|
|
2457
|
-
PyObject *_plugins;
|
|
2458
2461
|
};
|
|
2459
2462
|
|
|
2460
2463
|
|
|
@@ -2623,7 +2626,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2623
2626
|
|
|
2624
2627
|
/* "sqlcycli/connection.pxd":104
|
|
2625
2628
|
*
|
|
2626
|
-
* #
|
|
2629
|
+
* # Cursor Manager
|
|
2627
2630
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2628
2631
|
* cdef:
|
|
2629
2632
|
* BaseConnection _conn
|
|
@@ -2650,9 +2653,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2650
2653
|
};
|
|
2651
2654
|
|
|
2652
2655
|
|
|
2653
|
-
/* "sqlcycli/connection.pxd":
|
|
2654
|
-
* pass
|
|
2656
|
+
/* "sqlcycli/connection.pxd":117
|
|
2655
2657
|
*
|
|
2658
|
+
* # Connection
|
|
2656
2659
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2657
2660
|
* cdef:
|
|
2658
2661
|
* # Basic
|
|
@@ -2720,6 +2723,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2720
2723
|
};
|
|
2721
2724
|
|
|
2722
2725
|
|
|
2726
|
+
/* "sqlcycli/connection.pxd":270
|
|
2727
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2728
|
+
*
|
|
2729
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2730
|
+
* pass
|
|
2731
|
+
*/
|
|
2732
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2733
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2734
|
+
};
|
|
2735
|
+
|
|
2736
|
+
|
|
2723
2737
|
/* "connection.pxd":7
|
|
2724
2738
|
*
|
|
2725
2739
|
* # Result
|
|
@@ -2835,7 +2849,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2835
2849
|
|
|
2836
2850
|
/* "connection.pxd":81
|
|
2837
2851
|
*
|
|
2838
|
-
* #
|
|
2852
|
+
* # Cursor Manager
|
|
2839
2853
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2840
2854
|
* cdef:
|
|
2841
2855
|
* BaseConnection _conn
|
|
@@ -2861,9 +2875,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2861
2875
|
};
|
|
2862
2876
|
|
|
2863
2877
|
|
|
2864
|
-
/* "connection.pxd":
|
|
2865
|
-
* pass
|
|
2878
|
+
/* "connection.pxd":92
|
|
2866
2879
|
*
|
|
2880
|
+
* # Connection
|
|
2867
2881
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2868
2882
|
* cdef:
|
|
2869
2883
|
* # Basic
|
|
@@ -2932,6 +2946,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
2932
2946
|
};
|
|
2933
2947
|
|
|
2934
2948
|
|
|
2949
|
+
/* "connection.pxd":201
|
|
2950
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
2951
|
+
*
|
|
2952
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2953
|
+
* pass
|
|
2954
|
+
*/
|
|
2955
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
2956
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
2957
|
+
};
|
|
2958
|
+
|
|
2959
|
+
|
|
2935
2960
|
/* "sqlcycli/aio/pool.pxd":12
|
|
2936
2961
|
*
|
|
2937
2962
|
* # Connection
|
|
@@ -3791,7 +3816,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3791
3816
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3792
3817
|
|
|
3793
3818
|
|
|
3794
|
-
/* "sqlcycli/charset.pxd":
|
|
3819
|
+
/* "sqlcycli/charset.pxd":16
|
|
3795
3820
|
* cpdef bint is_binary(self)
|
|
3796
3821
|
*
|
|
3797
3822
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3801,10 +3826,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3801
3826
|
|
|
3802
3827
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3803
3828
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3804
|
-
int (*
|
|
3805
|
-
int (*
|
|
3806
|
-
int (*
|
|
3807
|
-
int (*
|
|
3829
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3830
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3831
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3832
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3808
3833
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3809
3834
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3810
3835
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3819,11 +3844,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
3819
3844
|
* # Auth Plugin
|
|
3820
3845
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3821
3846
|
* cdef:
|
|
3822
|
-
*
|
|
3847
|
+
* # . plugins registry
|
|
3823
3848
|
*/
|
|
3824
3849
|
|
|
3825
3850
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3826
3851
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
3852
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
3853
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
3854
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
3827
3855
|
};
|
|
3828
3856
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
3829
3857
|
|
|
@@ -4019,7 +4047,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
4019
4047
|
|
|
4020
4048
|
/* "sqlcycli/connection.pxd":104
|
|
4021
4049
|
*
|
|
4022
|
-
* #
|
|
4050
|
+
* # Cursor Manager
|
|
4023
4051
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4024
4052
|
* cdef:
|
|
4025
4053
|
* BaseConnection _conn
|
|
@@ -4046,9 +4074,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
4046
4074
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
4047
4075
|
|
|
4048
4076
|
|
|
4049
|
-
/* "sqlcycli/connection.pxd":
|
|
4050
|
-
* pass
|
|
4077
|
+
/* "sqlcycli/connection.pxd":117
|
|
4051
4078
|
*
|
|
4079
|
+
* # Connection
|
|
4052
4080
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4053
4081
|
* cdef:
|
|
4054
4082
|
* # Basic
|
|
@@ -4129,6 +4157,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
4129
4157
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
4130
4158
|
|
|
4131
4159
|
|
|
4160
|
+
/* "sqlcycli/connection.pxd":270
|
|
4161
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4162
|
+
*
|
|
4163
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4164
|
+
* pass
|
|
4165
|
+
*/
|
|
4166
|
+
|
|
4167
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
4168
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4169
|
+
};
|
|
4170
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
4171
|
+
|
|
4172
|
+
|
|
4132
4173
|
/* "connection.pxd":7
|
|
4133
4174
|
*
|
|
4134
4175
|
* # Result
|
|
@@ -4240,9 +4281,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4240
4281
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
4241
4282
|
|
|
4242
4283
|
|
|
4243
|
-
/* "connection.pxd":
|
|
4244
|
-
* pass
|
|
4284
|
+
/* "connection.pxd":92
|
|
4245
4285
|
*
|
|
4286
|
+
* # Connection
|
|
4246
4287
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4247
4288
|
* cdef:
|
|
4248
4289
|
* # Basic
|
|
@@ -4279,6 +4320,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4279
4320
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4280
4321
|
|
|
4281
4322
|
|
|
4323
|
+
/* "connection.pxd":201
|
|
4324
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4325
|
+
*
|
|
4326
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4327
|
+
* pass
|
|
4328
|
+
*/
|
|
4329
|
+
|
|
4330
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4331
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4332
|
+
};
|
|
4333
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4334
|
+
|
|
4335
|
+
|
|
4282
4336
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4283
4337
|
*
|
|
4284
4338
|
* # Connection
|
|
@@ -4365,10 +4419,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4365
4419
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4366
4420
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4367
4421
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4422
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4368
4423
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4369
4424
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4370
4425
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4371
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4372
4426
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4373
4427
|
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);
|
|
4374
4428
|
};
|
|
@@ -6758,6 +6812,7 @@ typedef struct {
|
|
|
6758
6812
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
6759
6813
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
6760
6814
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
6815
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
6761
6816
|
#if CYTHON_USE_MODULE_STATE
|
|
6762
6817
|
#endif
|
|
6763
6818
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -6774,6 +6829,7 @@ typedef struct {
|
|
|
6774
6829
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
6775
6830
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
6776
6831
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
6832
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
6777
6833
|
#if CYTHON_USE_MODULE_STATE
|
|
6778
6834
|
#endif
|
|
6779
6835
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -7675,6 +7731,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7675
7731
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
7676
7732
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
7677
7733
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
7734
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
7678
7735
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
7679
7736
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
7680
7737
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -7685,6 +7742,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7685
7742
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
7686
7743
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
7687
7744
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
7745
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
7688
7746
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
7689
7747
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
7690
7748
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -8462,6 +8520,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8462
8520
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
8463
8521
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
8464
8522
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
8523
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
8465
8524
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
8466
8525
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
8467
8526
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -8472,6 +8531,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8472
8531
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
8473
8532
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
8474
8533
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
8534
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
8475
8535
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
8476
8536
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
8477
8537
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -9267,6 +9327,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9267
9327
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
9268
9328
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
9269
9329
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
9330
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
9270
9331
|
#if CYTHON_USE_MODULE_STATE
|
|
9271
9332
|
#endif
|
|
9272
9333
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -9283,6 +9344,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9283
9344
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
9284
9345
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
9285
9346
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
9347
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
9286
9348
|
#if CYTHON_USE_MODULE_STATE
|
|
9287
9349
|
#endif
|
|
9288
9350
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -85270,8 +85332,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
85270
85332
|
__Pyx_GOTREF(__pyx_t_1);
|
|
85271
85333
|
__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)
|
|
85272
85334
|
__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)
|
|
85273
|
-
__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,
|
|
85274
|
-
__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,
|
|
85335
|
+
__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)
|
|
85336
|
+
__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)
|
|
85275
85337
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
85276
85338
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 10, __pyx_L1_error)
|
|
85277
85339
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -85305,8 +85367,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
85305
85367
|
__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)
|
|
85306
85368
|
__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)
|
|
85307
85369
|
__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)
|
|
85308
|
-
__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,
|
|
85309
|
-
__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,
|
|
85370
|
+
__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)
|
|
85371
|
+
__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)
|
|
85372
|
+
__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)
|
|
85373
|
+
__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)
|
|
85310
85374
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
85311
85375
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
85312
85376
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -85326,8 +85390,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
85326
85390
|
__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)
|
|
85327
85391
|
__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)
|
|
85328
85392
|
__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)
|
|
85329
|
-
__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,
|
|
85330
|
-
__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,
|
|
85393
|
+
__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)
|
|
85394
|
+
__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)
|
|
85395
|
+
__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)
|
|
85396
|
+
__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)
|
|
85331
85397
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
85332
85398
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
85333
85399
|
__Pyx_GOTREF(__pyx_t_1);
|
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# cython: language_level=3
|
|
2
|
+
from mysqlengine.element cimport Element, Elements, Logs, Metadata, Query
|
|
3
|
+
|
|
4
|
+
# Constraint
|
|
5
|
+
cdef class Constraint(Element):
|
|
6
|
+
cdef:
|
|
7
|
+
# Common
|
|
8
|
+
bint _enforced
|
|
9
|
+
# Primary/Unique Key
|
|
10
|
+
tuple _columns
|
|
11
|
+
str _index_type
|
|
12
|
+
str _comment
|
|
13
|
+
bint _visible
|
|
14
|
+
# Foreign Key
|
|
15
|
+
str _reference_table
|
|
16
|
+
tuple _reference_columns
|
|
17
|
+
str _on_delete
|
|
18
|
+
str _on_update
|
|
19
|
+
# Check
|
|
20
|
+
str _expression
|
|
21
|
+
# Sync
|
|
22
|
+
cpdef Logs Initialize(self, bint force=?)
|
|
23
|
+
cpdef Logs Add(self)
|
|
24
|
+
cpdef bint Exists(self) except -1
|
|
25
|
+
cpdef Logs Drop(self)
|
|
26
|
+
cpdef Logs _Alter(
|
|
27
|
+
self, object columns, object index_type, object comment, object visible,
|
|
28
|
+
object reference_table, object reference_columns, object on_delete, object on_update,
|
|
29
|
+
object expression, object enforced,
|
|
30
|
+
)
|
|
31
|
+
cpdef ConstraintMetadata ShowMetadata(self)
|
|
32
|
+
cpdef tuple ShowConstraintSymbols(self)
|
|
33
|
+
cpdef Logs SyncFromRemote(self)
|
|
34
|
+
cpdef Logs SyncToRemote(self)
|
|
35
|
+
# Generate SQL
|
|
36
|
+
cpdef str _gen_definition_sql(self)
|
|
37
|
+
cpdef str _gen_add_sql(self)
|
|
38
|
+
cpdef str _gen_exists_sql(self)
|
|
39
|
+
cpdef str _gen_drop_sql(self)
|
|
40
|
+
cpdef Query _gen_alter_query(
|
|
41
|
+
self, ConstraintMetadata meta,
|
|
42
|
+
object columns, object index_type, object comment, object visible,
|
|
43
|
+
object reference_table, object reference_columns, object on_delete, object on_update,
|
|
44
|
+
object expression, object enforced,
|
|
45
|
+
)
|
|
46
|
+
cpdef str _gen_show_metadata_sql(self)
|
|
47
|
+
cpdef str _gen_show_constraint_symbols_sql(self)
|
|
48
|
+
# Metadata
|
|
49
|
+
cpdef Logs _sync_from_metadata(self, ConstraintMetadata meta, Logs logs=?)
|
|
50
|
+
cpdef int _diff_from_metadata(self, ConstraintMetadata meta) except -1
|
|
51
|
+
# Setter
|
|
52
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
53
|
+
cpdef bint _set_symbol(self) except -1
|
|
54
|
+
# Copy
|
|
55
|
+
cpdef Constraint copy(self)
|
|
56
|
+
cpdef Constraint _construct(
|
|
57
|
+
self, object columns, object index_type, object comment, object visible,
|
|
58
|
+
object reference_table, object reference_columns, object on_delete, object on_update,
|
|
59
|
+
object expression, object enforced,
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
cdef class UniqueKey(Constraint):
|
|
63
|
+
# Sync
|
|
64
|
+
cpdef Logs SetVisible(self, bint visible)
|
|
65
|
+
# Generate SQL
|
|
66
|
+
cpdef str _gen_set_visible_sql(self, bint visible)
|
|
67
|
+
|
|
68
|
+
cdef class PrimaryKey(UniqueKey):
|
|
69
|
+
pass
|
|
70
|
+
|
|
71
|
+
cdef class ForeignKey(Constraint):
|
|
72
|
+
# Validator
|
|
73
|
+
cdef inline str _validate_foreign_key_action(self, object action)
|
|
74
|
+
|
|
75
|
+
cdef class Check(Constraint):
|
|
76
|
+
# Sync
|
|
77
|
+
cpdef Logs SetEnforced(self, bint enforced)
|
|
78
|
+
# Generate SQL
|
|
79
|
+
cpdef str _gen_set_enforced_sql(self, bint enforced)
|
|
80
|
+
|
|
81
|
+
# Constraints
|
|
82
|
+
cdef class Constraints(Elements):
|
|
83
|
+
# Setter
|
|
84
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
85
|
+
# Copy
|
|
86
|
+
cpdef Constraints copy(self)
|
|
87
|
+
|
|
88
|
+
# Metadata
|
|
89
|
+
cdef class ConstraintMetadata(Metadata):
|
|
90
|
+
cdef:
|
|
91
|
+
# Base data
|
|
92
|
+
str _db_name
|
|
93
|
+
str _tb_name
|
|
94
|
+
str _constraint_name
|
|
95
|
+
str _constraint_type
|
|
96
|
+
bint _enforced
|
|
97
|
+
# Additional data
|
|
98
|
+
str _el_type
|
|
99
|
+
# Primary/Unique Key
|
|
100
|
+
str _index_type
|
|
101
|
+
bint _unique
|
|
102
|
+
str _comment
|
|
103
|
+
bint _visible
|
|
104
|
+
tuple _columns
|
|
105
|
+
# Foreign Key
|
|
106
|
+
str _reference_table
|
|
107
|
+
str _unique_constraint
|
|
108
|
+
str _on_delete
|
|
109
|
+
str _on_update
|
|
110
|
+
tuple _reference_columns
|
|
111
|
+
# Check
|
|
112
|
+
str _expression
|
|
113
|
+
|
|
114
|
+
cdef class UniPriKeyMetadata(ConstraintMetadata):
|
|
115
|
+
pass
|
|
116
|
+
|
|
117
|
+
cdef class ForeignKeyMetadata(ConstraintMetadata):
|
|
118
|
+
pass
|
|
119
|
+
|
|
120
|
+
cdef class CheckMetadata(ConstraintMetadata):
|
|
121
|
+
pass
|