Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: merge staging to master #38

Merged
merged 39 commits into from
Jul 14, 2022
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
946a01e
Preparing for native leveldb build
CMCDragonkai May 31, 2022
a972390
Added leveldb native dependencies
CMCDragonkai May 31, 2022
e7229bf
Direct to C++ leveldb works
CMCDragonkai Jun 7, 2022
da767cc
Switching over to rocksdb
CMCDragonkai Jun 10, 2022
e42f01e
Removed StringOrBufferLength check from rocksdb.cpp
CMCDragonkai Jun 8, 2022
dc4db39
Modularized rocksdb.cpp into a rocksdb/napi directory
CMCDragonkai Jun 8, 2022
ba968b0
Added `infoLogLevel` to `RocksDBDatabaseOptions`
CMCDragonkai Jun 10, 2022
f521ab0
Added in basic `transaction_*` methods, and modularised `src/rocksdb/…
CMCDragonkai Jun 10, 2022
92edd7f
Native addon exported functions now match naming convention standard …
CMCDragonkai Jun 10, 2022
7b55563
Fixed Transaction* workers in C++ to instantiate the `Transaction`
CMCDragonkai Jun 10, 2022
6862983
Lint fixing native C/C++ code
CMCDragonkai Jun 11, 2022
dd1cec1
Tested write-skew anomaly and solved with transactionGetForUpdate
CMCDragonkai Jun 11, 2022
8e1135c
First class snapshots
CMCDragonkai Jun 11, 2022
0dc0b96
Transactions support iterators and refactoring C++ object lifecycle
CMCDragonkai Jun 14, 2022
c909c02
GC finalizers may run after `env_cleanup_hook`, so `Detach` methods can
CMCDragonkai Jun 17, 2022
04c5448
Fix database->isClosing_ and Transaction::DecrementPendingWork should…
CMCDragonkai Jun 17, 2022
434ef4a
Testing iterator consistency
CMCDragonkai Jun 17, 2022
23d3405
Adding transactionClear
CMCDragonkai Jun 17, 2022
f9cecbc
Adding transactionMultiGet and transactionMultiGetForUpdate
CMCDragonkai Jun 18, 2022
b8a6083
Re-enabled DBTransaction and integrated it with rocksdb's optimistic …
CMCDragonkai Jun 7, 2022
58a62f2
Added DBTransaction.getForUpdate to address write skew, and added tes…
CMCDragonkai Jun 26, 2022
a06ccdf
Introducing PCC locking for `DBTransaction`
CMCDragonkai Jun 27, 2022
cb25e1f
Export `RocksDB` and `RocksDBP` interfaces
CMCDragonkai Jun 30, 2022
567526b
Updated docs
CMCDragonkai Jun 30, 2022
879c5e2
Updated benchmarks
CMCDragonkai Jun 30, 2022
8fd0c9a
Merge pull request #19 from MatrixAI/feature-control
CMCDragonkai Jun 30, 2022
6d37873
5.0.0-alpha.0
CMCDragonkai Jun 30, 2022
fd749a1
ci: use `.npmrc` to specify `npm_config_prefix` and `npm_config_jobs`
CMCDragonkai Jul 12, 2022
7ba21bb
rocksdb: changed back to using `#include <node_api.h>` because the de…
CMCDragonkai Jul 12, 2022
0bf62e3
nix: updated to 22.05 revision
CMCDragonkai Jul 12, 2022
df7bf85
nix: acquire package name with `npm pkg get name`
CMCDragonkai Jul 12, 2022
ff8f525
ci: explicitly installing node headers and static libraries into `./t…
CMCDragonkai Jul 12, 2022
6411c8d
ci: lint native code in `check:lint` job
CMCDragonkai Jul 12, 2022
6bcb953
ci: always preserve the cache even for failing jobs
CMCDragonkai Jul 12, 2022
37978ac
ci: moved `GIT_SUBMODULE_STRATEGY at the top of `variables`
CMCDragonkai Jul 12, 2022
5b43d96
ci: mkdir `./tmp` during all jobs, and override for windows
CMCDragonkai Jul 12, 2022
31d71b4
windows: fixed native build for windows
CMCDragonkai Jul 12, 2022
1f6299d
chore: lintfixed scripts/prebuild.js
CMCDragonkai Jul 13, 2022
886f7cb
binding.gyp: missing comma typo for macos builds
CMCDragonkai Jul 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Updated docs
CMCDragonkai committed Jun 30, 2022
commit 567526b827b7b45a7a7d72c4611031fb40a558ca
57 changes: 53 additions & 4 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
:root {
--light-hl-0: #000000;
--dark-hl-0: #D4D4D4;
--light-hl-1: #008000;
--dark-hl-1: #6A9955;
--light-hl-2: #795E26;
--dark-hl-2: #DCDCAA;
--light-hl-1: #AF00DB;
--dark-hl-1: #C586C0;
--light-hl-2: #001080;
--dark-hl-2: #9CDCFE;
--light-hl-3: #A31515;
--dark-hl-3: #CE9178;
--light-hl-4: #0000FF;
--dark-hl-4: #569CD6;
--light-hl-5: #795E26;
--dark-hl-5: #DCDCAA;
--light-hl-6: #0070C1;
--dark-hl-6: #4FC1FF;
--light-hl-7: #098658;
--dark-hl-7: #B5CEA8;
--light-hl-8: #267F99;
--dark-hl-8: #4EC9B0;
--light-hl-9: #008000;
--dark-hl-9: #6A9955;
--light-code-background: #F5F5F5;
--dark-code-background: #1E1E1E;
}
@@ -13,31 +27,66 @@
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--code-background: var(--light-code-background);
} }

@media (prefers-color-scheme: dark) { :root {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--code-background: var(--dark-code-background);
} }

body.light {
--hl-0: var(--light-hl-0);
--hl-1: var(--light-hl-1);
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--code-background: var(--light-code-background);
}

body.dark {
--hl-0: var(--dark-hl-0);
--hl-1: var(--dark-hl-1);
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--code-background: var(--dark-code-background);
}

.hl-0 { color: var(--hl-0); }
.hl-1 { color: var(--hl-1); }
.hl-2 { color: var(--hl-2); }
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

20 changes: 12 additions & 8 deletions docs/classes/DB.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/classes/DBIterator.html

Large diffs are not rendered by default.

38 changes: 36 additions & 2 deletions docs/classes/DBTransaction.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDB.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBCreate.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBDecrypt.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBDelete.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBDestroyed.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/classes/errors.ErrorDBIterator.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/classes/errors.ErrorDBIteratorBusy.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/classes/errors.ErrorDBIteratorDestroyed.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBKey.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBNotRunning.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBParseKey.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBParseValue.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBRunning.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/classes/errors.ErrorDBTransaction.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBTransactionCommitted.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/classes/errors.ErrorDBTransactionConflict.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBTransactionDestroyed.html

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions docs/classes/errors.ErrorDBTransactionLockType.html

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBTransactionNotCommitted.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions docs/classes/errors.ErrorDBTransactionRollbacked.html

Large diffs are not rendered by default.

19 changes: 16 additions & 3 deletions docs/index.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/interfaces/FileSystem.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/interfaces/ToString.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ToString | @matrixai/db</title><meta name="description" content="Documentation for @matrixai/db"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@matrixai/db</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label><input type="checkbox" id="tsd-filter-externals" checked/><label class="tsd-widget" for="tsd-filter-externals">Externals</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">@matrixai/db</a></li><li><a href="ToString.html">ToString</a></li></ul><h1>Interface ToString </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><div class="lead">
<p>Any type that can be turned into a string</p>
</div></div></section><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">ToString</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Methods</h3><ul class="tsd-index-list"><li class="tsd-kind-method tsd-parent-kind-interface"><a href="ToString.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Methods</h2><section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface"><a id="toString" class="tsd-anchor"></a><h3 class="tsd-anchor-link">to<wbr/>String<a href="#toString" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface"><li class="tsd-signature tsd-kind-icon">to<wbr/>String<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li></ul><ul class="tsd-descriptions"><li class="tsd-description"><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/MatrixAI/js-db/blob/master/src/types.ts#L24">js-db/src/types.ts:24</a></li></ul></aside><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4></li></ul></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Exports</a></li><li class=" tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li><li class=" tsd-kind-namespace"><a href="../modules/rocksdb.html">rocksdb</a></li><li class=" tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface"><a href="ToString.html" class="tsd-kind-icon">To<wbr/>String</a><ul><li class="tsd-kind-method tsd-parent-kind-interface"><a href="ToString.html#toString" class="tsd-kind-icon">to<wbr/>String</a></li></ul></li></ul></nav></div></div></div><footer class="with-border-bottom"><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class"><span class="tsd-kind-icon">Property</span></li><li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-constructor tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited constructor</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><span class="tsd-kind-icon">Inherited method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-property tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected property</span></li><li class="tsd-kind-method tsd-parent-kind-class tsd-is-protected"><span class="tsd-kind-icon">Protected method</span></li></ul><ul class="tsd-legend"><li class="tsd-kind-method tsd-parent-kind-class tsd-is-static"><span class="tsd-kind-icon">Static method</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="container tsd-generator"><p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
1 change: 1 addition & 0 deletions docs/interfaces/rocksdb.RocksDB.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/interfaces/rocksdb.RocksDBP.html

Large diffs are not rendered by default.

24 changes: 16 additions & 8 deletions docs/modules.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/modules/errors.html

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions docs/modules/rocksdb.html

Large diffs are not rendered by default.

37 changes: 25 additions & 12 deletions docs/modules/utils.html

Large diffs are not rendered by default.