Make GlobalID required for all Fieldseeker tables
I'm pretty sure it has to be there, and it allows me to clean up my code.
This commit is contained in:
parent
53e08d840e
commit
1aefca2f5d
217 changed files with 871 additions and 1358 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Code generated by BobGen psql v0.0.4-0.20251216163753-8e325b7c773a+dirty. DO NOT EDIT.
|
||||
// Code generated by BobGen psql v0.0.4-0.20260105020634-53e08d840e47+dirty. DO NOT EDIT.
|
||||
// This file is meant to be re-generated in place and/or deleted at any time.
|
||||
|
||||
package models
|
||||
|
|
@ -57,7 +57,7 @@ type FieldseekerProposedtreatmentarea struct {
|
|||
// Original attribute from ArcGIS API is ACRES
|
||||
Acres null.Val[float64] `db:"acres" `
|
||||
// Original attribute from ArcGIS API is GlobalID
|
||||
Globalid null.Val[uuid.UUID] `db:"globalid" `
|
||||
Globalid uuid.UUID `db:"globalid" `
|
||||
// Original attribute from ArcGIS API is EXPORTED
|
||||
Exported null.Val[int16] `db:"exported" `
|
||||
// Original attribute from ArcGIS API is TARGETPRODUCT
|
||||
|
|
@ -231,7 +231,7 @@ type FieldseekerProposedtreatmentareaSetter struct {
|
|||
Issprayroute omitnull.Val[int16] `db:"issprayroute" `
|
||||
Name omitnull.Val[string] `db:"name" `
|
||||
Acres omitnull.Val[float64] `db:"acres" `
|
||||
Globalid omitnull.Val[uuid.UUID] `db:"globalid" `
|
||||
Globalid omit.Val[uuid.UUID] `db:"globalid" `
|
||||
Exported omitnull.Val[int16] `db:"exported" `
|
||||
Targetproduct omitnull.Val[string] `db:"targetproduct" `
|
||||
Targetapprate omitnull.Val[float64] `db:"targetapprate" `
|
||||
|
|
@ -300,7 +300,7 @@ func (s FieldseekerProposedtreatmentareaSetter) SetColumns() []string {
|
|||
if !s.Acres.IsUnset() {
|
||||
vals = append(vals, "acres")
|
||||
}
|
||||
if !s.Globalid.IsUnset() {
|
||||
if s.Globalid.IsValue() {
|
||||
vals = append(vals, "globalid")
|
||||
}
|
||||
if !s.Exported.IsUnset() {
|
||||
|
|
@ -415,8 +415,8 @@ func (s FieldseekerProposedtreatmentareaSetter) Overwrite(t *FieldseekerProposed
|
|||
if !s.Acres.IsUnset() {
|
||||
t.Acres = s.Acres.MustGetNull()
|
||||
}
|
||||
if !s.Globalid.IsUnset() {
|
||||
t.Globalid = s.Globalid.MustGetNull()
|
||||
if s.Globalid.IsValue() {
|
||||
t.Globalid = s.Globalid.MustGet()
|
||||
}
|
||||
if !s.Exported.IsUnset() {
|
||||
t.Exported = s.Exported.MustGetNull()
|
||||
|
|
@ -577,8 +577,8 @@ func (s *FieldseekerProposedtreatmentareaSetter) Apply(q *dialect.InsertQuery) {
|
|||
vals[13] = psql.Raw("DEFAULT")
|
||||
}
|
||||
|
||||
if !s.Globalid.IsUnset() {
|
||||
vals[14] = psql.Arg(s.Globalid.MustGetNull())
|
||||
if s.Globalid.IsValue() {
|
||||
vals[14] = psql.Arg(s.Globalid.MustGet())
|
||||
} else {
|
||||
vals[14] = psql.Raw("DEFAULT")
|
||||
}
|
||||
|
|
@ -824,7 +824,7 @@ func (s FieldseekerProposedtreatmentareaSetter) Expressions(prefix ...string) []
|
|||
}})
|
||||
}
|
||||
|
||||
if !s.Globalid.IsUnset() {
|
||||
if s.Globalid.IsValue() {
|
||||
exprs = append(exprs, expr.Join{Sep: " = ", Exprs: []bob.Expression{
|
||||
psql.Quote(append(prefix, "globalid")...),
|
||||
psql.Arg(s.Globalid),
|
||||
|
|
@ -1308,7 +1308,7 @@ type fieldseekerProposedtreatmentareaWhere[Q psql.Filterable] struct {
|
|||
Issprayroute psql.WhereNullMod[Q, int16]
|
||||
Name psql.WhereNullMod[Q, string]
|
||||
Acres psql.WhereNullMod[Q, float64]
|
||||
Globalid psql.WhereNullMod[Q, uuid.UUID]
|
||||
Globalid psql.WhereMod[Q, uuid.UUID]
|
||||
Exported psql.WhereNullMod[Q, int16]
|
||||
Targetproduct psql.WhereNullMod[Q, string]
|
||||
Targetapprate psql.WhereNullMod[Q, float64]
|
||||
|
|
@ -1353,7 +1353,7 @@ func buildFieldseekerProposedtreatmentareaWhere[Q psql.Filterable](cols fieldsee
|
|||
Issprayroute: psql.WhereNull[Q, int16](cols.Issprayroute),
|
||||
Name: psql.WhereNull[Q, string](cols.Name),
|
||||
Acres: psql.WhereNull[Q, float64](cols.Acres),
|
||||
Globalid: psql.WhereNull[Q, uuid.UUID](cols.Globalid),
|
||||
Globalid: psql.Where[Q, uuid.UUID](cols.Globalid),
|
||||
Exported: psql.WhereNull[Q, int16](cols.Exported),
|
||||
Targetproduct: psql.WhereNull[Q, string](cols.Targetproduct),
|
||||
Targetapprate: psql.WhereNull[Q, float64](cols.Targetapprate),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue