nidus-sync/models/bob_where.bob.go
Eli Ribble 486c148bf7
Add user sessions and login
This isn't quite perfect, but gets much of the hard work done.
2025-11-05 17:15:33 +00:00

36 lines
1.1 KiB
Go

// Code generated by BobGen psql v0.41.1. DO NOT EDIT.
// This file is meant to be re-generated in place and/or deleted at any time.
package models
import (
"github.com/stephenafamo/bob/clause"
"github.com/stephenafamo/bob/dialect/psql"
"github.com/stephenafamo/bob/dialect/psql/dialect"
)
var (
SelectWhere = Where[*dialect.SelectQuery]()
UpdateWhere = Where[*dialect.UpdateQuery]()
DeleteWhere = Where[*dialect.DeleteQuery]()
OnConflictWhere = Where[*clause.ConflictClause]() // Used in ON CONFLICT DO UPDATE
)
func Where[Q psql.Filterable]() struct {
GooseDBVersions gooseDBVersionWhere[Q]
Organizations organizationWhere[Q]
Sessions sessionWhere[Q]
Users userWhere[Q]
} {
return struct {
GooseDBVersions gooseDBVersionWhere[Q]
Organizations organizationWhere[Q]
Sessions sessionWhere[Q]
Users userWhere[Q]
}{
GooseDBVersions: buildGooseDBVersionWhere[Q](GooseDBVersions.Columns),
Organizations: buildOrganizationWhere[Q](Organizations.Columns),
Sessions: buildSessionWhere[Q](Sessions.Columns),
Users: buildUserWhere[Q](Users.Columns),
}
}