Jifty:...SQLite(3pm)

πŸ“¦
version 0.78 Β· 2 versions
  • 0.78 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.78 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– 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::ReturnValue object 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 🌈

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