reywechat 1.0.64__py3-none-any.whl → 1.0.66__py3-none-any.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.
- reywechat/rdb.py +62 -8
- {reywechat-1.0.64.dist-info → reywechat-1.0.66.dist-info}/METADATA +1 -1
- {reywechat-1.0.64.dist-info → reywechat-1.0.66.dist-info}/RECORD +5 -5
- {reywechat-1.0.64.dist-info → reywechat-1.0.66.dist-info}/WHEEL +0 -0
- {reywechat-1.0.64.dist-info → reywechat-1.0.66.dist-info}/licenses/LICENSE +0 -0
reywechat/rdb.py
CHANGED
@@ -31,7 +31,7 @@ __all__ = (
|
|
31
31
|
class WeChatDatabase(WeChatBase):
|
32
32
|
"""
|
33
33
|
WeChat database type.
|
34
|
-
Can create database used `self.
|
34
|
+
Can create database used `self.build_db` method.
|
35
35
|
"""
|
36
36
|
|
37
37
|
|
@@ -159,6 +159,20 @@ class WeChatDatabase(WeChatBase):
|
|
159
159
|
}
|
160
160
|
],
|
161
161
|
'primary': 'user_id',
|
162
|
+
'indexes': [
|
163
|
+
{
|
164
|
+
'name': 'n_create_time',
|
165
|
+
'fields': 'create_time',
|
166
|
+
'type': 'noraml',
|
167
|
+
'comment': 'Record create time normal index.'
|
168
|
+
},
|
169
|
+
{
|
170
|
+
'name': 'n_update_time',
|
171
|
+
'fields': 'update_time',
|
172
|
+
'type': 'noraml',
|
173
|
+
'comment': 'Record update time normal index.'
|
174
|
+
}
|
175
|
+
],
|
162
176
|
'comment': 'User contact table.'
|
163
177
|
},
|
164
178
|
|
@@ -204,6 +218,20 @@ class WeChatDatabase(WeChatBase):
|
|
204
218
|
}
|
205
219
|
],
|
206
220
|
'primary': 'room_id',
|
221
|
+
'indexes': [
|
222
|
+
{
|
223
|
+
'name': 'n_create_time',
|
224
|
+
'fields': 'create_time',
|
225
|
+
'type': 'noraml',
|
226
|
+
'comment': 'Record create time normal index.'
|
227
|
+
},
|
228
|
+
{
|
229
|
+
'name': 'n_update_time',
|
230
|
+
'fields': 'update_time',
|
231
|
+
'type': 'noraml',
|
232
|
+
'comment': 'Record update time normal index.'
|
233
|
+
}
|
234
|
+
],
|
207
235
|
'comment': 'Chat room contact table.'
|
208
236
|
},
|
209
237
|
|
@@ -255,6 +283,20 @@ class WeChatDatabase(WeChatBase):
|
|
255
283
|
}
|
256
284
|
],
|
257
285
|
'primary': ['room_id', 'user_id'],
|
286
|
+
'indexes': [
|
287
|
+
{
|
288
|
+
'name': 'n_create_time',
|
289
|
+
'fields': 'create_time',
|
290
|
+
'type': 'noraml',
|
291
|
+
'comment': 'Record create time normal index.'
|
292
|
+
},
|
293
|
+
{
|
294
|
+
'name': 'n_update_time',
|
295
|
+
'fields': 'update_time',
|
296
|
+
'type': 'noraml',
|
297
|
+
'comment': 'Record update time normal index.'
|
298
|
+
}
|
299
|
+
],
|
258
300
|
'comment': 'Chat room user contact table.'
|
259
301
|
},
|
260
302
|
|
@@ -347,6 +389,12 @@ class WeChatDatabase(WeChatBase):
|
|
347
389
|
],
|
348
390
|
'primary': 'message_id',
|
349
391
|
'indexes': [
|
392
|
+
{
|
393
|
+
'name': 'n_create_time',
|
394
|
+
'fields': 'create_time',
|
395
|
+
'type': 'noraml',
|
396
|
+
'comment': 'Record create time normal index.'
|
397
|
+
},
|
350
398
|
{
|
351
399
|
'name': 'n_message_time',
|
352
400
|
'fields': 'message_time',
|
@@ -380,10 +428,10 @@ class WeChatDatabase(WeChatBase):
|
|
380
428
|
'comment': 'Record create time.'
|
381
429
|
},
|
382
430
|
{
|
383
|
-
'name': '
|
431
|
+
'name': 'update_time',
|
384
432
|
'type': 'datetime',
|
385
|
-
'constraint': '
|
386
|
-
'comment': '
|
433
|
+
'constraint': 'DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP',
|
434
|
+
'comment': 'Record update time.'
|
387
435
|
},
|
388
436
|
{
|
389
437
|
'name': 'plan_time',
|
@@ -446,10 +494,16 @@ class WeChatDatabase(WeChatBase):
|
|
446
494
|
'primary': 'send_id',
|
447
495
|
'indexes': [
|
448
496
|
{
|
449
|
-
'name': '
|
450
|
-
'fields': '
|
497
|
+
'name': 'n_create_time',
|
498
|
+
'fields': 'create_time',
|
499
|
+
'type': 'noraml',
|
500
|
+
'comment': 'Record create time normal index.'
|
501
|
+
},
|
502
|
+
{
|
503
|
+
'name': 'n_update_time',
|
504
|
+
'fields': 'update_time',
|
451
505
|
'type': 'noraml',
|
452
|
-
'comment': '
|
506
|
+
'comment': 'Record update time normal index.'
|
453
507
|
},
|
454
508
|
{
|
455
509
|
'name': 'n_receive_id',
|
@@ -657,7 +711,7 @@ class WeChatDatabase(WeChatBase):
|
|
657
711
|
{
|
658
712
|
'name': 'send_last_time',
|
659
713
|
'select': (
|
660
|
-
'SELECT MAX(`
|
714
|
+
'SELECT MAX(`update_time`)\n'
|
661
715
|
f'FROM `{self.db_names['wechat']}`.`{self.db_names['wechat.message_send']}`\n'
|
662
716
|
'WHERE `status` = 2'
|
663
717
|
),
|
@@ -3,14 +3,14 @@ reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
|
|
3
3
|
reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
|
4
4
|
reywechat/rcache.py,sha256=7UsHHfgFOgxuSqlTSAO6CprgUUOeBCXYus0kxmRBQxk,908
|
5
5
|
reywechat/rclient.py,sha256=lc1CPle9h08mwP8NlJN0ybzcNJxtpV0ma6q6cz1RIxk,22518
|
6
|
-
reywechat/rdb.py,sha256=
|
6
|
+
reywechat/rdb.py,sha256=R3ZySPsLM5g0hChFBMxtG9MRZCZ433aMYa_LuggKK90,51010
|
7
7
|
reywechat/rlog.py,sha256=TSA-_5pwlq0sUND2cnLDqXvdmAdMAkC7tXIz3WfJ7Xw,5259
|
8
8
|
reywechat/rreceive.py,sha256=74Re0rrNXPJ2idTUP69eK0wT93pGEN1c39pzyzctHa8,51236
|
9
9
|
reywechat/rsend.py,sha256=BB42r24x37V1tb27HLhnB_2tILv-DW26F9QbhqiNes8,20101
|
10
10
|
reywechat/rtrigger.py,sha256=WdOQwobPdGPyyE9J-qtQFPd60713T0aWqKk02PLdCRE,4966
|
11
11
|
reywechat/rwechat.py,sha256=g0pbprMPv_qWb_lGFrPDAWsJO4vPSIgFLkw0Y28CZUo,4751
|
12
12
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
13
|
-
reywechat-1.0.
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
13
|
+
reywechat-1.0.66.dist-info/METADATA,sha256=D_DWm78CCtIJnNEeWQXl8Zs4uQCpi4dLP67p_O_OiSQ,1551
|
14
|
+
reywechat-1.0.66.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
reywechat-1.0.66.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
+
reywechat-1.0.66.dist-info/RECORD,,
|
File without changes
|
File without changes
|