Jifty:...le::Pg(3pm)
โจ NAME โจ
Jifty::DBI::Handle::Pg โ a Postgres-specific Handle object ๐
(it lives in the Jifty:...le::Pg page of the User Contributed Perl Documentation, so you already know it's giving ~legacy~ but make it work ๐ซถ)
๐ธ SYNOPSIS ๐ธ
okay so bestie... there's literally nothing here. no synopsis. no code. the section exists and that's it. iconic behaviour honestly ๐ (go read METHODS instead, that's where the good stuff is)
๐ฆ DESCRIPTION ๐ฆ
This module hands you a subclass of Jifty::DBI::Handle that exists purely to compensate for some of the idiosyncrasies of Postgres ๐ญ like Postgres is amazing and we love her but she does have her little quirks and this module is the bestie who smooths everything over. no cap.
๐ METHODS ๐
๐ connect
connect takes a hashref and passes it off to SUPER::connect; forces the timezone to GMT, returns a database handle โจ
so like, it's a middleman but a useful middleman. it grabs your hashref, yeets it up to SUPER::connect, makes sure the timezone is locked to GMT, and hands you back a database handle. periodt. ๐ซถ
๐ insert
Takes a table name as the first argument and assumes that the rest of the arguments are an array of key-value pairs to be inserted. ๐
In case of insert failure, returns a Class::ReturnValue object preloaded with error info ๐ญ so if it flops, you get a whole object with the tea in it instead of just... nothing.
๐ id_sequence_name TABLE
Takes a TABLE name and returns the name of the sequence of the primary key for that table ๐ like "hey what's the sequence called" and it tells you.
๐ blob_params column_NAME column_type
Returns a hash ref for the bind_param call to identify BLOB types used by the current database for a particular column type. ๐ The current Postgres implementation only supports BYTEA types โ that's it, that's the whole menu, no substitutions bestie.
๐ apply_limits STATEMENTREF ROWS_PER_PAGE FIRST_ROW
takes an SQL SELECT statement and massages it to return ROWS_PER_PAGE starting with FIRST_ROW ๐โโ๏ธ like it literally gives your query a little spa day so it comes back paginated exactly how you asked.
๐ _make_clause_case_insensitive column operator VALUE
Takes a column, operator and value. performs the magic necessary to make your database treat this clause as case insensitive โจ๐ฎ
Returns a column operator value triple ๐ (yes it's the same three things but now the magic has been performed, trust)
๐ distinct_query STATEMENTREF
takes an incomplete SQL SELECT statement and massages it to return a DISTINCT result set ๐ another lil spa day, but this time your results come back de-duplicated.
๐ canonical_true
The canonical true value in Postgres is 't' โ
๐ canonical_false
The canonical false value in Postgres is 'f' โ
๐ SEE ALSO ๐
Jifty::DBIJifty::DBI::HandleDBD::Pg
and that's the whole page, bestie ๐ this was Jifty:...le::Pg from the User Contributed Perl Documentation, dated 2022-06-15 and generated with perl v5.34.0. go forth and query responsibly, mwah ๐๐
๐ฆ where this page comes from
- debian bookworm: libjifty-dbi-perl 0.78-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libjifty-dbi-perl 0.78-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libjifty-dbi-perl 0.78-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libjifty-dbi-perl 0.78-3 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libjifty-dbi-perl 0.78-3 ยท 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