Creates a new DataAPIBlob instance from a blob-like value.
You can set validate to false to bypass any validation if you're confident the value is a valid blob.
The blob-like value to convert to a DataAPIBlob
Whether to validate the blob-like value (default: true)
TypeError If blob is not a valid blob-like value
Private Readonly _rawGets the byte length of the blob, agnostic of the underlying type.
The byte length of the blob
Errorful implementation of $SerializeForCollection for TableCodec
Throws a human-readable error message warning that this datatype may not be used with collections without writing a custom ser/des codec.
Implementation of $SerializeForTable for TableCodec
Static [$Implementation of $DeserializeForTable for TableCodec
Static isDetermines whether the given value is a blob-like value (i.e. it's DataAPIBlobLike.
The value to check
true if the value is a blob-like value; false otherwise
Represents a
blobcolumn for Data API tables.See DataAPIBlobLike for the types that can be converted into a
DataAPIBlob.You may use the blob function as a shorthand for creating a new
DataAPIBlob.See the official DataStax documentation for more information.