diff --git a/Justfile b/Justfile index ca200bded5..46f693379e 100644 --- a/Justfile +++ b/Justfile @@ -50,7 +50,7 @@ init-db: # Regenerate SQLC code (requires init-db to be run first) build-sqlc: - @mk backend/controller/sql/{db.go,models.go,querier.go,queries.sql.go} : backend/controller/sql/queries.sql backend/controller/sql/schema -- sqlc generate --experimental + @mk backend/controller/sql/{db.go,models.go,querier.go,queries.sql.go} : backend/controller/sql/queries.sql backend/controller/sql/schema -- sqlc generate # Build the ZIP files that are embedded in the FTL release binaries build-zips: build-kt-runtime @@ -78,4 +78,4 @@ integration-tests *test: #!/bin/bash set -euo pipefail testName=${1:-} - go test -fullpath -count 1 -v -tags integration -run "$testName" ./integration \ No newline at end of file + go test -fullpath -count 1 -v -tags integration -run "$testName" ./integration diff --git a/backend/controller/sql/db.go b/backend/controller/sql/db.go index 953db2655e..c4b45fb311 100644 --- a/backend/controller/sql/db.go +++ b/backend/controller/sql/db.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package sql diff --git a/backend/controller/sql/models.go b/backend/controller/sql/models.go index c9531cec7e..9ea1530afd 100644 --- a/backend/controller/sql/models.go +++ b/backend/controller/sql/models.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package sql @@ -268,3 +268,34 @@ type Runner struct { DeploymentID optional.Option[int64] Labels []byte } + +type Topic struct { + ID int64 + CreatedAt time.Time + ModuleID int64 + Name string + Type string +} + +type TopicEvent struct { + ID int64 + CreatedAt time.Time + TopicID int64 + Payload []byte +} + +type TopicSubscriber struct { + ID int64 + CreatedAt time.Time + TopicSubscriptionsID int64 + DeploymentID int64 + Verb string +} + +type TopicSubscription struct { + ID int64 + CreatedAt time.Time + TopicID int64 + Name string + Cursor int64 +} diff --git a/backend/controller/sql/querier.go b/backend/controller/sql/querier.go index bdb9dd1dd9..6455f7ccc9 100644 --- a/backend/controller/sql/querier.go +++ b/backend/controller/sql/querier.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 package sql diff --git a/backend/controller/sql/queries.sql.go b/backend/controller/sql/queries.sql.go index 71b4df7634..946dec836d 100644 --- a/backend/controller/sql/queries.sql.go +++ b/backend/controller/sql/queries.sql.go @@ -1,6 +1,6 @@ // Code generated by sqlc. DO NOT EDIT. // versions: -// sqlc v1.25.0 +// sqlc v1.26.0 // source: queries.sql package sql