w-orm-lmdb 1.0.1

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.
Files changed (51) hide show
  1. package/.editorconfig +9 -0
  2. package/.eslintignore +3 -0
  3. package/.eslintrc.js +55 -0
  4. package/.jsdoc +25 -0
  5. package/LICENSE +21 -0
  6. package/README.md +187 -0
  7. package/SECURITY.md +5 -0
  8. package/babel.config.js +15 -0
  9. package/dist/w-orm-lmdb.umd.js +7 -0
  10. package/dist/w-orm-lmdb.umd.js.map +1 -0
  11. package/docs/WOrmLmdb.html +1406 -0
  12. package/docs/WOrmLmdb.mjs.html +633 -0
  13. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  14. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  15. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  16. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  17. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  18. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  19. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  20. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  21. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  22. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  23. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  24. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  25. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  26. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  27. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  28. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  29. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  30. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  31. package/docs/index.html +84 -0
  32. package/docs/scripts/collapse.js +39 -0
  33. package/docs/scripts/commonNav.js +28 -0
  34. package/docs/scripts/linenumber.js +25 -0
  35. package/docs/scripts/nav.js +12 -0
  36. package/docs/scripts/polyfill.js +4 -0
  37. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  38. package/docs/scripts/prettify/lang-css.js +2 -0
  39. package/docs/scripts/prettify/prettify.js +28 -0
  40. package/docs/scripts/search.js +99 -0
  41. package/docs/styles/jsdoc.css +776 -0
  42. package/docs/styles/prettify.css +80 -0
  43. package/g-basic.mjs +169 -0
  44. package/package.json +32 -0
  45. package/script.txt +18 -0
  46. package/src/WOrmLmdb.mjs +561 -0
  47. package/test/basic.test.mjs +395 -0
  48. package/toolg/addVersion.mjs +4 -0
  49. package/toolg/cleanFolder.mjs +4 -0
  50. package/toolg/gDistRollup.mjs +23 -0
  51. package/toolg/modifyReadme.mjs +4 -0
@@ -0,0 +1,1406 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>WOrmLmdb - Documentation</title>
7
+
8
+
9
+ <script src="scripts/prettify/prettify.js"></script>
10
+ <script src="scripts/prettify/lang-css.js"></script>
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ <link type="text/css" rel="stylesheet" href="styles/prettify.css">
15
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
16
+ <script src="scripts/nav.js" defer></script>
17
+
18
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
19
+ </head>
20
+ <body>
21
+
22
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
23
+ <label for="nav-trigger" class="navicon-button x">
24
+ <div class="navicon"></div>
25
+ </label>
26
+
27
+ <label for="nav-trigger" class="overlay"></label>
28
+
29
+ <nav >
30
+
31
+
32
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WOrmLmdb.html">WOrmLmdb</a><ul class='methods'><li data-type='method'><a href="WOrmLmdb.html#.del">del</a></li><li data-type='method'><a href="WOrmLmdb.html#.delAll">delAll</a></li><li data-type='method'><a href="WOrmLmdb.html#.insert">insert</a></li><li data-type='method'><a href="WOrmLmdb.html#.save">save</a></li><li data-type='method'><a href="WOrmLmdb.html#.select">select</a></li></ul></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">WOrmLmdb</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+ WOrmLmdb
53
+
54
+ </h2>
55
+
56
+
57
+ </header>
58
+
59
+ <article>
60
+
61
+ <div class="container-overview">
62
+
63
+
64
+
65
+
66
+
67
+ <h4 class="name" id="WOrmLmdb"><span class="type-signature"></span>new WOrmLmdb<span class="signature">(opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Object}</span></h4>
68
+
69
+
70
+
71
+
72
+
73
+
74
+ <dl class="details">
75
+
76
+ <dt class="tag-description">Description:</dt>
77
+ <dd class="tag-description"><ul class="dummy"><li><p>操作資料庫(LMDB)</p></li></ul></dd>
78
+
79
+
80
+
81
+ <dt class="tag-source">Source:</dt>
82
+ <dd class="tag-source"><ul class="dummy"><li>
83
+ <a href="WOrmLmdb.mjs.html">WOrmLmdb.mjs</a>, <a href="WOrmLmdb.mjs.html#line31">line 31</a>
84
+ </li></ul></dd>
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+ </dl>
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+ <h5 class="h5-parameters">Parameters:</h5>
131
+
132
+
133
+ <table class="params">
134
+ <thead>
135
+ <tr>
136
+
137
+ <th>Name</th>
138
+
139
+
140
+ <th>Type</th>
141
+
142
+
143
+ <th>Attributes</th>
144
+
145
+
146
+
147
+ <th>Default</th>
148
+
149
+
150
+ <th class="last">Description</th>
151
+ </tr>
152
+ </thead>
153
+
154
+ <tbody>
155
+
156
+
157
+ <tr>
158
+
159
+ <td class="name"><code>opt</code></td>
160
+
161
+
162
+ <td class="type">
163
+
164
+
165
+ <span class="param-type">Object</span>
166
+
167
+
168
+
169
+
170
+ </td>
171
+
172
+
173
+ <td class="attributes">
174
+
175
+ &lt;optional><br>
176
+
177
+
178
+
179
+
180
+
181
+ </td>
182
+
183
+
184
+
185
+ <td class="default">
186
+
187
+ <code>{}</code>
188
+
189
+ </td>
190
+
191
+
192
+ <td class="description last"><p>輸入設定物件,預設{}</p>
193
+ <h6>Properties</h6>
194
+
195
+
196
+ <table class="params">
197
+ <thead>
198
+ <tr>
199
+
200
+ <th>Name</th>
201
+
202
+
203
+ <th>Type</th>
204
+
205
+
206
+ <th>Attributes</th>
207
+
208
+
209
+
210
+ <th>Default</th>
211
+
212
+
213
+ <th class="last">Description</th>
214
+ </tr>
215
+ </thead>
216
+
217
+ <tbody>
218
+
219
+
220
+ <tr>
221
+
222
+ <td class="name"><code>url</code></td>
223
+
224
+
225
+ <td class="type">
226
+
227
+
228
+ <span class="param-type">String</span>
229
+
230
+
231
+
232
+
233
+ </td>
234
+
235
+
236
+ <td class="attributes">
237
+
238
+ &lt;optional><br>
239
+
240
+
241
+
242
+
243
+
244
+ </td>
245
+
246
+
247
+
248
+ <td class="default">
249
+
250
+ <code>'_db'</code>
251
+
252
+ </td>
253
+
254
+
255
+ <td class="description last"><p>輸入資料庫用資料夾字串,預設'_db'</p></td>
256
+ </tr>
257
+
258
+
259
+
260
+ <tr>
261
+
262
+ <td class="name"><code>db</code></td>
263
+
264
+
265
+ <td class="type">
266
+
267
+
268
+ <span class="param-type">String</span>
269
+
270
+
271
+
272
+
273
+ </td>
274
+
275
+
276
+ <td class="attributes">
277
+
278
+ &lt;optional><br>
279
+
280
+
281
+
282
+
283
+
284
+ </td>
285
+
286
+
287
+
288
+ <td class="default">
289
+
290
+ <code>'worm'</code>
291
+
292
+ </td>
293
+
294
+
295
+ <td class="description last"><p>輸入使用資料庫名稱字串,預設'worm'</p></td>
296
+ </tr>
297
+
298
+
299
+
300
+ <tr>
301
+
302
+ <td class="name"><code>cl</code></td>
303
+
304
+
305
+ <td class="type">
306
+
307
+
308
+ <span class="param-type">String</span>
309
+
310
+
311
+
312
+
313
+ </td>
314
+
315
+
316
+ <td class="attributes">
317
+
318
+ &lt;optional><br>
319
+
320
+
321
+
322
+
323
+
324
+ </td>
325
+
326
+
327
+
328
+ <td class="default">
329
+
330
+ <code>'test'</code>
331
+
332
+ </td>
333
+
334
+
335
+ <td class="description last"><p>輸入使用資料表名稱字串,預設'test'</p></td>
336
+ </tr>
337
+
338
+
339
+ </tbody>
340
+ </table>
341
+
342
+ </td>
343
+ </tr>
344
+
345
+
346
+ </tbody>
347
+ </table>
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+ <h5 class="h5-returns">Returns:</h5>
365
+
366
+
367
+ <div class="param-desc">
368
+ <p>回傳操作資料庫物件,各事件功能詳見說明</p>
369
+ </div>
370
+
371
+
372
+
373
+ <dl class="param-type">
374
+ <dt>
375
+ Type
376
+ </dt>
377
+ <dd>
378
+
379
+ <span class="param-type">Object</span>
380
+
381
+
382
+
383
+ </dd>
384
+ </dl>
385
+
386
+
387
+
388
+
389
+
390
+
391
+ </div>
392
+
393
+
394
+
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+ <h3 class="subsection-title">Methods</h3>
410
+
411
+
412
+
413
+
414
+
415
+
416
+ <h4 class="name" id=".del"><span class="type-signature type-signature-async, static">(async, static) </span>del<span class="signature">(data)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
417
+
418
+
419
+
420
+
421
+
422
+
423
+ <dl class="details">
424
+
425
+ <dt class="tag-description">Description:</dt>
426
+ <dd class="tag-description"><ul class="dummy"><li><p>刪除數據</p></li></ul></dd>
427
+
428
+
429
+
430
+ <dt class="tag-source">Source:</dt>
431
+ <dd class="tag-source"><ul class="dummy"><li>
432
+ <a href="WOrmLmdb.mjs.html">WOrmLmdb.mjs</a>, <a href="WOrmLmdb.mjs.html#line358">line 358</a>
433
+ </li></ul></dd>
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+ </dl>
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <h5 class="h5-parameters">Parameters:</h5>
480
+
481
+
482
+ <table class="params">
483
+ <thead>
484
+ <tr>
485
+
486
+ <th>Name</th>
487
+
488
+
489
+ <th>Type</th>
490
+
491
+
492
+
493
+
494
+
495
+ <th class="last">Description</th>
496
+ </tr>
497
+ </thead>
498
+
499
+ <tbody>
500
+
501
+
502
+ <tr>
503
+
504
+ <td class="name"><code>data</code></td>
505
+
506
+
507
+ <td class="type">
508
+
509
+
510
+ <span class="param-type">Object</span>
511
+ |
512
+
513
+ <span class="param-type">Array</span>
514
+
515
+
516
+
517
+
518
+ </td>
519
+
520
+
521
+
522
+
523
+
524
+ <td class="description last"><p>輸入數據物件或陣列</p></td>
525
+ </tr>
526
+
527
+
528
+ </tbody>
529
+ </table>
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+
541
+
542
+
543
+
544
+
545
+
546
+ <h5 class="h5-returns">Returns:</h5>
547
+
548
+
549
+ <div class="param-desc">
550
+ <p>回傳Promise,resolve回傳刪除結果,reject回傳錯誤訊息</p>
551
+ </div>
552
+
553
+
554
+
555
+ <dl class="param-type">
556
+ <dt>
557
+ Type
558
+ </dt>
559
+ <dd>
560
+
561
+ <span class="param-type">Promise</span>
562
+
563
+
564
+
565
+ </dd>
566
+ </dl>
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+ <h4 class="name" id=".delAll"><span class="type-signature type-signature-async, static">(async, static) </span>delAll<span class="signature">(find<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
578
+
579
+
580
+
581
+
582
+
583
+
584
+ <dl class="details">
585
+
586
+ <dt class="tag-description">Description:</dt>
587
+ <dd class="tag-description"><ul class="dummy"><li><p>刪除全部數據,需與del分開,避免未傳數據導致直接刪除全表</p></li></ul></dd>
588
+
589
+
590
+
591
+ <dt class="tag-source">Source:</dt>
592
+ <dd class="tag-source"><ul class="dummy"><li>
593
+ <a href="WOrmLmdb.mjs.html">WOrmLmdb.mjs</a>, <a href="WOrmLmdb.mjs.html#line458">line 458</a>
594
+ </li></ul></dd>
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+ </dl>
627
+
628
+
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+ <h5 class="h5-parameters">Parameters:</h5>
641
+
642
+
643
+ <table class="params">
644
+ <thead>
645
+ <tr>
646
+
647
+ <th>Name</th>
648
+
649
+
650
+ <th>Type</th>
651
+
652
+
653
+ <th>Attributes</th>
654
+
655
+
656
+
657
+ <th>Default</th>
658
+
659
+
660
+ <th class="last">Description</th>
661
+ </tr>
662
+ </thead>
663
+
664
+ <tbody>
665
+
666
+
667
+ <tr>
668
+
669
+ <td class="name"><code>find</code></td>
670
+
671
+
672
+ <td class="type">
673
+
674
+
675
+ <span class="param-type">Object</span>
676
+
677
+
678
+
679
+
680
+ </td>
681
+
682
+
683
+ <td class="attributes">
684
+
685
+ &lt;optional><br>
686
+
687
+
688
+
689
+
690
+
691
+ </td>
692
+
693
+
694
+
695
+ <td class="default">
696
+
697
+ <code>{}</code>
698
+
699
+ </td>
700
+
701
+
702
+ <td class="description last"><p>輸入刪除條件物件</p></td>
703
+ </tr>
704
+
705
+
706
+ </tbody>
707
+ </table>
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+ <h5 class="h5-returns">Returns:</h5>
725
+
726
+
727
+ <div class="param-desc">
728
+ <p>回傳Promise,resolve回傳刪除結果,reject回傳錯誤訊息</p>
729
+ </div>
730
+
731
+
732
+
733
+ <dl class="param-type">
734
+ <dt>
735
+ Type
736
+ </dt>
737
+ <dd>
738
+
739
+ <span class="param-type">Promise</span>
740
+
741
+
742
+
743
+ </dd>
744
+ </dl>
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+ <h4 class="name" id=".insert"><span class="type-signature type-signature-async, static">(async, static) </span>insert<span class="signature">(data)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
756
+
757
+
758
+
759
+
760
+
761
+
762
+ <dl class="details">
763
+
764
+ <dt class="tag-description">Description:</dt>
765
+ <dd class="tag-description"><ul class="dummy"><li><p>插入數據</p></li></ul></dd>
766
+
767
+
768
+
769
+ <dt class="tag-source">Source:</dt>
770
+ <dd class="tag-source"><ul class="dummy"><li>
771
+ <a href="WOrmLmdb.mjs.html">WOrmLmdb.mjs</a>, <a href="WOrmLmdb.mjs.html#line168">line 168</a>
772
+ </li></ul></dd>
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+ </dl>
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+ <h5 class="h5-parameters">Parameters:</h5>
819
+
820
+
821
+ <table class="params">
822
+ <thead>
823
+ <tr>
824
+
825
+ <th>Name</th>
826
+
827
+
828
+ <th>Type</th>
829
+
830
+
831
+
832
+
833
+
834
+ <th class="last">Description</th>
835
+ </tr>
836
+ </thead>
837
+
838
+ <tbody>
839
+
840
+
841
+ <tr>
842
+
843
+ <td class="name"><code>data</code></td>
844
+
845
+
846
+ <td class="type">
847
+
848
+
849
+ <span class="param-type">Object</span>
850
+ |
851
+
852
+ <span class="param-type">Array</span>
853
+
854
+
855
+
856
+
857
+ </td>
858
+
859
+
860
+
861
+
862
+
863
+ <td class="description last"><p>輸入數據物件或陣列</p></td>
864
+ </tr>
865
+
866
+
867
+ </tbody>
868
+ </table>
869
+
870
+
871
+
872
+
873
+
874
+
875
+
876
+
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+ <h5 class="h5-returns">Returns:</h5>
886
+
887
+
888
+ <div class="param-desc">
889
+ <p>回傳Promise,resolve回傳插入結果,reject回傳錯誤訊息</p>
890
+ </div>
891
+
892
+
893
+
894
+ <dl class="param-type">
895
+ <dt>
896
+ Type
897
+ </dt>
898
+ <dd>
899
+
900
+ <span class="param-type">Promise</span>
901
+
902
+
903
+
904
+ </dd>
905
+ </dl>
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+ <h4 class="name" id=".save"><span class="type-signature type-signature-async, static">(async, static) </span>save<span class="signature">(data, option<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
917
+
918
+
919
+
920
+
921
+
922
+
923
+ <dl class="details">
924
+
925
+ <dt class="tag-description">Description:</dt>
926
+ <dd class="tag-description"><ul class="dummy"><li><p>儲存數據</p></li></ul></dd>
927
+
928
+
929
+
930
+ <dt class="tag-source">Source:</dt>
931
+ <dd class="tag-source"><ul class="dummy"><li>
932
+ <a href="WOrmLmdb.mjs.html">WOrmLmdb.mjs</a>, <a href="WOrmLmdb.mjs.html#line256">line 256</a>
933
+ </li></ul></dd>
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+
965
+ </dl>
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+
978
+
979
+ <h5 class="h5-parameters">Parameters:</h5>
980
+
981
+
982
+ <table class="params">
983
+ <thead>
984
+ <tr>
985
+
986
+ <th>Name</th>
987
+
988
+
989
+ <th>Type</th>
990
+
991
+
992
+ <th>Attributes</th>
993
+
994
+
995
+
996
+ <th>Default</th>
997
+
998
+
999
+ <th class="last">Description</th>
1000
+ </tr>
1001
+ </thead>
1002
+
1003
+ <tbody>
1004
+
1005
+
1006
+ <tr>
1007
+
1008
+ <td class="name"><code>data</code></td>
1009
+
1010
+
1011
+ <td class="type">
1012
+
1013
+
1014
+ <span class="param-type">Object</span>
1015
+ |
1016
+
1017
+ <span class="param-type">Array</span>
1018
+
1019
+
1020
+
1021
+
1022
+ </td>
1023
+
1024
+
1025
+ <td class="attributes">
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+ </td>
1032
+
1033
+
1034
+
1035
+ <td class="default">
1036
+
1037
+ </td>
1038
+
1039
+
1040
+ <td class="description last"><p>輸入數據物件或陣列</p></td>
1041
+ </tr>
1042
+
1043
+
1044
+
1045
+ <tr>
1046
+
1047
+ <td class="name"><code>option</code></td>
1048
+
1049
+
1050
+ <td class="type">
1051
+
1052
+
1053
+ <span class="param-type">Object</span>
1054
+
1055
+
1056
+
1057
+
1058
+ </td>
1059
+
1060
+
1061
+ <td class="attributes">
1062
+
1063
+ &lt;optional><br>
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+ </td>
1070
+
1071
+
1072
+
1073
+ <td class="default">
1074
+
1075
+ <code>{}</code>
1076
+
1077
+ </td>
1078
+
1079
+
1080
+ <td class="description last"><p>輸入設定物件,預設為{}</p>
1081
+ <h6>Properties</h6>
1082
+
1083
+
1084
+ <table class="params">
1085
+ <thead>
1086
+ <tr>
1087
+
1088
+ <th>Name</th>
1089
+
1090
+
1091
+ <th>Type</th>
1092
+
1093
+
1094
+ <th>Attributes</th>
1095
+
1096
+
1097
+
1098
+ <th>Default</th>
1099
+
1100
+
1101
+ <th class="last">Description</th>
1102
+ </tr>
1103
+ </thead>
1104
+
1105
+ <tbody>
1106
+
1107
+
1108
+ <tr>
1109
+
1110
+ <td class="name"><code>autoInsert</code></td>
1111
+
1112
+
1113
+ <td class="type">
1114
+
1115
+
1116
+ <span class="param-type">boolean</span>
1117
+
1118
+
1119
+
1120
+
1121
+ </td>
1122
+
1123
+
1124
+ <td class="attributes">
1125
+
1126
+ &lt;optional><br>
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+ </td>
1133
+
1134
+
1135
+
1136
+ <td class="default">
1137
+
1138
+ <code>true</code>
1139
+
1140
+ </td>
1141
+
1142
+
1143
+ <td class="description last"><p>輸入是否於儲存時發現原本無數據,則自動改以插入處理,預設為true</p></td>
1144
+ </tr>
1145
+
1146
+
1147
+ </tbody>
1148
+ </table>
1149
+
1150
+ </td>
1151
+ </tr>
1152
+
1153
+
1154
+ </tbody>
1155
+ </table>
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+ <h5 class="h5-returns">Returns:</h5>
1173
+
1174
+
1175
+ <div class="param-desc">
1176
+ <p>回傳Promise,resolve回傳儲存結果,reject回傳錯誤訊息</p>
1177
+ </div>
1178
+
1179
+
1180
+
1181
+ <dl class="param-type">
1182
+ <dt>
1183
+ Type
1184
+ </dt>
1185
+ <dd>
1186
+
1187
+ <span class="param-type">Promise</span>
1188
+
1189
+
1190
+
1191
+ </dd>
1192
+ </dl>
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+
1203
+ <h4 class="name" id=".select"><span class="type-signature type-signature-async, static">(async, static) </span>select<span class="signature">(find<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+ <dl class="details">
1211
+
1212
+ <dt class="tag-description">Description:</dt>
1213
+ <dd class="tag-description"><ul class="dummy"><li><p>查詢數據</p></li></ul></dd>
1214
+
1215
+
1216
+
1217
+ <dt class="tag-source">Source:</dt>
1218
+ <dd class="tag-source"><ul class="dummy"><li>
1219
+ <a href="WOrmLmdb.mjs.html">WOrmLmdb.mjs</a>, <a href="WOrmLmdb.mjs.html#line114">line 114</a>
1220
+ </li></ul></dd>
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+
1243
+
1244
+
1245
+
1246
+
1247
+
1248
+
1249
+
1250
+
1251
+
1252
+ </dl>
1253
+
1254
+
1255
+
1256
+
1257
+
1258
+
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+
1265
+
1266
+ <h5 class="h5-parameters">Parameters:</h5>
1267
+
1268
+
1269
+ <table class="params">
1270
+ <thead>
1271
+ <tr>
1272
+
1273
+ <th>Name</th>
1274
+
1275
+
1276
+ <th>Type</th>
1277
+
1278
+
1279
+ <th>Attributes</th>
1280
+
1281
+
1282
+
1283
+ <th>Default</th>
1284
+
1285
+
1286
+ <th class="last">Description</th>
1287
+ </tr>
1288
+ </thead>
1289
+
1290
+ <tbody>
1291
+
1292
+
1293
+ <tr>
1294
+
1295
+ <td class="name"><code>find</code></td>
1296
+
1297
+
1298
+ <td class="type">
1299
+
1300
+
1301
+ <span class="param-type">Object</span>
1302
+
1303
+
1304
+
1305
+
1306
+ </td>
1307
+
1308
+
1309
+ <td class="attributes">
1310
+
1311
+ &lt;optional><br>
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+ </td>
1318
+
1319
+
1320
+
1321
+ <td class="default">
1322
+
1323
+ <code>{}</code>
1324
+
1325
+ </td>
1326
+
1327
+
1328
+ <td class="description last"><p>輸入查詢條件物件</p></td>
1329
+ </tr>
1330
+
1331
+
1332
+ </tbody>
1333
+ </table>
1334
+
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+ <h5 class="h5-returns">Returns:</h5>
1351
+
1352
+
1353
+ <div class="param-desc">
1354
+ <p>回傳Promise,resolve回傳數據,reject回傳錯誤訊息</p>
1355
+ </div>
1356
+
1357
+
1358
+
1359
+ <dl class="param-type">
1360
+ <dt>
1361
+ Type
1362
+ </dt>
1363
+ <dd>
1364
+
1365
+ <span class="param-type">Promise</span>
1366
+
1367
+
1368
+
1369
+ </dd>
1370
+ </dl>
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+
1382
+ </article>
1383
+
1384
+ </section>
1385
+
1386
+
1387
+
1388
+
1389
+
1390
+
1391
+ </div>
1392
+
1393
+ <br class="clear">
1394
+
1395
+ <footer>
1396
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Sun May 11 2025 23:16:04 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1397
+ </footer>
1398
+
1399
+ <script>prettyPrint();</script>
1400
+ <script src="scripts/polyfill.js"></script>
1401
+ <script src="scripts/linenumber.js"></script>
1402
+
1403
+
1404
+
1405
+ </body>
1406
+ </html>