Move to latest bobgen, add fieldseeker schema references

This is an intermediate step between shifting from the old fs_* prefixed
table names to an entire fieldseeker schema. At this point we have both,
and we aren't doing much with the new schema but compiling.
This commit is contained in:
Eli Ribble 2025-12-02 00:28:14 +00:00
parent 683c5134df
commit 7c4fb02908
No known key found for this signature in database
452 changed files with 119980 additions and 879 deletions

View file

@ -1,4 +1,4 @@
// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// Code generated by BobGen psql v0.42.0. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package models
@ -209,7 +209,7 @@ func (s *UserSetter) Apply(q *dialect.InsertQuery) {
return Users.BeforeInsertHooks.RunHooks(ctx, exec, s)
})
q.AppendValues(bob.ExpressionFunc(func(ctx context.Context, w io.Writer, d bob.Dialect, start int) ([]any, error) {
q.AppendValues(bob.ExpressionFunc(func(ctx context.Context, w io.StringWriter, d bob.Dialect, start int) ([]any, error) {
vals := make([]bob.Expression, 12)
if s.ID.IsValue() {
vals[0] = psql.Arg(s.ID.MustGet())
@ -427,7 +427,7 @@ func (o *User) primaryKeyVals() bob.Expression {
}
func (o *User) pkEQ() dialect.Expression {
return psql.Quote("user_", "id").EQ(bob.ExpressionFunc(func(ctx context.Context, w io.Writer, d bob.Dialect, start int) ([]any, error) {
return psql.Quote("user_", "id").EQ(bob.ExpressionFunc(func(ctx context.Context, w io.StringWriter, d bob.Dialect, start int) ([]any, error) {
return o.primaryKeyVals().WriteSQL(ctx, w, d, start)
}))
}
@ -488,7 +488,7 @@ func (o UserSlice) pkIN() dialect.Expression {
return psql.Raw("NULL")
}
return psql.Quote("user_", "id").In(bob.ExpressionFunc(func(ctx context.Context, w io.Writer, d bob.Dialect, start int) ([]any, error) {
return psql.Quote("user_", "id").In(bob.ExpressionFunc(func(ctx context.Context, w io.StringWriter, d bob.Dialect, start int) ([]any, error) {
pkPairs := make([]bob.Expression, len(o))
for i, row := range o {
pkPairs[i] = row.primaryKeyVals()