Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sqlite3/src/blob.ts>SQLBlob#read

Fastest & correct JavaScript bindings to SQLite3 C API, using Deno FFI.
Go to Latest
method SQLBlob.prototype.read
import { SQLBlob } from "https://deno.land/x/sqlite3@0.6.1/src/blob.ts";

Read asynchronously from the Blob at given offset into a buffer.

This function suspends sqlite3_blob_read function into a separate thread, so beware of data races. Once you pass a buffer it should not be used until this function resolves.

Parameters

offset: number
p: Uint8Array

Returns

Promise<void>