Skip to content

Commit

Permalink
fix: updates for breaking ffi changes (#33)
Browse files Browse the repository at this point in the history
* fix: updates for breaking ffi changes

* ci
  • Loading branch information
DjDeveloperr authored Jun 26, 2022
1 parent 6a99e35 commit d0a20da
Show file tree
Hide file tree
Showing 4 changed files with 80 additions and 95 deletions.
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"tasks": {
"test": "deno test --unstable -A test/test.ts"
"test": "deno test --unstable -A test/test.ts",
"bench": "deno run --unstable -A bench/main.ts"
},
"lint": {
"rules": {
Expand Down
4 changes: 2 additions & 2 deletions src/database.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class Database {
}

/** Unsafe Raw (pointer) to the sqlite object */
get unsafeRawHandle(): Deno.UnsafePointer {
get unsafeRawHandle(): bigint {
return this.#handle;
}

Expand Down Expand Up @@ -364,7 +364,7 @@ export class Database {
options.row,
options.readonly === false ? 1 : 0,
);
if (handle.value === 0n) {
if (handle === 0n) {
throw new Error("null blob handle");
}
return new SQLBlob(handle);
Expand Down
Loading

0 comments on commit d0a20da

Please sign in to comment.