mysqlengine 1.0.1__cp310-cp310-win_amd64.whl → 1.0.3__cp310-cp310-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.

Binary file
@@ -0,0 +1,179 @@
1
+ # cython: language_level=3
2
+ from sqlcycli.sqlfunc cimport ObjStr
3
+ from sqlcycli.charset cimport Charset
4
+ from sqlcycli.connection cimport Cursor
5
+ from sqlcycli.aio.pool cimport (
6
+ Pool,
7
+ PoolSyncConnection,
8
+ PoolConnectionManager,
9
+ PoolTransactionManager,
10
+ )
11
+
12
+ # Element
13
+ cdef class Element(ObjStr):
14
+ cdef:
15
+ # . internal
16
+ str _el_cate
17
+ str _el_type
18
+ str _el_repr
19
+ int _el_position
20
+ bint _el_ready
21
+ bint _initialized
22
+ Py_ssize_t _hashcode
23
+ # . settings
24
+ str _name
25
+ str _symbol
26
+ str _tb_name
27
+ str _db_name
28
+ str _tb_qualified_name
29
+ Charset _charset
30
+ Pool _pool
31
+ # Acquire / Fill / Release
32
+ cpdef PoolConnectionManager acquire(self)
33
+ cpdef PoolTransactionManager transaction(self)
34
+ cpdef object release(self, object conn)
35
+ # Sync
36
+ cpdef tuple ShowDatabases(self)
37
+ cpdef str ShowCreateTable(self)
38
+ cpdef PoolSyncConnection Unlock(self, PoolSyncConnection conn)
39
+ # SQL
40
+ cpdef str _gen_show_create_table_sql(self)
41
+ # Setter
42
+ cpdef bint _set_el_type(self, str el_type) except -1
43
+ cpdef bint set_name(self, object name) except -1
44
+ cpdef bint _set_tb_name(self, object name) except -1
45
+ cpdef bint _set_db_name(self, object name) except -1
46
+ cpdef bint _set_tb_qualified_name(self) except -1
47
+ cpdef bint _set_charset(self, object charset=?, object collate=?) except -1
48
+ cpdef bint _set_pool(self, object pool) except -1
49
+ cpdef bint _set_position(self, int position) except -1
50
+ # Assure Ready
51
+ cpdef bint _assure_ready(self) except -1
52
+ cdef inline bint _assure_name_ready(self) except -1
53
+ cdef inline bint _assure_tb_name_ready(self) except -1
54
+ cdef inline bint _assure_db_name_ready(self) except -1
55
+ cdef inline bint _assure_charset_ready(self) except -1
56
+ cdef inline bint _assure_pool_ready(self) except -1
57
+ cdef inline bint _assure_encoding_ready(self) except -1
58
+ cdef inline bint _assure_position_ready(self) except -1
59
+ # Validate
60
+ cdef inline str _validate_database_name(self, object name)
61
+ cdef inline str _validate_table_name(self, object name)
62
+ cdef inline str _validate_column_name(self, object name)
63
+ cdef inline str _validete_index_name(self, object name)
64
+ cdef inline str _validate_constraint_name(self, object name)
65
+ cdef inline str _validate_partition_name(self, object name)
66
+ cdef inline tuple _validate_columns(self, object columns)
67
+ cdef inline Pool _validate_pool(self, object pool)
68
+ cdef inline Charset _validate_charset(self, object charset=?, object collate=?)
69
+ cdef inline Charset _validate_encoding(self, Charset charset)
70
+ cdef inline str _validate_index_type(self, object row_format)
71
+ cdef inline str _validate_comment(self, object comment)
72
+ cdef inline str _validate_expression(self, object expr)
73
+ cdef inline int _validate_encryption(self, object encryption) except -2
74
+ # Error
75
+ cdef inline bint _raise_element_error(self, str err_type, str msg, Exception tb_exc=?) except -1
76
+ cdef inline bint _raise_definition_error(self, str msg, Exception tb_exc=?) except -1
77
+ cdef inline bint _raise_argument_error(self, str msg, Exception tb_exc=?) except -1
78
+ cdef inline bint _raise_metadata_error(self, str msg, Exception tb_exc=?) except -1
79
+ cdef inline bint _raise_not_exists_error(self, str msg, Exception tb_exc=?) except -1
80
+ cdef inline bint _raise_critical_error(self, str msg, Exception tb_exc=?) except -1
81
+ cdef inline bint _raise_operational_error(self, object errno, str msg, Exception tb_exc=?) except -1
82
+ cdef inline bint _raise_not_implemented_error(self, str method_name) except -1
83
+ cdef inline str _prep_error_message(self, str msg)
84
+ # Warning
85
+ cdef inline bint _warn(self, str msg) except -1
86
+ # Internal
87
+ cpdef bint _set_initialized(self, bint flag) except -1
88
+ # Utils
89
+ cdef inline object _escape_args(self, object args, bint itemize=?)
90
+ cdef inline str _format_sql(self, str sql, object args, bint itemize=?)
91
+ cdef inline str _gen_tb_qualified_name(self, str name)
92
+ cdef inline tuple _flatten_rows(self, tuple rows, bint skip_none=?)
93
+ cdef inline str _partitioning_flag_to_method(self, int flag)
94
+ cdef inline int _partitioning_method_to_flag(self, str method) except -1
95
+ # Copy
96
+ cpdef Element copy(self)
97
+ # Special Methods
98
+ cpdef Py_ssize_t _sp_hashcode(self)
99
+ cpdef int _sp_equal(self, object o) except -2
100
+ cpdef int _sp_less_than(self, object o) except -2
101
+
102
+ # Elements
103
+ cdef class Elements(Element):
104
+ cdef:
105
+ object _el_class
106
+ dict _el_dict
107
+ set _el_set
108
+ Py_ssize_t _size
109
+ # Collection
110
+ cpdef bint add(self, object element) except -1
111
+ cpdef bint remove(self, object name) except -1
112
+ cpdef Elements _search_name(self, object names, bint exact)
113
+ cpdef Elements _search_type(self, object types, bint exact)
114
+ cpdef Elements _filter(self, object elements)
115
+ cpdef bint _issubset(self, object elements) except -1
116
+ # Generate SQL
117
+ cpdef str _gen_definition_sql(self, int indent=?)
118
+ # Assure Ready
119
+ cpdef bint _assure_ready(self) except -1
120
+ # Validate
121
+ cdef inline list _validate_elements(self, object elements)
122
+ # Utils
123
+ cdef inline set _extract_elements(self, object elements, str msg)
124
+ cdef inline set _extract_element_names(self, object elements, str msg)
125
+ cdef inline set _extract_element_types(self, object elements, str msg)
126
+ # Accessors
127
+ cpdef tuple keys(self)
128
+ cpdef tuple values(self)
129
+ cpdef tuple items(self)
130
+ cpdef object get(self, object key, object default=?)
131
+ cdef inline list _sorted_elements(self)
132
+
133
+ # Metadata
134
+ cdef class Metadata:
135
+ cdef:
136
+ str _el_cate
137
+ dict _meta
138
+ int _size
139
+ Py_ssize_t _hashcode
140
+ # Error
141
+ cdef inline bint _raise_invalid_metadata_error(self, object meta, Exception tb_exc=?) except -1
142
+ # Accessors
143
+ cpdef tuple keys(self)
144
+ cpdef tuple values(self)
145
+ cpdef tuple items(self)
146
+ cpdef object get(self, str key, object default=?)
147
+
148
+ # Query
149
+ cdef class Query:
150
+ cdef:
151
+ Logs _logs
152
+ str _sql1
153
+ str _sql2
154
+ # Execute
155
+ cpdef bint executable(self) except -1
156
+ cpdef bint execute(self, Cursor cur) except -1
157
+ # Setter
158
+ cpdef bint set_sql(self, Element element, str sql) except -1
159
+
160
+ # Logs
161
+ cdef class Logs:
162
+ cdef:
163
+ list _records
164
+ bint _skip_flag
165
+ Py_ssize_t _size
166
+ # Logging
167
+ cpdef Logs log(self, Element element, bint local, str msg)
168
+ cpdef Logs log_element_creation(self, Element element, bint local)
169
+ cpdef Logs log_element_deletion(self, Element element, bint local)
170
+ cpdef Logs log_sql(self, Element element, str sql)
171
+ cpdef Logs log_charset(self, Element element, Charset config_old, Charset config_new)
172
+ cpdef Logs log_config_bool(self, Element element, str config_name, int config_old, int config_new)
173
+ cpdef Logs log_config_int(self, Element element, str config_name, long long config_old, long long config_new)
174
+ cpdef Logs log_config_obj(self, Element element, str config_name, object config_old, object config_new)
175
+ cpdef Logs log_sync_failed_not_exist(self, Element element)
176
+ cpdef Logs log_sync_failed_mismatch(self, Element element, str config_name, object config_local, object config_remote)
177
+ # Manipulate
178
+ cpdef Logs extend(self, Logs logs)
179
+ cpdef Logs _skip(self)
mysqlengine/index.c CHANGED
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  ],
12
12
  "include_dirs": [
13
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-9hhurlgk\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
13
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-dtum3nk3\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
14
14
  ],
15
15
  "name": "mysqlengine.index",
16
16
  "sources": [
Binary file
mysqlengine/index.pxd ADDED
@@ -0,0 +1,71 @@
1
+ # cython: language_level=3
2
+ from mysqlengine.element cimport Element, Elements, Logs, Metadata, Query
3
+
4
+ # Index
5
+ cdef class Index(Element):
6
+ cdef:
7
+ # Common
8
+ tuple _columns
9
+ str _index_type
10
+ str _comment
11
+ bint _visible
12
+ # FullText Index
13
+ str _parser
14
+ # Sync
15
+ cpdef Logs Initialize(self, bint force=?)
16
+ cpdef Logs Add(self)
17
+ cpdef bint Exists(self) except -1
18
+ cpdef Logs Drop(self)
19
+ cpdef Logs _Alter(self, object columns, object index_type, object parser, object comment, object visible)
20
+ cpdef Logs SetVisible(self, bint visible)
21
+ cpdef IndexMetadata ShowMetadata(self)
22
+ cpdef tuple ShowIndexNames(self)
23
+ cpdef Logs SyncFromRemote(self)
24
+ cpdef Logs SyncToRemote(self)
25
+ # Generate SQL
26
+ cpdef str _gen_definition_sql(self)
27
+ cpdef str _gen_add_sql(self)
28
+ cpdef str _gen_exists_sql(self)
29
+ cpdef str _gen_drop_sql(self)
30
+ cpdef Query _gen_alter_query(self, IndexMetadata meta, object columns, object index_type, object parser, object comment, object visible)
31
+ cpdef str _gen_set_visible_sql(self, bint visible)
32
+ cpdef str _gen_show_metadata_sql(self)
33
+ cpdef str _gen_show_index_names_sql(self)
34
+ # Metadata
35
+ cpdef Logs _sync_from_metadata(self, IndexMetadata meta, Logs logs=?)
36
+ cpdef int _diff_from_metadata(self, IndexMetadata meta) except -1
37
+ # Setter
38
+ cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
39
+ # Copy
40
+ cpdef Index copy(self)
41
+ cpdef Index _construct(self, object columns, object index_type, object parser, object comment, object visible)
42
+
43
+ cdef class FullTextIndex(Index):
44
+ cdef:
45
+ object _parser_regex
46
+ # Validator
47
+ cdef inline str _validate_parser(self, object parser)
48
+
49
+ # Indexex
50
+ cdef class Indexes(Elements):
51
+ # Setter
52
+ cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
53
+ # Copy
54
+ cpdef Indexes copy(self)
55
+
56
+ # Metadata
57
+ cdef class IndexMetadata(Metadata):
58
+ cdef:
59
+ # Base data
60
+ str _db_name
61
+ str _tb_name
62
+ str _index_name
63
+ str _index_type
64
+ bint _unique
65
+ str _comment
66
+ bint _visible
67
+ # Additional data
68
+ str _el_type
69
+ tuple _columns
70
+ # FullText Index
71
+ str _parser
mysqlengine/partition.c CHANGED
@@ -10,7 +10,7 @@
10
10
  ]
11
11
  ],
12
12
  "include_dirs": [
13
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-9hhurlgk\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
13
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-dtum3nk3\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
14
14
  ],
15
15
  "name": "mysqlengine.partition",
16
16
  "sources": [
Binary file
@@ -0,0 +1,128 @@
1
+ # cython: language_level=3
2
+ from mysqlengine.element cimport Element, Elements, Logs, Metadata
3
+
4
+ # Partitioning
5
+ cdef class Partitioning(Element):
6
+ cdef:
7
+ # partition
8
+ int _partitioning_flag
9
+ str _partitioning_expression
10
+ # subpartition
11
+ int _subpartitioning_flag
12
+ str _subpartitioning_expression
13
+ # partitions
14
+ Partitions _partitions
15
+ # Configure
16
+ cpdef Partitioning by_hash(self, int partitions, bint linear=?)
17
+ cpdef Partitioning by_key (self, int partitions, bint linear=?)
18
+ # Sync
19
+ cpdef Logs Initialize(self, bint force=?)
20
+ cpdef Logs Create(self)
21
+ cpdef bint Exists(self) except -1
22
+ cpdef Logs Remove(self)
23
+ cpdef PartitioningMetadata ShowMetadata(self)
24
+ cpdef tuple ShowPartitionNames(self)
25
+ cpdef dict ShowPartitionRows(self)
26
+ cpdef tuple ShowSubpartitionNames(self)
27
+ cpdef dict ShowSubpartitionRows(self)
28
+ cpdef Logs SyncFromRemote(self)
29
+ cpdef Logs SyncToRemote(self)
30
+ cpdef bint ExistsPartition(self, object partition)
31
+ cpdef bint EmptyPartition(self, object partition)
32
+ cpdef Logs CoalescePartition(self, int number)
33
+ # Generate SQL
34
+ cpdef str _gen_definition_sql(self)
35
+ cpdef str _gen_create_sql(self)
36
+ cpdef str _gen_exists_sql(self)
37
+ cpdef str _gen_remove_sql(self)
38
+ cpdef str _gen_show_metadata_sql(self)
39
+ cpdef str _gen_show_partition_names_sql(self)
40
+ cpdef str _gen_show_partition_rows_sql(self)
41
+ cpdef str _gen_show_subpartition_names_sql(self)
42
+ cpdef str _gen_show_subpartition_rows_sql(self)
43
+ cpdef str _gen_add_partition_sql(self, tuple partitions)
44
+ cpdef str _gen_exists_partition_sql(self, object partition)
45
+ cpdef str _gen_drop_partition_sql(self, tuple partitions)
46
+ cpdef str _gen_empty_partition_sql(self, object partition)
47
+ cpdef str _gen_reorganize_partition_sql(self, object old_partitions, tuple new_partitions)
48
+ cpdef str _gen_coalesce_partition_sql(self, int number)
49
+ cpdef str _gen_general_partition_sql(self, tuple partitions, str operation)
50
+ # Metadata
51
+ cpdef Logs _sync_from_metadata(self, PartitioningMetadata meta, Logs logs=?)
52
+ cpdef bint _diff_from_metadata(self, PartitioningMetadata meta) except -1
53
+ # Setter
54
+ cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
55
+ cpdef bint _set_partitioning_flag(self, int flag) except -1
56
+ cpdef bint _set_partitions_by_instance(self, tuple partitions) except -1
57
+ cpdef bint _set_partitions_by_integer(self, int partitions) except -1
58
+ cpdef bint _reset_subpartitioning(self) except -1
59
+ # Assure Ready
60
+ cdef inline bint _assure_partitioning_flag_ready(self) except -1
61
+ cdef inline bint _assure_partitions_ready(self) except -1
62
+ # Validate
63
+ cdef inline str _validate_partitioning_expression(self, tuple expressions, bint subpartitioning=?)
64
+ cdef inline str _validate_partition(self, object partition)
65
+ cdef inline tuple _validate_partitions(self, object partitions)
66
+ # Copy
67
+ cpdef Partitioning copy(self)
68
+
69
+ # Partition
70
+ cdef class Partition(Element):
71
+ cdef:
72
+ object _values
73
+ str _comment
74
+ int _partitioning_flag
75
+ int _subpartitioning_flag
76
+ Partitions _subpartitions
77
+ bint _is_subpartition
78
+ # Generate SQL
79
+ cpdef str _gen_definition_sql(self)
80
+ # Metadata
81
+ cpdef Logs _sync_from_metadata(self, dict meta, Logs logs=?)
82
+ # Setter
83
+ cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
84
+ cpdef bint _set_partitioning_flag(self, int flag) except -1
85
+ cpdef bint _setup_subpartitions(self, int flag, int subpartitions) except -1
86
+ cpdef bint _reset_subpartitions(self) except -1
87
+ cpdef bint _set_as_subpartition(self) except -1
88
+ # Assure Ready
89
+ cdef inline bint _assure_partitioning_flag_ready(self) except -1
90
+ # Validate
91
+ cdef inline tuple _validate_partition_values(self, tuple values)
92
+ # Copy
93
+ cpdef Partition copy(self)
94
+
95
+ # Partitions
96
+ cdef class Partitions(Elements):
97
+ cdef:
98
+ int _partitioning_flag
99
+ int _subpartitioning_flag
100
+ int _subpartition_count
101
+ # Generate SQL
102
+ cpdef str _gen_definition_sql(self, int indent=?)
103
+ # Setter
104
+ cpdef bint setup(self, str tb_name, str db_name, object charset, object collate, object pool) except -1
105
+ cpdef bint _set_partitioning_flag(self, int flag) except -1
106
+ cpdef bint _setup_subpartitions(self, int flag, int subpartitions) except -1
107
+ cpdef bint _reset_subpartitions(self) except -1
108
+ # Assure Ready
109
+ cdef inline bint _assure_partitioning_flag_ready(self) except -1
110
+ # Copy
111
+ cpdef Partitions copy(self)
112
+
113
+ # Metadata
114
+ cdef class PartitioningMetadata(Metadata):
115
+ cdef:
116
+ # Base data
117
+ str _db_name
118
+ str _tb_name
119
+ str _partitioning_method
120
+ str _partitioning_expression
121
+ str _subpartitioning_method
122
+ str _subpartitioning_expression
123
+ list _partitions
124
+ # Additional data
125
+ tuple _partition_names
126
+ int _partition_count
127
+ tuple _subpartition_names
128
+ int _subpartition_count
mysqlengine/table.c CHANGED
@@ -11,7 +11,7 @@
11
11
  ],
12
12
  "depends": [],
13
13
  "include_dirs": [
14
- "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-9hhurlgk\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
14
+ "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\pip-build-env-dtum3nk3\\overlay\\Lib\\site-packages\\numpy\\_core\\include"
15
15
  ],
16
16
  "name": "mysqlengine.table",
17
17
  "sources": [
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
Binary file