mysqlengine 1.0.0__cp310-cp310-macosx_11_0_arm64.whl → 1.0.3__cp310-cp310-macosx_11_0_arm64.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.

Files changed (36) hide show
  1. mysqlengine/__init__.pxd +0 -0
  2. mysqlengine/column.c +104 -38
  3. mysqlengine/column.cpython-310-darwin.so +0 -0
  4. mysqlengine/column.pxd +149 -0
  5. mysqlengine/constraint.c +104 -38
  6. mysqlengine/constraint.cpython-310-darwin.so +0 -0
  7. mysqlengine/constraint.pxd +121 -0
  8. mysqlengine/database.c +104 -38
  9. mysqlengine/database.cpython-310-darwin.so +0 -0
  10. mysqlengine/database.pxd +58 -0
  11. mysqlengine/dml.c +6686 -6544
  12. mysqlengine/dml.cpython-310-darwin.so +0 -0
  13. mysqlengine/dml.pxd +387 -0
  14. mysqlengine/dml.py +189 -15
  15. mysqlengine/element.c +3604 -3525
  16. mysqlengine/element.cpython-310-darwin.so +0 -0
  17. mysqlengine/element.pxd +179 -0
  18. mysqlengine/element.py +103 -75
  19. mysqlengine/index.c +104 -38
  20. mysqlengine/index.cpython-310-darwin.so +0 -0
  21. mysqlengine/index.pxd +71 -0
  22. mysqlengine/partition.c +104 -38
  23. mysqlengine/partition.cpython-310-darwin.so +0 -0
  24. mysqlengine/partition.pxd +128 -0
  25. mysqlengine/table.c +104 -38
  26. mysqlengine/table.cpython-310-darwin.so +0 -0
  27. mysqlengine/table.pxd +169 -0
  28. mysqlengine/utils.c +9 -8
  29. mysqlengine/utils.cpython-310-darwin.so +0 -0
  30. mysqlengine/utils.pxd +613 -0
  31. {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/METADATA +3 -4
  32. mysqlengine-1.0.3.dist-info/RECORD +52 -0
  33. mysqlengine-1.0.0.dist-info/RECORD +0 -42
  34. {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/WHEEL +0 -0
  35. {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/licenses/LICENSE +0 -0
  36. {mysqlengine-1.0.0.dist-info → mysqlengine-1.0.3.dist-info}/top_level.txt +0 -0
mysqlengine/table.c CHANGED
@@ -15,7 +15,7 @@
15
15
  "-Wno-incompatible-pointer-types"
16
16
  ],
17
17
  "include_dirs": [
18
- "/private/var/folders/y6/nj790rtn62lfktb1sh__79hc0000gn/T/pip-build-env-gdzdz21x/overlay/lib/python3.10/site-packages/numpy/_core/include"
18
+ "/private/var/folders/sw/lqy3v8g55m76fhwckg439jjm0000gn/T/pip-build-env-ds11qfsv/overlay/lib/python3.10/site-packages/numpy/_core/include"
19
19
  ],
20
20
  "name": "mysqlengine.table",
21
21
  "sources": [
@@ -1650,6 +1650,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor;
1650
1650
  struct __pyx_obj_8sqlcycli_10connection_CursorManager;
1651
1651
  struct __pyx_obj_8sqlcycli_10connection_TransactionManager;
1652
1652
  struct __pyx_obj_8sqlcycli_10connection_BaseConnection;
1653
+ struct __pyx_obj_8sqlcycli_10connection_Connection;
1653
1654
  struct __pyx_obj_8sqlcycli_3aio_10connection_MysqlResult;
1654
1655
  struct __pyx_obj_8sqlcycli_3aio_10connection_Cursor;
1655
1656
  struct __pyx_obj_8sqlcycli_3aio_10connection_DictCursor;
@@ -1660,6 +1661,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor;
1660
1661
  struct __pyx_obj_8sqlcycli_3aio_10connection_CursorManager;
1661
1662
  struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager;
1662
1663
  struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection;
1664
+ struct __pyx_obj_8sqlcycli_3aio_10connection_Connection;
1663
1665
  struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnection;
1664
1666
  struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection;
1665
1667
  struct __pyx_obj_8sqlcycli_3aio_4pool_PoolConnectionManager;
@@ -2371,7 +2373,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_6Cursor_scroll {
2371
2373
  PyObject *mode;
2372
2374
  };
2373
2375
 
2374
- /* "connection.pxd":193
2376
+ /* "connection.pxd":194
2375
2377
  * cdef inline bint _setup_internal(self) except -1
2376
2378
  * # Cursor
2377
2379
  * cpdef Cursor cursor(self, object cursor=?) # <<<<<<<<<<<<<<
@@ -2383,7 +2385,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_cursor {
2383
2385
  PyObject *cursor;
2384
2386
  };
2385
2387
 
2386
- /* "connection.pxd":194
2388
+ /* "connection.pxd":195
2387
2389
  * # Cursor
2388
2390
  * cpdef Cursor cursor(self, object cursor=?)
2389
2391
  * cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
@@ -2395,7 +2397,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_transaction {
2395
2397
  PyObject *cursor;
2396
2398
  };
2397
2399
 
2398
- /* "connection.pxd":197
2400
+ /* "connection.pxd":198
2399
2401
  * cdef inline type _validate_cursor(self, object cursor)
2400
2402
  * # Query
2401
2403
  * cpdef unsigned long long query(self, str sql, bint unbuffered=?) # <<<<<<<<<<<<<<
@@ -2407,7 +2409,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_query {
2407
2409
  int unbuffered;
2408
2410
  };
2409
2411
 
2410
- /* "connection.pxd":207
2412
+ /* "connection.pxd":208
2411
2413
  * cpdef tuple show_warnings(self)
2412
2414
  * cpdef bint select_database(self, str db) except -1
2413
2415
  * cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
@@ -2420,7 +2422,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_escape_args {
2420
2422
  int itemize;
2421
2423
  };
2422
2424
 
2423
- /* "connection.pxd":210
2425
+ /* "connection.pxd":211
2424
2426
  * cpdef bytes encode_sql(self, str sql)
2425
2427
  * # . client
2426
2428
  * cpdef bint set_charset(self, str charset, object collation=?) except -1 # <<<<<<<<<<<<<<
@@ -2432,7 +2434,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_set_charset {
2432
2434
  PyObject *collation;
2433
2435
  };
2434
2436
 
2435
- /* "connection.pxd":247
2437
+ /* "connection.pxd":248
2436
2438
  * cpdef bint closed(self) except -1
2437
2439
  * cpdef bint kill(self, int thread_id) except -1
2438
2440
  * cpdef bint ping(self, bint reconnect=?) except -1 # <<<<<<<<<<<<<<
@@ -2444,7 +2446,7 @@ struct __pyx_opt_args_8sqlcycli_10connection_14BaseConnection_ping {
2444
2446
  int reconnect;
2445
2447
  };
2446
2448
 
2447
- /* "connection.pxd":261
2449
+ /* "connection.pxd":262
2448
2450
  * cdef inline bint _set_use_time(self) except -1
2449
2451
  * # Read
2450
2452
  * cpdef unsigned long long next_result(self, bint unbuffered=?) # <<<<<<<<<<<<<<
@@ -2474,7 +2476,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_6Cursor_mogrify {
2474
2476
  int itemize;
2475
2477
  };
2476
2478
 
2477
- /* "connection.pxd":170
2479
+ /* "connection.pxd":171
2478
2480
  * cdef inline bint _setup_internal(self) except -1
2479
2481
  * # Cursor
2480
2482
  * cpdef CursorManager cursor(self, object cursor=?) # <<<<<<<<<<<<<<
@@ -2486,7 +2488,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_cursor {
2486
2488
  PyObject *cursor;
2487
2489
  };
2488
2490
 
2489
- /* "connection.pxd":171
2491
+ /* "connection.pxd":172
2490
2492
  * # Cursor
2491
2493
  * cpdef CursorManager cursor(self, object cursor=?)
2492
2494
  * cpdef TransactionManager transaction(self, object cursor=?) # <<<<<<<<<<<<<<
@@ -2498,7 +2500,7 @@ struct __pyx_opt_args_8sqlcycli_3aio_10connection_14BaseConnection_transaction {
2498
2500
  PyObject *cursor;
2499
2501
  };
2500
2502
 
2501
- /* "connection.pxd":174
2503
+ /* "connection.pxd":175
2502
2504
  * cdef inline type _validate_cursor(self, object cursor)
2503
2505
  * # Query
2504
2506
  * cpdef object escape_args(self, object args, bint many=?, bint itemize=?) # <<<<<<<<<<<<<<
@@ -4481,10 +4483,11 @@ struct __pyx_obj_8sqlcycli_7charset_Charset {
4481
4483
  PyObject *_encoding;
4482
4484
  char *_encoding_c;
4483
4485
  int _is_default;
4486
+ Py_ssize_t _hashcode;
4484
4487
  };
4485
4488
 
4486
4489
 
4487
- /* "sqlcycli/charset.pxd":15
4490
+ /* "sqlcycli/charset.pxd":16
4488
4491
  * cpdef bint is_binary(self)
4489
4492
  *
4490
4493
  * cdef class Charsets: # <<<<<<<<<<<<<<
@@ -4506,11 +4509,12 @@ struct __pyx_obj_8sqlcycli_7charset_Charsets {
4506
4509
  * # Auth Plugin
4507
4510
  * cdef class AuthPlugin: # <<<<<<<<<<<<<<
4508
4511
  * cdef:
4509
- * object _mysql_native_password
4512
+ * # . plugins registry
4510
4513
  */
4511
4514
  struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
4512
4515
  PyObject_HEAD
4513
4516
  struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtab;
4517
+ PyObject *_plugins;
4514
4518
  PyObject *_mysql_native_password;
4515
4519
  PyObject *_caching_sha2_password;
4516
4520
  PyObject *_sha256_password;
@@ -4518,7 +4522,6 @@ struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin {
4518
4522
  PyObject *_mysql_old_password;
4519
4523
  PyObject *_mysql_clear_password;
4520
4524
  PyObject *_dialog;
4521
- PyObject *_plugins;
4522
4525
  };
4523
4526
 
4524
4527
 
@@ -4687,7 +4690,7 @@ struct __pyx_obj_8sqlcycli_10connection_SSDfCursor {
4687
4690
 
4688
4691
  /* "connection.pxd":104
4689
4692
  *
4690
- * # Connection
4693
+ * # Cursor Manager
4691
4694
  * cdef class CursorManager: # <<<<<<<<<<<<<<
4692
4695
  * cdef:
4693
4696
  * BaseConnection _conn
@@ -4714,9 +4717,9 @@ struct __pyx_obj_8sqlcycli_10connection_TransactionManager {
4714
4717
  };
4715
4718
 
4716
4719
 
4717
- /* "connection.pxd":116
4718
- * pass
4720
+ /* "connection.pxd":117
4719
4721
  *
4722
+ * # Connection
4720
4723
  * cdef class BaseConnection: # <<<<<<<<<<<<<<
4721
4724
  * cdef:
4722
4725
  * # Basic
@@ -4784,6 +4787,17 @@ struct __pyx_obj_8sqlcycli_10connection_BaseConnection {
4784
4787
  };
4785
4788
 
4786
4789
 
4790
+ /* "connection.pxd":270
4791
+ * cdef inline bytes _read_bytes(self, unsigned int size)
4792
+ *
4793
+ * cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
4794
+ * pass
4795
+ */
4796
+ struct __pyx_obj_8sqlcycli_10connection_Connection {
4797
+ struct __pyx_obj_8sqlcycli_10connection_BaseConnection __pyx_base;
4798
+ };
4799
+
4800
+
4787
4801
  /* "connection.pxd":7
4788
4802
  *
4789
4803
  * # Result
@@ -4899,7 +4913,7 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_SSDfCursor {
4899
4913
 
4900
4914
  /* "connection.pxd":81
4901
4915
  *
4902
- * # Connection
4916
+ * # Cursor Manager
4903
4917
  * cdef class CursorManager: # <<<<<<<<<<<<<<
4904
4918
  * cdef:
4905
4919
  * BaseConnection _conn
@@ -4925,9 +4939,9 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_TransactionManager {
4925
4939
  };
4926
4940
 
4927
4941
 
4928
- /* "connection.pxd":91
4929
- * pass
4942
+ /* "connection.pxd":92
4930
4943
  *
4944
+ * # Connection
4931
4945
  * cdef class BaseConnection: # <<<<<<<<<<<<<<
4932
4946
  * cdef:
4933
4947
  * # Basic
@@ -4996,6 +5010,17 @@ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection {
4996
5010
  };
4997
5011
 
4998
5012
 
5013
+ /* "connection.pxd":201
5014
+ * cdef inline bint _set_use_time(self) except -1
5015
+ *
5016
+ * cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
5017
+ * pass
5018
+ */
5019
+ struct __pyx_obj_8sqlcycli_3aio_10connection_Connection {
5020
+ struct __pyx_obj_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
5021
+ };
5022
+
5023
+
4999
5024
  /* "sqlcycli/aio/pool.pxd":12
5000
5025
  *
5001
5026
  * # Connection
@@ -7266,7 +7291,7 @@ struct __pyx_vtabstruct_8sqlcycli_7charset_Charset {
7266
7291
  static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcycli_7charset_Charset;
7267
7292
 
7268
7293
 
7269
- /* "sqlcycli/charset.pxd":15
7294
+ /* "sqlcycli/charset.pxd":16
7270
7295
  * cpdef bint is_binary(self)
7271
7296
  *
7272
7297
  * cdef class Charsets: # <<<<<<<<<<<<<<
@@ -7276,10 +7301,10 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charset *__pyx_vtabptr_8sqlcyc
7276
7301
 
7277
7302
  struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets {
7278
7303
  int (*add)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *, int __pyx_skip_dispatch);
7279
- int (*_add_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7280
- int (*_add_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7281
- int (*_add_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7282
- int (*_add_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7304
+ int (*_index_by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7305
+ int (*_index_by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7306
+ int (*_index_by_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7307
+ int (*_index_by_name_n_collation)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, struct __pyx_obj_8sqlcycli_7charset_Charset *);
7283
7308
  PyObject *(*_gen_charset_n_collate_key)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, PyObject *);
7284
7309
  struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_id)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
7285
7310
  struct __pyx_obj_8sqlcycli_7charset_Charset *(*by_name)(struct __pyx_obj_8sqlcycli_7charset_Charsets *, PyObject *, int __pyx_skip_dispatch);
@@ -7294,11 +7319,14 @@ static struct __pyx_vtabstruct_8sqlcycli_7charset_Charsets *__pyx_vtabptr_8sqlcy
7294
7319
  * # Auth Plugin
7295
7320
  * cdef class AuthPlugin: # <<<<<<<<<<<<<<
7296
7321
  * cdef:
7297
- * object _mysql_native_password
7322
+ * # . plugins registry
7298
7323
  */
7299
7324
 
7300
7325
  struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin {
7301
7326
  PyObject *(*get)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, int __pyx_skip_dispatch);
7327
+ int (*set)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *, int __pyx_skip_dispatch);
7328
+ PyObject *(*_validete_plugin_name)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *);
7329
+ PyObject *(*_validate_plugin_handler)(struct __pyx_obj_8sqlcycli_5_auth_AuthPlugin *, PyObject *, PyObject *);
7302
7330
  };
7303
7331
  static struct __pyx_vtabstruct_8sqlcycli_5_auth_AuthPlugin *__pyx_vtabptr_8sqlcycli_5_auth_AuthPlugin;
7304
7332
 
@@ -7494,7 +7522,7 @@ static struct __pyx_vtabstruct_8sqlcycli_10connection_SSDfCursor *__pyx_vtabptr_
7494
7522
 
7495
7523
  /* "connection.pxd":104
7496
7524
  *
7497
- * # Connection
7525
+ * # Cursor Manager
7498
7526
  * cdef class CursorManager: # <<<<<<<<<<<<<<
7499
7527
  * cdef:
7500
7528
  * BaseConnection _conn
@@ -7521,9 +7549,9 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager {
7521
7549
  static struct __pyx_vtabstruct_8sqlcycli_10connection_TransactionManager *__pyx_vtabptr_8sqlcycli_10connection_TransactionManager;
7522
7550
 
7523
7551
 
7524
- /* "connection.pxd":116
7525
- * pass
7552
+ /* "connection.pxd":117
7526
7553
  *
7554
+ * # Connection
7527
7555
  * cdef class BaseConnection: # <<<<<<<<<<<<<<
7528
7556
  * cdef:
7529
7557
  * # Basic
@@ -7604,6 +7632,19 @@ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection {
7604
7632
  static struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_10connection_BaseConnection;
7605
7633
 
7606
7634
 
7635
+ /* "connection.pxd":270
7636
+ * cdef inline bytes _read_bytes(self, unsigned int size)
7637
+ *
7638
+ * cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
7639
+ * pass
7640
+ */
7641
+
7642
+ struct __pyx_vtabstruct_8sqlcycli_10connection_Connection {
7643
+ struct __pyx_vtabstruct_8sqlcycli_10connection_BaseConnection __pyx_base;
7644
+ };
7645
+ static struct __pyx_vtabstruct_8sqlcycli_10connection_Connection *__pyx_vtabptr_8sqlcycli_10connection_Connection;
7646
+
7647
+
7607
7648
  /* "connection.pxd":7
7608
7649
  *
7609
7650
  * # Result
@@ -7715,9 +7756,9 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor {
7715
7756
  static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_SSDfCursor *__pyx_vtabptr_8sqlcycli_3aio_10connection_SSDfCursor;
7716
7757
 
7717
7758
 
7718
- /* "connection.pxd":91
7719
- * pass
7759
+ /* "connection.pxd":92
7720
7760
  *
7761
+ * # Connection
7721
7762
  * cdef class BaseConnection: # <<<<<<<<<<<<<<
7722
7763
  * cdef:
7723
7764
  * # Basic
@@ -7754,6 +7795,19 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection {
7754
7795
  static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection *__pyx_vtabptr_8sqlcycli_3aio_10connection_BaseConnection;
7755
7796
 
7756
7797
 
7798
+ /* "connection.pxd":201
7799
+ * cdef inline bint _set_use_time(self) except -1
7800
+ *
7801
+ * cdef class Connection(BaseConnection): # <<<<<<<<<<<<<<
7802
+ * pass
7803
+ */
7804
+
7805
+ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection {
7806
+ struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_BaseConnection __pyx_base;
7807
+ };
7808
+ static struct __pyx_vtabstruct_8sqlcycli_3aio_10connection_Connection *__pyx_vtabptr_8sqlcycli_3aio_10connection_Connection;
7809
+
7810
+
7757
7811
  /* "sqlcycli/aio/pool.pxd":12
7758
7812
  *
7759
7813
  * # Connection
@@ -7840,10 +7894,10 @@ struct __pyx_vtabstruct_8sqlcycli_3aio_4pool_Pool {
7840
7894
  PyObject *(*release)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, PyObject *, int __pyx_skip_dispatch);
7841
7895
  struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *(*_acquire_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
7842
7896
  int (*_release_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, struct __pyx_obj_8sqlcycli_3aio_4pool_PoolSyncConnection *);
7897
+ int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
7843
7898
  PyObject *(*close)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
7844
7899
  int (*terminate)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
7845
7900
  int (*closed)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *, int __pyx_skip_dispatch);
7846
- int (*_close_sync_conn)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
7847
7901
  int (*_verify_open)(struct __pyx_obj_8sqlcycli_3aio_4pool_Pool *);
7848
7902
  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);
7849
7903
  };
@@ -11763,6 +11817,7 @@ typedef struct {
11763
11817
  PyTypeObject *__pyx_ptype_8sqlcycli_10connection_CursorManager;
11764
11818
  PyTypeObject *__pyx_ptype_8sqlcycli_10connection_TransactionManager;
11765
11819
  PyTypeObject *__pyx_ptype_8sqlcycli_10connection_BaseConnection;
11820
+ PyTypeObject *__pyx_ptype_8sqlcycli_10connection_Connection;
11766
11821
  #if CYTHON_USE_MODULE_STATE
11767
11822
  #endif
11768
11823
  #if CYTHON_USE_MODULE_STATE
@@ -11777,6 +11832,7 @@ typedef struct {
11777
11832
  PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager;
11778
11833
  PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager;
11779
11834
  PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection;
11835
+ PyTypeObject *__pyx_ptype_8sqlcycli_3aio_10connection_Connection;
11780
11836
  #if CYTHON_USE_MODULE_STATE
11781
11837
  #endif
11782
11838
  PyTypeObject *__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection;
@@ -13008,6 +13064,7 @@ static int __pyx_m_clear(PyObject *m) {
13008
13064
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
13009
13065
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
13010
13066
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
13067
+ Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
13011
13068
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
13012
13069
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
13013
13070
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
@@ -13018,6 +13075,7 @@ static int __pyx_m_clear(PyObject *m) {
13018
13075
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
13019
13076
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
13020
13077
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
13078
+ Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
13021
13079
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
13022
13080
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
13023
13081
  Py_CLEAR(clear_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
@@ -14197,6 +14255,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
14197
14255
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_CursorManager);
14198
14256
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_TransactionManager);
14199
14257
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_BaseConnection);
14258
+ Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_10connection_Connection);
14200
14259
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_MysqlResult);
14201
14260
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Cursor);
14202
14261
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_DictCursor);
@@ -14207,6 +14266,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
14207
14266
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager);
14208
14267
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager);
14209
14268
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection);
14269
+ Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_10connection_Connection);
14210
14270
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection);
14211
14271
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolSyncConnection);
14212
14272
  Py_VISIT(traverse_module_state->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnectionManager);
@@ -15496,6 +15556,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
15496
15556
  #define __pyx_ptype_8sqlcycli_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_CursorManager
15497
15557
  #define __pyx_ptype_8sqlcycli_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_TransactionManager
15498
15558
  #define __pyx_ptype_8sqlcycli_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_BaseConnection
15559
+ #define __pyx_ptype_8sqlcycli_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_10connection_Connection
15499
15560
  #if CYTHON_USE_MODULE_STATE
15500
15561
  #endif
15501
15562
  #if CYTHON_USE_MODULE_STATE
@@ -15510,6 +15571,7 @@ static int __pyx_m_traverse(PyObject *m, visitproc visit, void *arg) {
15510
15571
  #define __pyx_ptype_8sqlcycli_3aio_10connection_CursorManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_CursorManager
15511
15572
  #define __pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_TransactionManager
15512
15573
  #define __pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_BaseConnection
15574
+ #define __pyx_ptype_8sqlcycli_3aio_10connection_Connection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_10connection_Connection
15513
15575
  #if CYTHON_USE_MODULE_STATE
15514
15576
  #endif
15515
15577
  #define __pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection __pyx_mstate_global->__pyx_ptype_8sqlcycli_3aio_4pool_PoolConnection
@@ -116189,8 +116251,8 @@ static int __Pyx_modinit_type_import_code(void) {
116189
116251
  __Pyx_GOTREF(__pyx_t_1);
116190
116252
  __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(10, 4, __pyx_L1_error)
116191
116253
  __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(10, 4, __pyx_L1_error)
116192
- __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(10, 15, __pyx_L1_error)
116193
- __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(10, 15, __pyx_L1_error)
116254
+ __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(10, 16, __pyx_L1_error)
116255
+ __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(10, 16, __pyx_L1_error)
116194
116256
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
116195
116257
  __pyx_t_1 = PyImport_ImportModule("sqlcycli._auth"); if (unlikely(!__pyx_t_1)) __PYX_ERR(11, 10, __pyx_L1_error)
116196
116258
  __Pyx_GOTREF(__pyx_t_1);
@@ -116224,8 +116286,10 @@ static int __Pyx_modinit_type_import_code(void) {
116224
116286
  __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(13, 104, __pyx_L1_error)
116225
116287
  __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(13, 113, __pyx_L1_error)
116226
116288
  __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(13, 113, __pyx_L1_error)
116227
- __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(13, 116, __pyx_L1_error)
116228
- __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(13, 116, __pyx_L1_error)
116289
+ __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(13, 117, __pyx_L1_error)
116290
+ __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(13, 117, __pyx_L1_error)
116291
+ __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(13, 270, __pyx_L1_error)
116292
+ __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(13, 270, __pyx_L1_error)
116229
116293
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
116230
116294
  __pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.connection"); if (unlikely(!__pyx_t_1)) __PYX_ERR(14, 7, __pyx_L1_error)
116231
116295
  __Pyx_GOTREF(__pyx_t_1);
@@ -116245,8 +116309,10 @@ static int __Pyx_modinit_type_import_code(void) {
116245
116309
  __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(14, 77, __pyx_L1_error)
116246
116310
  __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(14, 81, __pyx_L1_error)
116247
116311
  __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(14, 88, __pyx_L1_error)
116248
- __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(14, 91, __pyx_L1_error)
116249
- __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(14, 91, __pyx_L1_error)
116312
+ __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(14, 92, __pyx_L1_error)
116313
+ __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(14, 92, __pyx_L1_error)
116314
+ __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(14, 201, __pyx_L1_error)
116315
+ __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(14, 201, __pyx_L1_error)
116250
116316
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;
116251
116317
  __pyx_t_1 = PyImport_ImportModule("sqlcycli.aio.pool"); if (unlikely(!__pyx_t_1)) __PYX_ERR(15, 12, __pyx_L1_error)
116252
116318
  __Pyx_GOTREF(__pyx_t_1);
Binary file
mysqlengine/table.pxd ADDED
@@ -0,0 +1,169 @@
1
+ # cython: language_level=3
2
+ from cpython cimport datetime
3
+ from cytimes.pydt cimport _Pydt
4
+ from sqlcycli.charset cimport Charset
5
+ from sqlcycli.aio.pool cimport PoolConnection, PoolSyncConnection
6
+ from mysqlengine.index cimport Indexes
7
+ from mysqlengine.column cimport Columns
8
+ from mysqlengine.constraint cimport Constraints
9
+ from mysqlengine.partition cimport Partitioning
10
+ from mysqlengine.dml cimport InsertDML, ReplaceDML, UpdateDML, DeleteDML
11
+ from mysqlengine.element cimport Element, Elements, Logs, Metadata, Query
12
+
13
+ # BaseTable
14
+ cdef class BaseTable(Element):
15
+ cdef:
16
+ # . options
17
+ str _engine
18
+ str _comment
19
+ int _encryption
20
+ str _row_format
21
+ int _partitioned
22
+ # . internal
23
+ Columns _columns
24
+ Indexes _indexes
25
+ Constraints _constraints
26
+ Partitioning _partitioning
27
+ bint _temporary
28
+ PoolSyncConnection _sync_conn
29
+ PoolConnection _async_conn
30
+ bint _setup_finished
31
+ # DML
32
+ cpdef InsertDML Insert(self, object partition=?, bint ignore=?, object priority=?)
33
+ cpdef ReplaceDML Replace(self, object partition=?, bint low_priority=?)
34
+ cpdef UpdateDML Update(self, object partition=?, bint ignore=?, bint low_priority=?, object alias=?)
35
+ cpdef DeleteDML Delete(self, object partition=?, bint ignore=?, bint low_priority=?, bint quick=?, object alias=?, object multi_tables=?)
36
+ # Generate SQL
37
+ cpdef str _gen_create_sql(self, bint if_not_exists)
38
+ cpdef str _gen_exists_sql(self)
39
+ cpdef str _gen_truncate_sql(self)
40
+ cpdef str _gen_drop_sql(self, bint if_exists)
41
+ cpdef str _gen_empty_sql(self)
42
+ cpdef Query _gen_alter_query(self, TableMetadata meta, object engine, object charset, object collate, object comment, object encryption, object row_format)
43
+ cpdef str _gen_show_metadata_sql(self)
44
+ cpdef str _gen_show_column_names_sql(self)
45
+ cpdef str _gen_show_index_names_sql(self)
46
+ cpdef str _gen_show_constraint_symbols_sql(self)
47
+ cpdef str _gen_lock_sql(self, bint lock_for_read)
48
+ cpdef str _gen_analyze_sql(self, bint write_to_binlog)
49
+ cpdef str _gen_check_sql(self, tuple options)
50
+ cpdef str _gen_optimize_sql(self, bint write_to_binlog)
51
+ cpdef str _gen_repair_sql(self, bint write_to_binlog, object option)
52
+ # Metadata
53
+ cpdef Logs _sync_from_metadata(self, TableMetadata meta, Logs logs=?)
54
+ # Setter
55
+ cpdef bint setup(self, str db_name, object charset, object collate, object pool) except -1
56
+ # Assure Ready
57
+ cdef inline bint _assure_setup_ready(self) except -1
58
+ # Validate
59
+ cdef inline str _validate_engine(self, object engine)
60
+ cdef inline str _validate_row_format(self, object row_format)
61
+ cdef inline str _validate_check_option(self, object option)
62
+ cdef inline str _validate_repair_option(self, object option)
63
+
64
+ # Table
65
+ cdef class Table(BaseTable):
66
+ # Sync
67
+ cpdef Logs Initialize(self, bint force=?)
68
+ cpdef Logs Create(self, bint if_not_exists=?)
69
+ cpdef bint Exists(self) except -1
70
+ cpdef Logs Truncate(self)
71
+ cpdef Logs Drop(self, bint if_exists=?)
72
+ cpdef bint Empty(self) except -1
73
+ cpdef Logs Alter(self, str engine=?, object charset=?, object collate=?, str comment=?, object encryption=?, object row_format=?)
74
+ cpdef TableMetadata ShowMetadata(self)
75
+ cpdef tuple ShowColumnNames(self)
76
+ cpdef tuple ShowIndexNames(self)
77
+ cpdef tuple ShowConstraintSymbols(self)
78
+ cpdef PoolSyncConnection Lock(self, PoolSyncConnection conn, bint lock_for_read=?)
79
+ cpdef tuple Analyze(self, bint write_to_binlog=?)
80
+ cpdef tuple Optimize(self, bint write_to_binlog=?)
81
+ cpdef tuple Repair(self, bint write_to_binlog=?, str option=?)
82
+ cpdef Logs SyncFromRemote(self, bint thorough=?)
83
+ cpdef Logs SyncToRemote(self)
84
+ # Copy
85
+ cpdef Table copy(self)
86
+
87
+ # Time Table
88
+ cdef class TimeTable(Table):
89
+ cdef:
90
+ str _time_column
91
+ bint _timestamp_based
92
+ int _time_unit
93
+ str _pydt_unit
94
+ _Pydt _start_from
95
+ _Pydt _end_with
96
+ # Sync
97
+ cpdef Logs _ExtendToTime(self, bint future, object to_time)
98
+ cpdef Logs _CoalesceToTime(self, bint future, object to_time)
99
+ cpdef Logs _DropToTime(self, bint future, object to_time)
100
+ cpdef Logs ReorganizeOverflow(self, str catcher=?)
101
+ cpdef tuple ShowPartitionNames(self)
102
+ cpdef dict ShowPartitionRows(self)
103
+ cpdef _Pydt GetBoundaryPartitionTime(self, bint future=?)
104
+ cpdef int _GetInRangePartitionCount(self) except -1
105
+ cpdef object _GetOverflowBoundaryValue(self, bint future)
106
+ # Generate SQL
107
+ cpdef str _gen_get_overflow_boundary_value_sql(self, bint future)
108
+ # Time Tools
109
+ cdef inline str _gen_partition_name(self, _Pydt time)
110
+ cdef inline _Pydt _gen_partition_time(self, _Pydt time)
111
+ cdef inline _Pydt _parse_partition_time(self, str name)
112
+ cdef inline _Pydt _shift_partition_time(self, _Pydt time, int offset)
113
+ cdef object _create_partition(self, str name, _Pydt value, str comment)
114
+ cdef object _create_past_partition(self, _Pydt value)
115
+ cdef object _create_future_partition(self)
116
+ cdef object _create_in_range_partition(self, _Pydt time)
117
+ cdef long long _cal_partition_time_diff(self, _Pydt time1, _Pydt time2)
118
+ # Validate
119
+ cdef inline int _validate_time_unit(self, object time_unit) except -1
120
+ cdef inline str _validate_pydt_unit(self, int time_unit)
121
+ cdef inline _Pydt _validate_partition_time(self, object dtobj, str arg_name)
122
+ # Error
123
+ cdef inline bint _raise_partitioning_broken_error(self, Exception tb_exc=?) except -1
124
+ # Copy
125
+ cpdef TimeTable copy(self)
126
+
127
+ # Temporary Table
128
+ cdef class TempTable(BaseTable):
129
+ # Sync
130
+ cpdef Logs Create(self, bint if_not_exists=?)
131
+ cpdef Logs Drop(self, bint if_exists=?)
132
+ cpdef bint Empty(self) except -1
133
+ # Connection
134
+ cpdef bint _set_connection(self, object conn) except -1
135
+ cpdef bint _del_connection(self) except -1
136
+ # Assure Ready
137
+ cdef inline bint _assure_sync_connection_ready(self) except -1
138
+ cdef inline bint _assure_async_connection_ready(self) except -1
139
+ # Copy
140
+ cpdef TempTable copy(self)
141
+
142
+ cdef class TempTableManager:
143
+ cdef:
144
+ TempTable _temp_table
145
+ bint _sync_mode
146
+ # Special Method
147
+ cdef inline bint _cleanup(self) except -1
148
+
149
+ # Tables
150
+ cdef class Tables(Elements):
151
+ # Setter
152
+ cpdef bint setup(self, str db_name, object charset, object collate, object pool) except -1
153
+ # Copy
154
+ cpdef Tables copy(self)
155
+
156
+ # Metadata
157
+ cdef class TableMetadata(Metadata):
158
+ cdef:
159
+ # Base data
160
+ str _db_name
161
+ str _tb_name
162
+ str _engine
163
+ str _row_format
164
+ Charset _charset
165
+ str _options
166
+ str _comment
167
+ # Addtional data
168
+ bint _encryption
169
+ bint _partitioned