SQL::S...::Term(3pm)

πŸ“¦
version 1.414 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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. ⭐


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