The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SQL::Builder::Text - represent values to be quoted in SQL

SYNOPSIS

This hasn't had much work done to it yet and will change significantly next release.

        my $text = SQL::Builder::Text->new(text => "a simple string");

        # 'a string'
        print $text->sql

Hopefully this will act more like SQL::Builder::Table(3) and SQL::Builder::Column(3) in terms of quoting mechanisms and support

DESCRIPTION

This inherits from SQL::Builder::Base(3)

METHODS

sql()

Returns the SQL serialization. Filters the value of text() through SQL::Builder::Base::dosql() then quotes it.

text([$item])

Get/set the value to be quoted. If arguments are passed then the value is set and current object returned. If no arguments present the current value is returned.

children()

Return a SQL::Builder::Iterator(3) object to iterate over the value of text()

SEE ALSO

SQL::Builder::Placeholder(3) SQL::Builder::Base(3) SQL::Builder(3)