serializable-bptree 6.2.3 → 7.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.
- package/README.md +4 -1
- package/dist/cjs/index.cjs +713 -484
- package/dist/esm/index.mjs +713 -484
- package/dist/types/BPTreeAsync.d.ts +9 -44
- package/dist/types/BPTreeSync.d.ts +7 -41
- package/dist/types/SerializeStrategyAsync.d.ts +3 -3
- package/dist/types/SerializeStrategySync.d.ts +3 -3
- package/dist/types/base/BPTree.d.ts +5 -75
- package/dist/types/base/BPTreeAsyncBase.d.ts +41 -0
- package/dist/types/base/BPTreeSyncBase.d.ts +39 -0
- package/dist/types/base/SerializeStrategy.d.ts +9 -8
- package/dist/types/index.d.ts +3 -2
- package/dist/types/transaction/BPTreeAsyncSnapshotStrategy.d.ts +17 -0
- package/dist/types/transaction/BPTreeAsyncTransaction.d.ts +44 -0
- package/dist/types/transaction/BPTreeSyncSnapshotStrategy.d.ts +17 -0
- package/dist/types/transaction/BPTreeSyncTransaction.d.ts +42 -0
- package/dist/types/types/index.d.ts +91 -0
- package/package.json +1 -1
- package/dist/types/utils/types.d.ts +0 -5
package/README.md
CHANGED
|
@@ -77,6 +77,7 @@ Additionally, this library supports asynchronous operations and rule-based query
|
|
|
77
77
|
|
|
78
78
|
## Key Features
|
|
79
79
|
|
|
80
|
+
- **Transactions**: Supports ACID transactions with Snapshot Isolation (MVCC).
|
|
80
81
|
- **Serializable**: Save and load the B+Tree state to/from any storage (File, DB, Memory, etc.).
|
|
81
82
|
- **Duplicate Values**: Naturally handles duplicate values.
|
|
82
83
|
- **Async/Sync Support**: Provides both synchronous and asynchronous APIs.
|
|
@@ -114,7 +115,7 @@ import {
|
|
|
114
115
|
ValueComparator,
|
|
115
116
|
NumericComparator,
|
|
116
117
|
StringComparator
|
|
117
|
-
} from 'https://cdn.jsdelivr.net/npm/serializable-bptree@
|
|
118
|
+
} from 'https://cdn.jsdelivr.net/npm/serializable-bptree@7/+esm'
|
|
118
119
|
</script>
|
|
119
120
|
```
|
|
120
121
|
|
|
@@ -129,6 +130,8 @@ Explore the detailed guides and concepts of `serializable-bptree`:
|
|
|
129
130
|
- [Query Conditions](./docs/QUERY.md): Detailed explanation of the `where()` operators.
|
|
130
131
|
- [Asynchronous Usage](./docs/ASYNC.md): How to use the tree in an async environment.
|
|
131
132
|
- **Advanced Topics**
|
|
133
|
+
- [Transaction System (MVCC)](./docs/TRANSACTION.md): ACID transactions, Snapshot Isolation, and Optimistic Locking.
|
|
134
|
+
- [Best Practices](./docs/BEST_PRACTICES.md): Tips for bulk insertion and performance optimization.
|
|
132
135
|
- [Duplicate Value Handling](./docs/DUPLICATE_VALUES.md): Strategies for managing large amounts of duplicate data.
|
|
133
136
|
- [Concurrency & Synchronization](./docs/CONCURRENCY.md): Multi-instance usage and locking mechanisms.
|
|
134
137
|
- [Query Optimization Guide](./docs/QUERY.md#performance--optimization): How to use `ChooseDriver`, `get()`, and `verify()` for complex queries.
|