BlobStream

class dsviper.BlobStream

Bases: object

A class used to copy a huge blob (> 2GB) to a database. Use the method database.blob_stream_create(blob_layout, size) to create a BlobStream, then the method database.blob_stream_append(…) to incrementally fill the content and finally the method database.blob_stream_close(…) to get the blob_id computed from the immutable content of the blob and its layout.

Note: Not directly instantiable.

blob_id() ValueBlobId

Return the identifier of the blob.

is_closed() bool

Return True if the stream is closed.

offset() int

Return the current offset.

remaining() int

Return the remaining bytes count to fill the blob.