Files
Gabe Kangas 5a4af3a294 ActivityPub background actor validation, update and cleanup process (#4765)
* feat(ap): add validation+update+cleanup AP actor job

* fix(test): use time.Time instead of sql.NullTime

* feat(test): add integration test for AP follower cleanup/validation job
2026-02-02 17:34:25 -08:00
..

SQL Queries

sqlc generates type-safe code from SQL. Here's how it works:

  1. You define the schema in schema.sql.
  2. You write your queries in query.sql using regular SQL.
  3. You run sqlc generate to generate Go code with type-safe interfaces to those queries.
  4. 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