mysqlengine 1.0.0__cp313-cp313-macosx_10_13_universal2.whl → 1.0.3__cp313-cp313-macosx_10_13_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-313-darwin.so +0 -0
- mysqlengine/column.pxd +149 -0
- mysqlengine/constraint.c +104 -38
- mysqlengine/constraint.cpython-313-darwin.so +0 -0
- mysqlengine/constraint.pxd +121 -0
- mysqlengine/database.c +104 -38
- mysqlengine/database.cpython-313-darwin.so +0 -0
- mysqlengine/database.pxd +58 -0
- mysqlengine/dml.c +6686 -6544
- mysqlengine/dml.cpython-313-darwin.so +0 -0
- mysqlengine/dml.pxd +387 -0
- mysqlengine/dml.py +189 -15
- mysqlengine/element.c +3604 -3525
- mysqlengine/element.cpython-313-darwin.so +0 -0
- mysqlengine/element.pxd +179 -0
- mysqlengine/element.py +103 -75
- mysqlengine/index.c +104 -38
- mysqlengine/index.cpython-313-darwin.so +0 -0
- mysqlengine/index.pxd +71 -0
- mysqlengine/partition.c +104 -38
- mysqlengine/partition.cpython-313-darwin.so +0 -0
- mysqlengine/partition.pxd +128 -0
- mysqlengine/table.c +104 -38
- mysqlengine/table.cpython-313-darwin.so +0 -0
- mysqlengine/table.pxd +169 -0
- mysqlengine/utils.c +9 -8
- mysqlengine/utils.cpython-313-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/constraint.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-0yl9oj61/overlay/lib/python3.13/site-packages/numpy/_core/include"
|
|
18
18
|
],
|
|
19
19
|
"name": "mysqlengine.constraint",
|
|
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;
|
|
@@ -1728,7 +1730,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1728
1730
|
PyObject *mode;
|
|
1729
1731
|
};
|
|
1730
1732
|
|
|
1731
|
-
/* "sqlcycli/connection.pxd":
|
|
1733
|
+
/* "sqlcycli/connection.pxd":194
|
|
1732
1734
|
* cdef inline bint _setup_internal(self) except -1
|
|
1733
1735
|
* # Cursor
|
|
1734
1736
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1740,7 +1742,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1740
1742
|
PyObject *cursor;
|
|
1741
1743
|
};
|
|
1742
1744
|
|
|
1743
|
-
/* "sqlcycli/connection.pxd":
|
|
1745
|
+
/* "sqlcycli/connection.pxd":195
|
|
1744
1746
|
* # Cursor
|
|
1745
1747
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1746
1748
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1752,7 +1754,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1752
1754
|
PyObject *cursor;
|
|
1753
1755
|
};
|
|
1754
1756
|
|
|
1755
|
-
/* "sqlcycli/connection.pxd":
|
|
1757
|
+
/* "sqlcycli/connection.pxd":198
|
|
1756
1758
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1757
1759
|
* # Query
|
|
1758
1760
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1764,7 +1766,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1764
1766
|
int unbuffered;
|
|
1765
1767
|
};
|
|
1766
1768
|
|
|
1767
|
-
/* "sqlcycli/connection.pxd":
|
|
1769
|
+
/* "sqlcycli/connection.pxd":208
|
|
1768
1770
|
* cpdef tuple show_warnings(self)
|
|
1769
1771
|
* cpdef bint select_database(self, str db) except -1
|
|
1770
1772
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1777,7 +1779,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1777
1779
|
int itemize;
|
|
1778
1780
|
};
|
|
1779
1781
|
|
|
1780
|
-
/* "sqlcycli/connection.pxd":
|
|
1782
|
+
/* "sqlcycli/connection.pxd":211
|
|
1781
1783
|
* cpdef bytes encode_sql(self, str sql)
|
|
1782
1784
|
* # . client
|
|
1783
1785
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1789,7 +1791,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1789
1791
|
PyObject *collation;
|
|
1790
1792
|
};
|
|
1791
1793
|
|
|
1792
|
-
/* "sqlcycli/connection.pxd":
|
|
1794
|
+
/* "sqlcycli/connection.pxd":248
|
|
1793
1795
|
* cpdef bint closed(self) except -1
|
|
1794
1796
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1795
1797
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1801,7 +1803,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1801
1803
|
int reconnect;
|
|
1802
1804
|
};
|
|
1803
1805
|
|
|
1804
|
-
/* "sqlcycli/connection.pxd":
|
|
1806
|
+
/* "sqlcycli/connection.pxd":262
|
|
1805
1807
|
* cdef inline bint _set_use_time(self) except -1
|
|
1806
1808
|
* # Read
|
|
1807
1809
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1831,7 +1833,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1831
1833
|
int itemize;
|
|
1832
1834
|
};
|
|
1833
1835
|
|
|
1834
|
-
/* "connection.pxd":
|
|
1836
|
+
/* "connection.pxd":171
|
|
1835
1837
|
* cdef inline bint _setup_internal(self) except -1
|
|
1836
1838
|
* # Cursor
|
|
1837
1839
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1843,7 +1845,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1843
1845
|
PyObject *cursor;
|
|
1844
1846
|
};
|
|
1845
1847
|
|
|
1846
|
-
/* "connection.pxd":
|
|
1848
|
+
/* "connection.pxd":172
|
|
1847
1849
|
* # Cursor
|
|
1848
1850
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1849
1851
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1855,7 +1857,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1855
1857
|
PyObject *cursor;
|
|
1856
1858
|
};
|
|
1857
1859
|
|
|
1858
|
-
/* "connection.pxd":
|
|
1860
|
+
/* "connection.pxd":175
|
|
1859
1861
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1860
1862
|
* # Query
|
|
1861
1863
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2421,10 +2423,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2421
2423
|
PyObject *_encoding;
|
|
2422
2424
|
char *_encoding_c;
|
|
2423
2425
|
int _is_default;
|
|
2426
|
+
Py_ssize_t _hashcode;
|
|
2424
2427
|
};
|
|
2425
2428
|
|
|
2426
2429
|
|
|
2427
|
-
/* "sqlcycli/charset.pxd":
|
|
2430
|
+
/* "sqlcycli/charset.pxd":16
|
|
2428
2431
|
* cpdef bint is_binary(self)
|
|
2429
2432
|
*
|
|
2430
2433
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2446,11 +2449,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
|
|
|
2446
2449
|
* # Auth Plugin
|
|
2447
2450
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2448
2451
|
* cdef:
|
|
2449
|
-
*
|
|
2452
|
+
* # . plugins registry
|
|
2450
2453
|
*/
|
|
2451
2454
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2452
2455
|
PyObject_HEAD
|
|
2453
2456
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2457
|
+
PyObject *_plugins;
|
|
2454
2458
|
PyObject *_mysql_native_password;
|
|
2455
2459
|
PyObject *_caching_sha2_password;
|
|
2456
2460
|
PyObject *_sha256_password;
|
|
@@ -2458,7 +2462,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2458
2462
|
PyObject *_mysql_old_password;
|
|
2459
2463
|
PyObject *_mysql_clear_password;
|
|
2460
2464
|
PyObject *_dialog;
|
|
2461
|
-
PyObject *_plugins;
|
|
2462
2465
|
};
|
|
2463
2466
|
|
|
2464
2467
|
|
|
@@ -2627,7 +2630,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2627
2630
|
|
|
2628
2631
|
/* "sqlcycli/connection.pxd":104
|
|
2629
2632
|
*
|
|
2630
|
-
* #
|
|
2633
|
+
* # Cursor Manager
|
|
2631
2634
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2632
2635
|
* cdef:
|
|
2633
2636
|
* BaseConnection _conn
|
|
@@ -2654,9 +2657,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2654
2657
|
};
|
|
2655
2658
|
|
|
2656
2659
|
|
|
2657
|
-
/* "sqlcycli/connection.pxd":
|
|
2658
|
-
* pass
|
|
2660
|
+
/* "sqlcycli/connection.pxd":117
|
|
2659
2661
|
*
|
|
2662
|
+
* # Connection
|
|
2660
2663
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2661
2664
|
* cdef:
|
|
2662
2665
|
* # Basic
|
|
@@ -2724,6 +2727,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2724
2727
|
};
|
|
2725
2728
|
|
|
2726
2729
|
|
|
2730
|
+
/* "sqlcycli/connection.pxd":270
|
|
2731
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2732
|
+
*
|
|
2733
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2734
|
+
* pass
|
|
2735
|
+
*/
|
|
2736
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2737
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2738
|
+
};
|
|
2739
|
+
|
|
2740
|
+
|
|
2727
2741
|
/* "connection.pxd":7
|
|
2728
2742
|
*
|
|
2729
2743
|
* # Result
|
|
@@ -2839,7 +2853,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2839
2853
|
|
|
2840
2854
|
/* "connection.pxd":81
|
|
2841
2855
|
*
|
|
2842
|
-
* #
|
|
2856
|
+
* # Cursor Manager
|
|
2843
2857
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2844
2858
|
* cdef:
|
|
2845
2859
|
* BaseConnection _conn
|
|
@@ -2865,9 +2879,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2865
2879
|
};
|
|
2866
2880
|
|
|
2867
2881
|
|
|
2868
|
-
/* "connection.pxd":
|
|
2869
|
-
* pass
|
|
2882
|
+
/* "connection.pxd":92
|
|
2870
2883
|
*
|
|
2884
|
+
* # Connection
|
|
2871
2885
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2872
2886
|
* cdef:
|
|
2873
2887
|
* # Basic
|
|
@@ -2936,6 +2950,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
2936
2950
|
};
|
|
2937
2951
|
|
|
2938
2952
|
|
|
2953
|
+
/* "connection.pxd":201
|
|
2954
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
2955
|
+
*
|
|
2956
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2957
|
+
* pass
|
|
2958
|
+
*/
|
|
2959
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
2960
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
2961
|
+
};
|
|
2962
|
+
|
|
2963
|
+
|
|
2939
2964
|
/* "sqlcycli/aio/pool.pxd":12
|
|
2940
2965
|
*
|
|
2941
2966
|
* # Connection
|
|
@@ -3795,7 +3820,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3795
3820
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3796
3821
|
|
|
3797
3822
|
|
|
3798
|
-
/* "sqlcycli/charset.pxd":
|
|
3823
|
+
/* "sqlcycli/charset.pxd":16
|
|
3799
3824
|
* cpdef bint is_binary(self)
|
|
3800
3825
|
*
|
|
3801
3826
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3805,10 +3830,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3805
3830
|
|
|
3806
3831
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3807
3832
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3808
|
-
int (*
|
|
3809
|
-
int (*
|
|
3810
|
-
int (*
|
|
3811
|
-
int (*
|
|
3833
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3834
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3835
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3836
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3812
3837
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3813
3838
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3814
3839
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3823,11 +3848,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
|
|
|
3823
3848
|
* # Auth Plugin
|
|
3824
3849
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3825
3850
|
* cdef:
|
|
3826
|
-
*
|
|
3851
|
+
* # . plugins registry
|
|
3827
3852
|
*/
|
|
3828
3853
|
|
|
3829
3854
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3830
3855
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
3856
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
3857
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
3858
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
3831
3859
|
};
|
|
3832
3860
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
3833
3861
|
|
|
@@ -4023,7 +4051,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
4023
4051
|
|
|
4024
4052
|
/* "sqlcycli/connection.pxd":104
|
|
4025
4053
|
*
|
|
4026
|
-
* #
|
|
4054
|
+
* # Cursor Manager
|
|
4027
4055
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4028
4056
|
* cdef:
|
|
4029
4057
|
* BaseConnection _conn
|
|
@@ -4050,9 +4078,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
4050
4078
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
4051
4079
|
|
|
4052
4080
|
|
|
4053
|
-
/* "sqlcycli/connection.pxd":
|
|
4054
|
-
* pass
|
|
4081
|
+
/* "sqlcycli/connection.pxd":117
|
|
4055
4082
|
*
|
|
4083
|
+
* # Connection
|
|
4056
4084
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4057
4085
|
* cdef:
|
|
4058
4086
|
* # Basic
|
|
@@ -4133,6 +4161,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
4133
4161
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
4134
4162
|
|
|
4135
4163
|
|
|
4164
|
+
/* "sqlcycli/connection.pxd":270
|
|
4165
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4166
|
+
*
|
|
4167
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4168
|
+
* pass
|
|
4169
|
+
*/
|
|
4170
|
+
|
|
4171
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
4172
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4173
|
+
};
|
|
4174
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
4175
|
+
|
|
4176
|
+
|
|
4136
4177
|
/* "connection.pxd":7
|
|
4137
4178
|
*
|
|
4138
4179
|
* # Result
|
|
@@ -4244,9 +4285,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4244
4285
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
4245
4286
|
|
|
4246
4287
|
|
|
4247
|
-
/* "connection.pxd":
|
|
4248
|
-
* pass
|
|
4288
|
+
/* "connection.pxd":92
|
|
4249
4289
|
*
|
|
4290
|
+
* # Connection
|
|
4250
4291
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4251
4292
|
* cdef:
|
|
4252
4293
|
* # Basic
|
|
@@ -4283,6 +4324,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4283
4324
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4284
4325
|
|
|
4285
4326
|
|
|
4327
|
+
/* "connection.pxd":201
|
|
4328
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4329
|
+
*
|
|
4330
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4331
|
+
* pass
|
|
4332
|
+
*/
|
|
4333
|
+
|
|
4334
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4335
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4336
|
+
};
|
|
4337
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4338
|
+
|
|
4339
|
+
|
|
4286
4340
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4287
4341
|
*
|
|
4288
4342
|
* # Connection
|
|
@@ -4369,10 +4423,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4369
4423
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4370
4424
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4371
4425
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4426
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4372
4427
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4373
4428
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4374
4429
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4375
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4376
4430
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4377
4431
|
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);
|
|
4378
4432
|
};
|
|
@@ -6762,6 +6816,7 @@ typedef struct {
|
|
|
6762
6816
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
6763
6817
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
6764
6818
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
6819
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
6765
6820
|
#if CYTHON_USE_MODULE_STATE
|
|
6766
6821
|
#endif
|
|
6767
6822
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -6778,6 +6833,7 @@ typedef struct {
|
|
|
6778
6833
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
6779
6834
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
6780
6835
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
6836
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
6781
6837
|
#if CYTHON_USE_MODULE_STATE
|
|
6782
6838
|
#endif
|
|
6783
6839
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -7679,6 +7735,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7679
7735
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
7680
7736
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
7681
7737
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
7738
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
7682
7739
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
7683
7740
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
7684
7741
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -7689,6 +7746,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
7689
7746
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
7690
7747
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
7691
7748
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
7749
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
7692
7750
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
7693
7751
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
7694
7752
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -8466,6 +8524,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8466
8524
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
8467
8525
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
8468
8526
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
8527
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
8469
8528
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
8470
8529
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
8471
8530
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -8476,6 +8535,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
8476
8535
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
8477
8536
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
8478
8537
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
8538
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
8479
8539
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
8480
8540
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
8481
8541
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -9271,6 +9331,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9271
9331
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
9272
9332
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
9273
9333
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
9334
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
9274
9335
|
#if CYTHON_USE_MODULE_STATE
|
|
9275
9336
|
#endif
|
|
9276
9337
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -9287,6 +9348,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
9287
9348
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
9288
9349
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
9289
9350
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
9351
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
9290
9352
|
#if CYTHON_USE_MODULE_STATE
|
|
9291
9353
|
#endif
|
|
9292
9354
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -85274,8 +85336,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
85274
85336
|
__Pyx_GOTREF(__pyx_t_1);
|
|
85275
85337
|
__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)
|
|
85276
85338
|
__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)
|
|
85277
|
-
__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,
|
|
85278
|
-
__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,
|
|
85339
|
+
__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)
|
|
85340
|
+
__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)
|
|
85279
85341
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
85280
85342
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(7, 10, __pyx_L1_error)
|
|
85281
85343
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -85309,8 +85371,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
85309
85371
|
__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)
|
|
85310
85372
|
__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)
|
|
85311
85373
|
__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)
|
|
85312
|
-
__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,
|
|
85313
|
-
__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,
|
|
85374
|
+
__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)
|
|
85375
|
+
__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)
|
|
85376
|
+
__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)
|
|
85377
|
+
__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)
|
|
85314
85378
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
85315
85379
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
85316
85380
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -85330,8 +85394,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
85330
85394
|
__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)
|
|
85331
85395
|
__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)
|
|
85332
85396
|
__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)
|
|
85333
|
-
__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,
|
|
85334
|
-
__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,
|
|
85397
|
+
__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)
|
|
85398
|
+
__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)
|
|
85399
|
+
__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)
|
|
85400
|
+
__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)
|
|
85335
85401
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
85336
85402
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
85337
85403
|
__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
|