ent: github.com/facebookincubator/ent/entc/integration/ent/group Index | Files

package group

import "github.com/facebookincubator/ent/entc/integration/ent/group"

Index

Package Files

group.go where.go

Constants

const (
    // Label holds the string label denoting the group type in the database.
    Label = "group"
    // FieldID holds the string denoting the id field in the database.
    FieldID = "id"
    // FieldActive holds the string denoting the active vertex property in the database.
    FieldActive = "active"
    // FieldExpire holds the string denoting the expire vertex property in the database.
    FieldExpire = "expire"
    // FieldType holds the string denoting the type vertex property in the database.
    FieldType = "type"
    // FieldMaxUsers holds the string denoting the max_users vertex property in the database.
    FieldMaxUsers = "max_users"
    // FieldName holds the string denoting the name vertex property in the database.
    FieldName = "name"

    // Table holds the table name of the group in the database.
    Table = "groups"
    // FilesTable is the table the holds the files relation/edge.
    FilesTable = "files"
    // FilesInverseTable is the table name for the File entity.
    // It exists in this package in order to avoid circular dependency with the "file" package.
    FilesInverseTable = "files"
    // FilesColumn is the table column denoting the files relation/edge.
    FilesColumn = "group_file_id"
    // BlockedTable is the table the holds the blocked relation/edge.
    BlockedTable = "users"
    // BlockedInverseTable is the table name for the User entity.
    // It exists in this package in order to avoid circular dependency with the "user" package.
    BlockedInverseTable = "users"
    // BlockedColumn is the table column denoting the blocked relation/edge.
    BlockedColumn = "group_blocked_id"
    // UsersTable is the table the holds the users relation/edge. The primary key declared below.
    UsersTable = "user_groups"
    // UsersInverseTable is the table name for the User entity.
    // It exists in this package in order to avoid circular dependency with the "user" package.
    UsersInverseTable = "users"
    // InfoTable is the table the holds the info relation/edge.
    InfoTable = "groups"
    // InfoInverseTable is the table name for the GroupInfo entity.
    // It exists in this package in order to avoid circular dependency with the "groupinfo" package.
    InfoInverseTable = "group_infos"
    // InfoColumn is the table column denoting the info relation/edge.
    InfoColumn = "info_id"

    // FilesLabel holds the string label denoting the files edge type in the database.
    FilesLabel = "group_files"
    // BlockedLabel holds the string label denoting the blocked edge type in the database.
    BlockedLabel = "group_blocked"
    // UsersInverseLabel holds the string label denoting the users inverse edge type in the database.
    UsersInverseLabel = "user_groups"
    // InfoLabel holds the string label denoting the info edge type in the database.
    InfoLabel = "group_info"
)

Variables

var (

    // DefaultActive holds the default value on creation for the active field.
    DefaultActive = descActive.Default.(bool)

    // TypeValidator is a validator for the "type" field. It is called by the builders before save.
    TypeValidator = func() func(string) error {
        validators := descType.Validators
        fns := [...]func(string) error{
            validators[0].(func(string) error),
            validators[1].(func(string) error),
        }
        return func(_type string) error {
            for _, fn := range fns {
                if err := fn(_type); err != nil {
                    return err
                }
            }
            return nil
        }
    }()

    // DefaultMaxUsers holds the default value on creation for the max_users field.
    DefaultMaxUsers = descMaxUsers.Default.(int)
    // MaxUsersValidator is a validator for the "max_users" field. It is called by the builders before save.
    MaxUsersValidator = descMaxUsers.Validators[0].(func(int) error)

    // NameValidator is a validator for the "name" field. It is called by the builders before save.
    NameValidator = func() func(string) error {
        validators := descName.Validators
        fns := [...]func(string) error{
            validators[0].(func(string) error),
            validators[1].(func(string) error),
        }
        return func(name string) error {
            for _, fn := range fns {
                if err := fn(name); err != nil {
                    return err
                }
            }
            return nil
        }
    }()
)
var Columns = []string{
    FieldID,
    FieldActive,
    FieldExpire,
    FieldType,
    FieldMaxUsers,
    FieldName,
}

Columns holds all SQL columns are group fields.

var (
    // UsersPrimaryKey and UsersColumn2 are the table columns denoting the
    // primary key for the users relation (M2M).
    UsersPrimaryKey = []string{"user_id", "group_id"}
)

func Active Uses

func Active(v bool) predicate.Group

Active applies equality check predicate on the "active" field. It's identical to ActiveEQ.

func ActiveEQ Uses

func ActiveEQ(v bool) predicate.Group

ActiveEQ applies the EQ predicate on the "active" field.

func ActiveNEQ Uses

func ActiveNEQ(v bool) predicate.Group

ActiveNEQ applies the NEQ predicate on the "active" field.

func And Uses

func And(predicates ...predicate.Group) predicate.Group

And groups list of predicates with the AND operator between them.

func Expire Uses

func Expire(v time.Time) predicate.Group

Expire applies equality check predicate on the "expire" field. It's identical to ExpireEQ.

func ExpireEQ Uses

func ExpireEQ(v time.Time) predicate.Group

ExpireEQ applies the EQ predicate on the "expire" field.

func ExpireGT Uses

func ExpireGT(v time.Time) predicate.Group

ExpireGT applies the GT predicate on the "expire" field.

func ExpireGTE Uses

func ExpireGTE(v time.Time) predicate.Group

ExpireGTE applies the GTE predicate on the "expire" field.

func ExpireIn Uses

func ExpireIn(vs ...time.Time) predicate.Group

ExpireIn applies the In predicate on the "expire" field.

func ExpireLT Uses

func ExpireLT(v time.Time) predicate.Group

ExpireLT applies the LT predicate on the "expire" field.

func ExpireLTE Uses

func ExpireLTE(v time.Time) predicate.Group

ExpireLTE applies the LTE predicate on the "expire" field.

func ExpireNEQ Uses

func ExpireNEQ(v time.Time) predicate.Group

ExpireNEQ applies the NEQ predicate on the "expire" field.

func ExpireNotIn Uses

func ExpireNotIn(vs ...time.Time) predicate.Group

ExpireNotIn applies the NotIn predicate on the "expire" field.

func HasBlocked Uses

func HasBlocked() predicate.Group

HasBlocked applies the HasEdge predicate on the "blocked" edge.

func HasBlockedWith Uses

func HasBlockedWith(preds ...predicate.User) predicate.Group

HasBlockedWith applies the HasEdge predicate on the "blocked" edge with a given conditions (other predicates).

func HasFiles Uses

func HasFiles() predicate.Group

HasFiles applies the HasEdge predicate on the "files" edge.

func HasFilesWith Uses

func HasFilesWith(preds ...predicate.File) predicate.Group

HasFilesWith applies the HasEdge predicate on the "files" edge with a given conditions (other predicates).

func HasInfo Uses

func HasInfo() predicate.Group

HasInfo applies the HasEdge predicate on the "info" edge.

func HasInfoWith Uses

func HasInfoWith(preds ...predicate.GroupInfo) predicate.Group

HasInfoWith applies the HasEdge predicate on the "info" edge with a given conditions (other predicates).

func HasUsers Uses

func HasUsers() predicate.Group

HasUsers applies the HasEdge predicate on the "users" edge.

func HasUsersWith Uses

func HasUsersWith(preds ...predicate.User) predicate.Group

HasUsersWith applies the HasEdge predicate on the "users" edge with a given conditions (other predicates).

func ID Uses

func ID(id string) predicate.Group

ID filters vertices based on their identifier.

func IDEQ Uses

func IDEQ(id string) predicate.Group

IDEQ applies the EQ predicate on the ID field.

func IDGT Uses

func IDGT(id string) predicate.Group

IDGT applies the GT predicate on the ID field.

func IDGTE Uses

func IDGTE(id string) predicate.Group

IDGTE applies the GTE predicate on the ID field.

func IDIn Uses

func IDIn(ids ...string) predicate.Group

IDIn applies the In predicate on the ID field.

func IDLT Uses

func IDLT(id string) predicate.Group

IDLT applies the LT predicate on the ID field.

func IDLTE Uses

func IDLTE(id string) predicate.Group

IDLTE applies the LTE predicate on the ID field.

func IDNEQ Uses

func IDNEQ(id string) predicate.Group

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn Uses

func IDNotIn(ids ...string) predicate.Group

IDNotIn applies the NotIn predicate on the ID field.

func MaxUsers Uses

func MaxUsers(v int) predicate.Group

MaxUsers applies equality check predicate on the "max_users" field. It's identical to MaxUsersEQ.

func MaxUsersEQ Uses

func MaxUsersEQ(v int) predicate.Group

MaxUsersEQ applies the EQ predicate on the "max_users" field.

func MaxUsersGT Uses

func MaxUsersGT(v int) predicate.Group

MaxUsersGT applies the GT predicate on the "max_users" field.

func MaxUsersGTE Uses

func MaxUsersGTE(v int) predicate.Group

MaxUsersGTE applies the GTE predicate on the "max_users" field.

func MaxUsersIn Uses

func MaxUsersIn(vs ...int) predicate.Group

MaxUsersIn applies the In predicate on the "max_users" field.

func MaxUsersIsNil Uses

func MaxUsersIsNil() predicate.Group

MaxUsersIsNil applies the IsNil predicate on the "max_users" field.

func MaxUsersLT Uses

func MaxUsersLT(v int) predicate.Group

MaxUsersLT applies the LT predicate on the "max_users" field.

func MaxUsersLTE Uses

func MaxUsersLTE(v int) predicate.Group

MaxUsersLTE applies the LTE predicate on the "max_users" field.

func MaxUsersNEQ Uses

func MaxUsersNEQ(v int) predicate.Group

MaxUsersNEQ applies the NEQ predicate on the "max_users" field.

func MaxUsersNotIn Uses

func MaxUsersNotIn(vs ...int) predicate.Group

MaxUsersNotIn applies the NotIn predicate on the "max_users" field.

func MaxUsersNotNil Uses

func MaxUsersNotNil() predicate.Group

MaxUsersNotNil applies the NotNil predicate on the "max_users" field.

func Name Uses

func Name(v string) predicate.Group

Name applies equality check predicate on the "name" field. It's identical to NameEQ.

func NameContains Uses

func NameContains(v string) predicate.Group

NameContains applies the Contains predicate on the "name" field.

func NameEQ Uses

func NameEQ(v string) predicate.Group

NameEQ applies the EQ predicate on the "name" field.

func NameGT Uses

func NameGT(v string) predicate.Group

NameGT applies the GT predicate on the "name" field.

func NameGTE Uses

func NameGTE(v string) predicate.Group

NameGTE applies the GTE predicate on the "name" field.

func NameHasPrefix Uses

func NameHasPrefix(v string) predicate.Group

NameHasPrefix applies the HasPrefix predicate on the "name" field.

func NameHasSuffix Uses

func NameHasSuffix(v string) predicate.Group

NameHasSuffix applies the HasSuffix predicate on the "name" field.

func NameIn Uses

func NameIn(vs ...string) predicate.Group

NameIn applies the In predicate on the "name" field.

func NameLT Uses

func NameLT(v string) predicate.Group

NameLT applies the LT predicate on the "name" field.

func NameLTE Uses

func NameLTE(v string) predicate.Group

NameLTE applies the LTE predicate on the "name" field.

func NameNEQ Uses

func NameNEQ(v string) predicate.Group

NameNEQ applies the NEQ predicate on the "name" field.

func NameNotIn Uses

func NameNotIn(vs ...string) predicate.Group

NameNotIn applies the NotIn predicate on the "name" field.

func Not Uses

func Not(p predicate.Group) predicate.Group

Not applies the not operator on the given predicate.

func Or Uses

func Or(predicates ...predicate.Group) predicate.Group

Or groups list of predicates with the OR operator between them.

func Type Uses

func Type(v string) predicate.Group

Type applies equality check predicate on the "type" field. It's identical to TypeEQ.

func TypeContains Uses

func TypeContains(v string) predicate.Group

TypeContains applies the Contains predicate on the "type" field.

func TypeEQ Uses

func TypeEQ(v string) predicate.Group

TypeEQ applies the EQ predicate on the "type" field.

func TypeGT Uses

func TypeGT(v string) predicate.Group

TypeGT applies the GT predicate on the "type" field.

func TypeGTE Uses

func TypeGTE(v string) predicate.Group

TypeGTE applies the GTE predicate on the "type" field.

func TypeHasPrefix Uses

func TypeHasPrefix(v string) predicate.Group

TypeHasPrefix applies the HasPrefix predicate on the "type" field.

func TypeHasSuffix Uses

func TypeHasSuffix(v string) predicate.Group

TypeHasSuffix applies the HasSuffix predicate on the "type" field.

func TypeIn Uses

func TypeIn(vs ...string) predicate.Group

TypeIn applies the In predicate on the "type" field.

func TypeIsNil Uses

func TypeIsNil() predicate.Group

TypeIsNil applies the IsNil predicate on the "type" field.

func TypeLT Uses

func TypeLT(v string) predicate.Group

TypeLT applies the LT predicate on the "type" field.

func TypeLTE Uses

func TypeLTE(v string) predicate.Group

TypeLTE applies the LTE predicate on the "type" field.

func TypeNEQ Uses

func TypeNEQ(v string) predicate.Group

TypeNEQ applies the NEQ predicate on the "type" field.

func TypeNotIn Uses

func TypeNotIn(vs ...string) predicate.Group

TypeNotIn applies the NotIn predicate on the "type" field.

func TypeNotNil Uses

func TypeNotNil() predicate.Group

TypeNotNil applies the NotNil predicate on the "type" field.

Package group imports 8 packages (graph) and is imported by 2 packages. Updated 2019-11-19. Refresh now. Tools for package owners.