UR::Da...SQLite(3pm)
π NAME π
ok so UR::DataSource::SQLite is literally the base class for datasources that ride with the SQLite3 RDBMS π
that's the whole job. it's in the 3pm manual, part of the User Contributed Perl Documentation, and yes bestie it's giving exactly what you think it's giving.
β¨ SYNOPSIS β¨
first up, if you're chillin in the shell, just say the magic words πͺ
ur define datasource sqlite
orrr you can go full main character and write the singleton yourself so it reps the source directly π
class Acme::DataSource::MyDB1 {
is => 'UR::DataSource::SQLite',
has_constant => [
server => '/var/lib/acme-app/mydb1.sqlitedb'
]
};
bestie wait, there's more πΈ you can also point it at a whole directory stuffed with *.sqlite3 files. but heads up β the primary database must be named main.sqlite3, no cap. every other *.sqlite3 file in there gets attached the moment the database is opened π₯
class Acme::DataSource::MyDB2 {
is => 'UR::DataSource::SQLite',
has_constant => [
server => '/path/to/directory/'
]
};
that's the whole vibe, fr fr β short and iconic, just like it should be π¦
π sign-off time: this lil masterpiece is perl v5.32.1, dated 2022-01-17, and it lives under the User Contributed Perl Documentation umbrella. mwah π
π¦ where this page comes from
- debian bookworm: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libur-perl 0.470+ds-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libur-perl 0.470+ds-2 Β· 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