* feat(ap): add support for shared inboxes to reduce outbound load * feat(db): refactor ap followers db into followers repository * fix(ap): use the updated activity library to pull out the shared inbox endpoint * chore(deps): point at updated build of owncast/activity * fix(ap): typeless endpoints * feat(test): update ActivityPub test to support shared inboxes * chore(test): remove unused variable * fix: feedback from review. Guard against SSRF/non-HTTPS/local and handle transaction errors
SQL Queries
sqlc generates type-safe code from SQL. Here's how it works:
- You define the schema in
schema.sql. - You write your queries in
query.sqlusing regular SQL. - You run
sqlc generateto generate Go code with type-safe interfaces to those queries. - You write application code that calls the generated code.
Only those who need to create or update SQL queries will need to have sqlc installed on their system. It is not a dependency required to build the codebase.
Using sqlc
Run from the repository root:
make sqlc
Or manually:
./bin/sqlc generate
Managing Tool Versions
To upgrade sqlc to a specific version, edit tools/go.mod and run:
cd tools && go get github.com/sqlc-dev/sqlc@latest && go mod tidy
Then reinstall:
rm ./bin/sqlc && make sqlc