BlobInfo

class dsviper.BlobInfo

Bases: object

What a store knows about one blob without reading it: its id, layout, size, SQLite rowid, and whether it is chunked (over 2 GB).

Note: Not directly instantiable.

blob_id() → ValueBlobId

Return the identifier.

blob_layout() → BlobLayout

Return the layout.

chunked() → bool

Return True if the blob is stored in several chunks, which the database does above 2 GB. Such a blob is written with blob_stream_create, blob_stream_append and blob_stream_close, and read with read_blob; blob() refuses it.

row_id() → int

Return the rowid that reaches the blob in its store.

size() → int

Return the size of the blob in bytes.