mysqlengine 1.0.0__cp312-cp312-win_amd64.whl → 1.0.3__cp312-cp312-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.cp312-win_amd64.pyd +0 -0
- mysqlengine/column.pxd +149 -0
- mysqlengine/constraint.c +104 -38
- mysqlengine/constraint.cp312-win_amd64.pyd +0 -0
- mysqlengine/constraint.pxd +121 -0
- mysqlengine/database.c +104 -38
- mysqlengine/database.cp312-win_amd64.pyd +0 -0
- mysqlengine/database.pxd +58 -0
- mysqlengine/dml.c +6686 -6544
- mysqlengine/dml.cp312-win_amd64.pyd +0 -0
- mysqlengine/dml.pxd +387 -0
- mysqlengine/dml.py +189 -15
- mysqlengine/element.c +3604 -3525
- mysqlengine/element.cp312-win_amd64.pyd +0 -0
- mysqlengine/element.pxd +179 -0
- mysqlengine/element.py +103 -75
- mysqlengine/index.c +104 -38
- mysqlengine/index.cp312-win_amd64.pyd +0 -0
- mysqlengine/index.pxd +71 -0
- mysqlengine/partition.c +104 -38
- mysqlengine/partition.cp312-win_amd64.pyd +0 -0
- mysqlengine/partition.pxd +128 -0
- mysqlengine/table.c +104 -38
- mysqlengine/table.cp312-win_amd64.pyd +0 -0
- mysqlengine/table.pxd +169 -0
- mysqlengine/utils.c +9 -8
- mysqlengine/utils.cp312-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/__init__.pxd
ADDED
|
File without changes
|
mysqlengine/column.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-6ibubxma\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
|
|
14
14
|
],
|
|
15
15
|
"name": "mysqlengine.column",
|
|
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;
|
|
@@ -1732,7 +1734,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
|
|
|
1732
1734
|
PyObject *mode;
|
|
1733
1735
|
};
|
|
1734
1736
|
|
|
1735
|
-
/* "sqlcycli/connection.pxd":
|
|
1737
|
+
/* "sqlcycli/connection.pxd":194
|
|
1736
1738
|
* cdef inline bint _setup_internal(self) except -1
|
|
1737
1739
|
* # Cursor
|
|
1738
1740
|
* cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1744,7 +1746,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
|
|
|
1744
1746
|
PyObject *cursor;
|
|
1745
1747
|
};
|
|
1746
1748
|
|
|
1747
|
-
/* "sqlcycli/connection.pxd":
|
|
1749
|
+
/* "sqlcycli/connection.pxd":195
|
|
1748
1750
|
* # Cursor
|
|
1749
1751
|
* cpdef Cursor cursor(self, object cursor=?)
|
|
1750
1752
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1756,7 +1758,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
|
|
|
1756
1758
|
PyObject *cursor;
|
|
1757
1759
|
};
|
|
1758
1760
|
|
|
1759
|
-
/* "sqlcycli/connection.pxd":
|
|
1761
|
+
/* "sqlcycli/connection.pxd":198
|
|
1760
1762
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1761
1763
|
* # Query
|
|
1762
1764
|
* cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1768,7 +1770,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
|
|
|
1768
1770
|
int unbuffered;
|
|
1769
1771
|
};
|
|
1770
1772
|
|
|
1771
|
-
/* "sqlcycli/connection.pxd":
|
|
1773
|
+
/* "sqlcycli/connection.pxd":208
|
|
1772
1774
|
* cpdef tuple show_warnings(self)
|
|
1773
1775
|
* cpdef bint select_database(self, str db) except -1
|
|
1774
1776
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -1781,7 +1783,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
|
|
|
1781
1783
|
int itemize;
|
|
1782
1784
|
};
|
|
1783
1785
|
|
|
1784
|
-
/* "sqlcycli/connection.pxd":
|
|
1786
|
+
/* "sqlcycli/connection.pxd":211
|
|
1785
1787
|
* cpdef bytes encode_sql(self, str sql)
|
|
1786
1788
|
* # . client
|
|
1787
1789
|
* cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1793,7 +1795,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
|
|
|
1793
1795
|
PyObject *collation;
|
|
1794
1796
|
};
|
|
1795
1797
|
|
|
1796
|
-
/* "sqlcycli/connection.pxd":
|
|
1798
|
+
/* "sqlcycli/connection.pxd":248
|
|
1797
1799
|
* cpdef bint closed(self) except -1
|
|
1798
1800
|
* cpdef bint kill(self, int thread_id) except -1
|
|
1799
1801
|
* cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
|
|
@@ -1805,7 +1807,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
|
|
|
1805
1807
|
int reconnect;
|
|
1806
1808
|
};
|
|
1807
1809
|
|
|
1808
|
-
/* "sqlcycli/connection.pxd":
|
|
1810
|
+
/* "sqlcycli/connection.pxd":262
|
|
1809
1811
|
* cdef inline bint _set_use_time(self) except -1
|
|
1810
1812
|
* # Read
|
|
1811
1813
|
* cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
|
|
@@ -1835,7 +1837,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
|
|
|
1835
1837
|
int itemize;
|
|
1836
1838
|
};
|
|
1837
1839
|
|
|
1838
|
-
/* "connection.pxd":
|
|
1840
|
+
/* "connection.pxd":171
|
|
1839
1841
|
* cdef inline bint _setup_internal(self) except -1
|
|
1840
1842
|
* # Cursor
|
|
1841
1843
|
* cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1847,7 +1849,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
|
|
|
1847
1849
|
PyObject *cursor;
|
|
1848
1850
|
};
|
|
1849
1851
|
|
|
1850
|
-
/* "connection.pxd":
|
|
1852
|
+
/* "connection.pxd":172
|
|
1851
1853
|
* # Cursor
|
|
1852
1854
|
* cpdef CursorManager cursor(self, object cursor=?)
|
|
1853
1855
|
* cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
|
|
@@ -1859,7 +1861,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
|
|
|
1859
1861
|
PyObject *cursor;
|
|
1860
1862
|
};
|
|
1861
1863
|
|
|
1862
|
-
/* "connection.pxd":
|
|
1864
|
+
/* "connection.pxd":175
|
|
1863
1865
|
* cdef inline type _validate_cursor(self, object cursor)
|
|
1864
1866
|
* # Query
|
|
1865
1867
|
* cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
|
|
@@ -2460,10 +2462,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
|
|
|
2460
2462
|
PyObject *_encoding;
|
|
2461
2463
|
char *_encoding_c;
|
|
2462
2464
|
int _is_default;
|
|
2465
|
+
Py_ssize_t _hashcode;
|
|
2463
2466
|
};
|
|
2464
2467
|
|
|
2465
2468
|
|
|
2466
|
-
/* "sqlcycli/charset.pxd":
|
|
2469
|
+
/* "sqlcycli/charset.pxd":16
|
|
2467
2470
|
* cpdef bint is_binary(self)
|
|
2468
2471
|
*
|
|
2469
2472
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -2541,11 +2544,12 @@ struct __pyx_obj_8sqlcycli_7sqlfunc_ObjStr {
|
|
|
2541
2544
|
* # Auth Plugin
|
|
2542
2545
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
2543
2546
|
* cdef:
|
|
2544
|
-
*
|
|
2547
|
+
* # . plugins registry
|
|
2545
2548
|
*/
|
|
2546
2549
|
struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
2547
2550
|
PyObject_HEAD
|
|
2548
2551
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
|
|
2552
|
+
PyObject *_plugins;
|
|
2549
2553
|
PyObject *_mysql_native_password;
|
|
2550
2554
|
PyObject *_caching_sha2_password;
|
|
2551
2555
|
PyObject *_sha256_password;
|
|
@@ -2553,7 +2557,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
|
|
|
2553
2557
|
PyObject *_mysql_old_password;
|
|
2554
2558
|
PyObject *_mysql_clear_password;
|
|
2555
2559
|
PyObject *_dialog;
|
|
2556
|
-
PyObject *_plugins;
|
|
2557
2560
|
};
|
|
2558
2561
|
|
|
2559
2562
|
|
|
@@ -2722,7 +2725,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
|
|
|
2722
2725
|
|
|
2723
2726
|
/* "sqlcycli/connection.pxd":104
|
|
2724
2727
|
*
|
|
2725
|
-
* #
|
|
2728
|
+
* # Cursor Manager
|
|
2726
2729
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2727
2730
|
* cdef:
|
|
2728
2731
|
* BaseConnection _conn
|
|
@@ -2749,9 +2752,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
|
|
|
2749
2752
|
};
|
|
2750
2753
|
|
|
2751
2754
|
|
|
2752
|
-
/* "sqlcycli/connection.pxd":
|
|
2753
|
-
* pass
|
|
2755
|
+
/* "sqlcycli/connection.pxd":117
|
|
2754
2756
|
*
|
|
2757
|
+
* # Connection
|
|
2755
2758
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2756
2759
|
* cdef:
|
|
2757
2760
|
* # Basic
|
|
@@ -2819,6 +2822,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
|
|
|
2819
2822
|
};
|
|
2820
2823
|
|
|
2821
2824
|
|
|
2825
|
+
/* "sqlcycli/connection.pxd":270
|
|
2826
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
2827
|
+
*
|
|
2828
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
2829
|
+
* pass
|
|
2830
|
+
*/
|
|
2831
|
+
struct __pyx_obj_8sqlcycli_10connection_Connection {
|
|
2832
|
+
struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
2833
|
+
};
|
|
2834
|
+
|
|
2835
|
+
|
|
2822
2836
|
/* "connection.pxd":7
|
|
2823
2837
|
*
|
|
2824
2838
|
* # Result
|
|
@@ -2934,7 +2948,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
2934
2948
|
|
|
2935
2949
|
/* "connection.pxd":81
|
|
2936
2950
|
*
|
|
2937
|
-
* #
|
|
2951
|
+
* # Cursor Manager
|
|
2938
2952
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
2939
2953
|
* cdef:
|
|
2940
2954
|
* BaseConnection _conn
|
|
@@ -2960,9 +2974,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
|
|
|
2960
2974
|
};
|
|
2961
2975
|
|
|
2962
2976
|
|
|
2963
|
-
/* "connection.pxd":
|
|
2964
|
-
* pass
|
|
2977
|
+
/* "connection.pxd":92
|
|
2965
2978
|
*
|
|
2979
|
+
* # Connection
|
|
2966
2980
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
2967
2981
|
* cdef:
|
|
2968
2982
|
* # Basic
|
|
@@ -3031,6 +3045,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
3031
3045
|
};
|
|
3032
3046
|
|
|
3033
3047
|
|
|
3048
|
+
/* "connection.pxd":201
|
|
3049
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
3050
|
+
*
|
|
3051
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
3052
|
+
* pass
|
|
3053
|
+
*/
|
|
3054
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
|
|
3055
|
+
struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
3056
|
+
};
|
|
3057
|
+
|
|
3058
|
+
|
|
3034
3059
|
/* "sqlcycli/aio/pool.pxd":12
|
|
3035
3060
|
*
|
|
3036
3061
|
* # Connection
|
|
@@ -3949,7 +3974,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
|
|
|
3949
3974
|
static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
|
|
3950
3975
|
|
|
3951
3976
|
|
|
3952
|
-
/* "sqlcycli/charset.pxd":
|
|
3977
|
+
/* "sqlcycli/charset.pxd":16
|
|
3953
3978
|
* cpdef bint is_binary(self)
|
|
3954
3979
|
*
|
|
3955
3980
|
* cdef class Charsets: # <<<<<<<<<<<<<<
|
|
@@ -3959,10 +3984,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
|
|
|
3959
3984
|
|
|
3960
3985
|
struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
|
|
3961
3986
|
int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
|
|
3962
|
-
int (*
|
|
3963
|
-
int (*
|
|
3964
|
-
int (*
|
|
3965
|
-
int (*
|
|
3987
|
+
int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3988
|
+
int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3989
|
+
int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3990
|
+
int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
|
|
3966
3991
|
PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
|
|
3967
3992
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
3968
3993
|
struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
|
|
@@ -3992,11 +4017,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7sqlfunc_SQLFunction *__pyx_vtabptr_8sq
|
|
|
3992
4017
|
* # Auth Plugin
|
|
3993
4018
|
* cdef class AuthPlugin: # <<<<<<<<<<<<<<
|
|
3994
4019
|
* cdef:
|
|
3995
|
-
*
|
|
4020
|
+
* # . plugins registry
|
|
3996
4021
|
*/
|
|
3997
4022
|
|
|
3998
4023
|
struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
|
|
3999
4024
|
PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
|
|
4025
|
+
int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
|
|
4026
|
+
PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
|
|
4027
|
+
PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
|
|
4000
4028
|
};
|
|
4001
4029
|
static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
|
|
4002
4030
|
|
|
@@ -4192,7 +4220,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
|
|
|
4192
4220
|
|
|
4193
4221
|
/* "sqlcycli/connection.pxd":104
|
|
4194
4222
|
*
|
|
4195
|
-
* #
|
|
4223
|
+
* # Cursor Manager
|
|
4196
4224
|
* cdef class CursorManager: # <<<<<<<<<<<<<<
|
|
4197
4225
|
* cdef:
|
|
4198
4226
|
* BaseConnection _conn
|
|
@@ -4219,9 +4247,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
|
|
|
4219
4247
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
|
|
4220
4248
|
|
|
4221
4249
|
|
|
4222
|
-
/* "sqlcycli/connection.pxd":
|
|
4223
|
-
* pass
|
|
4250
|
+
/* "sqlcycli/connection.pxd":117
|
|
4224
4251
|
*
|
|
4252
|
+
* # Connection
|
|
4225
4253
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4226
4254
|
* cdef:
|
|
4227
4255
|
* # Basic
|
|
@@ -4302,6 +4330,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
|
|
|
4302
4330
|
static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
|
|
4303
4331
|
|
|
4304
4332
|
|
|
4333
|
+
/* "sqlcycli/connection.pxd":270
|
|
4334
|
+
* cdef inline bytes _read_bytes(self, unsigned int size)
|
|
4335
|
+
*
|
|
4336
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4337
|
+
* pass
|
|
4338
|
+
*/
|
|
4339
|
+
|
|
4340
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
|
|
4341
|
+
struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
|
|
4342
|
+
};
|
|
4343
|
+
static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
|
|
4344
|
+
|
|
4345
|
+
|
|
4305
4346
|
/* "connection.pxd":7
|
|
4306
4347
|
*
|
|
4307
4348
|
* # Result
|
|
@@ -4413,9 +4454,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
|
|
|
4413
4454
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
|
|
4414
4455
|
|
|
4415
4456
|
|
|
4416
|
-
/* "connection.pxd":
|
|
4417
|
-
* pass
|
|
4457
|
+
/* "connection.pxd":92
|
|
4418
4458
|
*
|
|
4459
|
+
* # Connection
|
|
4419
4460
|
* cdef class BaseConnection: # <<<<<<<<<<<<<<
|
|
4420
4461
|
* cdef:
|
|
4421
4462
|
* # Basic
|
|
@@ -4452,6 +4493,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
|
|
|
4452
4493
|
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
|
|
4453
4494
|
|
|
4454
4495
|
|
|
4496
|
+
/* "connection.pxd":201
|
|
4497
|
+
* cdef inline bint _set_use_time(self) except -1
|
|
4498
|
+
*
|
|
4499
|
+
* cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
|
|
4500
|
+
* pass
|
|
4501
|
+
*/
|
|
4502
|
+
|
|
4503
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
|
|
4504
|
+
struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
|
|
4505
|
+
};
|
|
4506
|
+
static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
|
|
4507
|
+
|
|
4508
|
+
|
|
4455
4509
|
/* "sqlcycli/aio/pool.pxd":12
|
|
4456
4510
|
*
|
|
4457
4511
|
* # Connection
|
|
@@ -4538,10 +4592,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
|
|
|
4538
4592
|
PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
|
|
4539
4593
|
struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4540
4594
|
int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
|
|
4595
|
+
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4541
4596
|
PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4542
4597
|
int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4543
4598
|
int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
|
|
4544
|
-
int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4545
4599
|
int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
|
|
4546
4600
|
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);
|
|
4547
4601
|
};
|
|
@@ -7953,6 +8007,7 @@ typedef struct {
|
|
|
7953
8007
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
|
|
7954
8008
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
|
|
7955
8009
|
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
|
|
8010
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
|
|
7956
8011
|
#if CYTHON_USE_MODULE_STATE
|
|
7957
8012
|
#endif
|
|
7958
8013
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -7969,6 +8024,7 @@ typedef struct {
|
|
|
7969
8024
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
|
|
7970
8025
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
|
|
7971
8026
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
|
|
8027
|
+
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
|
|
7972
8028
|
#if CYTHON_USE_MODULE_STATE
|
|
7973
8029
|
#endif
|
|
7974
8030
|
PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
|
|
@@ -9385,6 +9441,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
9385
9441
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
9386
9442
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
9387
9443
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
9444
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
9388
9445
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
9389
9446
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
9390
9447
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -9395,6 +9452,7 @@ static int __pyx_m_clear(PyObject *m) {
|
|
|
9395
9452
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
9396
9453
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
9397
9454
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
9455
|
+
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
9398
9456
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
9399
9457
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
9400
9458
|
Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -10687,6 +10745,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
10687
10745
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
|
|
10688
10746
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
|
|
10689
10747
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
|
|
10748
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
|
|
10690
10749
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
|
|
10691
10750
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
|
|
10692
10751
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
|
|
@@ -10697,6 +10756,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
10697
10756
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
|
|
10698
10757
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
|
|
10699
10758
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
|
|
10759
|
+
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
|
|
10700
10760
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
|
|
10701
10761
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
|
|
10702
10762
|
Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
|
|
@@ -12007,6 +12067,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
12007
12067
|
#define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
|
|
12008
12068
|
#define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
|
|
12009
12069
|
#define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
|
|
12070
|
+
#define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
|
|
12010
12071
|
#if CYTHON_USE_MODULE_STATE
|
|
12011
12072
|
#endif
|
|
12012
12073
|
#if CYTHON_USE_MODULE_STATE
|
|
@@ -12023,6 +12084,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
|
|
|
12023
12084
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
|
|
12024
12085
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
|
|
12025
12086
|
#define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
|
|
12087
|
+
#define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
|
|
12026
12088
|
#if CYTHON_USE_MODULE_STATE
|
|
12027
12089
|
#endif
|
|
12028
12090
|
#define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
|
|
@@ -143319,8 +143381,8 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
143319
143381
|
__Pyx_GOTREF(__pyx_t_1);
|
|
143320
143382
|
__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)
|
|
143321
143383
|
__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)
|
|
143322
|
-
__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,
|
|
143323
|
-
__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,
|
|
143384
|
+
__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)
|
|
143385
|
+
__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)
|
|
143324
143386
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
143325
143387
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.sqlfunc"); if (unlikely(!__pyx_t_1)) __PYX_ERR(6, 9, __pyx_L1_error)
|
|
143326
143388
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -143362,8 +143424,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
143362
143424
|
__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)
|
|
143363
143425
|
__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)
|
|
143364
143426
|
__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)
|
|
143365
|
-
__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,
|
|
143366
|
-
__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,
|
|
143427
|
+
__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)
|
|
143428
|
+
__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)
|
|
143429
|
+
__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)
|
|
143430
|
+
__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)
|
|
143367
143431
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
143368
143432
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(10, 7, __pyx_L1_error)
|
|
143369
143433
|
__Pyx_GOTREF(__pyx_t_1);
|
|
@@ -143383,8 +143447,10 @@ static int __Pyx_modinit_type_import_code(void) {
|
|
|
143383
143447
|
__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)
|
|
143384
143448
|
__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)
|
|
143385
143449
|
__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)
|
|
143386
|
-
__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,
|
|
143387
|
-
__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,
|
|
143450
|
+
__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)
|
|
143451
|
+
__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)
|
|
143452
|
+
__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)
|
|
143453
|
+
__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)
|
|
143388
143454
|
__Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
|
|
143389
143455
|
__pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 12, __pyx_L1_error)
|
|
143390
143456
|
__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
|