Initial work on getting communication context

Committing now to debug build process.
This commit is contained in:
Eli Ribble 2026-05-12 03:21:18 +00:00
parent bab00db3ee
commit b369361a43
No known key found for this signature in database
31 changed files with 1352 additions and 4 deletions

View file

@ -0,0 +1,18 @@
package comms
import (
"context"
"github.com/Gleipnir-Technology/jet/postgres"
"github.com/Gleipnir-Technology/nidus-sync/db"
"github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/comms/model"
"github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/comms/table"
)
func TextLogFromID(ctx context.Context, id int64) (model.TextLog, error) {
statement := table.TextLog.SELECT(
table.TextLog.AllColumns,
).FROM(table.TextLog).
WHERE(table.TextLog.ID.EQ(postgres.Int(id)))
return db.ExecuteOne[model.TextLog](ctx, statement)
}