Test::...:SQLite(3pm)
π NAME π
okay bestie, say hi to Test::DBIx::Class::SchemaManager::Trait::SQLite β she's The Default Role π
(and yes, the manual page itself goes by the truncated lil' nickname Test::...:SQLite(3pm), filed under User Contributed Perl Documentation, because apparently we're all about β¨mysteryβ¨ here)
πΈ DESCRIPTION πΈ
So this is the default Storage trait, and her whole gig is: she gives you the ability to deploy to a SQLite database. iconic behaviour, no notes π«Ά
She also sets some %ENV and/or configuration options that you can use to specify an alternative database setup. like, options, but make it flexible π«
On top of the %ENV settings that are already documented, this Trait adds the following:
π DBNAME π
Defaults to ':memory:', which creates an in memory database. because sometimes we don't need a whole file, we just need vibes β¨
Provide a string suitable for the "dbname=XXX" part of your connect string. Typically this should be the path to a location on the filesystem you want the database file to be stored. π
β οΈ okay listen bestie, IMPORTANT: please note that this file will automatically be deleted unless you have specified'keep_db'in the config or via the$ENV{KEEP_DB}setting. she will literally vanish. gone. poof. π
Also note: if you specify a path that already exists, we will automatically add the option 'force_drop_table', on the assumption you are roundtripping tests to the same database file. This way you can avoid having to specifically tell the system to delete the file each time. lowkey convenient tbh π
π AUTHOR π
John Napiorkowski "<jjnapiork@cpan.org>" β the main character who made this all happen fr fr π
π CONTRIBUTORS π
- Tristan Pratt π¦
π COPYRIGHT & LICENSE π
Copyright 2009, John Napiorkowski "<jjnapiork@cpan.org>"
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's a wrap, bestie π this page is brought to you by perl v5.36.0, dated 2023-01-29, straight from the Test::...:SQLite(3pm) files β¨ slay, read responsibly, and go deploy something cute π«Άπ
π¦ where this page comes from
- debian bookworm: libtest-dbix-class-perl 0.52-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libtest-dbix-class-perl 0.52-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libtest-dbix-class-perl 0.52-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libtest-dbix-class-perl 0.52-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libtest-dbix-class-perl 0.52-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