@ohos-ports/lmdb 2.5.3 → 2.8.5-beta.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 (124) hide show
  1. package/LICENSE +20 -20
  2. package/README.md +72 -28
  3. package/SECURITY.md +12 -12
  4. package/bin/download-prebuilds.js +15 -0
  5. package/binding.gyp +115 -111
  6. package/build/Release/lmdb.node +0 -0
  7. package/caching.js +212 -156
  8. package/dependencies/lmdb/libraries/liblmdb/COPYRIGHT +20 -20
  9. package/dependencies/lmdb/libraries/liblmdb/Doxyfile +1631 -1631
  10. package/dependencies/lmdb/libraries/liblmdb/LICENSE +47 -47
  11. package/dependencies/lmdb/libraries/liblmdb/Makefile +136 -136
  12. package/dependencies/lmdb/libraries/liblmdb/chacha8.c +183 -183
  13. package/dependencies/lmdb/libraries/liblmdb/chacha8.h +14 -14
  14. package/dependencies/lmdb/libraries/liblmdb/crypto.c +121 -121
  15. package/dependencies/lmdb/libraries/liblmdb/intro.doc +192 -192
  16. package/dependencies/lmdb/libraries/liblmdb/lmdb.h +28 -3
  17. package/dependencies/lmdb/libraries/liblmdb/mdb.c +157 -31
  18. package/dependencies/lmdb/libraries/liblmdb/mdb_copy.1 +74 -74
  19. package/dependencies/lmdb/libraries/liblmdb/mdb_copy.c +106 -106
  20. package/dependencies/lmdb/libraries/liblmdb/mdb_drop.1 +53 -53
  21. package/dependencies/lmdb/libraries/liblmdb/mdb_drop.c +154 -154
  22. package/dependencies/lmdb/libraries/liblmdb/mdb_dump.1 +94 -94
  23. package/dependencies/lmdb/libraries/liblmdb/mdb_dump.c +333 -333
  24. package/dependencies/lmdb/libraries/liblmdb/mdb_load.1 +97 -97
  25. package/dependencies/lmdb/libraries/liblmdb/mdb_load.c +530 -530
  26. package/dependencies/lmdb/libraries/liblmdb/mdb_stat.1 +83 -83
  27. package/dependencies/lmdb/libraries/liblmdb/mdb_stat.c +276 -276
  28. package/dependencies/lmdb/libraries/liblmdb/midl-sparse.c +452 -0
  29. package/dependencies/lmdb/libraries/liblmdb/midl.c +452 -452
  30. package/dependencies/lmdb/libraries/liblmdb/midl.h +208 -208
  31. package/dependencies/lmdb/libraries/liblmdb/module.c +101 -101
  32. package/dependencies/lmdb/libraries/liblmdb/module.h +16 -16
  33. package/dependencies/lmdb/libraries/liblmdb/mtest.c +178 -178
  34. package/dependencies/lmdb/libraries/liblmdb/mtest2.c +124 -124
  35. package/dependencies/lmdb/libraries/liblmdb/mtest3.c +133 -133
  36. package/dependencies/lmdb/libraries/liblmdb/mtest4.c +168 -168
  37. package/dependencies/lmdb/libraries/liblmdb/mtest5.c +135 -135
  38. package/dependencies/lmdb/libraries/liblmdb/mtest6.c +141 -141
  39. package/dependencies/lmdb/libraries/liblmdb/mtest_enc.c +190 -190
  40. package/dependencies/lmdb/libraries/liblmdb/mtest_enc2.c +189 -189
  41. package/dependencies/lmdb/libraries/liblmdb/mtest_remap.c +177 -177
  42. package/dependencies/lmdb/libraries/liblmdb/sample-bdb.txt +73 -73
  43. package/dependencies/lmdb/libraries/liblmdb/sample-mdb.txt +62 -62
  44. package/dependencies/lmdb/libraries/liblmdb/tooltag +27 -27
  45. package/dependencies/lmdb-data-v1/libraries/liblmdb/CHANGES +266 -0
  46. package/dependencies/lmdb-data-v1/libraries/liblmdb/COPYRIGHT +20 -20
  47. package/dependencies/lmdb-data-v1/libraries/liblmdb/Doxyfile +1631 -1631
  48. package/dependencies/lmdb-data-v1/libraries/liblmdb/LICENSE +47 -47
  49. package/dependencies/lmdb-data-v1/libraries/liblmdb/intro.doc +192 -192
  50. package/dependencies/lmdb-data-v1/libraries/liblmdb/lmdb.h +1608 -1653
  51. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb.c +10320 -11359
  52. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_copy.1 +55 -61
  53. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_copy.c +82 -84
  54. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_dump.1 +75 -81
  55. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_dump.c +319 -319
  56. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_load.1 +84 -84
  57. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_load.c +496 -492
  58. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_stat.1 +64 -70
  59. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_stat.c +263 -264
  60. package/dependencies/lmdb-data-v1/libraries/liblmdb/midl.c +359 -421
  61. package/dependencies/lmdb-data-v1/libraries/liblmdb/midl.h +186 -200
  62. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest.c +177 -177
  63. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest2.c +124 -124
  64. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest3.c +133 -133
  65. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest4.c +168 -168
  66. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest5.c +135 -135
  67. package/dependencies/lmdb-data-v1/libraries/liblmdb/mtest6.c +141 -141
  68. package/dependencies/lmdb-data-v1/libraries/liblmdb/sample-bdb.txt +73 -73
  69. package/dependencies/lmdb-data-v1/libraries/liblmdb/sample-mdb.txt +62 -62
  70. package/dependencies/lmdb-data-v1/libraries/liblmdb/tooltag +22 -27
  71. package/dependencies/lz4/LICENSE +11 -11
  72. package/dependencies/lz4/lib/LICENSE +24 -24
  73. package/dependencies/lz4/lib/Makefile +225 -0
  74. package/dependencies/lz4/lib/README.md +169 -137
  75. package/dependencies/lz4/lib/dll/example/Makefile +63 -0
  76. package/dependencies/lz4/lib/dll/example/README.md +69 -69
  77. package/dependencies/lz4/lib/dll/liblz4.def +62 -62
  78. package/dependencies/lz4/lib/liblz4-dll.rc.in +35 -35
  79. package/dependencies/lz4/lib/liblz4.pc.in +14 -14
  80. package/dependencies/lz4/lib/lz4.c +2722 -2495
  81. package/dependencies/lz4/lib/lz4.h +842 -774
  82. package/dependencies/lz4/lib/lz4file.c +311 -0
  83. package/dependencies/lz4/lib/lz4file.h +93 -0
  84. package/dependencies/lz4/lib/lz4frame.c +2078 -1899
  85. package/dependencies/lz4/lib/lz4frame.h +692 -623
  86. package/dependencies/lz4/lib/lz4frame_static.h +47 -47
  87. package/dependencies/lz4/lib/lz4hc.c +1631 -1615
  88. package/dependencies/lz4/lib/lz4hc.h +413 -413
  89. package/dependencies/lz4/lib/xxhash.c +1030 -1030
  90. package/dependencies/lz4/lib/xxhash.h +328 -328
  91. package/dependencies/v8/v8-fast-api-calls-v16.h +790 -790
  92. package/dependencies/v8/v8-fast-api-calls.h +784 -888
  93. package/dist/index.cjs +1050 -584
  94. package/dist/index.cjs.map +1 -1
  95. package/index.d.cts +420 -0
  96. package/index.d.ts +450 -385
  97. package/index.js +38 -37
  98. package/keys.js +116 -102
  99. package/level.js +26 -26
  100. package/native.js +8 -5
  101. package/node-index.js +21 -17
  102. package/open.js +51 -17
  103. package/package.json +63 -21
  104. package/read.js +338 -95
  105. package/src/compression.cpp +12 -9
  106. package/src/cursor.cpp +82 -31
  107. package/src/dbi.cpp +78 -40
  108. package/src/env.cpp +336 -68
  109. package/src/lmdb-js.cpp +64 -64
  110. package/src/lmdb-js.h +83 -49
  111. package/src/misc.cpp +297 -28
  112. package/src/ordered-binary.cpp +46 -46
  113. package/src/txn.cpp +210 -257
  114. package/src/v8-functions.cpp +170 -166
  115. package/src/windows.c +34 -34
  116. package/src/writer.cpp +169 -84
  117. package/util/RangeIterable.js +112 -17
  118. package/util/set-optional-deps.cjs +14 -10
  119. package/util/when.js +8 -8
  120. package/write.js +145 -121
  121. package/dependencies/lmdb-data-v1/libraries/liblmdb/Makefile +0 -118
  122. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_drop.1 +0 -40
  123. package/dependencies/lmdb-data-v1/libraries/liblmdb/mdb_drop.c +0 -135
  124. package/rollup.config.js +0 -12
@@ -1,94 +1,94 @@
1
- .TH MDB_DUMP 1 "2017/07/31" "LMDB 0.9.90"
2
- .\" Copyright 2014-2021 Howard Chu, Symas Corp. All Rights Reserved.
3
- .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
4
- .SH NAME
5
- mdb_dump \- LMDB environment export tool
6
- .SH SYNOPSIS
7
- .B mdb_dump
8
- [\c
9
- .BR \-V ]
10
- [\c
11
- .BI \-f \ file\fR]
12
- [\c
13
- .BR \-l ]
14
- [\c
15
- .BR \-n ]
16
- [\c
17
- .BR \-v ]
18
- [\c
19
- .BR \-p ]
20
- [\c
21
- .BI \-m \ module
22
- [\c
23
- .BI \-w \ password\fR]]
24
- [\c
25
- .BR \-a \ |
26
- .BI \-s \ subdb\fR]
27
- .BR \ envpath
28
- .SH DESCRIPTION
29
- The
30
- .B mdb_dump
31
- utility reads a database and writes its contents to the
32
- standard output using a portable flat-text format
33
- understood by the
34
- .BR mdb_load (1)
35
- utility.
36
- .SH OPTIONS
37
- .TP
38
- .BR \-V
39
- Write the library version number to the standard output, and exit.
40
- .TP
41
- .BR \-f \ file
42
- Write to the specified file instead of to the standard output.
43
- .TP
44
- .BR \-l
45
- List the databases stored in the environment. Just the
46
- names will be listed, no data will be output.
47
- .TP
48
- .BR \-n
49
- Dump an LMDB database which does not use subdirectories.
50
- .TP
51
- .BR \-v
52
- Use the previous environment state instead of the latest state.
53
- This may be useful if the latest state has been corrupted.
54
- .TP
55
- .BR \-p
56
- If characters in either the key or data items are printing characters (as
57
- defined by isprint(3)), output them directly. This option permits users to
58
- use standard text editors and tools to modify the contents of databases.
59
-
60
- Note: different systems may have different notions about what characters
61
- are considered printing characters, and databases dumped in this manner may
62
- be less portable to external systems.
63
- .TP
64
- .BI \-m \ module
65
- Load the specified dynamic module to utilize cryptographic functions.
66
- This is required to operate on environments that have been configured
67
- with page-level checksums or encryption.
68
- .TP
69
- .BI \-w \ password
70
- Specify the password for an encrypted environment. This is only
71
- used if a cryptography module has been loaded.
72
- .TP
73
- .BR \-a
74
- Dump all of the subdatabases in the environment.
75
- .TP
76
- .BR \-s \ subdb
77
- Dump a specific subdatabase. If no database is specified, only the main database is dumped.
78
- .SH DIAGNOSTICS
79
- Exit status is zero if no errors occur.
80
- Errors result in a non-zero exit status and
81
- a diagnostic message being written to standard error.
82
-
83
- Dumping and reloading databases that use user-defined comparison functions
84
- will result in new databases that use the default comparison functions.
85
- \fBIn this case it is quite likely that the reloaded database will be
86
- damaged beyond repair permitting neither record storage nor retrieval.\fP
87
-
88
- The only available workaround is to modify the source for the
89
- .BR mdb_load (1)
90
- utility to load the database using the correct comparison functions.
91
- .SH "SEE ALSO"
92
- .BR mdb_load (1)
93
- .SH AUTHOR
94
- Howard Chu of Symas Corporation <http://www.symas.com>
1
+ .TH MDB_DUMP 1 "2017/07/31" "LMDB 0.9.90"
2
+ .\" Copyright 2014-2021 Howard Chu, Symas Corp. All Rights Reserved.
3
+ .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
4
+ .SH NAME
5
+ mdb_dump \- LMDB environment export tool
6
+ .SH SYNOPSIS
7
+ .B mdb_dump
8
+ [\c
9
+ .BR \-V ]
10
+ [\c
11
+ .BI \-f \ file\fR]
12
+ [\c
13
+ .BR \-l ]
14
+ [\c
15
+ .BR \-n ]
16
+ [\c
17
+ .BR \-v ]
18
+ [\c
19
+ .BR \-p ]
20
+ [\c
21
+ .BI \-m \ module
22
+ [\c
23
+ .BI \-w \ password\fR]]
24
+ [\c
25
+ .BR \-a \ |
26
+ .BI \-s \ subdb\fR]
27
+ .BR \ envpath
28
+ .SH DESCRIPTION
29
+ The
30
+ .B mdb_dump
31
+ utility reads a database and writes its contents to the
32
+ standard output using a portable flat-text format
33
+ understood by the
34
+ .BR mdb_load (1)
35
+ utility.
36
+ .SH OPTIONS
37
+ .TP
38
+ .BR \-V
39
+ Write the library version number to the standard output, and exit.
40
+ .TP
41
+ .BR \-f \ file
42
+ Write to the specified file instead of to the standard output.
43
+ .TP
44
+ .BR \-l
45
+ List the databases stored in the environment. Just the
46
+ names will be listed, no data will be output.
47
+ .TP
48
+ .BR \-n
49
+ Dump an LMDB database which does not use subdirectories.
50
+ .TP
51
+ .BR \-v
52
+ Use the previous environment state instead of the latest state.
53
+ This may be useful if the latest state has been corrupted.
54
+ .TP
55
+ .BR \-p
56
+ If characters in either the key or data items are printing characters (as
57
+ defined by isprint(3)), output them directly. This option permits users to
58
+ use standard text editors and tools to modify the contents of databases.
59
+
60
+ Note: different systems may have different notions about what characters
61
+ are considered printing characters, and databases dumped in this manner may
62
+ be less portable to external systems.
63
+ .TP
64
+ .BI \-m \ module
65
+ Load the specified dynamic module to utilize cryptographic functions.
66
+ This is required to operate on environments that have been configured
67
+ with page-level checksums or encryption.
68
+ .TP
69
+ .BI \-w \ password
70
+ Specify the password for an encrypted environment. This is only
71
+ used if a cryptography module has been loaded.
72
+ .TP
73
+ .BR \-a
74
+ Dump all of the subdatabases in the environment.
75
+ .TP
76
+ .BR \-s \ subdb
77
+ Dump a specific subdatabase. If no database is specified, only the main database is dumped.
78
+ .SH DIAGNOSTICS
79
+ Exit status is zero if no errors occur.
80
+ Errors result in a non-zero exit status and
81
+ a diagnostic message being written to standard error.
82
+
83
+ Dumping and reloading databases that use user-defined comparison functions
84
+ will result in new databases that use the default comparison functions.
85
+ \fBIn this case it is quite likely that the reloaded database will be
86
+ damaged beyond repair permitting neither record storage nor retrieval.\fP
87
+
88
+ The only available workaround is to modify the source for the
89
+ .BR mdb_load (1)
90
+ utility to load the database using the correct comparison functions.
91
+ .SH "SEE ALSO"
92
+ .BR mdb_load (1)
93
+ .SH AUTHOR
94
+ Howard Chu of Symas Corporation <http://www.symas.com>