w-orm-lmdb 1.0.12 → 1.0.14

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/docs/index.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="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><li data-type='method'><a href="WOrmLmdb.html#.selectById">selectById</a></li></ul></li></ul>
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><li data-type='method'><a href="WOrmLmdb.html#.selectByPk">selectByPk</a></li></ul></li></ul>
33
33
 
34
34
  </nav>
35
35
 
@@ -71,7 +71,7 @@
71
71
  <br class="clear">
72
72
 
73
73
  <footer>
74
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Aug 16 2026 16:58:57 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
74
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Sun Aug 16 2026 23:16:22 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
75
75
  </footer>
76
76
 
77
77
  <script>prettyPrint();</script>
package/g-basic.mjs CHANGED
@@ -99,13 +99,13 @@ async function test() {
99
99
  let so = await wo.select({ id: 'id-rosemary' })
100
100
  console.log('select', so)
101
101
 
102
- //selectById
103
- let sb = await wo.selectById('id-rosemary')
104
- console.log('selectById', sb)
102
+ //selectByPk
103
+ let sb = await wo.selectByPk('id-rosemary')
104
+ console.log('selectByPk', sb)
105
105
 
106
- //selectById by id not existed
107
- let sbn = await wo.selectById('id-not-existed')
108
- console.log('selectById by id not existed', sbn)
106
+ //selectByPk by pk not existed
107
+ let sbn = await wo.selectByPk('id-not-existed')
108
+ console.log('selectByPk by pk not existed', sbn)
109
109
 
110
110
  //select by $and, $gt, $lt
111
111
  let spa = await wo.select({ '$and': [{ value: { '$gt': 123 } }, { value: { '$lt': 200 } }] })
@@ -153,9 +153,9 @@ test()
153
153
  // insert then { n: 3, nInserted: 3, ok: 1 }
154
154
  // change save
155
155
  // save then [
156
- // { n: 1, nModified: 1, ok: 1 },
157
- // { n: 1, nModified: 1, ok: 1 },
158
- // { n: 0, nModified: 0, ok: 1 }
156
+ // { n: 1, nInserted: 0, nModified: 1, ok: 1 },
157
+ // { n: 1, nInserted: 0, nModified: 1, ok: 1 },
158
+ // { n: 0, nInserted: 0, nModified: 0, ok: 1 }
159
159
  // ]
160
160
  // select all [
161
161
  // {
@@ -167,8 +167,8 @@ test()
167
167
  // { id: 'id-rosemary', name: 'rosemary(modify)', value: 123.456 }
168
168
  // ]
169
169
  // select [ { id: 'id-rosemary', name: 'rosemary(modify)', value: 123.456 } ]
170
- // selectById { id: 'id-rosemary', name: 'rosemary(modify)', value: 123.456 }
171
- // selectById by id not existed null
170
+ // selectByPk { id: 'id-rosemary', name: 'rosemary(modify)', value: 123.456 }
171
+ // selectByPk by pk not existed null
172
172
  // select by $and, $gt, $lt [ { id: 'id-rosemary', name: 'rosemary(modify)', value: 123.456 } ]
173
173
  // select by $or, $gte, $lte [
174
174
  // {
@@ -190,7 +190,7 @@ test()
190
190
  // }
191
191
  // ]
192
192
  // change save
193
- // save then [ { n: 1, nModified: 1, ok: 1 } ]
193
+ // save then [ { n: 1, nInserted: 0, nModified: 1, ok: 1 } ]
194
194
  // change del
195
195
  // del then [ { n: 1, nDeleted: 1, ok: 1 } ]
196
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-orm-lmdb",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "main": "dist/w-orm-lmdb.umd.js",
5
5
  "dependencies": {
6
6
  "lmdb": "^3.5.6",