import { SQLBlob } from "https://deno.land/x/sqlite3@0.12.0/mod.ts";
Enumerates SQLite3 Blob opened for streamed I/O.
BLOB columns still return a Uint8Array
of the data.
You can instead open this from Database.openBlob()
.
Constructors
new
SQLBlob(db: Database, options: BlobOpenOptions)Properties
readonly
readable: ReadableStream<Uint8Array>Obtains Web Stream for reading the Blob
readonly
writable: WritableStream<Uint8Array>Obtains Web Stream for writing to the Blob
Methods
close(): void
Close the Blob. It must be called to prevent leaks.
readSync(offset: number, p: Uint8Array): void
Read from the Blob at given offset into a buffer (Uint8Array)
writeSync(offset: number, p: Uint8Array): void
Write a buffer (Uint8Array) at given offset in the Blob
[Symbol.for("Deno.customInspect")](): string
[Symbol.iterator](): IterableIterator<Uint8Array>