How to use the node-firebird-driver.Blob function in node-firebird-driver

To help you get started, we’ve selected a few node-firebird-driver examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github asfernandes / node-firebird-drivers / packages / node-firebird-driver-native / src / lib / blob.ts View on Github external
return await attachment.client.statusAction(async status => {
			const blobId = new Uint8Array(8);
			const blobHandle = await attachment.attachmentHandle!.createBlobAsync(
				status, transaction.transactionHandle, blobId, 0, undefined);

			const blob = new Blob(attachment, blobId);

			const blobStream = new BlobStreamImpl(blob, attachment);
			blobStream.blobHandle = blobHandle;
			return blobStream;
		});
	}