- SQL::OOP::ID CLASS
- SQL::OOP::ID::Parts CLASS
- SEE ALSO
SQL::OOP::ID - IDs for SQL
### field my $field = SQL::OOP::ID->new(@path_to_field); $field->to_string # e.g. "tbl"."col" ### from my $from = SQL::OOP::ID->new(@path_to_table); $from->to_string # e.g. "schema"."tbl"
SQL::OOP::ID class represents IDs for such as table, schema fields.
This class represents IDs such as table names, schema, field names. This class inherits SQL::OOP::Array class.
Here is some examples.
my $id_obj = SQL::OOP::ID->new('public', 'tbl1'); $id_obj->to_string; # "public"."tbl1" $id_obj->as('TMP'); $id_obj->to_string; # "public"."tbl1" AS TMP
Appends elements into existing instance.
This method generates SQL. This is automatically called by to_string so you don't have to call it directly.
This class is for internal use.