77 lines
2.1 KiB
Go
77 lines
2.1 KiB
Go
// Copyright 2019-present Facebook Inc. All rights reserved.
|
|
// This source code is licensed under the Apache 2.0 license found
|
|
// in the LICENSE file in the root directory of this source tree.
|
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
package predicate
|
|
|
|
import (
|
|
"entgo.io/ent/dialect/sql"
|
|
)
|
|
|
|
// Account is the predicate function for account builders.
|
|
type Account func(*sql.Selector)
|
|
|
|
// Blob is the predicate function for blob builders.
|
|
type Blob func(*sql.Selector)
|
|
|
|
// BlobLink is the predicate function for bloblink builders.
|
|
type BlobLink func(*sql.Selector)
|
|
|
|
// Car is the predicate function for car builders.
|
|
type Car func(*sql.Selector)
|
|
|
|
// Device is the predicate function for device builders.
|
|
type Device func(*sql.Selector)
|
|
|
|
// Doc is the predicate function for doc builders.
|
|
type Doc func(*sql.Selector)
|
|
|
|
// Group is the predicate function for group builders.
|
|
type Group func(*sql.Selector)
|
|
|
|
// IntSID is the predicate function for intsid builders.
|
|
type IntSID func(*sql.Selector)
|
|
|
|
// Link is the predicate function for link builders.
|
|
type Link func(*sql.Selector)
|
|
|
|
// MixinID is the predicate function for mixinid builders.
|
|
type MixinID func(*sql.Selector)
|
|
|
|
// Note is the predicate function for note builders.
|
|
type Note func(*sql.Selector)
|
|
|
|
// Other is the predicate function for other builders.
|
|
type Other func(*sql.Selector)
|
|
|
|
// Pet is the predicate function for pet builders.
|
|
type Pet func(*sql.Selector)
|
|
|
|
// Revision is the predicate function for revision builders.
|
|
type Revision func(*sql.Selector)
|
|
|
|
// Session is the predicate function for session builders.
|
|
type Session func(*sql.Selector)
|
|
|
|
// Token is the predicate function for token builders.
|
|
type Token func(*sql.Selector)
|
|
|
|
// User is the predicate function for user builders.
|
|
type User func(*sql.Selector)
|
|
|
|
// ValueScan is the predicate function for valuescan builders.
|
|
type ValueScan func(*sql.Selector)
|
|
|
|
// ValueScanOrErr calls the predicate only if the error is not nit.
|
|
func ValueScanOrErr(p ValueScan, err error) ValueScan {
|
|
return func(s *sql.Selector) {
|
|
if err != nil {
|
|
s.AddError(err)
|
|
return
|
|
}
|
|
p(s)
|
|
}
|
|
}
|