lideming / btrdb Goto Github PK
View Code? Open in Web Editor NEWA Copy-on-Write NoSQL database engine inspired by btrfs
License: MIT License
A Copy-on-Write NoSQL database engine inspired by btrfs
License: MIT License
Hi, for a while i'm using btrdb databeses for simple data storage in Deno. After i upgrade Deno it's last version, and try to creating table and upsert some initial datas in it I encountered this error message:
error: Uncaught Error: Expect 16 == 19 throw new Error("Expect " + r.written + " == " + len); ^ at writeValue (https://deno.land/x/[email protected]/src/utils/binval.ts:75:13) at writeValue (https://deno.land/x/[email protected]/src/utils/binval.ts:107:9) at DocumentValue.writeTo (https://deno.land/x/[email protected]/src/utils/value.ts:141:5) at InFileStorage.addData (https://deno.land/x/[email protected]/src/pages/storage.ts:325:11) at async DbDocSet._set (https://deno.land/x/[email protected]/src/database/DbDocSet.ts:150:13) at async DbDocSet.upsert (https://deno.land/x/[email protected]/src/database/DbDocSet.ts:114:5)
Here is an example code how i offently upsert data usage:
const exampleWriteCode = async (dbpath, data) => {
const db = new Database();
await db.openFile(dbpath);
const tbl = await db.createSet("tbl", "doc");
await db.commit();
for (let i = 0; i < data.length; i++) {
const d = data[i];
await tbl.upsert({ ...d });
}
await db.forceCommit();
};
After i encountered this error, downgraded deno to 1.31.1 fix this issue. This error produced v1.31.2 or later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.