Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Credential) predicate.Credential
- func Color(v uint32) predicate.Credential
- func ColorEQ(v uint32) predicate.Credential
- func ColorGT(v uint32) predicate.Credential
- func ColorGTE(v uint32) predicate.Credential
- func ColorIn(vs ...uint32) predicate.Credential
- func ColorLT(v uint32) predicate.Credential
- func ColorLTE(v uint32) predicate.Credential
- func ColorNEQ(v uint32) predicate.Credential
- func ColorNotIn(vs ...uint32) predicate.Credential
- func CreatedAt(v time.Time) predicate.Credential
- func CreatedAtEQ(v time.Time) predicate.Credential
- func CreatedAtGT(v time.Time) predicate.Credential
- func CreatedAtGTE(v time.Time) predicate.Credential
- func CreatedAtIn(vs ...time.Time) predicate.Credential
- func CreatedAtLT(v time.Time) predicate.Credential
- func CreatedAtLTE(v time.Time) predicate.Credential
- func CreatedAtNEQ(v time.Time) predicate.Credential
- func CreatedAtNotIn(vs ...time.Time) predicate.Credential
- func DeletedAt(v time.Time) predicate.Credential
- func DeletedAtEQ(v time.Time) predicate.Credential
- func DeletedAtGT(v time.Time) predicate.Credential
- func DeletedAtGTE(v time.Time) predicate.Credential
- func DeletedAtIn(vs ...time.Time) predicate.Credential
- func DeletedAtIsNil() predicate.Credential
- func DeletedAtLT(v time.Time) predicate.Credential
- func DeletedAtLTE(v time.Time) predicate.Credential
- func DeletedAtNEQ(v time.Time) predicate.Credential
- func DeletedAtNotIn(vs ...time.Time) predicate.Credential
- func DeletedAtNotNil() predicate.Credential
- func Host(v string) predicate.Credential
- func HostContains(v string) predicate.Credential
- func HostContainsFold(v string) predicate.Credential
- func HostEQ(v string) predicate.Credential
- func HostEqualFold(v string) predicate.Credential
- func HostGT(v string) predicate.Credential
- func HostGTE(v string) predicate.Credential
- func HostHasPrefix(v string) predicate.Credential
- func HostHasSuffix(v string) predicate.Credential
- func HostIn(vs ...string) predicate.Credential
- func HostIsNil() predicate.Credential
- func HostLT(v string) predicate.Credential
- func HostLTE(v string) predicate.Credential
- func HostNEQ(v string) predicate.Credential
- func HostNotIn(vs ...string) predicate.Credential
- func HostNotNil() predicate.Credential
- func ID(id int) predicate.Credential
- func IDEQ(id int) predicate.Credential
- func IDGT(id int) predicate.Credential
- func IDGTE(id int) predicate.Credential
- func IDIn(ids ...int) predicate.Credential
- func IDLT(id int) predicate.Credential
- func IDLTE(id int) predicate.Credential
- func IDNEQ(id int) predicate.Credential
- func IDNotIn(ids ...int) predicate.Credential
- func Not(p predicate.Credential) predicate.Credential
- func Note(v string) predicate.Credential
- func NoteContains(v string) predicate.Credential
- func NoteContainsFold(v string) predicate.Credential
- func NoteEQ(v string) predicate.Credential
- func NoteEqualFold(v string) predicate.Credential
- func NoteGT(v string) predicate.Credential
- func NoteGTE(v string) predicate.Credential
- func NoteHasPrefix(v string) predicate.Credential
- func NoteHasSuffix(v string) predicate.Credential
- func NoteIn(vs ...string) predicate.Credential
- func NoteIsNil() predicate.Credential
- func NoteLT(v string) predicate.Credential
- func NoteLTE(v string) predicate.Credential
- func NoteNEQ(v string) predicate.Credential
- func NoteNotIn(vs ...string) predicate.Credential
- func NoteNotNil() predicate.Credential
- func Or(predicates ...predicate.Credential) predicate.Credential
- func Realm(v string) predicate.Credential
- func RealmContains(v string) predicate.Credential
- func RealmContainsFold(v string) predicate.Credential
- func RealmEQ(v string) predicate.Credential
- func RealmEqualFold(v string) predicate.Credential
- func RealmGT(v string) predicate.Credential
- func RealmGTE(v string) predicate.Credential
- func RealmHasPrefix(v string) predicate.Credential
- func RealmHasSuffix(v string) predicate.Credential
- func RealmIn(vs ...string) predicate.Credential
- func RealmIsNil() predicate.Credential
- func RealmLT(v string) predicate.Credential
- func RealmLTE(v string) predicate.Credential
- func RealmNEQ(v string) predicate.Credential
- func RealmNotIn(vs ...string) predicate.Credential
- func RealmNotNil() predicate.Credential
- func Secret(v string) predicate.Credential
- func SecretContains(v string) predicate.Credential
- func SecretContainsFold(v string) predicate.Credential
- func SecretEQ(v string) predicate.Credential
- func SecretEqualFold(v string) predicate.Credential
- func SecretGT(v string) predicate.Credential
- func SecretGTE(v string) predicate.Credential
- func SecretHasPrefix(v string) predicate.Credential
- func SecretHasSuffix(v string) predicate.Credential
- func SecretIn(vs ...string) predicate.Credential
- func SecretIsNil() predicate.Credential
- func SecretLT(v string) predicate.Credential
- func SecretLTE(v string) predicate.Credential
- func SecretNEQ(v string) predicate.Credential
- func SecretNotIn(vs ...string) predicate.Credential
- func SecretNotNil() predicate.Credential
- func UpdatedAt(v time.Time) predicate.Credential
- func UpdatedAtEQ(v time.Time) predicate.Credential
- func UpdatedAtGT(v time.Time) predicate.Credential
- func UpdatedAtGTE(v time.Time) predicate.Credential
- func UpdatedAtIn(vs ...time.Time) predicate.Credential
- func UpdatedAtLT(v time.Time) predicate.Credential
- func UpdatedAtLTE(v time.Time) predicate.Credential
- func UpdatedAtNEQ(v time.Time) predicate.Credential
- func UpdatedAtNotIn(vs ...time.Time) predicate.Credential
- func Username(v string) predicate.Credential
- func UsernameContains(v string) predicate.Credential
- func UsernameContainsFold(v string) predicate.Credential
- func UsernameEQ(v string) predicate.Credential
- func UsernameEqualFold(v string) predicate.Credential
- func UsernameGT(v string) predicate.Credential
- func UsernameGTE(v string) predicate.Credential
- func UsernameHasPrefix(v string) predicate.Credential
- func UsernameHasSuffix(v string) predicate.Credential
- func UsernameIn(vs ...string) predicate.Credential
- func UsernameIsNil() predicate.Credential
- func UsernameLT(v string) predicate.Credential
- func UsernameLTE(v string) predicate.Credential
- func UsernameNEQ(v string) predicate.Credential
- func UsernameNotIn(vs ...string) predicate.Credential
- func UsernameNotNil() predicate.Credential
- func ValidColumn(column string) bool
- type OrderOption
- func ByColor(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByHost(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByNote(opts ...sql.OrderTermOption) OrderOption
- func ByRealm(opts ...sql.OrderTermOption) OrderOption
- func BySecret(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByUsername(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the credential type in the database. Label = "credential" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldDeletedAt holds the string denoting the deleted_at field in the database. FieldDeletedAt = "deleted_at" // FieldUsername holds the string denoting the username field in the database. FieldUsername = "username" // FieldSecret holds the string denoting the secret field in the database. FieldSecret = "secret" // FieldRealm holds the string denoting the realm field in the database. FieldRealm = "realm" // FieldHost holds the string denoting the host field in the database. FieldHost = "host" // FieldNote holds the string denoting the note field in the database. FieldNote = "note" // FieldColor holds the string denoting the color field in the database. FieldColor = "color" // Table holds the table name of the credential in the database. Table = "credential" )
Variables ¶
var ( Hooks [1]ent.Hook Interceptors [1]ent.Interceptor // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // UsernameValidator is a validator for the "username" field. It is called by the builders before save. UsernameValidator func(string) error // SecretValidator is a validator for the "secret" field. It is called by the builders before save. SecretValidator func(string) error // RealmValidator is a validator for the "realm" field. It is called by the builders before save. RealmValidator func(string) error // HostValidator is a validator for the "host" field. It is called by the builders before save. HostValidator func(string) error // NoteValidator is a validator for the "note" field. It is called by the builders before save. NoteValidator func(string) error // DefaultColor holds the default value on creation for the "color" field. DefaultColor uint32 )
Note that the variables below are initialized by the runtime package on the initialization of the application. Therefore, it should be imported in the main as follows:
import _ "github.com/c2micro/c2m/internal/ent/runtime"
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldDeletedAt, FieldUsername, FieldSecret, FieldRealm, FieldHost, FieldNote, FieldColor, }
Columns holds all SQL columns for credential fields.
Functions ¶
func And ¶
func And(predicates ...predicate.Credential) predicate.Credential
And groups predicates with the AND operator between them.
func Color ¶
func Color(v uint32) predicate.Credential
Color applies equality check predicate on the "color" field. It's identical to ColorEQ.
func ColorEQ ¶
func ColorEQ(v uint32) predicate.Credential
ColorEQ applies the EQ predicate on the "color" field.
func ColorGT ¶
func ColorGT(v uint32) predicate.Credential
ColorGT applies the GT predicate on the "color" field.
func ColorGTE ¶
func ColorGTE(v uint32) predicate.Credential
ColorGTE applies the GTE predicate on the "color" field.
func ColorIn ¶
func ColorIn(vs ...uint32) predicate.Credential
ColorIn applies the In predicate on the "color" field.
func ColorLT ¶
func ColorLT(v uint32) predicate.Credential
ColorLT applies the LT predicate on the "color" field.
func ColorLTE ¶
func ColorLTE(v uint32) predicate.Credential
ColorLTE applies the LTE predicate on the "color" field.
func ColorNEQ ¶
func ColorNEQ(v uint32) predicate.Credential
ColorNEQ applies the NEQ predicate on the "color" field.
func ColorNotIn ¶
func ColorNotIn(vs ...uint32) predicate.Credential
ColorNotIn applies the NotIn predicate on the "color" field.
func CreatedAt ¶
func CreatedAt(v time.Time) predicate.Credential
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
func CreatedAtEQ(v time.Time) predicate.Credential
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
func CreatedAtGT(v time.Time) predicate.Credential
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
func CreatedAtGTE(v time.Time) predicate.Credential
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
func CreatedAtIn(vs ...time.Time) predicate.Credential
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
func CreatedAtLT(v time.Time) predicate.Credential
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
func CreatedAtLTE(v time.Time) predicate.Credential
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
func CreatedAtNEQ(v time.Time) predicate.Credential
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
func CreatedAtNotIn(vs ...time.Time) predicate.Credential
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func DeletedAt ¶
func DeletedAt(v time.Time) predicate.Credential
DeletedAt applies equality check predicate on the "deleted_at" field. It's identical to DeletedAtEQ.
func DeletedAtEQ ¶
func DeletedAtEQ(v time.Time) predicate.Credential
DeletedAtEQ applies the EQ predicate on the "deleted_at" field.
func DeletedAtGT ¶
func DeletedAtGT(v time.Time) predicate.Credential
DeletedAtGT applies the GT predicate on the "deleted_at" field.
func DeletedAtGTE ¶
func DeletedAtGTE(v time.Time) predicate.Credential
DeletedAtGTE applies the GTE predicate on the "deleted_at" field.
func DeletedAtIn ¶
func DeletedAtIn(vs ...time.Time) predicate.Credential
DeletedAtIn applies the In predicate on the "deleted_at" field.
func DeletedAtIsNil ¶
func DeletedAtIsNil() predicate.Credential
DeletedAtIsNil applies the IsNil predicate on the "deleted_at" field.
func DeletedAtLT ¶
func DeletedAtLT(v time.Time) predicate.Credential
DeletedAtLT applies the LT predicate on the "deleted_at" field.
func DeletedAtLTE ¶
func DeletedAtLTE(v time.Time) predicate.Credential
DeletedAtLTE applies the LTE predicate on the "deleted_at" field.
func DeletedAtNEQ ¶
func DeletedAtNEQ(v time.Time) predicate.Credential
DeletedAtNEQ applies the NEQ predicate on the "deleted_at" field.
func DeletedAtNotIn ¶
func DeletedAtNotIn(vs ...time.Time) predicate.Credential
DeletedAtNotIn applies the NotIn predicate on the "deleted_at" field.
func DeletedAtNotNil ¶
func DeletedAtNotNil() predicate.Credential
DeletedAtNotNil applies the NotNil predicate on the "deleted_at" field.
func Host ¶
func Host(v string) predicate.Credential
Host applies equality check predicate on the "host" field. It's identical to HostEQ.
func HostContains ¶
func HostContains(v string) predicate.Credential
HostContains applies the Contains predicate on the "host" field.
func HostContainsFold ¶
func HostContainsFold(v string) predicate.Credential
HostContainsFold applies the ContainsFold predicate on the "host" field.
func HostEQ ¶
func HostEQ(v string) predicate.Credential
HostEQ applies the EQ predicate on the "host" field.
func HostEqualFold ¶
func HostEqualFold(v string) predicate.Credential
HostEqualFold applies the EqualFold predicate on the "host" field.
func HostGT ¶
func HostGT(v string) predicate.Credential
HostGT applies the GT predicate on the "host" field.
func HostGTE ¶
func HostGTE(v string) predicate.Credential
HostGTE applies the GTE predicate on the "host" field.
func HostHasPrefix ¶
func HostHasPrefix(v string) predicate.Credential
HostHasPrefix applies the HasPrefix predicate on the "host" field.
func HostHasSuffix ¶
func HostHasSuffix(v string) predicate.Credential
HostHasSuffix applies the HasSuffix predicate on the "host" field.
func HostIn ¶
func HostIn(vs ...string) predicate.Credential
HostIn applies the In predicate on the "host" field.
func HostIsNil ¶
func HostIsNil() predicate.Credential
HostIsNil applies the IsNil predicate on the "host" field.
func HostLT ¶
func HostLT(v string) predicate.Credential
HostLT applies the LT predicate on the "host" field.
func HostLTE ¶
func HostLTE(v string) predicate.Credential
HostLTE applies the LTE predicate on the "host" field.
func HostNEQ ¶
func HostNEQ(v string) predicate.Credential
HostNEQ applies the NEQ predicate on the "host" field.
func HostNotIn ¶
func HostNotIn(vs ...string) predicate.Credential
HostNotIn applies the NotIn predicate on the "host" field.
func HostNotNil ¶
func HostNotNil() predicate.Credential
HostNotNil applies the NotNil predicate on the "host" field.
func IDGTE ¶
func IDGTE(id int) predicate.Credential
IDGTE applies the GTE predicate on the ID field.
func IDIn ¶
func IDIn(ids ...int) predicate.Credential
IDIn applies the In predicate on the ID field.
func IDLTE ¶
func IDLTE(id int) predicate.Credential
IDLTE applies the LTE predicate on the ID field.
func IDNEQ ¶
func IDNEQ(id int) predicate.Credential
IDNEQ applies the NEQ predicate on the ID field.
func IDNotIn ¶
func IDNotIn(ids ...int) predicate.Credential
IDNotIn applies the NotIn predicate on the ID field.
func Not ¶
func Not(p predicate.Credential) predicate.Credential
Not applies the not operator on the given predicate.
func Note ¶
func Note(v string) predicate.Credential
Note applies equality check predicate on the "note" field. It's identical to NoteEQ.
func NoteContains ¶
func NoteContains(v string) predicate.Credential
NoteContains applies the Contains predicate on the "note" field.
func NoteContainsFold ¶
func NoteContainsFold(v string) predicate.Credential
NoteContainsFold applies the ContainsFold predicate on the "note" field.
func NoteEQ ¶
func NoteEQ(v string) predicate.Credential
NoteEQ applies the EQ predicate on the "note" field.
func NoteEqualFold ¶
func NoteEqualFold(v string) predicate.Credential
NoteEqualFold applies the EqualFold predicate on the "note" field.
func NoteGT ¶
func NoteGT(v string) predicate.Credential
NoteGT applies the GT predicate on the "note" field.
func NoteGTE ¶
func NoteGTE(v string) predicate.Credential
NoteGTE applies the GTE predicate on the "note" field.
func NoteHasPrefix ¶
func NoteHasPrefix(v string) predicate.Credential
NoteHasPrefix applies the HasPrefix predicate on the "note" field.
func NoteHasSuffix ¶
func NoteHasSuffix(v string) predicate.Credential
NoteHasSuffix applies the HasSuffix predicate on the "note" field.
func NoteIn ¶
func NoteIn(vs ...string) predicate.Credential
NoteIn applies the In predicate on the "note" field.
func NoteIsNil ¶
func NoteIsNil() predicate.Credential
NoteIsNil applies the IsNil predicate on the "note" field.
func NoteLT ¶
func NoteLT(v string) predicate.Credential
NoteLT applies the LT predicate on the "note" field.
func NoteLTE ¶
func NoteLTE(v string) predicate.Credential
NoteLTE applies the LTE predicate on the "note" field.
func NoteNEQ ¶
func NoteNEQ(v string) predicate.Credential
NoteNEQ applies the NEQ predicate on the "note" field.
func NoteNotIn ¶
func NoteNotIn(vs ...string) predicate.Credential
NoteNotIn applies the NotIn predicate on the "note" field.
func NoteNotNil ¶
func NoteNotNil() predicate.Credential
NoteNotNil applies the NotNil predicate on the "note" field.
func Or ¶
func Or(predicates ...predicate.Credential) predicate.Credential
Or groups predicates with the OR operator between them.
func Realm ¶
func Realm(v string) predicate.Credential
Realm applies equality check predicate on the "realm" field. It's identical to RealmEQ.
func RealmContains ¶
func RealmContains(v string) predicate.Credential
RealmContains applies the Contains predicate on the "realm" field.
func RealmContainsFold ¶
func RealmContainsFold(v string) predicate.Credential
RealmContainsFold applies the ContainsFold predicate on the "realm" field.
func RealmEQ ¶
func RealmEQ(v string) predicate.Credential
RealmEQ applies the EQ predicate on the "realm" field.
func RealmEqualFold ¶
func RealmEqualFold(v string) predicate.Credential
RealmEqualFold applies the EqualFold predicate on the "realm" field.
func RealmGT ¶
func RealmGT(v string) predicate.Credential
RealmGT applies the GT predicate on the "realm" field.
func RealmGTE ¶
func RealmGTE(v string) predicate.Credential
RealmGTE applies the GTE predicate on the "realm" field.
func RealmHasPrefix ¶
func RealmHasPrefix(v string) predicate.Credential
RealmHasPrefix applies the HasPrefix predicate on the "realm" field.
func RealmHasSuffix ¶
func RealmHasSuffix(v string) predicate.Credential
RealmHasSuffix applies the HasSuffix predicate on the "realm" field.
func RealmIn ¶
func RealmIn(vs ...string) predicate.Credential
RealmIn applies the In predicate on the "realm" field.
func RealmIsNil ¶
func RealmIsNil() predicate.Credential
RealmIsNil applies the IsNil predicate on the "realm" field.
func RealmLT ¶
func RealmLT(v string) predicate.Credential
RealmLT applies the LT predicate on the "realm" field.
func RealmLTE ¶
func RealmLTE(v string) predicate.Credential
RealmLTE applies the LTE predicate on the "realm" field.
func RealmNEQ ¶
func RealmNEQ(v string) predicate.Credential
RealmNEQ applies the NEQ predicate on the "realm" field.
func RealmNotIn ¶
func RealmNotIn(vs ...string) predicate.Credential
RealmNotIn applies the NotIn predicate on the "realm" field.
func RealmNotNil ¶
func RealmNotNil() predicate.Credential
RealmNotNil applies the NotNil predicate on the "realm" field.
func Secret ¶
func Secret(v string) predicate.Credential
Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func SecretContains ¶
func SecretContains(v string) predicate.Credential
SecretContains applies the Contains predicate on the "secret" field.
func SecretContainsFold ¶
func SecretContainsFold(v string) predicate.Credential
SecretContainsFold applies the ContainsFold predicate on the "secret" field.
func SecretEQ ¶
func SecretEQ(v string) predicate.Credential
SecretEQ applies the EQ predicate on the "secret" field.
func SecretEqualFold ¶
func SecretEqualFold(v string) predicate.Credential
SecretEqualFold applies the EqualFold predicate on the "secret" field.
func SecretGT ¶
func SecretGT(v string) predicate.Credential
SecretGT applies the GT predicate on the "secret" field.
func SecretGTE ¶
func SecretGTE(v string) predicate.Credential
SecretGTE applies the GTE predicate on the "secret" field.
func SecretHasPrefix ¶
func SecretHasPrefix(v string) predicate.Credential
SecretHasPrefix applies the HasPrefix predicate on the "secret" field.
func SecretHasSuffix ¶
func SecretHasSuffix(v string) predicate.Credential
SecretHasSuffix applies the HasSuffix predicate on the "secret" field.
func SecretIn ¶
func SecretIn(vs ...string) predicate.Credential
SecretIn applies the In predicate on the "secret" field.
func SecretIsNil ¶
func SecretIsNil() predicate.Credential
SecretIsNil applies the IsNil predicate on the "secret" field.
func SecretLT ¶
func SecretLT(v string) predicate.Credential
SecretLT applies the LT predicate on the "secret" field.
func SecretLTE ¶
func SecretLTE(v string) predicate.Credential
SecretLTE applies the LTE predicate on the "secret" field.
func SecretNEQ ¶
func SecretNEQ(v string) predicate.Credential
SecretNEQ applies the NEQ predicate on the "secret" field.
func SecretNotIn ¶
func SecretNotIn(vs ...string) predicate.Credential
SecretNotIn applies the NotIn predicate on the "secret" field.
func SecretNotNil ¶
func SecretNotNil() predicate.Credential
SecretNotNil applies the NotNil predicate on the "secret" field.
func UpdatedAt ¶
func UpdatedAt(v time.Time) predicate.Credential
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
func UpdatedAtEQ(v time.Time) predicate.Credential
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
func UpdatedAtGT(v time.Time) predicate.Credential
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
func UpdatedAtGTE(v time.Time) predicate.Credential
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
func UpdatedAtIn(vs ...time.Time) predicate.Credential
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
func UpdatedAtLT(v time.Time) predicate.Credential
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
func UpdatedAtLTE(v time.Time) predicate.Credential
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
func UpdatedAtNEQ(v time.Time) predicate.Credential
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
func UpdatedAtNotIn(vs ...time.Time) predicate.Credential
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func Username ¶
func Username(v string) predicate.Credential
Username applies equality check predicate on the "username" field. It's identical to UsernameEQ.
func UsernameContains ¶
func UsernameContains(v string) predicate.Credential
UsernameContains applies the Contains predicate on the "username" field.
func UsernameContainsFold ¶
func UsernameContainsFold(v string) predicate.Credential
UsernameContainsFold applies the ContainsFold predicate on the "username" field.
func UsernameEQ ¶
func UsernameEQ(v string) predicate.Credential
UsernameEQ applies the EQ predicate on the "username" field.
func UsernameEqualFold ¶
func UsernameEqualFold(v string) predicate.Credential
UsernameEqualFold applies the EqualFold predicate on the "username" field.
func UsernameGT ¶
func UsernameGT(v string) predicate.Credential
UsernameGT applies the GT predicate on the "username" field.
func UsernameGTE ¶
func UsernameGTE(v string) predicate.Credential
UsernameGTE applies the GTE predicate on the "username" field.
func UsernameHasPrefix ¶
func UsernameHasPrefix(v string) predicate.Credential
UsernameHasPrefix applies the HasPrefix predicate on the "username" field.
func UsernameHasSuffix ¶
func UsernameHasSuffix(v string) predicate.Credential
UsernameHasSuffix applies the HasSuffix predicate on the "username" field.
func UsernameIn ¶
func UsernameIn(vs ...string) predicate.Credential
UsernameIn applies the In predicate on the "username" field.
func UsernameIsNil ¶
func UsernameIsNil() predicate.Credential
UsernameIsNil applies the IsNil predicate on the "username" field.
func UsernameLT ¶
func UsernameLT(v string) predicate.Credential
UsernameLT applies the LT predicate on the "username" field.
func UsernameLTE ¶
func UsernameLTE(v string) predicate.Credential
UsernameLTE applies the LTE predicate on the "username" field.
func UsernameNEQ ¶
func UsernameNEQ(v string) predicate.Credential
UsernameNEQ applies the NEQ predicate on the "username" field.
func UsernameNotIn ¶
func UsernameNotIn(vs ...string) predicate.Credential
UsernameNotIn applies the NotIn predicate on the "username" field.
func UsernameNotNil ¶
func UsernameNotNil() predicate.Credential
UsernameNotNil applies the NotNil predicate on the "username" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Credential queries.
func ByColor ¶
func ByColor(opts ...sql.OrderTermOption) OrderOption
ByColor orders the results by the color field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByDeletedAt ¶
func ByDeletedAt(opts ...sql.OrderTermOption) OrderOption
ByDeletedAt orders the results by the deleted_at field.
func ByHost ¶
func ByHost(opts ...sql.OrderTermOption) OrderOption
ByHost orders the results by the host field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByNote ¶
func ByNote(opts ...sql.OrderTermOption) OrderOption
ByNote orders the results by the note field.
func ByRealm ¶
func ByRealm(opts ...sql.OrderTermOption) OrderOption
ByRealm orders the results by the realm field.
func BySecret ¶
func BySecret(opts ...sql.OrderTermOption) OrderOption
BySecret orders the results by the secret field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByUsername ¶
func ByUsername(opts ...sql.OrderTermOption) OrderOption
ByUsername orders the results by the username field.