Apache...SQLite(3pm)
πΈ NAME πΈ
okay so bestie, this is Apache...SQLite(3pm) β a User Contributed Perl Documentation page, and it is literally here to store persistent data in a SQLite database. no cap π
Apache::Session::Browseable::Store::SQLiteβ Store persistent data in a SQLite database
β¨ SYNOPSIS β¨
hereβs the starter pack, bestie β copy it, love it, run it:
use Apache::Session::Browseable::Store::SQLite;
my $store = new Apache::Session::Browseable::Store::SQLite;
$store->insert($ref);
$store->update($ref);
$store->materialize($ref);
$store->remove($ref);
π¦ DESCRIPTION π¦
Apache::Session::Browseable::Store::SQLite fulfills the storage interface of Apache::Session. Session data is stored in a SQLite database. thatβs it, thatβs the whole description, and it ate β¨π
π SCHEMA π
To use this module, you will need at least these columns in a table called sessions, or another name if you supply the TableName parameter. lowkey important, bestie:
id char(32) # or however long your session IDs are.
a_session text # This has an ~8 KB limit :(
To create this schema, you can execute this command using the sqlite program:
CREATE TABLE sessions (
id char(32) not null primary key,
a_session text
);
If you use some other command, ensure that there is a unique index on the table's id column. periodt π«Ά
π CONFIGURATION π
The module must know what datasource, username, and password to use when connecting to the database. These values can be set using the options hash (see Apache::Session documentation). The options are:
DataSourceUserNamePasswordHandleTableName
Example, bestie β look at it, itβs giving connection details:
tie %hash, 'Apache::Session::Browseable::SQLite', $id, {
DataSource => 'dbi:Pg:dbname=database',
UserName => 'database_user',
Password => 'K00l'
};
Instead, you may pass in an already-opened DBI handle to your database. so convenient, honestly:
tie %hash, 'Apache::Session::Browseable::SQLite', $id, {
Handle => $dbh
};
π AUTHOR π
This modules was written by Jeffrey William Baker <jwbaker@acm.org> β iconic π
A fix for the commit policy was contributed by Michael Schout <mschout@gkg.net>. slay π₯
π SEE ALSO π
go give these a read too, bestie:
Apache::SessionApache::Session::Store::DBI
okay thatβs the whole page, bestie β itβs from perl v5.40.1, dated 2026-05-14, and the manual page is Apache...SQLite(3pm). mwah ππ«Ά
π¦ where this page comes from
- debian trixie: libapache-session-browseable-perl 1.3.16-1+deb13u1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libapache-session-browseable-perl 1.3.19-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms