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
|
||||
|
|
@ -63,7 +63,7 @@ type FieldseekerPolygonlocation struct {
|
|||
// Original attribute from ArcGIS API is LOCATIONNUMBER
|
||||
Locationnumber null.Val[int32] `db:"locationnumber" `
|
||||
// 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 LASTINSPECTDATE
|
||||
Lastinspectdate null.Val[time.Time] `db:"lastinspectdate" `
|
||||
// Original attribute from ArcGIS API is LASTINSPECTBREEDING
|
||||
|
|
@ -270,7 +270,7 @@ type FieldseekerPolygonlocationSetter struct {
|
|||
Larvinspectinterval omitnull.Val[int16] `db:"larvinspectinterval" `
|
||||
Zone2 omitnull.Val[string] `db:"zone2" `
|
||||
Locationnumber omitnull.Val[int32] `db:"locationnumber" `
|
||||
Globalid omitnull.Val[uuid.UUID] `db:"globalid" `
|
||||
Globalid omit.Val[uuid.UUID] `db:"globalid" `
|
||||
Lastinspectdate omitnull.Val[time.Time] `db:"lastinspectdate" `
|
||||
Lastinspectbreeding omitnull.Val[string] `db:"lastinspectbreeding" `
|
||||
Lastinspectavglarvae omitnull.Val[float64] `db:"lastinspectavglarvae" `
|
||||
|
|
@ -354,7 +354,7 @@ func (s FieldseekerPolygonlocationSetter) SetColumns() []string {
|
|||
if !s.Locationnumber.IsUnset() {
|
||||
vals = append(vals, "locationnumber")
|
||||
}
|
||||
if !s.Globalid.IsUnset() {
|
||||
if s.Globalid.IsValue() {
|
||||
vals = append(vals, "globalid")
|
||||
}
|
||||
if !s.Lastinspectdate.IsUnset() {
|
||||
|
|
@ -496,8 +496,8 @@ func (s FieldseekerPolygonlocationSetter) Overwrite(t *FieldseekerPolygonlocatio
|
|||
if !s.Locationnumber.IsUnset() {
|
||||
t.Locationnumber = s.Locationnumber.MustGetNull()
|
||||
}
|
||||
if !s.Globalid.IsUnset() {
|
||||
t.Globalid = s.Globalid.MustGetNull()
|
||||
if s.Globalid.IsValue() {
|
||||
t.Globalid = s.Globalid.MustGet()
|
||||
}
|
||||
if !s.Lastinspectdate.IsUnset() {
|
||||
t.Lastinspectdate = s.Lastinspectdate.MustGetNull()
|
||||
|
|
@ -694,8 +694,8 @@ func (s *FieldseekerPolygonlocationSetter) Apply(q *dialect.InsertQuery) {
|
|||
vals[16] = psql.Raw("DEFAULT")
|
||||
}
|
||||
|
||||
if !s.Globalid.IsUnset() {
|
||||
vals[17] = psql.Arg(s.Globalid.MustGetNull())
|
||||
if s.Globalid.IsValue() {
|
||||
vals[17] = psql.Arg(s.Globalid.MustGet())
|
||||
} else {
|
||||
vals[17] = psql.Raw("DEFAULT")
|
||||
}
|
||||
|
|
@ -998,7 +998,7 @@ func (s FieldseekerPolygonlocationSetter) Expressions(prefix ...string) []bob.Ex
|
|||
}})
|
||||
}
|
||||
|
||||
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),
|
||||
|
|
@ -1527,7 +1527,7 @@ type fieldseekerPolygonlocationWhere[Q psql.Filterable] struct {
|
|||
Larvinspectinterval psql.WhereNullMod[Q, int16]
|
||||
Zone2 psql.WhereNullMod[Q, string]
|
||||
Locationnumber psql.WhereNullMod[Q, int32]
|
||||
Globalid psql.WhereNullMod[Q, uuid.UUID]
|
||||
Globalid psql.WhereMod[Q, uuid.UUID]
|
||||
Lastinspectdate psql.WhereNullMod[Q, time.Time]
|
||||
Lastinspectbreeding psql.WhereNullMod[Q, string]
|
||||
Lastinspectavglarvae psql.WhereNullMod[Q, float64]
|
||||
|
|
@ -1581,7 +1581,7 @@ func buildFieldseekerPolygonlocationWhere[Q psql.Filterable](cols fieldseekerPol
|
|||
Larvinspectinterval: psql.WhereNull[Q, int16](cols.Larvinspectinterval),
|
||||
Zone2: psql.WhereNull[Q, string](cols.Zone2),
|
||||
Locationnumber: psql.WhereNull[Q, int32](cols.Locationnumber),
|
||||
Globalid: psql.WhereNull[Q, uuid.UUID](cols.Globalid),
|
||||
Globalid: psql.Where[Q, uuid.UUID](cols.Globalid),
|
||||
Lastinspectdate: psql.WhereNull[Q, time.Time](cols.Lastinspectdate),
|
||||
Lastinspectbreeding: psql.WhereNull[Q, string](cols.Lastinspectbreeding),
|
||||
Lastinspectavglarvae: psql.WhereNull[Q, float64](cols.Lastinspectavglarvae),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue