mysqlengine 1.0.0__cp313-cp313-macosx_10_13_x86_64.whl → 1.0.3__cp313-cp313-macosx_10_13_x86_64.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/__init__.pxd
ADDED
|
File without changes
|
mysqlengine/column.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-c1bawfqy/overlay/lib/python3.13/site-packages/numpy/_core/include"
|
|
18
18
|
],
|
|
19
19
|
"name": "mysqlengine.column",
|
|
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;
|
|
@@ -1736,7 +1738,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1736
1738
|
PyObject *mode;
|
|
1737
1739
|
};
|
|
1738
1740
|
|
|
1739
|
-
/* "sqlcycli/connection.pxd":
|
|
1741
|
+
/* "sqlcycli/connection.pxd":194
|
|
1740
1742
|
* cdef inline bint _setup_internal(self) except -1
|
|
1741
1743
|
* # Cursor
|
|
1742
1744
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1748,7 +1750,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1748
1750
|
PyObject *cursor;
|
|
1749
1751
|
};
|
|
1750
1752
|
|
|
1751
|
-
/* "sqlcycli/connection.pxd":
|
|
1753
|
+
/* "sqlcycli/connection.pxd":195
|
|
1752
1754
|
* # Cursor
|
|
1753
1755
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1754
1756
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1760,7 +1762,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1760
1762
|
PyObject *cursor;
|
|
1761
1763
|
};
|
|
1762
1764
|
|
|
1763
|
-
/* "sqlcycli/connection.pxd":
|
|
1765
|
+
/* "sqlcycli/connection.pxd":198
|
|
1764
1766
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1765
1767
|
* # Query
|
|
1766
1768
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1772,7 +1774,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1772
1774
|
int unbuffered;
|
|
1773
1775
|
};
|
|
1774
1776
|
|
|
1775
|
-
/* "sqlcycli/connection.pxd":
|
|
1777
|
+
/* "sqlcycli/connection.pxd":208
|
|
1776
1778
|
* cpdef tuple show_warnings(self)
|
|
1777
1779
|
* cpdef bint select_database(self, str db) except -1
|
|
1778
1780
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1785,7 +1787,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1785
1787
|
int itemize;
|
|
1786
1788
|
};
|
|
1787
1789
|
|
|
1788
|
-
/* "sqlcycli/connection.pxd":
|
|
1790
|
+
/* "sqlcycli/connection.pxd":211
|
|
1789
1791
|
* cpdef bytes encode_sql(self, str sql)
|
|
1790
1792
|
* # . client
|
|
1791
1793
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1797,7 +1799,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1797
1799
|
PyObject *collation;
|
|
1798
1800
|
};
|
|
1799
1801
|
|
|
1800
|
-
/* "sqlcycli/connection.pxd":
|
|
1802
|
+
/* "sqlcycli/connection.pxd":248
|
|
1801
1803
|
* cpdef bint closed(self) except -1
|
|
1802
1804
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1803
1805
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1809,7 +1811,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1809
1811
|
int reconnect;
|
|
1810
1812
|
};
|
|
1811
1813
|
|
|
1812
|
-
/* "sqlcycli/connection.pxd":
|
|
1814
|
+
/* "sqlcycli/connection.pxd":262
|
|
1813
1815
|
* cdef inline bint _set_use_time(self) except -1
|
|
1814
1816
|
* # Read
|
|
1815
1817
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1839,7 +1841,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1839
1841
|
int itemize;
|
|
1840
1842
|
};
|
|
1841
1843
|
|
|
1842
|
-
/* "connection.pxd":
|
|
1844
|
+
/* "connection.pxd":171
|
|
1843
1845
|
* cdef inline bint _setup_internal(self) except -1
|
|
1844
1846
|
* # Cursor
|
|
1845
1847
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1851,7 +1853,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1851
1853
|
PyObject *cursor;
|
|
1852
1854
|
};
|
|
1853
1855
|
|
|
1854
|
-
/* "connection.pxd":
|
|
1856
|
+
/* "connection.pxd":172
|
|
1855
1857
|
* # Cursor
|
|
1856
1858
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1857
1859
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1863,7 +1865,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1863
1865
|
PyObject *cursor;
|
|
1864
1866
|
};
|
|
1865
1867
|
|
|
1866
|
-
/* "connection.pxd":
|
|
1868
|
+
/* "connection.pxd":175
|
|
1867
1869
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1868
1870
|
* # Query
|
|
1869
1871
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2464,10 +2466,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2464
2466
|
PyObject *_encoding;
|
|
2465
2467
|
char *_encoding_c;
|
|
2466
2468
|
int _is_default;
|
|
2469
|
+
Py_ssize_t _hashcode;
|
|
2467
2470
|
};
|
|
2468
2471
|
|
|
2469
2472
|
|
|
2470
|
-
/* "sqlcycli/charset.pxd":
|
|
2473
|
+
/* "sqlcycli/charset.pxd":16
|
|
2471
2474
|
* cpdef bint is_binary(self)
|
|
2472
2475
|
*
|
|
2473
2476
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2545,11 +2548,12 @@ struct __pyx_obj_8sqlcycli_7sqlfunc_ObjStr {
|
|
|
2545
2548
|
* # Auth Plugin
|
|
2546
2549
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2547
2550
|
* cdef:
|
|
2548
|
-
*
|
|
2551
|
+
* # . plugins registry
|
|
2549
2552
|
*/
|
|
2550
2553
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2551
2554
|
PyObject_HEAD
|
|
2552
2555
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2556
|
+
PyObject *_plugins;
|
|
2553
2557
|
PyObject *_mysql_native_password;
|
|
2554
2558
|
PyObject *_caching_sha2_password;
|
|
2555
2559
|
PyObject *_sha256_password;
|
|
@@ -2557,7 +2561,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2557
2561
|
PyObject *_mysql_old_password;
|
|
2558
2562
|
PyObject *_mysql_clear_password;
|
|
2559
2563
|
PyObject *_dialog;
|
|
2560
|
-
PyObject *_plugins;
|
|
2561
2564
|
};
|
|
2562
2565
|
|
|
2563
2566
|
|
|
@@ -2726,7 +2729,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2726
2729
|
|
|
2727
2730
|
/* "sqlcycli/connection.pxd":104
|
|
2728
2731
|
*
|
|
2729
|
-
* #
|
|
2732
|
+
* # Cursor Manager
|
|
2730
2733
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2731
2734
|
* cdef:
|
|
2732
2735
|
* BaseConnection _conn
|
|
@@ -2753,9 +2756,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2753
2756
|
};
|
|
2754
2757
|
|
|
2755
2758
|
|
|
2756
|
-
/* "sqlcycli/connection.pxd":
|
|
2757
|
-
* pass
|
|
2759
|
+
/* "sqlcycli/connection.pxd":117
|
|
2758
2760
|
*
|
|
2761
|
+
* # Connection
|
|
2759
2762
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2760
2763
|
* cdef:
|
|
2761
2764
|
* # Basic
|
|
@@ -2823,6 +2826,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2823
2826
|
};
|
|
2824
2827
|
|
|
2825
2828
|
|
|
2829
|
+
/* "sqlcycli/connection.pxd":270
|
|
2830
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2831
|
+
*
|
|
2832
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2833
|
+
* pass
|
|
2834
|
+
*/
|
|
2835
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2836
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2837
|
+
};
|
|
2838
|
+
|
|
2839
|
+
|
|
2826
2840
|
/* "connection.pxd":7
|
|
2827
2841
|
*
|
|
2828
2842
|
* # Result
|
|
@@ -2938,7 +2952,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2938
2952
|
|
|
2939
2953
|
/* "connection.pxd":81
|
|
2940
2954
|
*
|
|
2941
|
-
* #
|
|
2955
|
+
* # Cursor Manager
|
|
2942
2956
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2943
2957
|
* cdef:
|
|
2944
2958
|
* BaseConnection _conn
|
|
@@ -2964,9 +2978,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2964
2978
|
};
|
|
2965
2979
|
|
|
2966
2980
|
|
|
2967
|
-
/* "connection.pxd":
|
|
2968
|
-
* pass
|
|
2981
|
+
/* "connection.pxd":92
|
|
2969
2982
|
*
|
|
2983
|
+
* # Connection
|
|
2970
2984
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2971
2985
|
* cdef:
|
|
2972
2986
|
* # Basic
|
|
@@ -3035,6 +3049,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
3035
3049
|
};
|
|
3036
3050
|
|
|
3037
3051
|
|
|
3052
|
+
/* "connection.pxd":201
|
|
3053
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
3054
|
+
*
|
|
3055
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
3056
|
+
* pass
|
|
3057
|
+
*/
|
|
3058
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
3059
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
3060
|
+
};
|
|
3061
|
+
|
|
3062
|
+
|
|
3038
3063
|
/* "sqlcycli/aio/pool.pxd":12
|
|
3039
3064
|
*
|
|
3040
3065
|
* # Connection
|
|
@@ -3953,7 +3978,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3953
3978
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3954
3979
|
|
|
3955
3980
|
|
|
3956
|
-
/* "sqlcycli/charset.pxd":
|
|
3981
|
+
/* "sqlcycli/charset.pxd":16
|
|
3957
3982
|
* cpdef bint is_binary(self)
|
|
3958
3983
|
*
|
|
3959
3984
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3963,10 +3988,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3963
3988
|
|
|
3964
3989
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3965
3990
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3966
|
-
int (*
|
|
3967
|
-
int (*
|
|
3968
|
-
int (*
|
|
3969
|
-
int (*
|
|
3991
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3992
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3993
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3994
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3970
3995
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3971
3996
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3972
3997
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3996,11 +4021,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7sqlfunc_SQLFunction *__pyx_vtabptr_8sq
|
|
|
3996
4021
|
* # Auth Plugin
|
|
3997
4022
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3998
4023
|
* cdef:
|
|
3999
|
-
*
|
|
4024
|
+
* # . plugins registry
|
|
4000
4025
|
*/
|
|
4001
4026
|
|
|
4002
4027
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
4003
4028
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
4029
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
4030
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
4031
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
4004
4032
|
};
|
|
4005
4033
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
4006
4034
|
|
|
@@ -4196,7 +4224,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
4196
4224
|
|
|
4197
4225
|
/* "sqlcycli/connection.pxd":104
|
|
4198
4226
|
*
|
|
4199
|
-
* #
|
|
4227
|
+
* # Cursor Manager
|
|
4200
4228
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4201
4229
|
* cdef:
|
|
4202
4230
|
* BaseConnection _conn
|
|
@@ -4223,9 +4251,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
4223
4251
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
4224
4252
|
|
|
4225
4253
|
|
|
4226
|
-
/* "sqlcycli/connection.pxd":
|
|
4227
|
-
* pass
|
|
4254
|
+
/* "sqlcycli/connection.pxd":117
|
|
4228
4255
|
*
|
|
4256
|
+
* # Connection
|
|
4229
4257
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4230
4258
|
* cdef:
|
|
4231
4259
|
* # Basic
|
|
@@ -4306,6 +4334,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
4306
4334
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
4307
4335
|
|
|
4308
4336
|
|
|
4337
|
+
/* "sqlcycli/connection.pxd":270
|
|
4338
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4339
|
+
*
|
|
4340
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4341
|
+
* pass
|
|
4342
|
+
*/
|
|
4343
|
+
|
|
4344
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
4345
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4346
|
+
};
|
|
4347
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
4348
|
+
|
|
4349
|
+
|
|
4309
4350
|
/* "connection.pxd":7
|
|
4310
4351
|
*
|
|
4311
4352
|
* # Result
|
|
@@ -4417,9 +4458,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4417
4458
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
4418
4459
|
|
|
4419
4460
|
|
|
4420
|
-
/* "connection.pxd":
|
|
4421
|
-
* pass
|
|
4461
|
+
/* "connection.pxd":92
|
|
4422
4462
|
*
|
|
4463
|
+
* # Connection
|
|
4423
4464
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4424
4465
|
* cdef:
|
|
4425
4466
|
* # Basic
|
|
@@ -4456,6 +4497,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4456
4497
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4457
4498
|
|
|
4458
4499
|
|
|
4500
|
+
/* "connection.pxd":201
|
|
4501
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4502
|
+
*
|
|
4503
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4504
|
+
* pass
|
|
4505
|
+
*/
|
|
4506
|
+
|
|
4507
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4508
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4509
|
+
};
|
|
4510
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4511
|
+
|
|
4512
|
+
|
|
4459
4513
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4460
4514
|
*
|
|
4461
4515
|
* # Connection
|
|
@@ -4542,10 +4596,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4542
4596
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4543
4597
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4544
4598
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4599
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4545
4600
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4546
4601
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4547
4602
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4548
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4549
4603
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4550
4604
|
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);
|
|
4551
4605
|
};
|
|
@@ -7957,6 +8011,7 @@ typedef struct {
|
|
|
7957
8011
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
7958
8012
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
7959
8013
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
8014
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
7960
8015
|
#if CYTHON_USE_MODULE_STATE
|
|
7961
8016
|
#endif
|
|
7962
8017
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -7973,6 +8028,7 @@ typedef struct {
|
|
|
7973
8028
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
7974
8029
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
7975
8030
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
8031
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
7976
8032
|
#if CYTHON_USE_MODULE_STATE
|
|
7977
8033
|
#endif
|
|
7978
8034
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -9389,6 +9445,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
9389
9445
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
9390
9446
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
9391
9447
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
9448
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
9392
9449
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
9393
9450
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
9394
9451
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -9399,6 +9456,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
9399
9456
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
9400
9457
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
9401
9458
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
9459
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
9402
9460
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
9403
9461
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
9404
9462
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -10691,6 +10749,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
10691
10749
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
10692
10750
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
10693
10751
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
10752
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
10694
10753
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
10695
10754
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
10696
10755
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -10701,6 +10760,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
10701
10760
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
10702
10761
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
10703
10762
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
10763
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
10704
10764
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
10705
10765
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
10706
10766
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -12011,6 +12071,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
12011
12071
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
12012
12072
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
12013
12073
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
12074
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
12014
12075
|
#if CYTHON_USE_MODULE_STATE
|
|
12015
12076
|
#endif
|
|
12016
12077
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -12027,6 +12088,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
12027
12088
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
12028
12089
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
12029
12090
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
12091
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
12030
12092
|
#if CYTHON_USE_MODULE_STATE
|
|
12031
12093
|
#endif
|
|
12032
12094
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -143323,8 +143385,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
143323
143385
|
__Pyx_GOTREF(__pyx_t_1);
|
|
143324
143386
|
__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(5, 4, __pyx_L1_error)
|
|
143325
143387
|
__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(5, 4, __pyx_L1_error)
|
|
143326
|
-
__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(5,
|
|
143327
|
-
__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(5,
|
|
143388
|
+
__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(5, 16, __pyx_L1_error)
|
|
143389
|
+
__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(5, 16, __pyx_L1_error)
|
|
143328
143390
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
143329
143391
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.sqlfunc"); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 9, __pyx_L1_error)
|
|
143330
143392
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -143366,8 +143428,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
143366
143428
|
__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)
|
|
143367
143429
|
__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)
|
|
143368
143430
|
__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)
|
|
143369
|
-
__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,
|
|
143370
|
-
__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,
|
|
143431
|
+
__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)
|
|
143432
|
+
__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)
|
|
143433
|
+
__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)
|
|
143434
|
+
__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)
|
|
143371
143435
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
143372
143436
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
143373
143437
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -143387,8 +143451,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
143387
143451
|
__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)
|
|
143388
143452
|
__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)
|
|
143389
143453
|
__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)
|
|
143390
|
-
__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,
|
|
143391
|
-
__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,
|
|
143454
|
+
__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)
|
|
143455
|
+
__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)
|
|
143456
|
+
__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)
|
|
143457
|
+
__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)
|
|
143392
143458
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
143393
143459
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
143394
143460
|
__Pyx_GOTREF(__pyx_t_1);
|
|
Binary file
|
mysqlengine/column.pxd
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# cython: language_level=3
|
|
2
|
+
from sqlcycli.charset cimport Charset
|
|
3
|
+
from mysqlengine.element cimport Element, Elements, Logs, Metadata, Query
|
|
4
|
+
|
|
5
|
+
# Definition
|
|
6
|
+
cdef class Definition(Element):
|
|
7
|
+
cdef:
|
|
8
|
+
# . definition
|
|
9
|
+
str _data_type
|
|
10
|
+
object _python_type
|
|
11
|
+
bint _null
|
|
12
|
+
object _default
|
|
13
|
+
bint _primary_key
|
|
14
|
+
bint _unique_key
|
|
15
|
+
bint _indexed
|
|
16
|
+
str _comment
|
|
17
|
+
bint _visible
|
|
18
|
+
# . integer column
|
|
19
|
+
bint _unsigned
|
|
20
|
+
bint _auto_increment
|
|
21
|
+
# . floating/fixed point column
|
|
22
|
+
int _default_precision
|
|
23
|
+
int _precision
|
|
24
|
+
int _default_scale
|
|
25
|
+
int _scale
|
|
26
|
+
# . temporal column
|
|
27
|
+
int _default_fsp
|
|
28
|
+
int _fsp
|
|
29
|
+
bint _auto_init
|
|
30
|
+
bint _auto_update
|
|
31
|
+
# . string column
|
|
32
|
+
long long _default_length
|
|
33
|
+
long long _length
|
|
34
|
+
# . enum column
|
|
35
|
+
tuple _elements
|
|
36
|
+
# Generate SQL
|
|
37
|
+
cpdef str _gen_definition_sql(self)
|
|
38
|
+
cpdef str _gen_data_type_sql(self)
|
|
39
|
+
# Metadata
|
|
40
|
+
cpdef Logs _sync_from_metadata(self, ColumnMetadata meta, Logs logs=?)
|
|
41
|
+
cpdef int _diff_from_metadata(self, ColumnMetadata meta) except -1
|
|
42
|
+
cpdef long long _read_metadata_precision(self, object value) except -2
|
|
43
|
+
# Setter
|
|
44
|
+
cpdef bint setup(self, Column col) except -1
|
|
45
|
+
# Validate
|
|
46
|
+
cpdef object _validate_default(self, object default)
|
|
47
|
+
# Internal
|
|
48
|
+
cdef inline int _get_fsp(self) except -2
|
|
49
|
+
cdef inline long long _get_length(self) except -2
|
|
50
|
+
# Copy
|
|
51
|
+
cpdef Definition copy(self)
|
|
52
|
+
# Special method
|
|
53
|
+
cdef inline str _gen_repr(self, list reprs)
|
|
54
|
+
|
|
55
|
+
# Column
|
|
56
|
+
cdef class Column(Element):
|
|
57
|
+
cdef:
|
|
58
|
+
# Common
|
|
59
|
+
Definition _definition
|
|
60
|
+
bint _primary_key
|
|
61
|
+
bint _unique_key
|
|
62
|
+
bint _indexed
|
|
63
|
+
# Generated column
|
|
64
|
+
str _expression
|
|
65
|
+
int _virtual
|
|
66
|
+
# Sync
|
|
67
|
+
cpdef Logs Initialize(self, bint force=?)
|
|
68
|
+
cpdef Logs Add(self, int position=?)
|
|
69
|
+
cpdef bint Exists(self) except -1
|
|
70
|
+
cpdef Logs Drop(self)
|
|
71
|
+
cpdef Logs _Modify(self, object definition, object expression, int position)
|
|
72
|
+
cpdef Logs SetVisible(self, bint visible)
|
|
73
|
+
cpdef Logs SetDefault(self, object default)
|
|
74
|
+
cpdef ColumnMetadata ShowMetadata(self)
|
|
75
|
+
cpdef tuple ShowColumnNames(self)
|
|
76
|
+
cpdef Logs SyncFromRemote(self)
|
|
77
|
+
cpdef Logs SyncToRemote(self)
|
|
78
|
+
# Generate SQL
|
|
79
|
+
cpdef str _gen_definition_sql(self)
|
|
80
|
+
cpdef str _gen_add_sql(self, int position, tuple columns)
|
|
81
|
+
cpdef str _gen_exists_sql(self)
|
|
82
|
+
cpdef str _gen_drop_sql(self)
|
|
83
|
+
cpdef ColumnQuery _gen_modify_query(self, ColumnMetadata meta, Definition definition, object expression, int position, tuple columns)
|
|
84
|
+
cpdef str _gen_set_visible_sql(self, bint visible)
|
|
85
|
+
cpdef str _gen_set_default_sql(self, object default)
|
|
86
|
+
cpdef str _gen_show_metadata_sql(self)
|
|
87
|
+
cpdef str _gen_show_column_names_sql(self)
|
|
88
|
+
# Metadata
|
|
89
|
+
cpdef Logs _sync_from_metadata(self, ColumnMetadata meta, Logs logs=?)
|
|
90
|
+
cpdef int _diff_from_metadata(self, ColumnMetadata meta) except -1
|
|
91
|
+
# Setter
|
|
92
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
93
|
+
cpdef bint _set_definition(self, Definition definition) except -1
|
|
94
|
+
# Copy
|
|
95
|
+
cpdef Column copy(self)
|
|
96
|
+
cpdef Column _construct(self, Definition definition, object expression, object virtual)
|
|
97
|
+
|
|
98
|
+
cdef class GeneratedColumn(Column):
|
|
99
|
+
pass
|
|
100
|
+
|
|
101
|
+
# Columns
|
|
102
|
+
cdef class Columns(Elements):
|
|
103
|
+
# Setter
|
|
104
|
+
cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
|
|
105
|
+
# Copy
|
|
106
|
+
cpdef Columns copy(self)
|
|
107
|
+
|
|
108
|
+
# Metadata
|
|
109
|
+
cdef class ColumnMetadata(Metadata):
|
|
110
|
+
cdef:
|
|
111
|
+
# Base data
|
|
112
|
+
str _db_name
|
|
113
|
+
str _tb_name
|
|
114
|
+
str _column_name
|
|
115
|
+
str _column_type
|
|
116
|
+
int _position
|
|
117
|
+
str _default
|
|
118
|
+
bint _null
|
|
119
|
+
str _data_type
|
|
120
|
+
object _character_maximum_length
|
|
121
|
+
object _numeric_precision
|
|
122
|
+
object _numeric_scale
|
|
123
|
+
object _datetime_precision
|
|
124
|
+
Charset _charset
|
|
125
|
+
str _extra
|
|
126
|
+
str _comment
|
|
127
|
+
str _expression
|
|
128
|
+
int _virtual
|
|
129
|
+
# Additional data
|
|
130
|
+
str _el_type
|
|
131
|
+
bint _visible
|
|
132
|
+
# . integer
|
|
133
|
+
bint _auto_increment
|
|
134
|
+
bint _unsigned
|
|
135
|
+
# . datetime
|
|
136
|
+
bint _auto_init
|
|
137
|
+
bint _auto_update
|
|
138
|
+
# . index
|
|
139
|
+
bint _primary_key
|
|
140
|
+
bint _unique_key
|
|
141
|
+
bint _indexed
|
|
142
|
+
str _column_index_name
|
|
143
|
+
int _column_index_seq
|
|
144
|
+
int _column_index_length
|
|
145
|
+
|
|
146
|
+
# Query
|
|
147
|
+
cdef class ColumnQuery(Query):
|
|
148
|
+
cdef:
|
|
149
|
+
Definition _definition
|