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:
Eli Ribble 2026-01-05 02:28:28 +00:00
parent 53e08d840e
commit 1aefca2f5d
217 changed files with 871 additions and 1358 deletions

View file

@ -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
@ -43,7 +43,7 @@ type FieldseekerQamosquitoinspection struct {
// Original attribute from ArcGIS API is RAINGAUGE
Raingauge null.Val[float64] `db:"raingauge" `
// 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 STARTDATETIME
Startdatetime null.Val[time.Time] `db:"startdatetime" `
// Original attribute from ArcGIS API is ENDDATETIME
@ -340,7 +340,7 @@ type FieldseekerQamosquitoinspectionSetter struct {
Avetemp omitnull.Val[float64] `db:"avetemp" `
Windspeed omitnull.Val[float64] `db:"windspeed" `
Raingauge omitnull.Val[float64] `db:"raingauge" `
Globalid omitnull.Val[uuid.UUID] `db:"globalid" `
Globalid omit.Val[uuid.UUID] `db:"globalid" `
Startdatetime omitnull.Val[time.Time] `db:"startdatetime" `
Enddatetime omitnull.Val[time.Time] `db:"enddatetime" `
Winddir omitnull.Val[string] `db:"winddir" `
@ -424,7 +424,7 @@ func (s FieldseekerQamosquitoinspectionSetter) SetColumns() []string {
if !s.Raingauge.IsUnset() {
vals = append(vals, "raingauge")
}
if !s.Globalid.IsUnset() {
if s.Globalid.IsValue() {
vals = append(vals, "globalid")
}
if !s.Startdatetime.IsUnset() {
@ -626,8 +626,8 @@ func (s FieldseekerQamosquitoinspectionSetter) Overwrite(t *FieldseekerQamosquit
if !s.Raingauge.IsUnset() {
t.Raingauge = s.Raingauge.MustGetNull()
}
if !s.Globalid.IsUnset() {
t.Globalid = s.Globalid.MustGetNull()
if s.Globalid.IsValue() {
t.Globalid = s.Globalid.MustGet()
}
if !s.Startdatetime.IsUnset() {
t.Startdatetime = s.Startdatetime.MustGetNull()
@ -854,8 +854,8 @@ func (s *FieldseekerQamosquitoinspectionSetter) Apply(q *dialect.InsertQuery) {
vals[6] = psql.Raw("DEFAULT")
}
if !s.Globalid.IsUnset() {
vals[7] = psql.Arg(s.Globalid.MustGetNull())
if s.Globalid.IsValue() {
vals[7] = psql.Arg(s.Globalid.MustGet())
} else {
vals[7] = psql.Raw("DEFAULT")
}
@ -1268,7 +1268,7 @@ func (s FieldseekerQamosquitoinspectionSetter) Expressions(prefix ...string) []b
}})
}
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),
@ -1997,7 +1997,7 @@ type fieldseekerQamosquitoinspectionWhere[Q psql.Filterable] struct {
Avetemp psql.WhereNullMod[Q, float64]
Windspeed psql.WhereNullMod[Q, float64]
Raingauge psql.WhereNullMod[Q, float64]
Globalid psql.WhereNullMod[Q, uuid.UUID]
Globalid psql.WhereMod[Q, uuid.UUID]
Startdatetime psql.WhereNullMod[Q, time.Time]
Enddatetime psql.WhereNullMod[Q, time.Time]
Winddir psql.WhereNullMod[Q, string]
@ -2071,7 +2071,7 @@ func buildFieldseekerQamosquitoinspectionWhere[Q psql.Filterable](cols fieldseek
Avetemp: psql.WhereNull[Q, float64](cols.Avetemp),
Windspeed: psql.WhereNull[Q, float64](cols.Windspeed),
Raingauge: psql.WhereNull[Q, float64](cols.Raingauge),
Globalid: psql.WhereNull[Q, uuid.UUID](cols.Globalid),
Globalid: psql.Where[Q, uuid.UUID](cols.Globalid),
Startdatetime: psql.WhereNull[Q, time.Time](cols.Startdatetime),
Enddatetime: psql.WhereNull[Q, time.Time](cols.Enddatetime),
Winddir: psql.WhereNull[Q, string](cols.Winddir),