Get back to compiling, but using new jet for publicreport
This was an epically long change, and a terrible idea, but it compiles. This was essentially a cascade that came about because I can't blend jet and bob in the same transaction. In for a penny, I guess...
This commit is contained in:
parent
a95e44cf42
commit
fcd95f1a25
65 changed files with 3129 additions and 3457 deletions
|
|
@ -10,14 +10,14 @@ import (
|
|||
"github.com/go-jet/jet/v2/postgres"
|
||||
)
|
||||
|
||||
func ServiceMapFromID(ctx context.Context, id string) (*model.ServiceMap, error) {
|
||||
func ServiceMapFromID(ctx context.Context, id string) (model.ServiceMap, error) {
|
||||
statement := table.ServiceMap.SELECT(
|
||||
table.ServiceMap.AllColumns,
|
||||
).FROM(table.ServiceMap).
|
||||
WHERE(table.ServiceMap.ArcgisID.EQ(postgres.String(id)))
|
||||
return db.ExecuteOne[model.ServiceMap](ctx, statement)
|
||||
}
|
||||
func ServiceMapsFromAccountID(ctx context.Context, account_id string) ([]*model.ServiceMap, error) {
|
||||
func ServiceMapsFromAccountID(ctx context.Context, account_id string) ([]model.ServiceMap, error) {
|
||||
statement := table.ServiceMap.SELECT(
|
||||
table.ServiceMap.AllColumns,
|
||||
).FROM(table.ServiceMap).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue