w-orm-mongodb 1.1.27 → 1.1.28
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.
- package/.eslintrc.js +17 -17
- package/babel.config.js +1 -0
- package/dist/w-orm-mongodb.umd.js +2 -2
- package/dist/w-orm-mongodb.umd.js.map +1 -1
- package/docs/WOrmMongodb.html +110 -99
- package/docs/WOrmMongodb.mjs.html +495 -403
- package/docs/index.html +4 -1
- package/docs/scripts/collapse.js +19 -0
- package/docs/scripts/commonNav.js +28 -0
- package/docs/scripts/search.js +16 -0
- package/docs/styles/jsdoc.css +13 -2
- package/docs/styles/prettify.css +1 -0
- package/g-basic.mjs +5 -1
- package/g-gfs.mjs +12 -1
- package/package.json +4 -4
- package/src/WOrmMongodb.mjs +491 -402
- package/test/basic.test.mjs +400 -0
- package/test/gfs.test.mjs +188 -0
- package/test/all.test.mjs +0 -10
package/docs/WOrmMongodb.html
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
<link type="text/css" rel="stylesheet" href="styles/prettify.css">
|
|
15
15
|
<link type="text/css" rel="stylesheet" href="styles/jsdoc.css">
|
|
16
16
|
<script src="scripts/nav.js" defer></script>
|
|
17
|
+
|
|
17
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
18
19
|
</head>
|
|
19
20
|
<body>
|
|
@@ -27,7 +28,9 @@
|
|
|
27
28
|
|
|
28
29
|
<nav >
|
|
29
30
|
|
|
31
|
+
|
|
30
32
|
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WOrmMongodb.html">WOrmMongodb</a><ul class='methods'><li data-type='method'><a href="WOrmMongodb.html#.del">del</a></li><li data-type='method'><a href="WOrmMongodb.html#.delAll">delAll</a></li><li data-type='method'><a href="WOrmMongodb.html#.delAllGfs">delAllGfs</a></li><li data-type='method'><a href="WOrmMongodb.html#.delGfs">delGfs</a></li><li data-type='method'><a href="WOrmMongodb.html#.insert">insert</a></li><li data-type='method'><a href="WOrmMongodb.html#.insertGfs">insertGfs</a></li><li data-type='method'><a href="WOrmMongodb.html#.save">save</a></li><li data-type='method'><a href="WOrmMongodb.html#.select">select</a></li><li data-type='method'><a href="WOrmMongodb.html#.selectGfs">selectGfs</a></li></ul></li></ul>
|
|
33
|
+
|
|
31
34
|
</nav>
|
|
32
35
|
|
|
33
36
|
<div id="main">
|
|
@@ -45,7 +48,9 @@
|
|
|
45
48
|
<header>
|
|
46
49
|
|
|
47
50
|
<h2>
|
|
48
|
-
|
|
51
|
+
|
|
52
|
+
WOrmMongodb
|
|
53
|
+
|
|
49
54
|
</h2>
|
|
50
55
|
|
|
51
56
|
|
|
@@ -67,6 +72,10 @@
|
|
|
67
72
|
|
|
68
73
|
|
|
69
74
|
<dl class="details">
|
|
75
|
+
|
|
76
|
+
<dt class="tag-description">Description:</dt>
|
|
77
|
+
<dd class="tag-description"><ul class="dummy"><li><p>操作資料庫(MongoDB)</p></li></ul></dd>
|
|
78
|
+
|
|
70
79
|
|
|
71
80
|
|
|
72
81
|
<dt class="tag-source">Source:</dt>
|
|
@@ -110,12 +119,6 @@
|
|
|
110
119
|
|
|
111
120
|
|
|
112
121
|
|
|
113
|
-
<div class="description usertext">
|
|
114
|
-
<p>操作資料庫(MongoDB)</p>
|
|
115
|
-
</div>
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
122
|
|
|
120
123
|
|
|
121
124
|
|
|
@@ -124,7 +127,7 @@
|
|
|
124
127
|
|
|
125
128
|
|
|
126
129
|
|
|
127
|
-
<h5>Parameters:</h5>
|
|
130
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
128
131
|
|
|
129
132
|
|
|
130
133
|
<table class="params">
|
|
@@ -162,6 +165,7 @@
|
|
|
162
165
|
<span class="param-type">Object</span>
|
|
163
166
|
|
|
164
167
|
|
|
168
|
+
|
|
165
169
|
|
|
166
170
|
</td>
|
|
167
171
|
|
|
@@ -224,6 +228,7 @@
|
|
|
224
228
|
<span class="param-type">String</span>
|
|
225
229
|
|
|
226
230
|
|
|
231
|
+
|
|
227
232
|
|
|
228
233
|
</td>
|
|
229
234
|
|
|
@@ -263,6 +268,7 @@
|
|
|
263
268
|
<span class="param-type">String</span>
|
|
264
269
|
|
|
265
270
|
|
|
271
|
+
|
|
266
272
|
|
|
267
273
|
</td>
|
|
268
274
|
|
|
@@ -302,6 +308,7 @@
|
|
|
302
308
|
<span class="param-type">String</span>
|
|
303
309
|
|
|
304
310
|
|
|
311
|
+
|
|
305
312
|
|
|
306
313
|
</td>
|
|
307
314
|
|
|
@@ -354,7 +361,7 @@
|
|
|
354
361
|
|
|
355
362
|
|
|
356
363
|
|
|
357
|
-
<h5>Returns:</h5>
|
|
364
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
358
365
|
|
|
359
366
|
|
|
360
367
|
<div class="param-desc">
|
|
@@ -372,6 +379,7 @@
|
|
|
372
379
|
<span class="param-type">Object</span>
|
|
373
380
|
|
|
374
381
|
|
|
382
|
+
|
|
375
383
|
</dd>
|
|
376
384
|
</dl>
|
|
377
385
|
|
|
@@ -405,7 +413,7 @@
|
|
|
405
413
|
|
|
406
414
|
|
|
407
415
|
|
|
408
|
-
<h4 class="name" id=".del"><span class="type-signature">(async, static) </span>del<span class="signature">(data)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
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"> → {Promise}</span></h4>
|
|
409
417
|
|
|
410
418
|
|
|
411
419
|
|
|
@@ -413,11 +421,15 @@
|
|
|
413
421
|
|
|
414
422
|
|
|
415
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
|
+
|
|
416
428
|
|
|
417
429
|
|
|
418
430
|
<dt class="tag-source">Source:</dt>
|
|
419
431
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
420
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
432
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line306">line 306</a>
|
|
421
433
|
</li></ul></dd>
|
|
422
434
|
|
|
423
435
|
|
|
@@ -456,11 +468,6 @@
|
|
|
456
468
|
|
|
457
469
|
|
|
458
470
|
|
|
459
|
-
<div class="description usertext">
|
|
460
|
-
<p>刪除數據</p>
|
|
461
|
-
</div>
|
|
462
|
-
|
|
463
|
-
|
|
464
471
|
|
|
465
472
|
|
|
466
473
|
|
|
@@ -469,8 +476,7 @@
|
|
|
469
476
|
|
|
470
477
|
|
|
471
478
|
|
|
472
|
-
|
|
473
|
-
<h5>Parameters:</h5>
|
|
479
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
474
480
|
|
|
475
481
|
|
|
476
482
|
<table class="params">
|
|
@@ -507,6 +513,7 @@
|
|
|
507
513
|
<span class="param-type">Array</span>
|
|
508
514
|
|
|
509
515
|
|
|
516
|
+
|
|
510
517
|
|
|
511
518
|
</td>
|
|
512
519
|
|
|
@@ -536,7 +543,7 @@
|
|
|
536
543
|
|
|
537
544
|
|
|
538
545
|
|
|
539
|
-
<h5>Returns:</h5>
|
|
546
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
540
547
|
|
|
541
548
|
|
|
542
549
|
<div class="param-desc">
|
|
@@ -554,6 +561,7 @@
|
|
|
554
561
|
<span class="param-type">Promise</span>
|
|
555
562
|
|
|
556
563
|
|
|
564
|
+
|
|
557
565
|
</dd>
|
|
558
566
|
</dl>
|
|
559
567
|
|
|
@@ -566,7 +574,7 @@
|
|
|
566
574
|
|
|
567
575
|
|
|
568
576
|
|
|
569
|
-
<h4 class="name" id=".delAll"><span class="type-signature">(async, static) </span>delAll<span class="signature">(find<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
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"> → {Promise}</span></h4>
|
|
570
578
|
|
|
571
579
|
|
|
572
580
|
|
|
@@ -574,11 +582,15 @@
|
|
|
574
582
|
|
|
575
583
|
|
|
576
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
|
+
|
|
577
589
|
|
|
578
590
|
|
|
579
591
|
<dt class="tag-source">Source:</dt>
|
|
580
592
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
581
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
593
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line374">line 374</a>
|
|
582
594
|
</li></ul></dd>
|
|
583
595
|
|
|
584
596
|
|
|
@@ -617,12 +629,6 @@
|
|
|
617
629
|
|
|
618
630
|
|
|
619
631
|
|
|
620
|
-
<div class="description usertext">
|
|
621
|
-
<p>刪除全部數據,需與del分開,避免未傳數據導致直接刪除全表</p>
|
|
622
|
-
</div>
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
632
|
|
|
627
633
|
|
|
628
634
|
|
|
@@ -631,7 +637,7 @@
|
|
|
631
637
|
|
|
632
638
|
|
|
633
639
|
|
|
634
|
-
<h5>Parameters:</h5>
|
|
640
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
635
641
|
|
|
636
642
|
|
|
637
643
|
<table class="params">
|
|
@@ -669,6 +675,7 @@
|
|
|
669
675
|
<span class="param-type">Object</span>
|
|
670
676
|
|
|
671
677
|
|
|
678
|
+
|
|
672
679
|
|
|
673
680
|
</td>
|
|
674
681
|
|
|
@@ -714,7 +721,7 @@
|
|
|
714
721
|
|
|
715
722
|
|
|
716
723
|
|
|
717
|
-
<h5>Returns:</h5>
|
|
724
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
718
725
|
|
|
719
726
|
|
|
720
727
|
<div class="param-desc">
|
|
@@ -732,6 +739,7 @@
|
|
|
732
739
|
<span class="param-type">Promise</span>
|
|
733
740
|
|
|
734
741
|
|
|
742
|
+
|
|
735
743
|
</dd>
|
|
736
744
|
</dl>
|
|
737
745
|
|
|
@@ -744,7 +752,7 @@
|
|
|
744
752
|
|
|
745
753
|
|
|
746
754
|
|
|
747
|
-
<h4 class="name" id=".delAllGfs"><span class="type-signature">(async, static) </span>delAllGfs<span class="signature">(find<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
755
|
+
<h4 class="name" id=".delAllGfs"><span class="type-signature type-signature-async, static">(async, static) </span>delAllGfs<span class="signature">(find<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
748
756
|
|
|
749
757
|
|
|
750
758
|
|
|
@@ -752,11 +760,15 @@
|
|
|
752
760
|
|
|
753
761
|
|
|
754
762
|
<dl class="details">
|
|
763
|
+
|
|
764
|
+
<dt class="tag-description">Description:</dt>
|
|
765
|
+
<dd class="tag-description"><ul class="dummy"><li><p>使用GridFS,刪除全部數據,需與del分開,避免未傳數據導致直接刪除全表</p></li></ul></dd>
|
|
766
|
+
|
|
755
767
|
|
|
756
768
|
|
|
757
769
|
<dt class="tag-source">Source:</dt>
|
|
758
770
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
759
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
771
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line728">line 728</a>
|
|
760
772
|
</li></ul></dd>
|
|
761
773
|
|
|
762
774
|
|
|
@@ -795,9 +807,6 @@
|
|
|
795
807
|
|
|
796
808
|
|
|
797
809
|
|
|
798
|
-
<div class="description usertext">
|
|
799
|
-
<p>使用GridFS,刪除全部數據,需與del分開,避免未傳數據導致直接刪除全表</p>
|
|
800
|
-
</div>
|
|
801
810
|
|
|
802
811
|
|
|
803
812
|
|
|
@@ -806,10 +815,7 @@
|
|
|
806
815
|
|
|
807
816
|
|
|
808
817
|
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
<h5>Parameters:</h5>
|
|
818
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
813
819
|
|
|
814
820
|
|
|
815
821
|
<table class="params">
|
|
@@ -847,6 +853,7 @@
|
|
|
847
853
|
<span class="param-type">Object</span>
|
|
848
854
|
|
|
849
855
|
|
|
856
|
+
|
|
850
857
|
|
|
851
858
|
</td>
|
|
852
859
|
|
|
@@ -892,7 +899,7 @@
|
|
|
892
899
|
|
|
893
900
|
|
|
894
901
|
|
|
895
|
-
<h5>Returns:</h5>
|
|
902
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
896
903
|
|
|
897
904
|
|
|
898
905
|
<div class="param-desc">
|
|
@@ -910,6 +917,7 @@
|
|
|
910
917
|
<span class="param-type">Promise</span>
|
|
911
918
|
|
|
912
919
|
|
|
920
|
+
|
|
913
921
|
</dd>
|
|
914
922
|
</dl>
|
|
915
923
|
|
|
@@ -922,7 +930,7 @@
|
|
|
922
930
|
|
|
923
931
|
|
|
924
932
|
|
|
925
|
-
<h4 class="name" id=".delGfs"><span class="type-signature">(async, static) </span>delGfs<span class="signature">(id)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
933
|
+
<h4 class="name" id=".delGfs"><span class="type-signature type-signature-async, static">(async, static) </span>delGfs<span class="signature">(id)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
926
934
|
|
|
927
935
|
|
|
928
936
|
|
|
@@ -930,11 +938,15 @@
|
|
|
930
938
|
|
|
931
939
|
|
|
932
940
|
<dl class="details">
|
|
941
|
+
|
|
942
|
+
<dt class="tag-description">Description:</dt>
|
|
943
|
+
<dd class="tag-description"><ul class="dummy"><li><p>使用GridFS,刪除數據</p></li></ul></dd>
|
|
944
|
+
|
|
933
945
|
|
|
934
946
|
|
|
935
947
|
<dt class="tag-source">Source:</dt>
|
|
936
948
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
937
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
949
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line622">line 622</a>
|
|
938
950
|
</li></ul></dd>
|
|
939
951
|
|
|
940
952
|
|
|
@@ -973,12 +985,6 @@
|
|
|
973
985
|
|
|
974
986
|
|
|
975
987
|
|
|
976
|
-
<div class="description usertext">
|
|
977
|
-
<p>使用GridFS,刪除數據</p>
|
|
978
|
-
</div>
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
988
|
|
|
983
989
|
|
|
984
990
|
|
|
@@ -987,7 +993,7 @@
|
|
|
987
993
|
|
|
988
994
|
|
|
989
995
|
|
|
990
|
-
<h5>Parameters:</h5>
|
|
996
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
991
997
|
|
|
992
998
|
|
|
993
999
|
<table class="params">
|
|
@@ -1021,6 +1027,7 @@
|
|
|
1021
1027
|
<span class="param-type">String</span>
|
|
1022
1028
|
|
|
1023
1029
|
|
|
1030
|
+
|
|
1024
1031
|
|
|
1025
1032
|
</td>
|
|
1026
1033
|
|
|
@@ -1050,7 +1057,7 @@
|
|
|
1050
1057
|
|
|
1051
1058
|
|
|
1052
1059
|
|
|
1053
|
-
<h5>Returns:</h5>
|
|
1060
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1054
1061
|
|
|
1055
1062
|
|
|
1056
1063
|
<div class="param-desc">
|
|
@@ -1068,6 +1075,7 @@
|
|
|
1068
1075
|
<span class="param-type">Promise</span>
|
|
1069
1076
|
|
|
1070
1077
|
|
|
1078
|
+
|
|
1071
1079
|
</dd>
|
|
1072
1080
|
</dl>
|
|
1073
1081
|
|
|
@@ -1080,7 +1088,7 @@
|
|
|
1080
1088
|
|
|
1081
1089
|
|
|
1082
1090
|
|
|
1083
|
-
<h4 class="name" id=".insert"><span class="type-signature">(async, static) </span>insert<span class="signature">(data)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1091
|
+
<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"> → {Promise}</span></h4>
|
|
1084
1092
|
|
|
1085
1093
|
|
|
1086
1094
|
|
|
@@ -1088,11 +1096,15 @@
|
|
|
1088
1096
|
|
|
1089
1097
|
|
|
1090
1098
|
<dl class="details">
|
|
1099
|
+
|
|
1100
|
+
<dt class="tag-description">Description:</dt>
|
|
1101
|
+
<dd class="tag-description"><ul class="dummy"><li><p>插入數據,插入同樣數據會自動產生不同_id,故insert前需自行判斷有無重複</p></li></ul></dd>
|
|
1102
|
+
|
|
1091
1103
|
|
|
1092
1104
|
|
|
1093
1105
|
<dt class="tag-source">Source:</dt>
|
|
1094
1106
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1095
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
1107
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line114">line 114</a>
|
|
1096
1108
|
</li></ul></dd>
|
|
1097
1109
|
|
|
1098
1110
|
|
|
@@ -1131,12 +1143,6 @@
|
|
|
1131
1143
|
|
|
1132
1144
|
|
|
1133
1145
|
|
|
1134
|
-
<div class="description usertext">
|
|
1135
|
-
<p>插入數據,插入同樣數據會自動產生不同_id,故insert前需自行判斷有無重複</p>
|
|
1136
|
-
</div>
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
1146
|
|
|
1141
1147
|
|
|
1142
1148
|
|
|
@@ -1145,7 +1151,7 @@
|
|
|
1145
1151
|
|
|
1146
1152
|
|
|
1147
1153
|
|
|
1148
|
-
<h5>Parameters:</h5>
|
|
1154
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1149
1155
|
|
|
1150
1156
|
|
|
1151
1157
|
<table class="params">
|
|
@@ -1182,6 +1188,7 @@
|
|
|
1182
1188
|
<span class="param-type">Array</span>
|
|
1183
1189
|
|
|
1184
1190
|
|
|
1191
|
+
|
|
1185
1192
|
|
|
1186
1193
|
</td>
|
|
1187
1194
|
|
|
@@ -1211,7 +1218,7 @@
|
|
|
1211
1218
|
|
|
1212
1219
|
|
|
1213
1220
|
|
|
1214
|
-
<h5>Returns:</h5>
|
|
1221
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1215
1222
|
|
|
1216
1223
|
|
|
1217
1224
|
<div class="param-desc">
|
|
@@ -1229,6 +1236,7 @@
|
|
|
1229
1236
|
<span class="param-type">Promise</span>
|
|
1230
1237
|
|
|
1231
1238
|
|
|
1239
|
+
|
|
1232
1240
|
</dd>
|
|
1233
1241
|
</dl>
|
|
1234
1242
|
|
|
@@ -1241,7 +1249,7 @@
|
|
|
1241
1249
|
|
|
1242
1250
|
|
|
1243
1251
|
|
|
1244
|
-
<h4 class="name" id=".insertGfs"><span class="type-signature">(async, static) </span>insertGfs<span class="signature">(u8a)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1252
|
+
<h4 class="name" id=".insertGfs"><span class="type-signature type-signature-async, static">(async, static) </span>insertGfs<span class="signature">(u8a)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1245
1253
|
|
|
1246
1254
|
|
|
1247
1255
|
|
|
@@ -1249,11 +1257,15 @@
|
|
|
1249
1257
|
|
|
1250
1258
|
|
|
1251
1259
|
<dl class="details">
|
|
1260
|
+
|
|
1261
|
+
<dt class="tag-description">Description:</dt>
|
|
1262
|
+
<dd class="tag-description"><ul class="dummy"><li><p>使用GridFS,插入數據,需為Uint8Array格式</p></li></ul></dd>
|
|
1263
|
+
|
|
1252
1264
|
|
|
1253
1265
|
|
|
1254
1266
|
<dt class="tag-source">Source:</dt>
|
|
1255
1267
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1256
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
1268
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line425">line 425</a>
|
|
1257
1269
|
</li></ul></dd>
|
|
1258
1270
|
|
|
1259
1271
|
|
|
@@ -1292,11 +1304,6 @@
|
|
|
1292
1304
|
|
|
1293
1305
|
|
|
1294
1306
|
|
|
1295
|
-
<div class="description usertext">
|
|
1296
|
-
<p>使用GridFS,插入數據,需為Uint8Array格式</p>
|
|
1297
|
-
</div>
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
1307
|
|
|
1301
1308
|
|
|
1302
1309
|
|
|
@@ -1305,8 +1312,7 @@
|
|
|
1305
1312
|
|
|
1306
1313
|
|
|
1307
1314
|
|
|
1308
|
-
|
|
1309
|
-
<h5>Parameters:</h5>
|
|
1315
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1310
1316
|
|
|
1311
1317
|
|
|
1312
1318
|
<table class="params">
|
|
@@ -1340,6 +1346,7 @@
|
|
|
1340
1346
|
<span class="param-type">Uint8Array</span>
|
|
1341
1347
|
|
|
1342
1348
|
|
|
1349
|
+
|
|
1343
1350
|
|
|
1344
1351
|
</td>
|
|
1345
1352
|
|
|
@@ -1369,7 +1376,7 @@
|
|
|
1369
1376
|
|
|
1370
1377
|
|
|
1371
1378
|
|
|
1372
|
-
<h5>Returns:</h5>
|
|
1379
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1373
1380
|
|
|
1374
1381
|
|
|
1375
1382
|
<div class="param-desc">
|
|
@@ -1387,6 +1394,7 @@
|
|
|
1387
1394
|
<span class="param-type">Promise</span>
|
|
1388
1395
|
|
|
1389
1396
|
|
|
1397
|
+
|
|
1390
1398
|
</dd>
|
|
1391
1399
|
</dl>
|
|
1392
1400
|
|
|
@@ -1399,7 +1407,7 @@
|
|
|
1399
1407
|
|
|
1400
1408
|
|
|
1401
1409
|
|
|
1402
|
-
<h4 class="name" id=".save"><span class="type-signature">(async, static) </span>save<span class="signature">(data, option<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1410
|
+
<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"> → {Promise}</span></h4>
|
|
1403
1411
|
|
|
1404
1412
|
|
|
1405
1413
|
|
|
@@ -1407,11 +1415,15 @@
|
|
|
1407
1415
|
|
|
1408
1416
|
|
|
1409
1417
|
<dl class="details">
|
|
1418
|
+
|
|
1419
|
+
<dt class="tag-description">Description:</dt>
|
|
1420
|
+
<dd class="tag-description"><ul class="dummy"><li><p>儲存數據</p></li></ul></dd>
|
|
1421
|
+
|
|
1410
1422
|
|
|
1411
1423
|
|
|
1412
1424
|
<dt class="tag-source">Source:</dt>
|
|
1413
1425
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1414
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
1426
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line196">line 196</a>
|
|
1415
1427
|
</li></ul></dd>
|
|
1416
1428
|
|
|
1417
1429
|
|
|
@@ -1450,11 +1462,6 @@
|
|
|
1450
1462
|
|
|
1451
1463
|
|
|
1452
1464
|
|
|
1453
|
-
<div class="description usertext">
|
|
1454
|
-
<p>儲存數據</p>
|
|
1455
|
-
</div>
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
1465
|
|
|
1459
1466
|
|
|
1460
1467
|
|
|
@@ -1463,8 +1470,7 @@
|
|
|
1463
1470
|
|
|
1464
1471
|
|
|
1465
1472
|
|
|
1466
|
-
|
|
1467
|
-
<h5>Parameters:</h5>
|
|
1473
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1468
1474
|
|
|
1469
1475
|
|
|
1470
1476
|
<table class="params">
|
|
@@ -1505,6 +1511,7 @@
|
|
|
1505
1511
|
<span class="param-type">Array</span>
|
|
1506
1512
|
|
|
1507
1513
|
|
|
1514
|
+
|
|
1508
1515
|
|
|
1509
1516
|
</td>
|
|
1510
1517
|
|
|
@@ -1540,6 +1547,7 @@
|
|
|
1540
1547
|
<span class="param-type">Object</span>
|
|
1541
1548
|
|
|
1542
1549
|
|
|
1550
|
+
|
|
1543
1551
|
|
|
1544
1552
|
</td>
|
|
1545
1553
|
|
|
@@ -1602,6 +1610,7 @@
|
|
|
1602
1610
|
<span class="param-type">boolean</span>
|
|
1603
1611
|
|
|
1604
1612
|
|
|
1613
|
+
|
|
1605
1614
|
|
|
1606
1615
|
</td>
|
|
1607
1616
|
|
|
@@ -1641,6 +1650,7 @@
|
|
|
1641
1650
|
<span class="param-type">boolean</span>
|
|
1642
1651
|
|
|
1643
1652
|
|
|
1653
|
+
|
|
1644
1654
|
|
|
1645
1655
|
</td>
|
|
1646
1656
|
|
|
@@ -1693,7 +1703,7 @@
|
|
|
1693
1703
|
|
|
1694
1704
|
|
|
1695
1705
|
|
|
1696
|
-
<h5>Returns:</h5>
|
|
1706
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1697
1707
|
|
|
1698
1708
|
|
|
1699
1709
|
<div class="param-desc">
|
|
@@ -1711,6 +1721,7 @@
|
|
|
1711
1721
|
<span class="param-type">Promise</span>
|
|
1712
1722
|
|
|
1713
1723
|
|
|
1724
|
+
|
|
1714
1725
|
</dd>
|
|
1715
1726
|
</dl>
|
|
1716
1727
|
|
|
@@ -1723,7 +1734,7 @@
|
|
|
1723
1734
|
|
|
1724
1735
|
|
|
1725
1736
|
|
|
1726
|
-
<h4 class="name" id=".select"><span class="type-signature">(async, static) </span>select<span class="signature">(find<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1737
|
+
<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"> → {Promise}</span></h4>
|
|
1727
1738
|
|
|
1728
1739
|
|
|
1729
1740
|
|
|
@@ -1731,6 +1742,10 @@
|
|
|
1731
1742
|
|
|
1732
1743
|
|
|
1733
1744
|
<dl class="details">
|
|
1745
|
+
|
|
1746
|
+
<dt class="tag-description">Description:</dt>
|
|
1747
|
+
<dd class="tag-description"><ul class="dummy"><li><p>查詢數據</p></li></ul></dd>
|
|
1748
|
+
|
|
1734
1749
|
|
|
1735
1750
|
|
|
1736
1751
|
<dt class="tag-source">Source:</dt>
|
|
@@ -1774,12 +1789,6 @@
|
|
|
1774
1789
|
|
|
1775
1790
|
|
|
1776
1791
|
|
|
1777
|
-
<div class="description usertext">
|
|
1778
|
-
<p>查詢數據</p>
|
|
1779
|
-
</div>
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
1792
|
|
|
1784
1793
|
|
|
1785
1794
|
|
|
@@ -1788,7 +1797,7 @@
|
|
|
1788
1797
|
|
|
1789
1798
|
|
|
1790
1799
|
|
|
1791
|
-
<h5>Parameters:</h5>
|
|
1800
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1792
1801
|
|
|
1793
1802
|
|
|
1794
1803
|
<table class="params">
|
|
@@ -1826,6 +1835,7 @@
|
|
|
1826
1835
|
<span class="param-type">Object</span>
|
|
1827
1836
|
|
|
1828
1837
|
|
|
1838
|
+
|
|
1829
1839
|
|
|
1830
1840
|
</td>
|
|
1831
1841
|
|
|
@@ -1871,7 +1881,7 @@
|
|
|
1871
1881
|
|
|
1872
1882
|
|
|
1873
1883
|
|
|
1874
|
-
<h5>Returns:</h5>
|
|
1884
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
1875
1885
|
|
|
1876
1886
|
|
|
1877
1887
|
<div class="param-desc">
|
|
@@ -1889,6 +1899,7 @@
|
|
|
1889
1899
|
<span class="param-type">Promise</span>
|
|
1890
1900
|
|
|
1891
1901
|
|
|
1902
|
+
|
|
1892
1903
|
</dd>
|
|
1893
1904
|
</dl>
|
|
1894
1905
|
|
|
@@ -1901,7 +1912,7 @@
|
|
|
1901
1912
|
|
|
1902
1913
|
|
|
1903
1914
|
|
|
1904
|
-
<h4 class="name" id=".selectGfs"><span class="type-signature">(async, static) </span>selectGfs<span class="signature">(id)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1915
|
+
<h4 class="name" id=".selectGfs"><span class="type-signature type-signature-async, static">(async, static) </span>selectGfs<span class="signature">(id)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
1905
1916
|
|
|
1906
1917
|
|
|
1907
1918
|
|
|
@@ -1909,11 +1920,15 @@
|
|
|
1909
1920
|
|
|
1910
1921
|
|
|
1911
1922
|
<dl class="details">
|
|
1923
|
+
|
|
1924
|
+
<dt class="tag-description">Description:</dt>
|
|
1925
|
+
<dd class="tag-description"><ul class="dummy"><li><p>使用GridFS,查詢數據</p></li></ul></dd>
|
|
1926
|
+
|
|
1912
1927
|
|
|
1913
1928
|
|
|
1914
1929
|
<dt class="tag-source">Source:</dt>
|
|
1915
1930
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1916
|
-
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#
|
|
1931
|
+
<a href="WOrmMongodb.mjs.html">WOrmMongodb.mjs</a>, <a href="WOrmMongodb.mjs.html#line511">line 511</a>
|
|
1917
1932
|
</li></ul></dd>
|
|
1918
1933
|
|
|
1919
1934
|
|
|
@@ -1952,9 +1967,6 @@
|
|
|
1952
1967
|
|
|
1953
1968
|
|
|
1954
1969
|
|
|
1955
|
-
<div class="description usertext">
|
|
1956
|
-
<p>使用GridFS,查詢數據</p>
|
|
1957
|
-
</div>
|
|
1958
1970
|
|
|
1959
1971
|
|
|
1960
1972
|
|
|
@@ -1963,10 +1975,7 @@
|
|
|
1963
1975
|
|
|
1964
1976
|
|
|
1965
1977
|
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
<h5>Parameters:</h5>
|
|
1978
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
1970
1979
|
|
|
1971
1980
|
|
|
1972
1981
|
<table class="params">
|
|
@@ -2000,6 +2009,7 @@
|
|
|
2000
2009
|
<span class="param-type">String</span>
|
|
2001
2010
|
|
|
2002
2011
|
|
|
2012
|
+
|
|
2003
2013
|
|
|
2004
2014
|
</td>
|
|
2005
2015
|
|
|
@@ -2029,7 +2039,7 @@
|
|
|
2029
2039
|
|
|
2030
2040
|
|
|
2031
2041
|
|
|
2032
|
-
<h5>Returns:</h5>
|
|
2042
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
2033
2043
|
|
|
2034
2044
|
|
|
2035
2045
|
<div class="param-desc">
|
|
@@ -2047,6 +2057,7 @@
|
|
|
2047
2057
|
<span class="param-type">Promise</span>
|
|
2048
2058
|
|
|
2049
2059
|
|
|
2060
|
+
|
|
2050
2061
|
</dd>
|
|
2051
2062
|
</dl>
|
|
2052
2063
|
|
|
@@ -2074,7 +2085,7 @@
|
|
|
2074
2085
|
<br class="clear">
|
|
2075
2086
|
|
|
2076
2087
|
<footer>
|
|
2077
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc
|
|
2088
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Thu Mar 30 2023 11:53:34 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
2078
2089
|
</footer>
|
|
2079
2090
|
|
|
2080
2091
|
<script>prettyPrint();</script>
|