chore: regenerate ent

Signed-off-by: Mark Sagi-Kazar <mark.sagikazar@gmail.com>
This commit is contained in:
Mark Sagi-Kazar
2023-03-18 14:30:07 +01:00
parent bf410dfd16
commit bbed8a056a
9 changed files with 73 additions and 3 deletions
+10
View File
@@ -54,6 +54,16 @@ func IDLTE(id string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldContainsFold(FieldID, id))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.AuthCode {
return predicate.AuthCode(sql.FieldEQ(FieldClientID, v))
+10
View File
@@ -54,6 +54,16 @@ func IDLTE(id string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldContainsFold(FieldID, id))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.AuthRequest {
return predicate.AuthRequest(sql.FieldEQ(FieldClientID, v))
+10
View File
@@ -52,6 +52,16 @@ func IDLTE(id string) predicate.Connector {
return predicate.Connector(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.Connector {
return predicate.Connector(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.Connector {
return predicate.Connector(sql.FieldContainsFold(FieldID, id))
}
// Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
func Type(v string) predicate.Connector {
return predicate.Connector(sql.FieldEQ(FieldType, v))
+1 -1
View File
@@ -523,7 +523,7 @@ func withHooks[V Value, M any, PM interface {
return exec(ctx)
}
var mut Mutator = MutateFunc(func(ctx context.Context, m Mutation) (Value, error) {
mutationT, ok := m.(PM)
mutationT, ok := any(m).(PM)
if !ok {
return nil, fmt.Errorf("unexpected mutation type %T", m)
}
+10
View File
@@ -54,6 +54,16 @@ func IDLTE(id string) predicate.Keys {
return predicate.Keys(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.Keys {
return predicate.Keys(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.Keys {
return predicate.Keys(sql.FieldContainsFold(FieldID, id))
}
// NextRotation applies equality check predicate on the "next_rotation" field. It's identical to NextRotationEQ.
func NextRotation(v time.Time) predicate.Keys {
return predicate.Keys(sql.FieldEQ(FieldNextRotation, v))
+10
View File
@@ -52,6 +52,16 @@ func IDLTE(id string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldContainsFold(FieldID, id))
}
// Secret applies equality check predicate on the "secret" field. It's identical to SecretEQ.
func Secret(v string) predicate.OAuth2Client {
return predicate.OAuth2Client(sql.FieldEQ(FieldSecret, v))
+10
View File
@@ -52,6 +52,16 @@ func IDLTE(id string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldContainsFold(FieldID, id))
}
// UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.
func UserID(v string) predicate.OfflineSession {
return predicate.OfflineSession(sql.FieldEQ(FieldUserID, v))
+10
View File
@@ -54,6 +54,16 @@ func IDLTE(id string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldLTE(FieldID, id))
}
// IDEqualFold applies the EqualFold predicate on the ID field.
func IDEqualFold(id string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldEqualFold(FieldID, id))
}
// IDContainsFold applies the ContainsFold predicate on the ID field.
func IDContainsFold(id string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldContainsFold(FieldID, id))
}
// ClientID applies equality check predicate on the "client_id" field. It's identical to ClientIDEQ.
func ClientID(v string) predicate.RefreshToken {
return predicate.RefreshToken(sql.FieldEQ(FieldClientID, v))
+2 -2
View File
@@ -5,6 +5,6 @@ package runtime
// The schema-stitching logic is generated in github.com/dexidp/dex/storage/ent/db/runtime.go
const (
Version = "v0.11.9" // Version of ent codegen.
Sum = "h1:dbbCkAiPVTRBIJwoZctiSYjB7zxQIBOzVSU5H9VYIQI=" // Sum of ent codegen.
Version = "v0.11.10" // Version of ent codegen.
Sum = "h1:iqn32ybY5HRW3xSAyMNdNKpZhKgMf1Zunsej9yPKUI8=" // Sum of ent codegen.
)