Skip to content

Stop requiring sqlite3 at load time#59

Merged
knu merged 1 commit intomasterfrom
fix/sqlite3-load-time-dependency
Apr 6, 2026
Merged

Stop requiring sqlite3 at load time#59
knu merged 1 commit intomasterfrom
fix/sqlite3-load-time-dependency

Conversation

@knu
Copy link
Copy Markdown
Member

@knu knu commented Apr 6, 2026

Change MozillaStore::Database from inheriting SQLite3::Database to wrapping it via composition. The previous class hierarchy forced Ruby to resolve the SQLite3 constant at file load time, defeating the autoload and making sqlite3 a hard requirement just from require "http-cookie".

Fixes #58

Change MozillaStore::Database from inheriting SQLite3::Database to
wrapping it via composition.  The previous class hierarchy forced
Ruby to resolve the SQLite3 constant at file load time, defeating
the autoload and making sqlite3 a hard requirement just from
`require "http-cookie"`.
@knu knu merged commit d230111 into master Apr 6, 2026
8 checks passed
@knu knu deleted the fix/sqlite3-load-time-dependency branch April 6, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error trying to bundle HTTP Cookie 1.1.1 due to missing SQLite3

1 participant