Jifty:...SQLite(3pm)
π Jifty::DBI::Handle::SQLite π
okay bestie, so this is the Perl doc for Jifty::DBI::Handle::SQLite β a SQLite specific Handle object, living in the User Contributed Perl Documentation section (3pm). she's a whole vibe, let's get into it β¨
πΈ NAME πΈ
Jifty::DBI::Handle::SQLite β a SQLite specific Handle object. no cap, that's the whole name, she's concise π
π¦ SYNOPSIS π¦
bestie... there's literally nothing here π the original page has an empty SYNOPSIS section. iconic of her honestly. moving on! π«Ά
β¨ DESCRIPTION β¨
so this module is a subclass of Jifty::DBI::Handle β like, she inherited everything from her parent class and then added her own little fixes on top π
and what are those fixes for? for compensating for some of the idiosyncrasies of SQLite. SQLite has quirks. this module handles them. that's the job. periodt π
π METHODS π
π database_version
returns the version of the SQLite library which is used β like, for example, "2.8.0" π
but here's the tea: SQLite can only return short variant. so don't expect anything long and fancy, she's giving short and sweet β¨
π insert
takes a table name as the first argument, and then just assumes the rest of the arguments are an array of key-value pairs to be inserted. very trusting of her honestly π
here's how the outcome goes:
- if the insert succeeds, you get back the id of the insert π
- otherwise, you get back a
Class::ReturnValueobject with the error reported π
no in-between, bestie, it's one or the other π
π case_sensitive
returns 1 β because SQLite's searches are case sensitive by default π
but wait, plot twist π β note, however, that SQLite's "like" operator is case insensitive. so it's giving "case sensitive, except when it's not" energy. iykyk π
π distinct_count STATEMENTREF
takes an incomplete SQL SELECT statement and massages it until it returns a DISTINCT result count β¨ like a lil glow-up for your query, she's obsessed with making it work π§
π rename_column ( table => $table, column => $old_column, to => $new_column )
rename column.
that's it. that's the description. she said "short and effective" π and honestly? respect.
π AUTHOR π
Jesse Vincent, jesse@fsck.com β the author, the moment, the main character π
π SEE ALSO π
perl(1)Jifty::DBI
go read those too bestie, they're the supporting cast π«Ά
and that's the whole page!! this was User Contributed Perl Documentation for Jifty::DBI::Handle::SQLite, from perl v5.34.0, dated 2022-06-15 β shoutout to that version and that date, they ate and left no crumbs πβ¨π bye bestie, go handle some SQLite π¦
π¦ 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