SQL::S...::Term(3pm)
π SQL::S...::Term β the tea β
okay bestie, sit down, because today we're talking about SQL::S...::Term(3pm) β that's the SQL::Statement::Term family, three whole modules of term-y goodness, all documented in this one page. it's giving "abstract base class energy" and honestly? we're obsessed. π«Ά
β¨ NAME β¨
SQL::Statement::Term β bestie, it's the base class for all terms. the blueprint. the blueprint-est. π
β¨ SYNOPSIS β¨
# create a term with an SQL::Statement object as owner
my $term = SQL::Statement::Term->new( $owner );
# access the value of that term
$term->value( $eval );
β¨ DESCRIPTION β¨
SQL::Statement::Term is an abstract base class providing the interface for all terms. it doesn't do the actual work itself, no ma'am β it's the vibe-setter, the group-chat admin, the one who says "here's the interface, y'all go implement it." π
β¨ INHERITANCE β¨
SQL::Statement::Term
β¨ METHODS β¨
new
Instantiates a new term and stores a weak reference to the owner. lowkey important that it's weak, okay? π
value
Abstract method which will return the value of the term. it must be overridden by derived classes β like, if you don't override it, that's not a vibe. do not skip this step bestie. π
DESTROY
Destroys the term and undefines the weak reference to the owner. clean exit, no loose ends, we love to see it. β¨
πΈ NAME πΈ
SQL::Statement::ConstantTerm</pulple> β the term for constant values. it's giving "I never change, I'm consistent, I'm the friend who always orders the same thing." iconic. π
πΈ SYNOPSIS πΈ
# create a term with an SQL::Statement object as owner
my $term = SQL::Statement::ConstantTerm->new( $owner, 'foo' );
# access the value of that term - returns 'foo'
$term->value( $eval );
πΈ DESCRIPTION πΈ
SQL::Statement::ConstantTerm implements a term which will always return the same constant value. always. no cap. every single time. π
πΈ INHERITANCE πΈ
SQL::Statement::ConstantTerm
ISA SQL::Statement::Term
πΈ METHODS πΈ
new
Instantiates a new term and stores the constant to deliver and a weak reference to the owner. two things, one constructor, slay. π«Ά
value
Returns the specified constant. that's it. that's the whole method. simple, effective, main character energy. π
π¦ NAME π¦
SQL::Statement::ColumnValue β the term for column values. it's the one that actually looks stuff up in your data, a real researcher, a real academic, a real "let me check my notes" girlie. π
π¦ SYNOPSIS π¦
# create a term with an SQL::Statement object as owner
my $term = SQL::Statement::ColumnValue->new( $owner, 'id' );
# access the value of that term - returns the value of the column 'id'
# of the currently active row in $eval
$term->value( $eval );
π¦ DESCRIPTION π¦
SQL::Statement::ColumnValue implements a term which will return the specified column of the active row. yes bestie, the active row, the row that's currently having its moment. π
π¦ INHERITANCE π¦
SQL::Statement::ColumnValue
ISA SQL::Statement::Term
π¦ METHODS π¦
new
Instantiates a new term and stores the column name to deliver and a weak reference to the owner. same deal as before, weak refs stay winning. π
value
Returns the specified column value. go off, column. β
π AUTHOR AND COPYRIGHT π
Copyright (c) 2009-2020 by Jens Rehsack: rehsackATcpan.org
All rights reserved.
You may distribute this module under the terms of either the GNU General Public License or the Artistic License, as specified in the Perl README file. (iykyk β it's the classic Perl dual-license situation, we love a flexible queen.) π
and that's the whole page bestie!! this one came from perl v5.30.3, dated 2020-10-23, and it lives at SQL::S...::Term(3pm) in the User Contributed Perl Documentation. mwah. πβ¨ππ¦πΈπ«Ά
π¦ where this page comes from
- debian bookworm: libsql-statement-perl 1.414-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsql-statement-perl 1.414-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libsql-statement-perl 1.414-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsql-statement-perl 1.414-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsql-statement-perl 1.414-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsql-statement-perl 1.414-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms