w-orm-postgresql 1.0.0

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 +324 -0
  7. package/SECURITY.md +5 -0
  8. package/babel.config.js +15 -0
  9. package/dist/w-orm-postgresql.umd.js +7 -0
  10. package/dist/w-orm-postgresql.umd.js.map +1 -0
  11. package/docs/WOrmPostgresql.html +1655 -0
  12. package/docs/WOrmPostgresql.mjs.html +952 -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 +306 -0
  44. package/package.json +32 -0
  45. package/script.txt +18 -0
  46. package/src/WOrmPostgresql.mjs +880 -0
  47. package/test/basic.test.mjs +429 -0
  48. package/toolg/addVersion.mjs +4 -0
  49. package/toolg/cleanFolder.mjs +4 -0
  50. package/toolg/gDistRollup.mjs +25 -0
  51. package/toolg/modifyReadme.mjs +4 -0
@@ -0,0 +1,1655 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+
5
+ <meta charset="utf-8">
6
+ <title>WOrmPostgresql - 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="WOrmPostgresql.html">WOrmPostgresql</a><ul class='methods'><li data-type='method'><a href="WOrmPostgresql.html#.createTable">createTable</a></li><li data-type='method'><a href="WOrmPostgresql.html#.del">del</a></li><li data-type='method'><a href="WOrmPostgresql.html#.delAll">delAll</a></li><li data-type='method'><a href="WOrmPostgresql.html#.insert">insert</a></li><li data-type='method'><a href="WOrmPostgresql.html#.save">save</a></li><li data-type='method'><a href="WOrmPostgresql.html#.select">select</a></li></ul></li></ul>
33
+
34
+ </nav>
35
+
36
+ <div id="main">
37
+
38
+ <h1 class="page-title">WOrmPostgresql</h1>
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+ <section>
47
+
48
+ <header>
49
+
50
+ <h2>
51
+
52
+ WOrmPostgresql
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="WOrmPostgresql"><span class="type-signature"></span>new WOrmPostgresql<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>操作資料庫(PostgreSQL)</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="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line35">line 35</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>'postgresql://127.0.0.1:5432'</code>
251
+
252
+ </td>
253
+
254
+
255
+ <td class="description last"><p>輸入連接資料庫字串,預設'postgresql://127.0.0.1:5432'</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=".createTable"><span class="type-signature type-signature-async, static">(async, static) </span>createTable<span class="signature">(cl, pk, arr)</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="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line157">line 157</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>cl</code></td>
505
+
506
+
507
+ <td class="type">
508
+
509
+
510
+ <span class="param-type">String</span>
511
+
512
+
513
+
514
+
515
+ </td>
516
+
517
+
518
+
519
+
520
+
521
+ <td class="description last"><p>輸入資料表名字串</p></td>
522
+ </tr>
523
+
524
+
525
+
526
+ <tr>
527
+
528
+ <td class="name"><code>pk</code></td>
529
+
530
+
531
+ <td class="type">
532
+
533
+
534
+ <span class="param-type">String</span>
535
+
536
+
537
+
538
+
539
+ </td>
540
+
541
+
542
+
543
+
544
+
545
+ <td class="description last"><p>輸入主鍵字串</p></td>
546
+ </tr>
547
+
548
+
549
+
550
+ <tr>
551
+
552
+ <td class="name"><code>arr</code></td>
553
+
554
+
555
+ <td class="type">
556
+
557
+
558
+ <span class="param-type">Array</span>
559
+ |
560
+
561
+ <span class="param-type">Object</span>
562
+
563
+
564
+
565
+
566
+ </td>
567
+
568
+
569
+
570
+
571
+
572
+ <td class="description last"><p>輸入數據物件陣列或數據物件</p></td>
573
+ </tr>
574
+
575
+
576
+ </tbody>
577
+ </table>
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+
588
+
589
+
590
+
591
+
592
+
593
+
594
+ <h5 class="h5-returns">Returns:</h5>
595
+
596
+
597
+ <div class="param-desc">
598
+ <p>回傳Promise,resolve回傳成功訊息,reject回傳錯誤訊息</p>
599
+ </div>
600
+
601
+
602
+
603
+ <dl class="param-type">
604
+ <dt>
605
+ Type
606
+ </dt>
607
+ <dd>
608
+
609
+ <span class="param-type">Promise</span>
610
+
611
+
612
+
613
+ </dd>
614
+ </dl>
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+ <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>
626
+
627
+
628
+
629
+
630
+
631
+
632
+ <dl class="details">
633
+
634
+ <dt class="tag-description">Description:</dt>
635
+ <dd class="tag-description"><ul class="dummy"><li><p>刪除數據</p></li></ul></dd>
636
+
637
+
638
+
639
+ <dt class="tag-source">Source:</dt>
640
+ <dd class="tag-source"><ul class="dummy"><li>
641
+ <a href="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line659">line 659</a>
642
+ </li></ul></dd>
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+ </dl>
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+ <h5 class="h5-parameters">Parameters:</h5>
689
+
690
+
691
+ <table class="params">
692
+ <thead>
693
+ <tr>
694
+
695
+ <th>Name</th>
696
+
697
+
698
+ <th>Type</th>
699
+
700
+
701
+
702
+
703
+
704
+ <th class="last">Description</th>
705
+ </tr>
706
+ </thead>
707
+
708
+ <tbody>
709
+
710
+
711
+ <tr>
712
+
713
+ <td class="name"><code>data</code></td>
714
+
715
+
716
+ <td class="type">
717
+
718
+
719
+ <span class="param-type">Object</span>
720
+ |
721
+
722
+ <span class="param-type">Array</span>
723
+
724
+
725
+
726
+
727
+ </td>
728
+
729
+
730
+
731
+
732
+
733
+ <td class="description last"><p>輸入數據物件或陣列</p></td>
734
+ </tr>
735
+
736
+
737
+ </tbody>
738
+ </table>
739
+
740
+
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+ <h5 class="h5-returns">Returns:</h5>
756
+
757
+
758
+ <div class="param-desc">
759
+ <p>回傳Promise,resolve回傳刪除結果,reject回傳錯誤訊息</p>
760
+ </div>
761
+
762
+
763
+
764
+ <dl class="param-type">
765
+ <dt>
766
+ Type
767
+ </dt>
768
+ <dd>
769
+
770
+ <span class="param-type">Promise</span>
771
+
772
+
773
+
774
+ </dd>
775
+ </dl>
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+ <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>
787
+
788
+
789
+
790
+
791
+
792
+
793
+ <dl class="details">
794
+
795
+ <dt class="tag-description">Description:</dt>
796
+ <dd class="tag-description"><ul class="dummy"><li><p>刪除全部數據,需與del分開,避免未傳數據導致直接刪除全表</p></li></ul></dd>
797
+
798
+
799
+
800
+ <dt class="tag-source">Source:</dt>
801
+ <dd class="tag-source"><ul class="dummy"><li>
802
+ <a href="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line779">line 779</a>
803
+ </li></ul></dd>
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+
823
+
824
+
825
+
826
+
827
+
828
+
829
+
830
+
831
+
832
+
833
+
834
+
835
+ </dl>
836
+
837
+
838
+
839
+
840
+
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+ <h5 class="h5-parameters">Parameters:</h5>
850
+
851
+
852
+ <table class="params">
853
+ <thead>
854
+ <tr>
855
+
856
+ <th>Name</th>
857
+
858
+
859
+ <th>Type</th>
860
+
861
+
862
+ <th>Attributes</th>
863
+
864
+
865
+
866
+ <th>Default</th>
867
+
868
+
869
+ <th class="last">Description</th>
870
+ </tr>
871
+ </thead>
872
+
873
+ <tbody>
874
+
875
+
876
+ <tr>
877
+
878
+ <td class="name"><code>find</code></td>
879
+
880
+
881
+ <td class="type">
882
+
883
+
884
+ <span class="param-type">Object</span>
885
+
886
+
887
+
888
+
889
+ </td>
890
+
891
+
892
+ <td class="attributes">
893
+
894
+ &lt;optional><br>
895
+
896
+
897
+
898
+
899
+
900
+ </td>
901
+
902
+
903
+
904
+ <td class="default">
905
+
906
+ <code>{}</code>
907
+
908
+ </td>
909
+
910
+
911
+ <td class="description last"><p>輸入刪除條件物件</p></td>
912
+ </tr>
913
+
914
+
915
+ </tbody>
916
+ </table>
917
+
918
+
919
+
920
+
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+
929
+
930
+
931
+
932
+
933
+ <h5 class="h5-returns">Returns:</h5>
934
+
935
+
936
+ <div class="param-desc">
937
+ <p>回傳Promise,resolve回傳刪除結果,reject回傳錯誤訊息</p>
938
+ </div>
939
+
940
+
941
+
942
+ <dl class="param-type">
943
+ <dt>
944
+ Type
945
+ </dt>
946
+ <dd>
947
+
948
+ <span class="param-type">Promise</span>
949
+
950
+
951
+
952
+ </dd>
953
+ </dl>
954
+
955
+
956
+
957
+
958
+
959
+
960
+
961
+
962
+
963
+
964
+ <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>
965
+
966
+
967
+
968
+
969
+
970
+
971
+ <dl class="details">
972
+
973
+ <dt class="tag-description">Description:</dt>
974
+ <dd class="tag-description"><ul class="dummy"><li><p>插入數據</p></li></ul></dd>
975
+
976
+
977
+
978
+ <dt class="tag-source">Source:</dt>
979
+ <dd class="tag-source"><ul class="dummy"><li>
980
+ <a href="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line316">line 316</a>
981
+ </li></ul></dd>
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ </dl>
1014
+
1015
+
1016
+
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ <h5 class="h5-parameters">Parameters:</h5>
1028
+
1029
+
1030
+ <table class="params">
1031
+ <thead>
1032
+ <tr>
1033
+
1034
+ <th>Name</th>
1035
+
1036
+
1037
+ <th>Type</th>
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+ <th class="last">Description</th>
1044
+ </tr>
1045
+ </thead>
1046
+
1047
+ <tbody>
1048
+
1049
+
1050
+ <tr>
1051
+
1052
+ <td class="name"><code>data</code></td>
1053
+
1054
+
1055
+ <td class="type">
1056
+
1057
+
1058
+ <span class="param-type">Object</span>
1059
+ |
1060
+
1061
+ <span class="param-type">Array</span>
1062
+
1063
+
1064
+
1065
+
1066
+ </td>
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+ <td class="description last"><p>輸入數據物件或陣列</p></td>
1073
+ </tr>
1074
+
1075
+
1076
+ </tbody>
1077
+ </table>
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+ <h5 class="h5-returns">Returns:</h5>
1095
+
1096
+
1097
+ <div class="param-desc">
1098
+ <p>回傳Promise,resolve回傳插入結果,reject回傳錯誤訊息</p>
1099
+ </div>
1100
+
1101
+
1102
+
1103
+ <dl class="param-type">
1104
+ <dt>
1105
+ Type
1106
+ </dt>
1107
+ <dd>
1108
+
1109
+ <span class="param-type">Promise</span>
1110
+
1111
+
1112
+
1113
+ </dd>
1114
+ </dl>
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+ <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>
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+
1132
+ <dl class="details">
1133
+
1134
+ <dt class="tag-description">Description:</dt>
1135
+ <dd class="tag-description"><ul class="dummy"><li><p>儲存數據</p></li></ul></dd>
1136
+
1137
+
1138
+
1139
+ <dt class="tag-source">Source:</dt>
1140
+ <dd class="tag-source"><ul class="dummy"><li>
1141
+ <a href="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line420">line 420</a>
1142
+ </li></ul></dd>
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+ </dl>
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+ <h5 class="h5-parameters">Parameters:</h5>
1189
+
1190
+
1191
+ <table class="params">
1192
+ <thead>
1193
+ <tr>
1194
+
1195
+ <th>Name</th>
1196
+
1197
+
1198
+ <th>Type</th>
1199
+
1200
+
1201
+ <th>Attributes</th>
1202
+
1203
+
1204
+
1205
+ <th>Default</th>
1206
+
1207
+
1208
+ <th class="last">Description</th>
1209
+ </tr>
1210
+ </thead>
1211
+
1212
+ <tbody>
1213
+
1214
+
1215
+ <tr>
1216
+
1217
+ <td class="name"><code>data</code></td>
1218
+
1219
+
1220
+ <td class="type">
1221
+
1222
+
1223
+ <span class="param-type">Object</span>
1224
+ |
1225
+
1226
+ <span class="param-type">Array</span>
1227
+
1228
+
1229
+
1230
+
1231
+ </td>
1232
+
1233
+
1234
+ <td class="attributes">
1235
+
1236
+
1237
+
1238
+
1239
+
1240
+ </td>
1241
+
1242
+
1243
+
1244
+ <td class="default">
1245
+
1246
+ </td>
1247
+
1248
+
1249
+ <td class="description last"><p>輸入數據物件或陣列</p></td>
1250
+ </tr>
1251
+
1252
+
1253
+
1254
+ <tr>
1255
+
1256
+ <td class="name"><code>option</code></td>
1257
+
1258
+
1259
+ <td class="type">
1260
+
1261
+
1262
+ <span class="param-type">Object</span>
1263
+
1264
+
1265
+
1266
+
1267
+ </td>
1268
+
1269
+
1270
+ <td class="attributes">
1271
+
1272
+ &lt;optional><br>
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ </td>
1279
+
1280
+
1281
+
1282
+ <td class="default">
1283
+
1284
+ <code>{}</code>
1285
+
1286
+ </td>
1287
+
1288
+
1289
+ <td class="description last"><p>輸入設定物件,預設為{}</p>
1290
+ <h6>Properties</h6>
1291
+
1292
+
1293
+ <table class="params">
1294
+ <thead>
1295
+ <tr>
1296
+
1297
+ <th>Name</th>
1298
+
1299
+
1300
+ <th>Type</th>
1301
+
1302
+
1303
+ <th>Attributes</th>
1304
+
1305
+
1306
+
1307
+ <th>Default</th>
1308
+
1309
+
1310
+ <th class="last">Description</th>
1311
+ </tr>
1312
+ </thead>
1313
+
1314
+ <tbody>
1315
+
1316
+
1317
+ <tr>
1318
+
1319
+ <td class="name"><code>autoInsert</code></td>
1320
+
1321
+
1322
+ <td class="type">
1323
+
1324
+
1325
+ <span class="param-type">boolean</span>
1326
+
1327
+
1328
+
1329
+
1330
+ </td>
1331
+
1332
+
1333
+ <td class="attributes">
1334
+
1335
+ &lt;optional><br>
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+ </td>
1342
+
1343
+
1344
+
1345
+ <td class="default">
1346
+
1347
+ <code>true</code>
1348
+
1349
+ </td>
1350
+
1351
+
1352
+ <td class="description last"><p>輸入是否於儲存時發現原本無數據,則自動改以插入處理,預設為true</p></td>
1353
+ </tr>
1354
+
1355
+
1356
+ </tbody>
1357
+ </table>
1358
+
1359
+ </td>
1360
+ </tr>
1361
+
1362
+
1363
+ </tbody>
1364
+ </table>
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+
1380
+
1381
+ <h5 class="h5-returns">Returns:</h5>
1382
+
1383
+
1384
+ <div class="param-desc">
1385
+ <p>回傳Promise,resolve回傳儲存結果,reject回傳錯誤訊息</p>
1386
+ </div>
1387
+
1388
+
1389
+
1390
+ <dl class="param-type">
1391
+ <dt>
1392
+ Type
1393
+ </dt>
1394
+ <dd>
1395
+
1396
+ <span class="param-type">Promise</span>
1397
+
1398
+
1399
+
1400
+ </dd>
1401
+ </dl>
1402
+
1403
+
1404
+
1405
+
1406
+
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+ <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>, order<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
1413
+
1414
+
1415
+
1416
+
1417
+
1418
+
1419
+ <dl class="details">
1420
+
1421
+ <dt class="tag-description">Description:</dt>
1422
+ <dd class="tag-description"><ul class="dummy"><li><p>查詢數據</p></li></ul></dd>
1423
+
1424
+
1425
+
1426
+ <dt class="tag-source">Source:</dt>
1427
+ <dd class="tag-source"><ul class="dummy"><li>
1428
+ <a href="WOrmPostgresql.mjs.html">WOrmPostgresql.mjs</a>, <a href="WOrmPostgresql.mjs.html#line238">line 238</a>
1429
+ </li></ul></dd>
1430
+
1431
+
1432
+
1433
+
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+
1458
+
1459
+
1460
+
1461
+ </dl>
1462
+
1463
+
1464
+
1465
+
1466
+
1467
+
1468
+
1469
+
1470
+
1471
+
1472
+
1473
+
1474
+
1475
+ <h5 class="h5-parameters">Parameters:</h5>
1476
+
1477
+
1478
+ <table class="params">
1479
+ <thead>
1480
+ <tr>
1481
+
1482
+ <th>Name</th>
1483
+
1484
+
1485
+ <th>Type</th>
1486
+
1487
+
1488
+ <th>Attributes</th>
1489
+
1490
+
1491
+
1492
+ <th>Default</th>
1493
+
1494
+
1495
+ <th class="last">Description</th>
1496
+ </tr>
1497
+ </thead>
1498
+
1499
+ <tbody>
1500
+
1501
+
1502
+ <tr>
1503
+
1504
+ <td class="name"><code>find</code></td>
1505
+
1506
+
1507
+ <td class="type">
1508
+
1509
+
1510
+ <span class="param-type">Object</span>
1511
+
1512
+
1513
+
1514
+
1515
+ </td>
1516
+
1517
+
1518
+ <td class="attributes">
1519
+
1520
+ &lt;optional><br>
1521
+
1522
+
1523
+
1524
+
1525
+
1526
+ </td>
1527
+
1528
+
1529
+
1530
+ <td class="default">
1531
+
1532
+ <code>{}</code>
1533
+
1534
+ </td>
1535
+
1536
+
1537
+ <td class="description last"><p>輸入查詢條件物件</p></td>
1538
+ </tr>
1539
+
1540
+
1541
+
1542
+ <tr>
1543
+
1544
+ <td class="name"><code>order</code></td>
1545
+
1546
+
1547
+ <td class="type">
1548
+
1549
+
1550
+ <span class="param-type">Object</span>
1551
+
1552
+
1553
+
1554
+
1555
+ </td>
1556
+
1557
+
1558
+ <td class="attributes">
1559
+
1560
+ &lt;optional><br>
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+ </td>
1567
+
1568
+
1569
+
1570
+ <td class="default">
1571
+
1572
+ <code>{}</code>
1573
+
1574
+ </td>
1575
+
1576
+
1577
+ <td class="description last"><p>輸入排序條件物件</p></td>
1578
+ </tr>
1579
+
1580
+
1581
+ </tbody>
1582
+ </table>
1583
+
1584
+
1585
+
1586
+
1587
+
1588
+
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+
1596
+
1597
+
1598
+
1599
+ <h5 class="h5-returns">Returns:</h5>
1600
+
1601
+
1602
+ <div class="param-desc">
1603
+ <p>回傳Promise,resolve回傳數據,reject回傳錯誤訊息</p>
1604
+ </div>
1605
+
1606
+
1607
+
1608
+ <dl class="param-type">
1609
+ <dt>
1610
+ Type
1611
+ </dt>
1612
+ <dd>
1613
+
1614
+ <span class="param-type">Promise</span>
1615
+
1616
+
1617
+
1618
+ </dd>
1619
+ </dl>
1620
+
1621
+
1622
+
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+
1629
+
1630
+
1631
+ </article>
1632
+
1633
+ </section>
1634
+
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+ </div>
1641
+
1642
+ <br class="clear">
1643
+
1644
+ <footer>
1645
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.4</a> on Sun Mar 23 2025 21:47:56 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1646
+ </footer>
1647
+
1648
+ <script>prettyPrint();</script>
1649
+ <script src="scripts/polyfill.js"></script>
1650
+ <script src="scripts/linenumber.js"></script>
1651
+
1652
+
1653
+
1654
+ </body>
1655
+ </html>