Initial work on getting communication context
Committing now to debug build process.
This commit is contained in:
parent
fa012bebca
commit
8f0ee9015d
31 changed files with 1352 additions and 4 deletions
18
db/query/comms/text_log.go
Normal file
18
db/query/comms/text_log.go
Normal 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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue