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
|
||||
|
|
@ -39,7 +39,7 @@ type FieldseekerStormdrain struct {
|
|||
// Original attribute from ArcGIS API is Symbology
|
||||
Symbology null.Val[string] `db:"symbology" `
|
||||
// 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 created_user
|
||||
CreatedUser null.Val[string] `db:"created_user" `
|
||||
// Original attribute from ArcGIS API is created_date
|
||||
|
|
@ -166,7 +166,7 @@ type FieldseekerStormdrainSetter struct {
|
|||
Lasttreatdate omitnull.Val[time.Time] `db:"lasttreatdate" `
|
||||
Lastaction omitnull.Val[string] `db:"lastaction" `
|
||||
Symbology omitnull.Val[string] `db:"symbology" `
|
||||
Globalid omitnull.Val[uuid.UUID] `db:"globalid" `
|
||||
Globalid omit.Val[uuid.UUID] `db:"globalid" `
|
||||
CreatedUser omitnull.Val[string] `db:"created_user" `
|
||||
CreatedDate omitnull.Val[time.Time] `db:"created_date" `
|
||||
LastEditedUser omitnull.Val[string] `db:"last_edited_user" `
|
||||
|
|
@ -203,7 +203,7 @@ func (s FieldseekerStormdrainSetter) SetColumns() []string {
|
|||
if !s.Symbology.IsUnset() {
|
||||
vals = append(vals, "symbology")
|
||||
}
|
||||
if !s.Globalid.IsUnset() {
|
||||
if s.Globalid.IsValue() {
|
||||
vals = append(vals, "globalid")
|
||||
}
|
||||
if !s.CreatedUser.IsUnset() {
|
||||
|
|
@ -276,8 +276,8 @@ func (s FieldseekerStormdrainSetter) Overwrite(t *FieldseekerStormdrain) {
|
|||
if !s.Symbology.IsUnset() {
|
||||
t.Symbology = s.Symbology.MustGetNull()
|
||||
}
|
||||
if !s.Globalid.IsUnset() {
|
||||
t.Globalid = s.Globalid.MustGetNull()
|
||||
if s.Globalid.IsValue() {
|
||||
t.Globalid = s.Globalid.MustGet()
|
||||
}
|
||||
if !s.CreatedUser.IsUnset() {
|
||||
t.CreatedUser = s.CreatedUser.MustGetNull()
|
||||
|
|
@ -369,8 +369,8 @@ func (s *FieldseekerStormdrainSetter) Apply(q *dialect.InsertQuery) {
|
|||
vals[4] = psql.Raw("DEFAULT")
|
||||
}
|
||||
|
||||
if !s.Globalid.IsUnset() {
|
||||
vals[5] = psql.Arg(s.Globalid.MustGetNull())
|
||||
if s.Globalid.IsValue() {
|
||||
vals[5] = psql.Arg(s.Globalid.MustGet())
|
||||
} else {
|
||||
vals[5] = psql.Raw("DEFAULT")
|
||||
}
|
||||
|
|
@ -523,7 +523,7 @@ func (s FieldseekerStormdrainSetter) Expressions(prefix ...string) []bob.Express
|
|||
}})
|
||||
}
|
||||
|
||||
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),
|
||||
|
|
@ -963,7 +963,7 @@ type fieldseekerStormdrainWhere[Q psql.Filterable] struct {
|
|||
Lasttreatdate psql.WhereNullMod[Q, time.Time]
|
||||
Lastaction psql.WhereNullMod[Q, string]
|
||||
Symbology psql.WhereNullMod[Q, string]
|
||||
Globalid psql.WhereNullMod[Q, uuid.UUID]
|
||||
Globalid psql.WhereMod[Q, uuid.UUID]
|
||||
CreatedUser psql.WhereNullMod[Q, string]
|
||||
CreatedDate psql.WhereNullMod[Q, time.Time]
|
||||
LastEditedUser psql.WhereNullMod[Q, string]
|
||||
|
|
@ -994,7 +994,7 @@ func buildFieldseekerStormdrainWhere[Q psql.Filterable](cols fieldseekerStormdra
|
|||
Lasttreatdate: psql.WhereNull[Q, time.Time](cols.Lasttreatdate),
|
||||
Lastaction: psql.WhereNull[Q, string](cols.Lastaction),
|
||||
Symbology: psql.WhereNull[Q, string](cols.Symbology),
|
||||
Globalid: psql.WhereNull[Q, uuid.UUID](cols.Globalid),
|
||||
Globalid: psql.Where[Q, uuid.UUID](cols.Globalid),
|
||||
CreatedUser: psql.WhereNull[Q, string](cols.CreatedUser),
|
||||
CreatedDate: psql.WhereNull[Q, time.Time](cols.CreatedDate),
|
||||
LastEditedUser: psql.WhereNull[Q, string](cols.LastEditedUser),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue