asfernandes / node-firebird-drivers

Node.js Firebird Drivers
MIT License
53 stars 17 forks source link

Add options to Attachment.createBlob for stream blob creation #130

Closed asfernandes closed 1 year ago

asfernandes commented 1 year ago
/** CreateBlobOptions interface. */
export interface CreateBlobOptions {
    type?: 'SEGMENTED' | 'STREAM';
}

export interface Attachment {
    /** Creates a blob and return its stream. */
    createBlob(transaction: Transaction, options?: CreateBlobOptions): Promise<BlobStream>;
}