Name

SPVM::DBI::BindData::Blob - A Data Container for Binary Large Objects (BLOB)

Description

DBI::BindData::Blob class in SPVM represents a data container for Binary Large Objects (BLOB).

When binding parameters to a statement, this class is used to explicitly indicate that a string should be treated as a BLOB type by the database driver, rather than a normal character string.

This class implements Stringable interface.

Usage

use DBI::BindData::Blob;

# Create a new BLOB data container with binary string
my $blob_data = DBI::BindData::Blob->new($binary_string);

# Use it in statement binding
$st->bind_param(1, $blob_data);

Interfaces

Stringable

Fields

value

has value : rw string;

The binary data value represented as a string.

Class Methods

new

static method new : DBI::BindData::Blob ($binary: string = undef);

Creates a new DBI::BindData::Blob object with the given binary $binary.

Instance Methods

to_string

method to_string : string ();

Returns the "value" field. This method is used for stringification and fulfills the Stringable interface.

See Also

DBI, DBI::St, Stringable

Repository

https://github.com/yuki-kimoto/SPVM-DBI

Author

Yuki Kimoto kimoto.yuki@gmail.com

Copyright & License

Copyright (c) 2026 Yuki Kimoto

MIT License