nidus-sync/db/query/public/lead.go
Eli Ribble 7237f5f666
Some checks failed
/ golint (push) Failing after 3m50s
Move internal references to new source hosting
2026-05-19 15:33:57 +00:00

17 lines
547 B
Go

package public
import (
"context"
"source.gleipnir.technology/Gleipnir/nidus-sync/db"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/public/model"
"source.gleipnir.technology/Gleipnir/nidus-sync/db/gen/nidus-sync/public/table"
//"github.com/Gleipnir-Technology/jet/postgres"
)
func LeadInsert(ctx context.Context, txn db.Ex, m model.Lead) (model.Lead, error) {
statement := table.Lead.INSERT(table.Lead.MutableColumns).
MODEL(m).
RETURNING(table.Lead.AllColumns)
return db.ExecuteOne[model.Lead](ctx, statement)
}