36 lines
1.1 KiB
Go
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),
|
|
}
|
|
}
|