UNPKG

node-firebird-driver-native

Version:
20 lines (19 loc) 1.08 kB
import { AttachmentImpl } from './attachment'; import { Blob, BlobSeekWhence, CreateBlobOptions } from 'node-firebird-driver'; import { AbstractBlobStream } from 'node-firebird-driver/dist/lib/impl'; import * as fb from 'node-firebird-native-api'; import { TransactionImpl } from './transaction'; /** BlobStream implementation. */ export declare class BlobStreamImpl extends AbstractBlobStream { attachment: AttachmentImpl; blobHandle?: fb.Blob; static create(attachment: AttachmentImpl, transaction: TransactionImpl, options?: CreateBlobOptions): Promise<BlobStreamImpl>; static open(attachment: AttachmentImpl, transaction: TransactionImpl, blob: Blob): Promise<BlobStreamImpl>; protected internalGetLength(): Promise<number>; protected internalClose(): Promise<void>; protected internalCancel(): Promise<void>; protected internalSeek(offset: number, whence?: BlobSeekWhence): Promise<number>; protected internalRead(buffer: Buffer): Promise<number>; protected internalWrite(buffer: Buffer): Promise<void>; get isValid(): boolean; }