w-orm-reladb 1.0.46 → 1.0.48
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/README.md +86 -50
- package/dist/w-orm-reladb.umd.js +2 -2
- package/dist/w-orm-reladb.umd.js.map +1 -1
- package/docs/WOrmReladb.html +758 -73
- package/docs/WOrmReladb.mjs.html +869 -299
- package/docs/index.html +2 -2
- package/g-genModelsByTabs.mjs +1 -1
- package/g-mssql-concurrency.mjs +1 -1
- package/g-mssql-timerQuery.mjs +3 -3
- package/g-mssql-transaction-commit.mjs +7 -7
- package/g-mssql-transaction-rollback.mjs +7 -7
- package/g-mssql.mjs +7 -7
- package/g-sqlite-concurrency.mjs +1 -1
- package/g-sqlite-encryption-transaction-commit.mjs +3 -3
- package/g-sqlite-encryption.mjs +7 -7
- package/g-sqlite-transaction-commit.mjs +7 -7
- package/g-sqlite-transaction-rollback.mjs +7 -7
- package/g-sqlite.mjs +7 -7
- package/package.json +3 -3
- package/script.txt +0 -1
- package/src/WOrmReladb.mjs +867 -297
- package/test/api-mssql.test.mjs +4 -201
- package/test/api-sqlite.test.mjs +12 -206
- package/test/api-suite.mjs +729 -0
- package/worm.sqlite +0 -0
- package/test/api-fixtures.mjs +0 -48
package/docs/WOrmReladb.html
CHANGED
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
<nav >
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WOrmReladb.html">WOrmReladb</a><ul class='methods'><li data-type='method'><a href="WOrmReladb.html#.closeSequelize">closeSequelize</a></li><li data-type='method'><a href="WOrmReladb.html#.createStorage">createStorage</a></li><li data-type='method'><a href="WOrmReladb.html#.del">del</a></li><li data-type='method'><a href="WOrmReladb.html#.delAll">delAll</a></li><li data-type='method'><a href="WOrmReladb.html#.genModelsByDB">genModelsByDB</a></li><li data-type='method'><a href="WOrmReladb.html#.genModelsByTabs">genModelsByTabs</a></li><li data-type='method'><a href="WOrmReladb.html#.genTransaction">genTransaction</a></li><li data-type='method'><a href="WOrmReladb.html#.initSequelize">initSequelize</a></li><li data-type='method'><a href="WOrmReladb.html#.insert">insert</a></li><li data-type='method'><a href="WOrmReladb.html#.save">save</a></li><li data-type='method'><a href="WOrmReladb.html#.select">select</a></li></ul></li></ul>
|
|
32
|
+
<h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="WOrmReladb.html">WOrmReladb</a><ul class='methods'><li data-type='method'><a href="WOrmReladb.html#.closeSequelize">closeSequelize</a></li><li data-type='method'><a href="WOrmReladb.html#.createStorage">createStorage</a></li><li data-type='method'><a href="WOrmReladb.html#.del">del</a></li><li data-type='method'><a href="WOrmReladb.html#.delAll">delAll</a></li><li data-type='method'><a href="WOrmReladb.html#.genModelsByDB">genModelsByDB</a></li><li data-type='method'><a href="WOrmReladb.html#.genModelsByTabs">genModelsByTabs</a></li><li data-type='method'><a href="WOrmReladb.html#.genTransaction">genTransaction</a></li><li data-type='method'><a href="WOrmReladb.html#.initSequelize">initSequelize</a></li><li data-type='method'><a href="WOrmReladb.html#.insert">insert</a></li><li data-type='method'><a href="WOrmReladb.html#.insertBulk">insertBulk</a></li><li data-type='method'><a href="WOrmReladb.html#.save">save</a></li><li data-type='method'><a href="WOrmReladb.html#.select">select</a></li><li data-type='method'><a href="WOrmReladb.html#.selectByPk">selectByPk</a></li></ul></li></ul>
|
|
33
33
|
|
|
34
34
|
</nav>
|
|
35
35
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
<dt class="tag-source">Source:</dt>
|
|
83
83
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
84
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
84
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line56">line 56</a>
|
|
85
85
|
</li></ul></dd>
|
|
86
86
|
|
|
87
87
|
|
|
@@ -580,7 +580,7 @@
|
|
|
580
580
|
|
|
581
581
|
<tr>
|
|
582
582
|
|
|
583
|
-
<td class="name"><code>
|
|
583
|
+
<td class="name"><code>autoGenPk</code></td>
|
|
584
584
|
|
|
585
585
|
|
|
586
586
|
<td class="type">
|
|
@@ -750,7 +750,7 @@
|
|
|
750
750
|
|
|
751
751
|
<dt class="tag-source">Source:</dt>
|
|
752
752
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
753
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
753
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line383">line 383</a>
|
|
754
754
|
</li></ul></dd>
|
|
755
755
|
|
|
756
756
|
|
|
@@ -858,7 +858,7 @@
|
|
|
858
858
|
|
|
859
859
|
<dt class="tag-source">Source:</dt>
|
|
860
860
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
861
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
861
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line1498">line 1498</a>
|
|
862
862
|
</li></ul></dd>
|
|
863
863
|
|
|
864
864
|
|
|
@@ -960,13 +960,18 @@
|
|
|
960
960
|
<dl class="details">
|
|
961
961
|
|
|
962
962
|
<dt class="tag-description">Description:</dt>
|
|
963
|
-
<dd class="tag-description"><ul class="dummy"><li><p>刪除數據</p
|
|
963
|
+
<dd class="tag-description"><ul class="dummy"><li><p>刪除數據</p>
|
|
964
|
+
<p>註: 回傳陣列恆與輸入等長,各筆之n與nDeleted皆為主鍵命中筆數,值為0或1,未命中為0且屬正常結果
|
|
965
|
+
註: 判斷某筆是否真的被刪除一律以nDeleted為準
|
|
966
|
+
註: 未帶有效主鍵者為該筆之輸入問題,回ok為0與err且不送查詢條件(以免無效值被轉為null而誤中其他數據),
|
|
967
|
+
不中斷其餘筆數,以此與[主鍵未命中]之ok為1區辨
|
|
968
|
+
註: 本函數不受opt.autoGenPk影響,於任一設定下皆不補值</p></li></ul></dd>
|
|
964
969
|
|
|
965
970
|
|
|
966
971
|
|
|
967
972
|
<dt class="tag-source">Source:</dt>
|
|
968
973
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
969
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
974
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line1250">line 1250</a>
|
|
970
975
|
</li></ul></dd>
|
|
971
976
|
|
|
972
977
|
|
|
@@ -1250,7 +1255,7 @@
|
|
|
1250
1255
|
|
|
1251
1256
|
|
|
1252
1257
|
<div class="param-desc">
|
|
1253
|
-
<p>回傳Promise,resolve
|
|
1258
|
+
<p>回傳Promise,resolve回傳與輸入等長之刪除結果陣列[{n,nDeleted,ok}],reject回傳錯誤訊息</p>
|
|
1254
1259
|
</div>
|
|
1255
1260
|
|
|
1256
1261
|
|
|
@@ -1287,13 +1292,15 @@
|
|
|
1287
1292
|
<dl class="details">
|
|
1288
1293
|
|
|
1289
1294
|
<dt class="tag-description">Description:</dt>
|
|
1290
|
-
<dd class="tag-description"><ul class="dummy"><li><p
|
|
1295
|
+
<dd class="tag-description"><ul class="dummy"><li><p>依條件刪除多筆數據,需與del分開,避免未傳數據導致直接刪除全表</p>
|
|
1296
|
+
<p>註: n與nDeleted皆為實際刪除筆數,兩者恆相等,n不得取全表筆數
|
|
1297
|
+
註: find未給或為空物件時刪除全部數據;條件無命中時回{n:0,nDeleted:0,ok:1},不視為錯誤</p></li></ul></dd>
|
|
1291
1298
|
|
|
1292
1299
|
|
|
1293
1300
|
|
|
1294
1301
|
<dt class="tag-source">Source:</dt>
|
|
1295
1302
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1296
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
1303
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line1405">line 1405</a>
|
|
1297
1304
|
</li></ul></dd>
|
|
1298
1305
|
|
|
1299
1306
|
|
|
@@ -1578,7 +1585,7 @@
|
|
|
1578
1585
|
|
|
1579
1586
|
|
|
1580
1587
|
<div class="param-desc">
|
|
1581
|
-
<p>回傳Promise,resolve
|
|
1588
|
+
<p>回傳Promise,resolve回傳刪除結果{n,nDeleted,ok},reject回傳錯誤訊息</p>
|
|
1582
1589
|
</div>
|
|
1583
1590
|
|
|
1584
1591
|
|
|
@@ -1623,7 +1630,7 @@
|
|
|
1623
1630
|
|
|
1624
1631
|
<dt class="tag-source">Source:</dt>
|
|
1625
1632
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1626
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
1633
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line1540">line 1540</a>
|
|
1627
1634
|
</li></ul></dd>
|
|
1628
1635
|
|
|
1629
1636
|
|
|
@@ -2151,7 +2158,7 @@
|
|
|
2151
2158
|
|
|
2152
2159
|
<dt class="tag-source">Source:</dt>
|
|
2153
2160
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2154
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
2161
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line1588">line 1588</a>
|
|
2155
2162
|
</li></ul></dd>
|
|
2156
2163
|
|
|
2157
2164
|
|
|
@@ -2456,7 +2463,7 @@
|
|
|
2456
2463
|
|
|
2457
2464
|
<dt class="tag-source">Source:</dt>
|
|
2458
2465
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2459
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
2466
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line399">line 399</a>
|
|
2460
2467
|
</li></ul></dd>
|
|
2461
2468
|
|
|
2462
2469
|
|
|
@@ -2564,7 +2571,7 @@
|
|
|
2564
2571
|
|
|
2565
2572
|
<dt class="tag-source">Source:</dt>
|
|
2566
2573
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2567
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
2574
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line316">line 316</a>
|
|
2568
2575
|
</li></ul></dd>
|
|
2569
2576
|
|
|
2570
2577
|
|
|
@@ -2736,13 +2743,17 @@
|
|
|
2736
2743
|
<dl class="details">
|
|
2737
2744
|
|
|
2738
2745
|
<dt class="tag-description">Description:</dt>
|
|
2739
|
-
<dd class="tag-description"><ul class="dummy"><li><p
|
|
2746
|
+
<dd class="tag-description"><ul class="dummy"><li><p>插入數據,僅於主鍵不存在時寫入,已存在者跳過且不覆寫</p>
|
|
2747
|
+
<p>由資料庫於主鍵之唯一約束上原子完成[檢查主鍵不存在]與[寫入],併發時同一主鍵僅有一次成功</p>
|
|
2748
|
+
<p>註: n為輸入筆數即本次嘗試插入之基準,nInserted為實際插入筆數,全數已存在而nInserted為0屬正常結果
|
|
2749
|
+
註: 同批含重複主鍵時僅首筆計入nInserted,其餘視為已存在
|
|
2750
|
+
註: opt.autoGenPk為true(預設)時未帶有效主鍵者自動產生,為false時未帶有效主鍵即reject且同批皆不寫入</p></li></ul></dd>
|
|
2740
2751
|
|
|
2741
2752
|
|
|
2742
2753
|
|
|
2743
2754
|
<dt class="tag-source">Source:</dt>
|
|
2744
2755
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2745
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
2756
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line675">line 675</a>
|
|
2746
2757
|
</li></ul></dd>
|
|
2747
2758
|
|
|
2748
2759
|
|
|
@@ -3026,7 +3037,7 @@
|
|
|
3026
3037
|
|
|
3027
3038
|
|
|
3028
3039
|
<div class="param-desc">
|
|
3029
|
-
<p>回傳Promise,resolve
|
|
3040
|
+
<p>回傳Promise,resolve回傳插入結果{n,nInserted,ok},reject回傳錯誤訊息</p>
|
|
3030
3041
|
</div>
|
|
3031
3042
|
|
|
3032
3043
|
|
|
@@ -3053,7 +3064,7 @@
|
|
|
3053
3064
|
|
|
3054
3065
|
|
|
3055
3066
|
|
|
3056
|
-
<h4 class="name" id=".
|
|
3067
|
+
<h4 class="name" id=".insertBulk"><span class="type-signature type-signature-async, static">(async, static) </span>insertBulk<span class="signature">(data, option<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
3057
3068
|
|
|
3058
3069
|
|
|
3059
3070
|
|
|
@@ -3063,13 +3074,24 @@
|
|
|
3063
3074
|
<dl class="details">
|
|
3064
3075
|
|
|
3065
3076
|
<dt class="tag-description">Description:</dt>
|
|
3066
|
-
<dd class="tag-description"><ul class="dummy"><li><p
|
|
3077
|
+
<dd class="tag-description"><ul class="dummy"><li><p>批次插入數據,全批視為一個單位:全部插入成功,或一筆都不寫入</p>
|
|
3078
|
+
<p>本函數非insert之加速版,兩者衝突政策不同:insert於主鍵已存在時跳過該筆且整批ok為1,
|
|
3079
|
+
本函數則整批reject且不寫入任何一筆,同批含重複主鍵者亦視為衝突。
|
|
3080
|
+
確無衝突時兩者之可觀察結果完全相同,差異僅於有衝突時顯現。</p>
|
|
3081
|
+
<p>註: n為輸入筆數即本次嘗試插入之基準;nInserted於成功時恆等於n,雖無額外資訊仍保留,
|
|
3082
|
+
令呼叫端得與insert共用同一段結果處理程式碼
|
|
3083
|
+
註: 不提供逐筆結果,故不出現ok為0與err;需要逐筆處置者改用insert
|
|
3084
|
+
註: opt.autoGenPk為true(預設)時未帶有效主鍵者自動產生,為false時未帶有效主鍵即reject且同批皆不寫入
|
|
3085
|
+
註: [全有全無]為獨立於T7之額外要求——T7僅保證每筆之[檢查主鍵不存在]與[寫入]為原子,不保證整批。
|
|
3086
|
+
mssql因綁定參數數量上限會由驅動層自動拆為多語句送出,實測1000筆之批次於末筆撞主鍵時已有946筆落盤,
|
|
3087
|
+
故一律以交易包覆並於失敗時回滾;呼叫端已給transaction時改以巢狀交易(SAVEPOINT)包覆,
|
|
3088
|
+
令回滾範圍限於本次呼叫而不影響呼叫端交易內先前之寫入</p></li></ul></dd>
|
|
3067
3089
|
|
|
3068
3090
|
|
|
3069
3091
|
|
|
3070
3092
|
<dt class="tag-source">Source:</dt>
|
|
3071
3093
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3072
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
3094
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line824">line 824</a>
|
|
3073
3095
|
</li></ul></dd>
|
|
3074
3096
|
|
|
3075
3097
|
|
|
@@ -3324,46 +3346,6 @@
|
|
|
3324
3346
|
</tr>
|
|
3325
3347
|
|
|
3326
3348
|
|
|
3327
|
-
|
|
3328
|
-
<tr>
|
|
3329
|
-
|
|
3330
|
-
<td class="name"><code>autoInsert</code></td>
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
<td class="type">
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
<span class="param-type">boolean</span>
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
</td>
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
<td class="attributes">
|
|
3345
|
-
|
|
3346
|
-
<optional><br>
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
</td>
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
<td class="default">
|
|
3357
|
-
|
|
3358
|
-
<code>true</code>
|
|
3359
|
-
|
|
3360
|
-
</td>
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
<td class="description last"><p>輸入是否於儲存時發現原本無數據,則自動改以插入處理,預設為true</p></td>
|
|
3364
|
-
</tr>
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
3349
|
</tbody>
|
|
3368
3350
|
</table>
|
|
3369
3351
|
|
|
@@ -3393,7 +3375,7 @@
|
|
|
3393
3375
|
|
|
3394
3376
|
|
|
3395
3377
|
<div class="param-desc">
|
|
3396
|
-
<p>回傳Promise,resolve
|
|
3378
|
+
<p>回傳Promise,resolve回傳插入結果{n,nInserted,ok},reject回傳錯誤訊息</p>
|
|
3397
3379
|
</div>
|
|
3398
3380
|
|
|
3399
3381
|
|
|
@@ -3420,7 +3402,7 @@
|
|
|
3420
3402
|
|
|
3421
3403
|
|
|
3422
3404
|
|
|
3423
|
-
<h4 class="name" id=".
|
|
3405
|
+
<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>
|
|
3424
3406
|
|
|
3425
3407
|
|
|
3426
3408
|
|
|
@@ -3430,13 +3412,19 @@
|
|
|
3430
3412
|
<dl class="details">
|
|
3431
3413
|
|
|
3432
3414
|
<dt class="tag-description">Description:</dt>
|
|
3433
|
-
<dd class="tag-description"><ul class="dummy"><li><p
|
|
3415
|
+
<dd class="tag-description"><ul class="dummy"><li><p>儲存數據,以主鍵為準更新既有數據,未給之欄位保留;主鍵不存在且option.autoInsert為true(預設)時改為插入</p>
|
|
3416
|
+
<p>註: 回傳陣列恆與輸入等長,輸入單一物件亦回傳長度1之陣列
|
|
3417
|
+
註: n為主鍵命中筆數,值為0或1,命中(不論內容有無變更)或經插入而產生皆為1;nInserted與nModified恆同時出現
|
|
3418
|
+
註: [內容相同]之判定基準為將待寫入物件合併進現值後與現值相同,非待寫入物件與現值全等,
|
|
3419
|
+
故只給部份欄位且該些欄位值皆與現值相同時,合併結果等於現值,nModified為0
|
|
3420
|
+
註: 本筆失敗不中斷整批,該筆以ok為0並附err回報
|
|
3421
|
+
註: opt.autoGenPk為true(預設)時未帶有效主鍵者自動產生,為false時未帶有效主鍵即reject且同批皆不寫入</p></li></ul></dd>
|
|
3434
3422
|
|
|
3435
3423
|
|
|
3436
3424
|
|
|
3437
3425
|
<dt class="tag-source">Source:</dt>
|
|
3438
3426
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
3439
|
-
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#
|
|
3427
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line1143">line 1143</a>
|
|
3440
3428
|
</li></ul></dd>
|
|
3441
3429
|
|
|
3442
3430
|
|
|
@@ -3512,13 +3500,16 @@
|
|
|
3512
3500
|
|
|
3513
3501
|
<tr>
|
|
3514
3502
|
|
|
3515
|
-
<td class="name"><code>
|
|
3503
|
+
<td class="name"><code>data</code></td>
|
|
3516
3504
|
|
|
3517
3505
|
|
|
3518
3506
|
<td class="type">
|
|
3519
3507
|
|
|
3520
3508
|
|
|
3521
3509
|
<span class="param-type">Object</span>
|
|
3510
|
+
|
|
|
3511
|
+
|
|
3512
|
+
<span class="param-type">Array</span>
|
|
3522
3513
|
|
|
3523
3514
|
|
|
3524
3515
|
|
|
@@ -3528,8 +3519,6 @@
|
|
|
3528
3519
|
|
|
3529
3520
|
<td class="attributes">
|
|
3530
3521
|
|
|
3531
|
-
<optional><br>
|
|
3532
|
-
|
|
3533
3522
|
|
|
3534
3523
|
|
|
3535
3524
|
|
|
@@ -3540,12 +3529,10 @@
|
|
|
3540
3529
|
|
|
3541
3530
|
<td class="default">
|
|
3542
3531
|
|
|
3543
|
-
<code>{}</code>
|
|
3544
|
-
|
|
3545
3532
|
</td>
|
|
3546
3533
|
|
|
3547
3534
|
|
|
3548
|
-
<td class="description last"><p
|
|
3535
|
+
<td class="description last"><p>輸入數據物件或陣列</p></td>
|
|
3549
3536
|
</tr>
|
|
3550
3537
|
|
|
3551
3538
|
|
|
@@ -3692,6 +3679,46 @@
|
|
|
3692
3679
|
</tr>
|
|
3693
3680
|
|
|
3694
3681
|
|
|
3682
|
+
|
|
3683
|
+
<tr>
|
|
3684
|
+
|
|
3685
|
+
<td class="name"><code>autoInsert</code></td>
|
|
3686
|
+
|
|
3687
|
+
|
|
3688
|
+
<td class="type">
|
|
3689
|
+
|
|
3690
|
+
|
|
3691
|
+
<span class="param-type">boolean</span>
|
|
3692
|
+
|
|
3693
|
+
|
|
3694
|
+
|
|
3695
|
+
|
|
3696
|
+
</td>
|
|
3697
|
+
|
|
3698
|
+
|
|
3699
|
+
<td class="attributes">
|
|
3700
|
+
|
|
3701
|
+
<optional><br>
|
|
3702
|
+
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
|
|
3707
|
+
</td>
|
|
3708
|
+
|
|
3709
|
+
|
|
3710
|
+
|
|
3711
|
+
<td class="default">
|
|
3712
|
+
|
|
3713
|
+
<code>true</code>
|
|
3714
|
+
|
|
3715
|
+
</td>
|
|
3716
|
+
|
|
3717
|
+
|
|
3718
|
+
<td class="description last"><p>輸入是否於儲存時發現原本無數據,則自動改以插入處理,預設為true</p></td>
|
|
3719
|
+
</tr>
|
|
3720
|
+
|
|
3721
|
+
|
|
3695
3722
|
</tbody>
|
|
3696
3723
|
</table>
|
|
3697
3724
|
|
|
@@ -3721,7 +3748,665 @@
|
|
|
3721
3748
|
|
|
3722
3749
|
|
|
3723
3750
|
<div class="param-desc">
|
|
3724
|
-
<p>回傳Promise,resolve
|
|
3751
|
+
<p>回傳Promise,resolve回傳與輸入等長之儲存結果陣列[{n,nInserted,nModified,ok}],reject回傳錯誤訊息</p>
|
|
3752
|
+
</div>
|
|
3753
|
+
|
|
3754
|
+
|
|
3755
|
+
|
|
3756
|
+
<dl class="param-type">
|
|
3757
|
+
<dt>
|
|
3758
|
+
Type
|
|
3759
|
+
</dt>
|
|
3760
|
+
<dd>
|
|
3761
|
+
|
|
3762
|
+
<span class="param-type">Promise</span>
|
|
3763
|
+
|
|
3764
|
+
|
|
3765
|
+
|
|
3766
|
+
</dd>
|
|
3767
|
+
</dl>
|
|
3768
|
+
|
|
3769
|
+
|
|
3770
|
+
|
|
3771
|
+
|
|
3772
|
+
|
|
3773
|
+
|
|
3774
|
+
|
|
3775
|
+
|
|
3776
|
+
|
|
3777
|
+
|
|
3778
|
+
<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>, option<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
3779
|
+
|
|
3780
|
+
|
|
3781
|
+
|
|
3782
|
+
|
|
3783
|
+
|
|
3784
|
+
|
|
3785
|
+
<dl class="details">
|
|
3786
|
+
|
|
3787
|
+
<dt class="tag-description">Description:</dt>
|
|
3788
|
+
<dd class="tag-description"><ul class="dummy"><li><p>查詢數據</p></li></ul></dd>
|
|
3789
|
+
|
|
3790
|
+
|
|
3791
|
+
|
|
3792
|
+
<dt class="tag-source">Source:</dt>
|
|
3793
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
3794
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line424">line 424</a>
|
|
3795
|
+
</li></ul></dd>
|
|
3796
|
+
|
|
3797
|
+
|
|
3798
|
+
|
|
3799
|
+
|
|
3800
|
+
|
|
3801
|
+
|
|
3802
|
+
|
|
3803
|
+
|
|
3804
|
+
|
|
3805
|
+
|
|
3806
|
+
|
|
3807
|
+
|
|
3808
|
+
|
|
3809
|
+
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
|
|
3814
|
+
|
|
3815
|
+
|
|
3816
|
+
|
|
3817
|
+
|
|
3818
|
+
|
|
3819
|
+
|
|
3820
|
+
|
|
3821
|
+
|
|
3822
|
+
|
|
3823
|
+
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
|
|
3827
|
+
</dl>
|
|
3828
|
+
|
|
3829
|
+
|
|
3830
|
+
|
|
3831
|
+
|
|
3832
|
+
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
|
|
3836
|
+
|
|
3837
|
+
|
|
3838
|
+
|
|
3839
|
+
|
|
3840
|
+
|
|
3841
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
3842
|
+
|
|
3843
|
+
|
|
3844
|
+
<table class="params">
|
|
3845
|
+
<thead>
|
|
3846
|
+
<tr>
|
|
3847
|
+
|
|
3848
|
+
<th>Name</th>
|
|
3849
|
+
|
|
3850
|
+
|
|
3851
|
+
<th>Type</th>
|
|
3852
|
+
|
|
3853
|
+
|
|
3854
|
+
<th>Attributes</th>
|
|
3855
|
+
|
|
3856
|
+
|
|
3857
|
+
|
|
3858
|
+
<th>Default</th>
|
|
3859
|
+
|
|
3860
|
+
|
|
3861
|
+
<th class="last">Description</th>
|
|
3862
|
+
</tr>
|
|
3863
|
+
</thead>
|
|
3864
|
+
|
|
3865
|
+
<tbody>
|
|
3866
|
+
|
|
3867
|
+
|
|
3868
|
+
<tr>
|
|
3869
|
+
|
|
3870
|
+
<td class="name"><code>find</code></td>
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
<td class="type">
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
<span class="param-type">Object</span>
|
|
3877
|
+
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
|
|
3881
|
+
</td>
|
|
3882
|
+
|
|
3883
|
+
|
|
3884
|
+
<td class="attributes">
|
|
3885
|
+
|
|
3886
|
+
<optional><br>
|
|
3887
|
+
|
|
3888
|
+
|
|
3889
|
+
|
|
3890
|
+
|
|
3891
|
+
|
|
3892
|
+
</td>
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
|
|
3896
|
+
<td class="default">
|
|
3897
|
+
|
|
3898
|
+
<code>{}</code>
|
|
3899
|
+
|
|
3900
|
+
</td>
|
|
3901
|
+
|
|
3902
|
+
|
|
3903
|
+
<td class="description last"><p>輸入查詢條件物件</p></td>
|
|
3904
|
+
</tr>
|
|
3905
|
+
|
|
3906
|
+
|
|
3907
|
+
|
|
3908
|
+
<tr>
|
|
3909
|
+
|
|
3910
|
+
<td class="name"><code>option</code></td>
|
|
3911
|
+
|
|
3912
|
+
|
|
3913
|
+
<td class="type">
|
|
3914
|
+
|
|
3915
|
+
|
|
3916
|
+
<span class="param-type">Object</span>
|
|
3917
|
+
|
|
3918
|
+
|
|
3919
|
+
|
|
3920
|
+
|
|
3921
|
+
</td>
|
|
3922
|
+
|
|
3923
|
+
|
|
3924
|
+
<td class="attributes">
|
|
3925
|
+
|
|
3926
|
+
<optional><br>
|
|
3927
|
+
|
|
3928
|
+
|
|
3929
|
+
|
|
3930
|
+
|
|
3931
|
+
|
|
3932
|
+
</td>
|
|
3933
|
+
|
|
3934
|
+
|
|
3935
|
+
|
|
3936
|
+
<td class="default">
|
|
3937
|
+
|
|
3938
|
+
<code>{}</code>
|
|
3939
|
+
|
|
3940
|
+
</td>
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
<td class="description last"><p>輸入設定物件,預設為{}</p>
|
|
3944
|
+
<h6>Properties</h6>
|
|
3945
|
+
|
|
3946
|
+
|
|
3947
|
+
<table class="params">
|
|
3948
|
+
<thead>
|
|
3949
|
+
<tr>
|
|
3950
|
+
|
|
3951
|
+
<th>Name</th>
|
|
3952
|
+
|
|
3953
|
+
|
|
3954
|
+
<th>Type</th>
|
|
3955
|
+
|
|
3956
|
+
|
|
3957
|
+
<th>Attributes</th>
|
|
3958
|
+
|
|
3959
|
+
|
|
3960
|
+
|
|
3961
|
+
<th>Default</th>
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
<th class="last">Description</th>
|
|
3965
|
+
</tr>
|
|
3966
|
+
</thead>
|
|
3967
|
+
|
|
3968
|
+
<tbody>
|
|
3969
|
+
|
|
3970
|
+
|
|
3971
|
+
<tr>
|
|
3972
|
+
|
|
3973
|
+
<td class="name"><code>instance</code></td>
|
|
3974
|
+
|
|
3975
|
+
|
|
3976
|
+
<td class="type">
|
|
3977
|
+
|
|
3978
|
+
|
|
3979
|
+
<span class="param-type">Object</span>
|
|
3980
|
+
|
|
3981
|
+
|
|
3982
|
+
|
|
3983
|
+
|
|
3984
|
+
</td>
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
<td class="attributes">
|
|
3988
|
+
|
|
3989
|
+
<optional><br>
|
|
3990
|
+
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
|
|
3994
|
+
|
|
3995
|
+
</td>
|
|
3996
|
+
|
|
3997
|
+
|
|
3998
|
+
|
|
3999
|
+
<td class="default">
|
|
4000
|
+
|
|
4001
|
+
<code>null</code>
|
|
4002
|
+
|
|
4003
|
+
</td>
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
<td class="description last"><p>輸入實例instance物件,預設為null</p></td>
|
|
4007
|
+
</tr>
|
|
4008
|
+
|
|
4009
|
+
|
|
4010
|
+
|
|
4011
|
+
<tr>
|
|
4012
|
+
|
|
4013
|
+
<td class="name"><code>transaction</code></td>
|
|
4014
|
+
|
|
4015
|
+
|
|
4016
|
+
<td class="type">
|
|
4017
|
+
|
|
4018
|
+
|
|
4019
|
+
<span class="param-type">Object</span>
|
|
4020
|
+
|
|
4021
|
+
|
|
4022
|
+
|
|
4023
|
+
|
|
4024
|
+
</td>
|
|
4025
|
+
|
|
4026
|
+
|
|
4027
|
+
<td class="attributes">
|
|
4028
|
+
|
|
4029
|
+
<optional><br>
|
|
4030
|
+
|
|
4031
|
+
|
|
4032
|
+
|
|
4033
|
+
|
|
4034
|
+
|
|
4035
|
+
</td>
|
|
4036
|
+
|
|
4037
|
+
|
|
4038
|
+
|
|
4039
|
+
<td class="default">
|
|
4040
|
+
|
|
4041
|
+
<code>null</code>
|
|
4042
|
+
|
|
4043
|
+
</td>
|
|
4044
|
+
|
|
4045
|
+
|
|
4046
|
+
<td class="description last"><p>輸入交易(transaction)物件,預設為null</p></td>
|
|
4047
|
+
</tr>
|
|
4048
|
+
|
|
4049
|
+
|
|
4050
|
+
</tbody>
|
|
4051
|
+
</table>
|
|
4052
|
+
|
|
4053
|
+
</td>
|
|
4054
|
+
</tr>
|
|
4055
|
+
|
|
4056
|
+
|
|
4057
|
+
</tbody>
|
|
4058
|
+
</table>
|
|
4059
|
+
|
|
4060
|
+
|
|
4061
|
+
|
|
4062
|
+
|
|
4063
|
+
|
|
4064
|
+
|
|
4065
|
+
|
|
4066
|
+
|
|
4067
|
+
|
|
4068
|
+
|
|
4069
|
+
|
|
4070
|
+
|
|
4071
|
+
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
4076
|
+
|
|
4077
|
+
|
|
4078
|
+
<div class="param-desc">
|
|
4079
|
+
<p>回傳Promise,resolve回傳數據,reject回傳錯誤訊息</p>
|
|
4080
|
+
</div>
|
|
4081
|
+
|
|
4082
|
+
|
|
4083
|
+
|
|
4084
|
+
<dl class="param-type">
|
|
4085
|
+
<dt>
|
|
4086
|
+
Type
|
|
4087
|
+
</dt>
|
|
4088
|
+
<dd>
|
|
4089
|
+
|
|
4090
|
+
<span class="param-type">Promise</span>
|
|
4091
|
+
|
|
4092
|
+
|
|
4093
|
+
|
|
4094
|
+
</dd>
|
|
4095
|
+
</dl>
|
|
4096
|
+
|
|
4097
|
+
|
|
4098
|
+
|
|
4099
|
+
|
|
4100
|
+
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
|
|
4104
|
+
|
|
4105
|
+
|
|
4106
|
+
<h4 class="name" id=".selectByPk"><span class="type-signature type-signature-async, static">(async, static) </span>selectByPk<span class="signature">(pk, option<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {Promise}</span></h4>
|
|
4107
|
+
|
|
4108
|
+
|
|
4109
|
+
|
|
4110
|
+
|
|
4111
|
+
|
|
4112
|
+
|
|
4113
|
+
<dl class="details">
|
|
4114
|
+
|
|
4115
|
+
<dt class="tag-description">Description:</dt>
|
|
4116
|
+
<dd class="tag-description"><ul class="dummy"><li><p>由主鍵查詢單筆數據,因由資料庫依主鍵索引取值且僅回傳單筆,不需如select提取全部符合數據再處理,故數據量大時效能較佳</p>
|
|
4117
|
+
<p>註: 主鍵欄位取自opt.pk,預設為id,支援由呼叫端指定
|
|
4118
|
+
註: 主鍵未命中或主鍵值無效皆回傳null而不reject,[命中]之判定基準與insert、save、del內對既有數據之認定一致
|
|
4119
|
+
註: 本函數不得有副作用,故不創建資料表</p></li></ul></dd>
|
|
4120
|
+
|
|
4121
|
+
|
|
4122
|
+
|
|
4123
|
+
<dt class="tag-source">Source:</dt>
|
|
4124
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
4125
|
+
<a href="WOrmReladb.mjs.html">WOrmReladb.mjs</a>, <a href="WOrmReladb.mjs.html#line574">line 574</a>
|
|
4126
|
+
</li></ul></dd>
|
|
4127
|
+
|
|
4128
|
+
|
|
4129
|
+
|
|
4130
|
+
|
|
4131
|
+
|
|
4132
|
+
|
|
4133
|
+
|
|
4134
|
+
|
|
4135
|
+
|
|
4136
|
+
|
|
4137
|
+
|
|
4138
|
+
|
|
4139
|
+
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
|
|
4143
|
+
|
|
4144
|
+
|
|
4145
|
+
|
|
4146
|
+
|
|
4147
|
+
|
|
4148
|
+
|
|
4149
|
+
|
|
4150
|
+
|
|
4151
|
+
|
|
4152
|
+
|
|
4153
|
+
|
|
4154
|
+
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
</dl>
|
|
4159
|
+
|
|
4160
|
+
|
|
4161
|
+
|
|
4162
|
+
|
|
4163
|
+
|
|
4164
|
+
|
|
4165
|
+
|
|
4166
|
+
|
|
4167
|
+
|
|
4168
|
+
|
|
4169
|
+
|
|
4170
|
+
|
|
4171
|
+
|
|
4172
|
+
<h5 class="h5-parameters">Parameters:</h5>
|
|
4173
|
+
|
|
4174
|
+
|
|
4175
|
+
<table class="params">
|
|
4176
|
+
<thead>
|
|
4177
|
+
<tr>
|
|
4178
|
+
|
|
4179
|
+
<th>Name</th>
|
|
4180
|
+
|
|
4181
|
+
|
|
4182
|
+
<th>Type</th>
|
|
4183
|
+
|
|
4184
|
+
|
|
4185
|
+
<th>Attributes</th>
|
|
4186
|
+
|
|
4187
|
+
|
|
4188
|
+
|
|
4189
|
+
<th>Default</th>
|
|
4190
|
+
|
|
4191
|
+
|
|
4192
|
+
<th class="last">Description</th>
|
|
4193
|
+
</tr>
|
|
4194
|
+
</thead>
|
|
4195
|
+
|
|
4196
|
+
<tbody>
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
<tr>
|
|
4200
|
+
|
|
4201
|
+
<td class="name"><code>pk</code></td>
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
<td class="type">
|
|
4205
|
+
|
|
4206
|
+
|
|
4207
|
+
<span class="param-type">String</span>
|
|
4208
|
+
|
|
|
4209
|
+
|
|
4210
|
+
<span class="param-type">Number</span>
|
|
4211
|
+
|
|
4212
|
+
|
|
4213
|
+
|
|
4214
|
+
|
|
4215
|
+
</td>
|
|
4216
|
+
|
|
4217
|
+
|
|
4218
|
+
<td class="attributes">
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
|
|
4222
|
+
|
|
4223
|
+
|
|
4224
|
+
</td>
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
<td class="default">
|
|
4229
|
+
|
|
4230
|
+
</td>
|
|
4231
|
+
|
|
4232
|
+
|
|
4233
|
+
<td class="description last"><p>輸入主鍵值,即數據內opt.pk欄位之值</p></td>
|
|
4234
|
+
</tr>
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
|
|
4238
|
+
<tr>
|
|
4239
|
+
|
|
4240
|
+
<td class="name"><code>option</code></td>
|
|
4241
|
+
|
|
4242
|
+
|
|
4243
|
+
<td class="type">
|
|
4244
|
+
|
|
4245
|
+
|
|
4246
|
+
<span class="param-type">Object</span>
|
|
4247
|
+
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
|
|
4251
|
+
</td>
|
|
4252
|
+
|
|
4253
|
+
|
|
4254
|
+
<td class="attributes">
|
|
4255
|
+
|
|
4256
|
+
<optional><br>
|
|
4257
|
+
|
|
4258
|
+
|
|
4259
|
+
|
|
4260
|
+
|
|
4261
|
+
|
|
4262
|
+
</td>
|
|
4263
|
+
|
|
4264
|
+
|
|
4265
|
+
|
|
4266
|
+
<td class="default">
|
|
4267
|
+
|
|
4268
|
+
<code>{}</code>
|
|
4269
|
+
|
|
4270
|
+
</td>
|
|
4271
|
+
|
|
4272
|
+
|
|
4273
|
+
<td class="description last"><p>輸入設定物件,預設為{}</p>
|
|
4274
|
+
<h6>Properties</h6>
|
|
4275
|
+
|
|
4276
|
+
|
|
4277
|
+
<table class="params">
|
|
4278
|
+
<thead>
|
|
4279
|
+
<tr>
|
|
4280
|
+
|
|
4281
|
+
<th>Name</th>
|
|
4282
|
+
|
|
4283
|
+
|
|
4284
|
+
<th>Type</th>
|
|
4285
|
+
|
|
4286
|
+
|
|
4287
|
+
<th>Attributes</th>
|
|
4288
|
+
|
|
4289
|
+
|
|
4290
|
+
|
|
4291
|
+
<th>Default</th>
|
|
4292
|
+
|
|
4293
|
+
|
|
4294
|
+
<th class="last">Description</th>
|
|
4295
|
+
</tr>
|
|
4296
|
+
</thead>
|
|
4297
|
+
|
|
4298
|
+
<tbody>
|
|
4299
|
+
|
|
4300
|
+
|
|
4301
|
+
<tr>
|
|
4302
|
+
|
|
4303
|
+
<td class="name"><code>instance</code></td>
|
|
4304
|
+
|
|
4305
|
+
|
|
4306
|
+
<td class="type">
|
|
4307
|
+
|
|
4308
|
+
|
|
4309
|
+
<span class="param-type">Object</span>
|
|
4310
|
+
|
|
4311
|
+
|
|
4312
|
+
|
|
4313
|
+
|
|
4314
|
+
</td>
|
|
4315
|
+
|
|
4316
|
+
|
|
4317
|
+
<td class="attributes">
|
|
4318
|
+
|
|
4319
|
+
<optional><br>
|
|
4320
|
+
|
|
4321
|
+
|
|
4322
|
+
|
|
4323
|
+
|
|
4324
|
+
|
|
4325
|
+
</td>
|
|
4326
|
+
|
|
4327
|
+
|
|
4328
|
+
|
|
4329
|
+
<td class="default">
|
|
4330
|
+
|
|
4331
|
+
<code>null</code>
|
|
4332
|
+
|
|
4333
|
+
</td>
|
|
4334
|
+
|
|
4335
|
+
|
|
4336
|
+
<td class="description last"><p>輸入實例instance物件,預設為null</p></td>
|
|
4337
|
+
</tr>
|
|
4338
|
+
|
|
4339
|
+
|
|
4340
|
+
|
|
4341
|
+
<tr>
|
|
4342
|
+
|
|
4343
|
+
<td class="name"><code>transaction</code></td>
|
|
4344
|
+
|
|
4345
|
+
|
|
4346
|
+
<td class="type">
|
|
4347
|
+
|
|
4348
|
+
|
|
4349
|
+
<span class="param-type">Object</span>
|
|
4350
|
+
|
|
4351
|
+
|
|
4352
|
+
|
|
4353
|
+
|
|
4354
|
+
</td>
|
|
4355
|
+
|
|
4356
|
+
|
|
4357
|
+
<td class="attributes">
|
|
4358
|
+
|
|
4359
|
+
<optional><br>
|
|
4360
|
+
|
|
4361
|
+
|
|
4362
|
+
|
|
4363
|
+
|
|
4364
|
+
|
|
4365
|
+
</td>
|
|
4366
|
+
|
|
4367
|
+
|
|
4368
|
+
|
|
4369
|
+
<td class="default">
|
|
4370
|
+
|
|
4371
|
+
<code>null</code>
|
|
4372
|
+
|
|
4373
|
+
</td>
|
|
4374
|
+
|
|
4375
|
+
|
|
4376
|
+
<td class="description last"><p>輸入交易(transaction)物件,預設為null</p></td>
|
|
4377
|
+
</tr>
|
|
4378
|
+
|
|
4379
|
+
|
|
4380
|
+
</tbody>
|
|
4381
|
+
</table>
|
|
4382
|
+
|
|
4383
|
+
</td>
|
|
4384
|
+
</tr>
|
|
4385
|
+
|
|
4386
|
+
|
|
4387
|
+
</tbody>
|
|
4388
|
+
</table>
|
|
4389
|
+
|
|
4390
|
+
|
|
4391
|
+
|
|
4392
|
+
|
|
4393
|
+
|
|
4394
|
+
|
|
4395
|
+
|
|
4396
|
+
|
|
4397
|
+
|
|
4398
|
+
|
|
4399
|
+
|
|
4400
|
+
|
|
4401
|
+
|
|
4402
|
+
|
|
4403
|
+
|
|
4404
|
+
|
|
4405
|
+
<h5 class="h5-returns">Returns:</h5>
|
|
4406
|
+
|
|
4407
|
+
|
|
4408
|
+
<div class="param-desc">
|
|
4409
|
+
<p>回傳Promise,resolve回傳數據物件,若無此主鍵或主鍵值無效則回傳null,reject回傳錯誤訊息</p>
|
|
3725
4410
|
</div>
|
|
3726
4411
|
|
|
3727
4412
|
|
|
@@ -3763,7 +4448,7 @@
|
|
|
3763
4448
|
<br class="clear">
|
|
3764
4449
|
|
|
3765
4450
|
<footer>
|
|
3766
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on
|
|
4451
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Mon Aug 17 2026 12:04:05 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
|
|
3767
4452
|
</footer>
|
|
3768
4453
|
|
|
3769
4454
|
<script>prettyPrint();</script>
|