Add SQL database access to the plugin SDK - #6
Closed
gabek wants to merge 0 commit into
Closed
Conversation
gabek
force-pushed
the
gek/plugin-sql-storage
branch
2 times, most recently
from
July 31, 2026 02:04
33d6787 to
486f9fc
Compare
gabek
force-pushed
the
gek/plugin-sql-storage
branch
from
August 2, 2026 02:59
486f9fc to
384971c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds the SDK side of owncast/owncast#5084. Plugins that declare
storage.sqlgetexec,query, andqueryRowin both JavaScript and Python, backed by the host's private per-plugin SQLite database.owncast-plugin-testandowncast-plugin-servea matching local SQLite implementation with the same query limits and denied statements as Owncast.ON CONFLICTupsert, a ranked query, and a single-row lookup.Both chat-leaderboard scenario suites pass 7/7 against the Owncast feature branch. The full JavaScript example sweep passes all 35 examples and the Python sweep passes all examples. The host runtime tests and build also pass with the local Owncast workspace.
This is a draft because the SDK workflow deliberately builds the host binaries against
owncast/owncast@develop. Until #5084 merges, that dependency does not haveSQLRequest,SQLQueryResult, orSQLRunner, so a standaloneGOWORK=offbuild and the GitHub workflows are expected to fail. Once #5084 lands, I will update the Owncast pin, re-run the full suite, and mark this ready.