Documentation ¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type FnetCategories
- type FnetCategory
- type FnetCategoryClient
- func (c *FnetCategoryClient) Create() *FnetCategoryCreate
- func (c *FnetCategoryClient) CreateBulk(builders ...*FnetCategoryCreate) *FnetCategoryCreateBulk
- func (c *FnetCategoryClient) Delete() *FnetCategoryDelete
- func (c *FnetCategoryClient) DeleteOne(fc *FnetCategory) *FnetCategoryDeleteOne
- func (c *FnetCategoryClient) DeleteOneID(id int) *FnetCategoryDeleteOne
- func (c *FnetCategoryClient) Get(ctx context.Context, id int) (*FnetCategory, error)
- func (c *FnetCategoryClient) GetX(ctx context.Context, id int) *FnetCategory
- func (c *FnetCategoryClient) Hooks() []Hook
- func (c *FnetCategoryClient) Intercept(interceptors ...Interceptor)
- func (c *FnetCategoryClient) Interceptors() []Interceptor
- func (c *FnetCategoryClient) MapCreateBulk(slice any, setFunc func(*FnetCategoryCreate, int)) *FnetCategoryCreateBulk
- func (c *FnetCategoryClient) Query() *FnetCategoryQuery
- func (c *FnetCategoryClient) QueryDocuments(fc *FnetCategory) *FnetDocumentQuery
- func (c *FnetCategoryClient) Update() *FnetCategoryUpdate
- func (c *FnetCategoryClient) UpdateOne(fc *FnetCategory) *FnetCategoryUpdateOne
- func (c *FnetCategoryClient) UpdateOneID(id int) *FnetCategoryUpdateOne
- func (c *FnetCategoryClient) Use(hooks ...Hook)
- type FnetCategoryCreate
- func (fcc *FnetCategoryCreate) AddDocumentIDs(ids ...int) *FnetCategoryCreate
- func (fcc *FnetCategoryCreate) AddDocuments(f ...*FnetDocument) *FnetCategoryCreate
- func (fcc *FnetCategoryCreate) Exec(ctx context.Context) error
- func (fcc *FnetCategoryCreate) ExecX(ctx context.Context)
- func (fcc *FnetCategoryCreate) Mutation() *FnetCategoryMutation
- func (fcc *FnetCategoryCreate) OnConflict(opts ...sql.ConflictOption) *FnetCategoryUpsertOne
- func (fcc *FnetCategoryCreate) OnConflictColumns(columns ...string) *FnetCategoryUpsertOne
- func (fcc *FnetCategoryCreate) Save(ctx context.Context) (*FnetCategory, error)
- func (fcc *FnetCategoryCreate) SaveX(ctx context.Context) *FnetCategory
- func (fcc *FnetCategoryCreate) SetName(s string) *FnetCategoryCreate
- type FnetCategoryCreateBulk
- func (fccb *FnetCategoryCreateBulk) Exec(ctx context.Context) error
- func (fccb *FnetCategoryCreateBulk) ExecX(ctx context.Context)
- func (fccb *FnetCategoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetCategoryUpsertBulk
- func (fccb *FnetCategoryCreateBulk) OnConflictColumns(columns ...string) *FnetCategoryUpsertBulk
- func (fccb *FnetCategoryCreateBulk) Save(ctx context.Context) ([]*FnetCategory, error)
- func (fccb *FnetCategoryCreateBulk) SaveX(ctx context.Context) []*FnetCategory
- type FnetCategoryDelete
- type FnetCategoryDeleteOne
- type FnetCategoryEdges
- type FnetCategoryGroupBy
- func (fcgb *FnetCategoryGroupBy) Aggregate(fns ...AggregateFunc) *FnetCategoryGroupBy
- func (s *FnetCategoryGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetCategoryGroupBy) BoolX(ctx context.Context) bool
- func (s *FnetCategoryGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetCategoryGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FnetCategoryGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetCategoryGroupBy) Float64X(ctx context.Context) float64
- func (s *FnetCategoryGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetCategoryGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FnetCategoryGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FnetCategoryGroupBy) IntX(ctx context.Context) int
- func (s *FnetCategoryGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FnetCategoryGroupBy) IntsX(ctx context.Context) []int
- func (fcgb *FnetCategoryGroupBy) Scan(ctx context.Context, v any) error
- func (s *FnetCategoryGroupBy) ScanX(ctx context.Context, v any)
- func (s *FnetCategoryGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FnetCategoryGroupBy) StringX(ctx context.Context) string
- func (s *FnetCategoryGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FnetCategoryGroupBy) StringsX(ctx context.Context) []string
- type FnetCategoryMutation
- func (m *FnetCategoryMutation) AddDocumentIDs(ids ...int)
- func (m *FnetCategoryMutation) AddField(name string, value ent.Value) error
- func (m *FnetCategoryMutation) AddedEdges() []string
- func (m *FnetCategoryMutation) AddedField(name string) (ent.Value, bool)
- func (m *FnetCategoryMutation) AddedFields() []string
- func (m *FnetCategoryMutation) AddedIDs(name string) []ent.Value
- func (m *FnetCategoryMutation) ClearDocuments()
- func (m *FnetCategoryMutation) ClearEdge(name string) error
- func (m *FnetCategoryMutation) ClearField(name string) error
- func (m *FnetCategoryMutation) ClearedEdges() []string
- func (m *FnetCategoryMutation) ClearedFields() []string
- func (m FnetCategoryMutation) Client() *Client
- func (m *FnetCategoryMutation) DocumentsCleared() bool
- func (m *FnetCategoryMutation) DocumentsIDs() (ids []int)
- func (m *FnetCategoryMutation) EdgeCleared(name string) bool
- func (m *FnetCategoryMutation) Field(name string) (ent.Value, bool)
- func (m *FnetCategoryMutation) FieldCleared(name string) bool
- func (m *FnetCategoryMutation) Fields() []string
- func (m *FnetCategoryMutation) ID() (id int, exists bool)
- func (m *FnetCategoryMutation) IDs(ctx context.Context) ([]int, error)
- func (m *FnetCategoryMutation) Name() (r string, exists bool)
- func (m *FnetCategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FnetCategoryMutation) OldName(ctx context.Context) (v string, err error)
- func (m *FnetCategoryMutation) Op() Op
- func (m *FnetCategoryMutation) RemoveDocumentIDs(ids ...int)
- func (m *FnetCategoryMutation) RemovedDocumentsIDs() (ids []int)
- func (m *FnetCategoryMutation) RemovedEdges() []string
- func (m *FnetCategoryMutation) RemovedIDs(name string) []ent.Value
- func (m *FnetCategoryMutation) ResetDocuments()
- func (m *FnetCategoryMutation) ResetEdge(name string) error
- func (m *FnetCategoryMutation) ResetField(name string) error
- func (m *FnetCategoryMutation) ResetName()
- func (m *FnetCategoryMutation) SetField(name string, value ent.Value) error
- func (m *FnetCategoryMutation) SetName(s string)
- func (m *FnetCategoryMutation) SetOp(op Op)
- func (m FnetCategoryMutation) Tx() (*Tx, error)
- func (m *FnetCategoryMutation) Type() string
- func (m *FnetCategoryMutation) Where(ps ...predicate.FnetCategory)
- func (m *FnetCategoryMutation) WhereP(ps ...func(*sql.Selector))
- type FnetCategoryQuery
- func (fcq *FnetCategoryQuery) Aggregate(fns ...AggregateFunc) *FnetCategorySelect
- func (fcq *FnetCategoryQuery) All(ctx context.Context) ([]*FnetCategory, error)
- func (fcq *FnetCategoryQuery) AllX(ctx context.Context) []*FnetCategory
- func (fcq *FnetCategoryQuery) Clone() *FnetCategoryQuery
- func (fcq *FnetCategoryQuery) Count(ctx context.Context) (int, error)
- func (fcq *FnetCategoryQuery) CountX(ctx context.Context) int
- func (fcq *FnetCategoryQuery) Exist(ctx context.Context) (bool, error)
- func (fcq *FnetCategoryQuery) ExistX(ctx context.Context) bool
- func (fcq *FnetCategoryQuery) First(ctx context.Context) (*FnetCategory, error)
- func (fcq *FnetCategoryQuery) FirstID(ctx context.Context) (id int, err error)
- func (fcq *FnetCategoryQuery) FirstIDX(ctx context.Context) int
- func (fcq *FnetCategoryQuery) FirstX(ctx context.Context) *FnetCategory
- func (fcq *FnetCategoryQuery) GroupBy(field string, fields ...string) *FnetCategoryGroupBy
- func (fcq *FnetCategoryQuery) IDs(ctx context.Context) (ids []int, err error)
- func (fcq *FnetCategoryQuery) IDsX(ctx context.Context) []int
- func (fcq *FnetCategoryQuery) Limit(limit int) *FnetCategoryQuery
- func (fcq *FnetCategoryQuery) Offset(offset int) *FnetCategoryQuery
- func (fcq *FnetCategoryQuery) Only(ctx context.Context) (*FnetCategory, error)
- func (fcq *FnetCategoryQuery) OnlyID(ctx context.Context) (id int, err error)
- func (fcq *FnetCategoryQuery) OnlyIDX(ctx context.Context) int
- func (fcq *FnetCategoryQuery) OnlyX(ctx context.Context) *FnetCategory
- func (fcq *FnetCategoryQuery) Order(o ...fnetcategory.OrderOption) *FnetCategoryQuery
- func (fcq *FnetCategoryQuery) QueryDocuments() *FnetDocumentQuery
- func (fcq *FnetCategoryQuery) Select(fields ...string) *FnetCategorySelect
- func (fcq *FnetCategoryQuery) Unique(unique bool) *FnetCategoryQuery
- func (fcq *FnetCategoryQuery) Where(ps ...predicate.FnetCategory) *FnetCategoryQuery
- func (fcq *FnetCategoryQuery) WithDocuments(opts ...func(*FnetDocumentQuery)) *FnetCategoryQuery
- type FnetCategorySelect
- func (fcs *FnetCategorySelect) Aggregate(fns ...AggregateFunc) *FnetCategorySelect
- func (s *FnetCategorySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetCategorySelect) BoolX(ctx context.Context) bool
- func (s *FnetCategorySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetCategorySelect) BoolsX(ctx context.Context) []bool
- func (s *FnetCategorySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetCategorySelect) Float64X(ctx context.Context) float64
- func (s *FnetCategorySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetCategorySelect) Float64sX(ctx context.Context) []float64
- func (s *FnetCategorySelect) Int(ctx context.Context) (_ int, err error)
- func (s *FnetCategorySelect) IntX(ctx context.Context) int
- func (s *FnetCategorySelect) Ints(ctx context.Context) ([]int, error)
- func (s *FnetCategorySelect) IntsX(ctx context.Context) []int
- func (fcs *FnetCategorySelect) Scan(ctx context.Context, v any) error
- func (s *FnetCategorySelect) ScanX(ctx context.Context, v any)
- func (s *FnetCategorySelect) String(ctx context.Context) (_ string, err error)
- func (s *FnetCategorySelect) StringX(ctx context.Context) string
- func (s *FnetCategorySelect) Strings(ctx context.Context) ([]string, error)
- func (s *FnetCategorySelect) StringsX(ctx context.Context) []string
- type FnetCategoryUpdate
- func (fcu *FnetCategoryUpdate) AddDocumentIDs(ids ...int) *FnetCategoryUpdate
- func (fcu *FnetCategoryUpdate) AddDocuments(f ...*FnetDocument) *FnetCategoryUpdate
- func (fcu *FnetCategoryUpdate) ClearDocuments() *FnetCategoryUpdate
- func (fcu *FnetCategoryUpdate) Exec(ctx context.Context) error
- func (fcu *FnetCategoryUpdate) ExecX(ctx context.Context)
- func (fcu *FnetCategoryUpdate) Mutation() *FnetCategoryMutation
- func (fcu *FnetCategoryUpdate) RemoveDocumentIDs(ids ...int) *FnetCategoryUpdate
- func (fcu *FnetCategoryUpdate) RemoveDocuments(f ...*FnetDocument) *FnetCategoryUpdate
- func (fcu *FnetCategoryUpdate) Save(ctx context.Context) (int, error)
- func (fcu *FnetCategoryUpdate) SaveX(ctx context.Context) int
- func (fcu *FnetCategoryUpdate) Where(ps ...predicate.FnetCategory) *FnetCategoryUpdate
- type FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) AddDocumentIDs(ids ...int) *FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) AddDocuments(f ...*FnetDocument) *FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) ClearDocuments() *FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) Exec(ctx context.Context) error
- func (fcuo *FnetCategoryUpdateOne) ExecX(ctx context.Context)
- func (fcuo *FnetCategoryUpdateOne) Mutation() *FnetCategoryMutation
- func (fcuo *FnetCategoryUpdateOne) RemoveDocumentIDs(ids ...int) *FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) RemoveDocuments(f ...*FnetDocument) *FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) Save(ctx context.Context) (*FnetCategory, error)
- func (fcuo *FnetCategoryUpdateOne) SaveX(ctx context.Context) *FnetCategory
- func (fcuo *FnetCategoryUpdateOne) Select(field string, fields ...string) *FnetCategoryUpdateOne
- func (fcuo *FnetCategoryUpdateOne) Where(ps ...predicate.FnetCategory) *FnetCategoryUpdateOne
- type FnetCategoryUpsert
- type FnetCategoryUpsertBulk
- func (u *FnetCategoryUpsertBulk) DoNothing() *FnetCategoryUpsertBulk
- func (u *FnetCategoryUpsertBulk) Exec(ctx context.Context) error
- func (u *FnetCategoryUpsertBulk) ExecX(ctx context.Context)
- func (u *FnetCategoryUpsertBulk) Ignore() *FnetCategoryUpsertBulk
- func (u *FnetCategoryUpsertBulk) Update(set func(*FnetCategoryUpsert)) *FnetCategoryUpsertBulk
- func (u *FnetCategoryUpsertBulk) UpdateNewValues() *FnetCategoryUpsertBulk
- type FnetCategoryUpsertOne
- func (u *FnetCategoryUpsertOne) DoNothing() *FnetCategoryUpsertOne
- func (u *FnetCategoryUpsertOne) Exec(ctx context.Context) error
- func (u *FnetCategoryUpsertOne) ExecX(ctx context.Context)
- func (u *FnetCategoryUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *FnetCategoryUpsertOne) IDX(ctx context.Context) int
- func (u *FnetCategoryUpsertOne) Ignore() *FnetCategoryUpsertOne
- func (u *FnetCategoryUpsertOne) Update(set func(*FnetCategoryUpsert)) *FnetCategoryUpsertOne
- func (u *FnetCategoryUpsertOne) UpdateNewValues() *FnetCategoryUpsertOne
- type FnetDocument
- func (fd *FnetDocument) QueryCategory() *FnetCategoryQuery
- func (fd *FnetDocument) QuerySubCategory1() *FnetSubCategory1Query
- func (fd *FnetDocument) QuerySubCategory2() *FnetSubCategory2Query
- func (fd *FnetDocument) String() string
- func (fd *FnetDocument) Unwrap() *FnetDocument
- func (fd *FnetDocument) Update() *FnetDocumentUpdateOne
- func (fd *FnetDocument) Value(name string) (ent.Value, error)
- type FnetDocumentClient
- func (c *FnetDocumentClient) Create() *FnetDocumentCreate
- func (c *FnetDocumentClient) CreateBulk(builders ...*FnetDocumentCreate) *FnetDocumentCreateBulk
- func (c *FnetDocumentClient) Delete() *FnetDocumentDelete
- func (c *FnetDocumentClient) DeleteOne(fd *FnetDocument) *FnetDocumentDeleteOne
- func (c *FnetDocumentClient) DeleteOneID(id int) *FnetDocumentDeleteOne
- func (c *FnetDocumentClient) Get(ctx context.Context, id int) (*FnetDocument, error)
- func (c *FnetDocumentClient) GetX(ctx context.Context, id int) *FnetDocument
- func (c *FnetDocumentClient) Hooks() []Hook
- func (c *FnetDocumentClient) Intercept(interceptors ...Interceptor)
- func (c *FnetDocumentClient) Interceptors() []Interceptor
- func (c *FnetDocumentClient) MapCreateBulk(slice any, setFunc func(*FnetDocumentCreate, int)) *FnetDocumentCreateBulk
- func (c *FnetDocumentClient) Query() *FnetDocumentQuery
- func (c *FnetDocumentClient) QueryCategory(fd *FnetDocument) *FnetCategoryQuery
- func (c *FnetDocumentClient) QuerySubCategory1(fd *FnetDocument) *FnetSubCategory1Query
- func (c *FnetDocumentClient) QuerySubCategory2(fd *FnetDocument) *FnetSubCategory2Query
- func (c *FnetDocumentClient) Update() *FnetDocumentUpdate
- func (c *FnetDocumentClient) UpdateOne(fd *FnetDocument) *FnetDocumentUpdateOne
- func (c *FnetDocumentClient) UpdateOneID(id int) *FnetDocumentUpdateOne
- func (c *FnetDocumentClient) Use(hooks ...Hook)
- type FnetDocumentCreate
- func (fdc *FnetDocumentCreate) Exec(ctx context.Context) error
- func (fdc *FnetDocumentCreate) ExecX(ctx context.Context)
- func (fdc *FnetDocumentCreate) Mutation() *FnetDocumentMutation
- func (fdc *FnetDocumentCreate) OnConflict(opts ...sql.ConflictOption) *FnetDocumentUpsertOne
- func (fdc *FnetDocumentCreate) OnConflictColumns(columns ...string) *FnetDocumentUpsertOne
- func (fdc *FnetDocumentCreate) Save(ctx context.Context) (*FnetDocument, error)
- func (fdc *FnetDocumentCreate) SaveX(ctx context.Context) *FnetDocument
- func (fdc *FnetDocumentCreate) SetAdditionalInformation(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetCategory(f *FnetCategory) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetCategoryID(id int) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetCategoryStr(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetFnetID(i int) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetFundDescription(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetFundMarketName(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetHighPriority(b bool) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetNillableAdditionalInformation(s *string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetNillableFundMarketName(s *string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetNillableSubCategory1ID(id *int) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetNillableSubCategory1Str(s *string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetNillableSubCategory2ID(id *int) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetNillableSubCategory2Str(s *string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetReferenceDate(t time.Time) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetReferenceDateFormat(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetReferenceDateStr(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetReviewed(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetStatus(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubCategory1(f *FnetSubCategory1) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubCategory1ID(id int) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubCategory1Str(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubCategory2(f *FnetSubCategory2) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubCategory2ID(id int) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubCategory2Str(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubmissionDate(t time.Time) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubmissionDateStr(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubmissionMethod(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubmissionMethodDescription(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubmissionStatus(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetSubmissionStatusDescription(s string) *FnetDocumentCreate
- func (fdc *FnetDocumentCreate) SetVersion(i int) *FnetDocumentCreate
- type FnetDocumentCreateBulk
- func (fdcb *FnetDocumentCreateBulk) Exec(ctx context.Context) error
- func (fdcb *FnetDocumentCreateBulk) ExecX(ctx context.Context)
- func (fdcb *FnetDocumentCreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetDocumentUpsertBulk
- func (fdcb *FnetDocumentCreateBulk) OnConflictColumns(columns ...string) *FnetDocumentUpsertBulk
- func (fdcb *FnetDocumentCreateBulk) Save(ctx context.Context) ([]*FnetDocument, error)
- func (fdcb *FnetDocumentCreateBulk) SaveX(ctx context.Context) []*FnetDocument
- type FnetDocumentDelete
- type FnetDocumentDeleteOne
- type FnetDocumentEdges
- type FnetDocumentGroupBy
- func (fdgb *FnetDocumentGroupBy) Aggregate(fns ...AggregateFunc) *FnetDocumentGroupBy
- func (s *FnetDocumentGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetDocumentGroupBy) BoolX(ctx context.Context) bool
- func (s *FnetDocumentGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetDocumentGroupBy) BoolsX(ctx context.Context) []bool
- func (s *FnetDocumentGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetDocumentGroupBy) Float64X(ctx context.Context) float64
- func (s *FnetDocumentGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetDocumentGroupBy) Float64sX(ctx context.Context) []float64
- func (s *FnetDocumentGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FnetDocumentGroupBy) IntX(ctx context.Context) int
- func (s *FnetDocumentGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FnetDocumentGroupBy) IntsX(ctx context.Context) []int
- func (fdgb *FnetDocumentGroupBy) Scan(ctx context.Context, v any) error
- func (s *FnetDocumentGroupBy) ScanX(ctx context.Context, v any)
- func (s *FnetDocumentGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FnetDocumentGroupBy) StringX(ctx context.Context) string
- func (s *FnetDocumentGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FnetDocumentGroupBy) StringsX(ctx context.Context) []string
- type FnetDocumentMutation
- func (m *FnetDocumentMutation) AddField(name string, value ent.Value) error
- func (m *FnetDocumentMutation) AddFnetID(i int)
- func (m *FnetDocumentMutation) AddVersion(i int)
- func (m *FnetDocumentMutation) AddedEdges() []string
- func (m *FnetDocumentMutation) AddedField(name string) (ent.Value, bool)
- func (m *FnetDocumentMutation) AddedFields() []string
- func (m *FnetDocumentMutation) AddedFnetID() (r int, exists bool)
- func (m *FnetDocumentMutation) AddedIDs(name string) []ent.Value
- func (m *FnetDocumentMutation) AddedVersion() (r int, exists bool)
- func (m *FnetDocumentMutation) AdditionalInformation() (r string, exists bool)
- func (m *FnetDocumentMutation) AdditionalInformationCleared() bool
- func (m *FnetDocumentMutation) CategoryCleared() bool
- func (m *FnetDocumentMutation) CategoryID() (id int, exists bool)
- func (m *FnetDocumentMutation) CategoryIDs() (ids []int)
- func (m *FnetDocumentMutation) CategoryStr() (r string, exists bool)
- func (m *FnetDocumentMutation) ClearAdditionalInformation()
- func (m *FnetDocumentMutation) ClearCategory()
- func (m *FnetDocumentMutation) ClearEdge(name string) error
- func (m *FnetDocumentMutation) ClearField(name string) error
- func (m *FnetDocumentMutation) ClearFundMarketName()
- func (m *FnetDocumentMutation) ClearSubCategory1()
- func (m *FnetDocumentMutation) ClearSubCategory1Str()
- func (m *FnetDocumentMutation) ClearSubCategory2()
- func (m *FnetDocumentMutation) ClearSubCategory2Str()
- func (m *FnetDocumentMutation) ClearedEdges() []string
- func (m *FnetDocumentMutation) ClearedFields() []string
- func (m FnetDocumentMutation) Client() *Client
- func (m *FnetDocumentMutation) EdgeCleared(name string) bool
- func (m *FnetDocumentMutation) Field(name string) (ent.Value, bool)
- func (m *FnetDocumentMutation) FieldCleared(name string) bool
- func (m *FnetDocumentMutation) Fields() []string
- func (m *FnetDocumentMutation) FnetID() (r int, exists bool)
- func (m *FnetDocumentMutation) FundDescription() (r string, exists bool)
- func (m *FnetDocumentMutation) FundMarketName() (r string, exists bool)
- func (m *FnetDocumentMutation) FundMarketNameCleared() bool
- func (m *FnetDocumentMutation) HighPriority() (r bool, exists bool)
- func (m *FnetDocumentMutation) ID() (id int, exists bool)
- func (m *FnetDocumentMutation) IDs(ctx context.Context) ([]int, error)
- func (m *FnetDocumentMutation) OldAdditionalInformation(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldCategoryStr(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FnetDocumentMutation) OldFnetID(ctx context.Context) (v int, err error)
- func (m *FnetDocumentMutation) OldFundDescription(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldFundMarketName(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldHighPriority(ctx context.Context) (v bool, err error)
- func (m *FnetDocumentMutation) OldReferenceDate(ctx context.Context) (v time.Time, err error)
- func (m *FnetDocumentMutation) OldReferenceDateFormat(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldReferenceDateStr(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldReviewed(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldStatus(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubCategory1Str(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubCategory2Str(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubmissionDate(ctx context.Context) (v time.Time, err error)
- func (m *FnetDocumentMutation) OldSubmissionDateStr(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubmissionMethod(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubmissionMethodDescription(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubmissionStatus(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldSubmissionStatusDescription(ctx context.Context) (v string, err error)
- func (m *FnetDocumentMutation) OldVersion(ctx context.Context) (v int, err error)
- func (m *FnetDocumentMutation) Op() Op
- func (m *FnetDocumentMutation) ReferenceDate() (r time.Time, exists bool)
- func (m *FnetDocumentMutation) ReferenceDateFormat() (r string, exists bool)
- func (m *FnetDocumentMutation) ReferenceDateStr() (r string, exists bool)
- func (m *FnetDocumentMutation) RemovedEdges() []string
- func (m *FnetDocumentMutation) RemovedIDs(name string) []ent.Value
- func (m *FnetDocumentMutation) ResetAdditionalInformation()
- func (m *FnetDocumentMutation) ResetCategory()
- func (m *FnetDocumentMutation) ResetCategoryStr()
- func (m *FnetDocumentMutation) ResetEdge(name string) error
- func (m *FnetDocumentMutation) ResetField(name string) error
- func (m *FnetDocumentMutation) ResetFnetID()
- func (m *FnetDocumentMutation) ResetFundDescription()
- func (m *FnetDocumentMutation) ResetFundMarketName()
- func (m *FnetDocumentMutation) ResetHighPriority()
- func (m *FnetDocumentMutation) ResetReferenceDate()
- func (m *FnetDocumentMutation) ResetReferenceDateFormat()
- func (m *FnetDocumentMutation) ResetReferenceDateStr()
- func (m *FnetDocumentMutation) ResetReviewed()
- func (m *FnetDocumentMutation) ResetStatus()
- func (m *FnetDocumentMutation) ResetSubCategory1()
- func (m *FnetDocumentMutation) ResetSubCategory1Str()
- func (m *FnetDocumentMutation) ResetSubCategory2()
- func (m *FnetDocumentMutation) ResetSubCategory2Str()
- func (m *FnetDocumentMutation) ResetSubmissionDate()
- func (m *FnetDocumentMutation) ResetSubmissionDateStr()
- func (m *FnetDocumentMutation) ResetSubmissionMethod()
- func (m *FnetDocumentMutation) ResetSubmissionMethodDescription()
- func (m *FnetDocumentMutation) ResetSubmissionStatus()
- func (m *FnetDocumentMutation) ResetSubmissionStatusDescription()
- func (m *FnetDocumentMutation) ResetVersion()
- func (m *FnetDocumentMutation) Reviewed() (r string, exists bool)
- func (m *FnetDocumentMutation) SetAdditionalInformation(s string)
- func (m *FnetDocumentMutation) SetCategoryID(id int)
- func (m *FnetDocumentMutation) SetCategoryStr(s string)
- func (m *FnetDocumentMutation) SetField(name string, value ent.Value) error
- func (m *FnetDocumentMutation) SetFnetID(i int)
- func (m *FnetDocumentMutation) SetFundDescription(s string)
- func (m *FnetDocumentMutation) SetFundMarketName(s string)
- func (m *FnetDocumentMutation) SetHighPriority(b bool)
- func (m *FnetDocumentMutation) SetOp(op Op)
- func (m *FnetDocumentMutation) SetReferenceDate(t time.Time)
- func (m *FnetDocumentMutation) SetReferenceDateFormat(s string)
- func (m *FnetDocumentMutation) SetReferenceDateStr(s string)
- func (m *FnetDocumentMutation) SetReviewed(s string)
- func (m *FnetDocumentMutation) SetStatus(s string)
- func (m *FnetDocumentMutation) SetSubCategory1ID(id int)
- func (m *FnetDocumentMutation) SetSubCategory1Str(s string)
- func (m *FnetDocumentMutation) SetSubCategory2ID(id int)
- func (m *FnetDocumentMutation) SetSubCategory2Str(s string)
- func (m *FnetDocumentMutation) SetSubmissionDate(t time.Time)
- func (m *FnetDocumentMutation) SetSubmissionDateStr(s string)
- func (m *FnetDocumentMutation) SetSubmissionMethod(s string)
- func (m *FnetDocumentMutation) SetSubmissionMethodDescription(s string)
- func (m *FnetDocumentMutation) SetSubmissionStatus(s string)
- func (m *FnetDocumentMutation) SetSubmissionStatusDescription(s string)
- func (m *FnetDocumentMutation) SetVersion(i int)
- func (m *FnetDocumentMutation) Status() (r string, exists bool)
- func (m *FnetDocumentMutation) SubCategory1Cleared() bool
- func (m *FnetDocumentMutation) SubCategory1ID() (id int, exists bool)
- func (m *FnetDocumentMutation) SubCategory1IDs() (ids []int)
- func (m *FnetDocumentMutation) SubCategory1Str() (r string, exists bool)
- func (m *FnetDocumentMutation) SubCategory1StrCleared() bool
- func (m *FnetDocumentMutation) SubCategory2Cleared() bool
- func (m *FnetDocumentMutation) SubCategory2ID() (id int, exists bool)
- func (m *FnetDocumentMutation) SubCategory2IDs() (ids []int)
- func (m *FnetDocumentMutation) SubCategory2Str() (r string, exists bool)
- func (m *FnetDocumentMutation) SubCategory2StrCleared() bool
- func (m *FnetDocumentMutation) SubmissionDate() (r time.Time, exists bool)
- func (m *FnetDocumentMutation) SubmissionDateStr() (r string, exists bool)
- func (m *FnetDocumentMutation) SubmissionMethod() (r string, exists bool)
- func (m *FnetDocumentMutation) SubmissionMethodDescription() (r string, exists bool)
- func (m *FnetDocumentMutation) SubmissionStatus() (r string, exists bool)
- func (m *FnetDocumentMutation) SubmissionStatusDescription() (r string, exists bool)
- func (m FnetDocumentMutation) Tx() (*Tx, error)
- func (m *FnetDocumentMutation) Type() string
- func (m *FnetDocumentMutation) Version() (r int, exists bool)
- func (m *FnetDocumentMutation) Where(ps ...predicate.FnetDocument)
- func (m *FnetDocumentMutation) WhereP(ps ...func(*sql.Selector))
- type FnetDocumentQuery
- func (fdq *FnetDocumentQuery) Aggregate(fns ...AggregateFunc) *FnetDocumentSelect
- func (fdq *FnetDocumentQuery) All(ctx context.Context) ([]*FnetDocument, error)
- func (fdq *FnetDocumentQuery) AllX(ctx context.Context) []*FnetDocument
- func (fdq *FnetDocumentQuery) Clone() *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) Count(ctx context.Context) (int, error)
- func (fdq *FnetDocumentQuery) CountX(ctx context.Context) int
- func (fdq *FnetDocumentQuery) Exist(ctx context.Context) (bool, error)
- func (fdq *FnetDocumentQuery) ExistX(ctx context.Context) bool
- func (fdq *FnetDocumentQuery) First(ctx context.Context) (*FnetDocument, error)
- func (fdq *FnetDocumentQuery) FirstID(ctx context.Context) (id int, err error)
- func (fdq *FnetDocumentQuery) FirstIDX(ctx context.Context) int
- func (fdq *FnetDocumentQuery) FirstX(ctx context.Context) *FnetDocument
- func (fdq *FnetDocumentQuery) GroupBy(field string, fields ...string) *FnetDocumentGroupBy
- func (fdq *FnetDocumentQuery) IDs(ctx context.Context) (ids []int, err error)
- func (fdq *FnetDocumentQuery) IDsX(ctx context.Context) []int
- func (fdq *FnetDocumentQuery) Limit(limit int) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) Offset(offset int) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) Only(ctx context.Context) (*FnetDocument, error)
- func (fdq *FnetDocumentQuery) OnlyID(ctx context.Context) (id int, err error)
- func (fdq *FnetDocumentQuery) OnlyIDX(ctx context.Context) int
- func (fdq *FnetDocumentQuery) OnlyX(ctx context.Context) *FnetDocument
- func (fdq *FnetDocumentQuery) Order(o ...fnetdocument.OrderOption) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) QueryCategory() *FnetCategoryQuery
- func (fdq *FnetDocumentQuery) QuerySubCategory1() *FnetSubCategory1Query
- func (fdq *FnetDocumentQuery) QuerySubCategory2() *FnetSubCategory2Query
- func (fdq *FnetDocumentQuery) Select(fields ...string) *FnetDocumentSelect
- func (fdq *FnetDocumentQuery) Unique(unique bool) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) Where(ps ...predicate.FnetDocument) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) WithCategory(opts ...func(*FnetCategoryQuery)) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) WithSubCategory1(opts ...func(*FnetSubCategory1Query)) *FnetDocumentQuery
- func (fdq *FnetDocumentQuery) WithSubCategory2(opts ...func(*FnetSubCategory2Query)) *FnetDocumentQuery
- type FnetDocumentSelect
- func (fds *FnetDocumentSelect) Aggregate(fns ...AggregateFunc) *FnetDocumentSelect
- func (s *FnetDocumentSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetDocumentSelect) BoolX(ctx context.Context) bool
- func (s *FnetDocumentSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetDocumentSelect) BoolsX(ctx context.Context) []bool
- func (s *FnetDocumentSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetDocumentSelect) Float64X(ctx context.Context) float64
- func (s *FnetDocumentSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetDocumentSelect) Float64sX(ctx context.Context) []float64
- func (s *FnetDocumentSelect) Int(ctx context.Context) (_ int, err error)
- func (s *FnetDocumentSelect) IntX(ctx context.Context) int
- func (s *FnetDocumentSelect) Ints(ctx context.Context) ([]int, error)
- func (s *FnetDocumentSelect) IntsX(ctx context.Context) []int
- func (fds *FnetDocumentSelect) Scan(ctx context.Context, v any) error
- func (s *FnetDocumentSelect) ScanX(ctx context.Context, v any)
- func (s *FnetDocumentSelect) String(ctx context.Context) (_ string, err error)
- func (s *FnetDocumentSelect) StringX(ctx context.Context) string
- func (s *FnetDocumentSelect) Strings(ctx context.Context) ([]string, error)
- func (s *FnetDocumentSelect) StringsX(ctx context.Context) []string
- type FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) AddVersion(i int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearAdditionalInformation() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearCategory() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearFundMarketName() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearSubCategory1() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearSubCategory1Str() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearSubCategory2() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) ClearSubCategory2Str() *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) Exec(ctx context.Context) error
- func (fdu *FnetDocumentUpdate) ExecX(ctx context.Context)
- func (fdu *FnetDocumentUpdate) Mutation() *FnetDocumentMutation
- func (fdu *FnetDocumentUpdate) Save(ctx context.Context) (int, error)
- func (fdu *FnetDocumentUpdate) SaveX(ctx context.Context) int
- func (fdu *FnetDocumentUpdate) SetAdditionalInformation(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetCategory(f *FnetCategory) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetCategoryID(id int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetCategoryStr(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetFundDescription(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetFundMarketName(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetHighPriority(b bool) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableAdditionalInformation(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableCategoryStr(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableFundDescription(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableFundMarketName(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableHighPriority(b *bool) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableReferenceDate(t *time.Time) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableReferenceDateFormat(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableReferenceDateStr(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableReviewed(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableStatus(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubCategory1ID(id *int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubCategory1Str(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubCategory2ID(id *int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubCategory2Str(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubmissionDate(t *time.Time) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubmissionDateStr(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubmissionMethod(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubmissionMethodDescription(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubmissionStatus(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableSubmissionStatusDescription(s *string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetNillableVersion(i *int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetReferenceDate(t time.Time) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetReferenceDateFormat(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetReferenceDateStr(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetReviewed(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetStatus(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubCategory1(f *FnetSubCategory1) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubCategory1ID(id int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubCategory1Str(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubCategory2(f *FnetSubCategory2) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubCategory2ID(id int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubCategory2Str(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubmissionDate(t time.Time) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubmissionDateStr(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubmissionMethod(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubmissionMethodDescription(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubmissionStatus(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetSubmissionStatusDescription(s string) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) SetVersion(i int) *FnetDocumentUpdate
- func (fdu *FnetDocumentUpdate) Where(ps ...predicate.FnetDocument) *FnetDocumentUpdate
- type FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) AddVersion(i int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearAdditionalInformation() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearCategory() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearFundMarketName() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearSubCategory1() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearSubCategory1Str() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearSubCategory2() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) ClearSubCategory2Str() *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) Exec(ctx context.Context) error
- func (fduo *FnetDocumentUpdateOne) ExecX(ctx context.Context)
- func (fduo *FnetDocumentUpdateOne) Mutation() *FnetDocumentMutation
- func (fduo *FnetDocumentUpdateOne) Save(ctx context.Context) (*FnetDocument, error)
- func (fduo *FnetDocumentUpdateOne) SaveX(ctx context.Context) *FnetDocument
- func (fduo *FnetDocumentUpdateOne) Select(field string, fields ...string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetAdditionalInformation(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetCategory(f *FnetCategory) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetCategoryID(id int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetCategoryStr(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetFundDescription(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetFundMarketName(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetHighPriority(b bool) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableAdditionalInformation(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableCategoryStr(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableFundDescription(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableFundMarketName(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableHighPriority(b *bool) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableReferenceDate(t *time.Time) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableReferenceDateFormat(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableReferenceDateStr(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableReviewed(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableStatus(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory1ID(id *int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory1Str(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory2ID(id *int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory2Str(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionDate(t *time.Time) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionDateStr(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionMethod(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionMethodDescription(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionStatus(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionStatusDescription(s *string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetNillableVersion(i *int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetReferenceDate(t time.Time) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetReferenceDateFormat(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetReferenceDateStr(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetReviewed(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetStatus(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubCategory1(f *FnetSubCategory1) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubCategory1ID(id int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubCategory1Str(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubCategory2(f *FnetSubCategory2) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubCategory2ID(id int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubCategory2Str(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubmissionDate(t time.Time) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubmissionDateStr(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubmissionMethod(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubmissionMethodDescription(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubmissionStatus(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetSubmissionStatusDescription(s string) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) SetVersion(i int) *FnetDocumentUpdateOne
- func (fduo *FnetDocumentUpdateOne) Where(ps ...predicate.FnetDocument) *FnetDocumentUpdateOne
- type FnetDocumentUpsert
- func (u *FnetDocumentUpsert) AddVersion(v int) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) ClearAdditionalInformation() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) ClearFundMarketName() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) ClearSubCategory1Str() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) ClearSubCategory2Str() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetAdditionalInformation(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetCategoryStr(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetFundDescription(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetFundMarketName(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetHighPriority(v bool) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetReferenceDate(v time.Time) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetReferenceDateFormat(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetReferenceDateStr(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetReviewed(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetStatus(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubCategory1Str(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubCategory2Str(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubmissionDate(v time.Time) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubmissionDateStr(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubmissionMethod(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubmissionMethodDescription(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubmissionStatus(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetSubmissionStatusDescription(v string) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) SetVersion(v int) *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateAdditionalInformation() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateCategoryStr() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateFundDescription() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateFundMarketName() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateHighPriority() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateReferenceDate() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateReferenceDateFormat() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateReferenceDateStr() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateReviewed() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateStatus() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubCategory1Str() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubCategory2Str() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubmissionDate() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubmissionDateStr() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubmissionMethod() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubmissionMethodDescription() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubmissionStatus() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateSubmissionStatusDescription() *FnetDocumentUpsert
- func (u *FnetDocumentUpsert) UpdateVersion() *FnetDocumentUpsert
- type FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) AddVersion(v int) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) ClearAdditionalInformation() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) ClearFundMarketName() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) ClearSubCategory1Str() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) ClearSubCategory2Str() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) DoNothing() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) Exec(ctx context.Context) error
- func (u *FnetDocumentUpsertBulk) ExecX(ctx context.Context)
- func (u *FnetDocumentUpsertBulk) Ignore() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetAdditionalInformation(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetCategoryStr(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetFundDescription(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetFundMarketName(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetHighPriority(v bool) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetReferenceDate(v time.Time) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetReferenceDateFormat(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetReferenceDateStr(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetReviewed(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetStatus(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubCategory1Str(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubCategory2Str(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubmissionDate(v time.Time) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubmissionDateStr(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubmissionMethod(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubmissionMethodDescription(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubmissionStatus(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetSubmissionStatusDescription(v string) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) SetVersion(v int) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) Update(set func(*FnetDocumentUpsert)) *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateAdditionalInformation() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateCategoryStr() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateFundDescription() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateFundMarketName() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateHighPriority() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateNewValues() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateReferenceDate() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateReferenceDateFormat() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateReferenceDateStr() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateReviewed() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateStatus() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubCategory1Str() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubCategory2Str() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubmissionDate() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubmissionDateStr() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubmissionMethod() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubmissionMethodDescription() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubmissionStatus() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateSubmissionStatusDescription() *FnetDocumentUpsertBulk
- func (u *FnetDocumentUpsertBulk) UpdateVersion() *FnetDocumentUpsertBulk
- type FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) AddVersion(v int) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) ClearAdditionalInformation() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) ClearFundMarketName() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) ClearSubCategory1Str() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) ClearSubCategory2Str() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) DoNothing() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) Exec(ctx context.Context) error
- func (u *FnetDocumentUpsertOne) ExecX(ctx context.Context)
- func (u *FnetDocumentUpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *FnetDocumentUpsertOne) IDX(ctx context.Context) int
- func (u *FnetDocumentUpsertOne) Ignore() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetAdditionalInformation(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetCategoryStr(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetFundDescription(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetFundMarketName(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetHighPriority(v bool) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetReferenceDate(v time.Time) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetReferenceDateFormat(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetReferenceDateStr(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetReviewed(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetStatus(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubCategory1Str(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubCategory2Str(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubmissionDate(v time.Time) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubmissionDateStr(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubmissionMethod(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubmissionMethodDescription(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubmissionStatus(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetSubmissionStatusDescription(v string) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) SetVersion(v int) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) Update(set func(*FnetDocumentUpsert)) *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateAdditionalInformation() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateCategoryStr() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateFundDescription() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateFundMarketName() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateHighPriority() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateNewValues() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateReferenceDate() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateReferenceDateFormat() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateReferenceDateStr() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateReviewed() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateStatus() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubCategory1Str() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubCategory2Str() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubmissionDate() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubmissionDateStr() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubmissionMethod() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubmissionMethodDescription() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubmissionStatus() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateSubmissionStatusDescription() *FnetDocumentUpsertOne
- func (u *FnetDocumentUpsertOne) UpdateVersion() *FnetDocumentUpsertOne
- type FnetDocuments
- type FnetSubCategory1
- type FnetSubCategory1Client
- func (c *FnetSubCategory1Client) Create() *FnetSubCategory1Create
- func (c *FnetSubCategory1Client) CreateBulk(builders ...*FnetSubCategory1Create) *FnetSubCategory1CreateBulk
- func (c *FnetSubCategory1Client) Delete() *FnetSubCategory1Delete
- func (c *FnetSubCategory1Client) DeleteOne(fsc *FnetSubCategory1) *FnetSubCategory1DeleteOne
- func (c *FnetSubCategory1Client) DeleteOneID(id int) *FnetSubCategory1DeleteOne
- func (c *FnetSubCategory1Client) Get(ctx context.Context, id int) (*FnetSubCategory1, error)
- func (c *FnetSubCategory1Client) GetX(ctx context.Context, id int) *FnetSubCategory1
- func (c *FnetSubCategory1Client) Hooks() []Hook
- func (c *FnetSubCategory1Client) Intercept(interceptors ...Interceptor)
- func (c *FnetSubCategory1Client) Interceptors() []Interceptor
- func (c *FnetSubCategory1Client) MapCreateBulk(slice any, setFunc func(*FnetSubCategory1Create, int)) *FnetSubCategory1CreateBulk
- func (c *FnetSubCategory1Client) Query() *FnetSubCategory1Query
- func (c *FnetSubCategory1Client) QueryDocuments(fsc *FnetSubCategory1) *FnetDocumentQuery
- func (c *FnetSubCategory1Client) Update() *FnetSubCategory1Update
- func (c *FnetSubCategory1Client) UpdateOne(fsc *FnetSubCategory1) *FnetSubCategory1UpdateOne
- func (c *FnetSubCategory1Client) UpdateOneID(id int) *FnetSubCategory1UpdateOne
- func (c *FnetSubCategory1Client) Use(hooks ...Hook)
- type FnetSubCategory1Create
- func (fsc *FnetSubCategory1Create) AddDocumentIDs(ids ...int) *FnetSubCategory1Create
- func (fsc *FnetSubCategory1Create) AddDocuments(f ...*FnetDocument) *FnetSubCategory1Create
- func (fsc *FnetSubCategory1Create) Exec(ctx context.Context) error
- func (fsc *FnetSubCategory1Create) ExecX(ctx context.Context)
- func (fsc *FnetSubCategory1Create) Mutation() *FnetSubCategory1Mutation
- func (fsc *FnetSubCategory1Create) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory1UpsertOne
- func (fsc *FnetSubCategory1Create) OnConflictColumns(columns ...string) *FnetSubCategory1UpsertOne
- func (fsc *FnetSubCategory1Create) Save(ctx context.Context) (*FnetSubCategory1, error)
- func (fsc *FnetSubCategory1Create) SaveX(ctx context.Context) *FnetSubCategory1
- func (fsc *FnetSubCategory1Create) SetName(s string) *FnetSubCategory1Create
- type FnetSubCategory1CreateBulk
- func (fscb *FnetSubCategory1CreateBulk) Exec(ctx context.Context) error
- func (fscb *FnetSubCategory1CreateBulk) ExecX(ctx context.Context)
- func (fscb *FnetSubCategory1CreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory1UpsertBulk
- func (fscb *FnetSubCategory1CreateBulk) OnConflictColumns(columns ...string) *FnetSubCategory1UpsertBulk
- func (fscb *FnetSubCategory1CreateBulk) Save(ctx context.Context) ([]*FnetSubCategory1, error)
- func (fscb *FnetSubCategory1CreateBulk) SaveX(ctx context.Context) []*FnetSubCategory1
- type FnetSubCategory1Delete
- type FnetSubCategory1DeleteOne
- type FnetSubCategory1Edges
- type FnetSubCategory1GroupBy
- func (fscb *FnetSubCategory1GroupBy) Aggregate(fns ...AggregateFunc) *FnetSubCategory1GroupBy
- func (s *FnetSubCategory1GroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetSubCategory1GroupBy) BoolX(ctx context.Context) bool
- func (s *FnetSubCategory1GroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetSubCategory1GroupBy) BoolsX(ctx context.Context) []bool
- func (s *FnetSubCategory1GroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetSubCategory1GroupBy) Float64X(ctx context.Context) float64
- func (s *FnetSubCategory1GroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetSubCategory1GroupBy) Float64sX(ctx context.Context) []float64
- func (s *FnetSubCategory1GroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FnetSubCategory1GroupBy) IntX(ctx context.Context) int
- func (s *FnetSubCategory1GroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FnetSubCategory1GroupBy) IntsX(ctx context.Context) []int
- func (fscb *FnetSubCategory1GroupBy) Scan(ctx context.Context, v any) error
- func (s *FnetSubCategory1GroupBy) ScanX(ctx context.Context, v any)
- func (s *FnetSubCategory1GroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FnetSubCategory1GroupBy) StringX(ctx context.Context) string
- func (s *FnetSubCategory1GroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FnetSubCategory1GroupBy) StringsX(ctx context.Context) []string
- type FnetSubCategory1Mutation
- func (m *FnetSubCategory1Mutation) AddDocumentIDs(ids ...int)
- func (m *FnetSubCategory1Mutation) AddField(name string, value ent.Value) error
- func (m *FnetSubCategory1Mutation) AddedEdges() []string
- func (m *FnetSubCategory1Mutation) AddedField(name string) (ent.Value, bool)
- func (m *FnetSubCategory1Mutation) AddedFields() []string
- func (m *FnetSubCategory1Mutation) AddedIDs(name string) []ent.Value
- func (m *FnetSubCategory1Mutation) ClearDocuments()
- func (m *FnetSubCategory1Mutation) ClearEdge(name string) error
- func (m *FnetSubCategory1Mutation) ClearField(name string) error
- func (m *FnetSubCategory1Mutation) ClearedEdges() []string
- func (m *FnetSubCategory1Mutation) ClearedFields() []string
- func (m FnetSubCategory1Mutation) Client() *Client
- func (m *FnetSubCategory1Mutation) DocumentsCleared() bool
- func (m *FnetSubCategory1Mutation) DocumentsIDs() (ids []int)
- func (m *FnetSubCategory1Mutation) EdgeCleared(name string) bool
- func (m *FnetSubCategory1Mutation) Field(name string) (ent.Value, bool)
- func (m *FnetSubCategory1Mutation) FieldCleared(name string) bool
- func (m *FnetSubCategory1Mutation) Fields() []string
- func (m *FnetSubCategory1Mutation) ID() (id int, exists bool)
- func (m *FnetSubCategory1Mutation) IDs(ctx context.Context) ([]int, error)
- func (m *FnetSubCategory1Mutation) Name() (r string, exists bool)
- func (m *FnetSubCategory1Mutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FnetSubCategory1Mutation) OldName(ctx context.Context) (v string, err error)
- func (m *FnetSubCategory1Mutation) Op() Op
- func (m *FnetSubCategory1Mutation) RemoveDocumentIDs(ids ...int)
- func (m *FnetSubCategory1Mutation) RemovedDocumentsIDs() (ids []int)
- func (m *FnetSubCategory1Mutation) RemovedEdges() []string
- func (m *FnetSubCategory1Mutation) RemovedIDs(name string) []ent.Value
- func (m *FnetSubCategory1Mutation) ResetDocuments()
- func (m *FnetSubCategory1Mutation) ResetEdge(name string) error
- func (m *FnetSubCategory1Mutation) ResetField(name string) error
- func (m *FnetSubCategory1Mutation) ResetName()
- func (m *FnetSubCategory1Mutation) SetField(name string, value ent.Value) error
- func (m *FnetSubCategory1Mutation) SetName(s string)
- func (m *FnetSubCategory1Mutation) SetOp(op Op)
- func (m FnetSubCategory1Mutation) Tx() (*Tx, error)
- func (m *FnetSubCategory1Mutation) Type() string
- func (m *FnetSubCategory1Mutation) Where(ps ...predicate.FnetSubCategory1)
- func (m *FnetSubCategory1Mutation) WhereP(ps ...func(*sql.Selector))
- type FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) Aggregate(fns ...AggregateFunc) *FnetSubCategory1Select
- func (fsc *FnetSubCategory1Query) All(ctx context.Context) ([]*FnetSubCategory1, error)
- func (fsc *FnetSubCategory1Query) AllX(ctx context.Context) []*FnetSubCategory1
- func (fsc *FnetSubCategory1Query) Clone() *FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) Count(ctx context.Context) (int, error)
- func (fsc *FnetSubCategory1Query) CountX(ctx context.Context) int
- func (fsc *FnetSubCategory1Query) Exist(ctx context.Context) (bool, error)
- func (fsc *FnetSubCategory1Query) ExistX(ctx context.Context) bool
- func (fsc *FnetSubCategory1Query) First(ctx context.Context) (*FnetSubCategory1, error)
- func (fsc *FnetSubCategory1Query) FirstID(ctx context.Context) (id int, err error)
- func (fsc *FnetSubCategory1Query) FirstIDX(ctx context.Context) int
- func (fsc *FnetSubCategory1Query) FirstX(ctx context.Context) *FnetSubCategory1
- func (fsc *FnetSubCategory1Query) GroupBy(field string, fields ...string) *FnetSubCategory1GroupBy
- func (fsc *FnetSubCategory1Query) IDs(ctx context.Context) (ids []int, err error)
- func (fsc *FnetSubCategory1Query) IDsX(ctx context.Context) []int
- func (fsc *FnetSubCategory1Query) Limit(limit int) *FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) Offset(offset int) *FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) Only(ctx context.Context) (*FnetSubCategory1, error)
- func (fsc *FnetSubCategory1Query) OnlyID(ctx context.Context) (id int, err error)
- func (fsc *FnetSubCategory1Query) OnlyIDX(ctx context.Context) int
- func (fsc *FnetSubCategory1Query) OnlyX(ctx context.Context) *FnetSubCategory1
- func (fsc *FnetSubCategory1Query) Order(o ...fnetsubcategory1.OrderOption) *FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) QueryDocuments() *FnetDocumentQuery
- func (fsc *FnetSubCategory1Query) Select(fields ...string) *FnetSubCategory1Select
- func (fsc *FnetSubCategory1Query) Unique(unique bool) *FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1Query
- func (fsc *FnetSubCategory1Query) WithDocuments(opts ...func(*FnetDocumentQuery)) *FnetSubCategory1Query
- type FnetSubCategory1Select
- func (fsc *FnetSubCategory1Select) Aggregate(fns ...AggregateFunc) *FnetSubCategory1Select
- func (s *FnetSubCategory1Select) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetSubCategory1Select) BoolX(ctx context.Context) bool
- func (s *FnetSubCategory1Select) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetSubCategory1Select) BoolsX(ctx context.Context) []bool
- func (s *FnetSubCategory1Select) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetSubCategory1Select) Float64X(ctx context.Context) float64
- func (s *FnetSubCategory1Select) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetSubCategory1Select) Float64sX(ctx context.Context) []float64
- func (s *FnetSubCategory1Select) Int(ctx context.Context) (_ int, err error)
- func (s *FnetSubCategory1Select) IntX(ctx context.Context) int
- func (s *FnetSubCategory1Select) Ints(ctx context.Context) ([]int, error)
- func (s *FnetSubCategory1Select) IntsX(ctx context.Context) []int
- func (fsc *FnetSubCategory1Select) Scan(ctx context.Context, v any) error
- func (s *FnetSubCategory1Select) ScanX(ctx context.Context, v any)
- func (s *FnetSubCategory1Select) String(ctx context.Context) (_ string, err error)
- func (s *FnetSubCategory1Select) StringX(ctx context.Context) string
- func (s *FnetSubCategory1Select) Strings(ctx context.Context) ([]string, error)
- func (s *FnetSubCategory1Select) StringsX(ctx context.Context) []string
- type FnetSubCategory1Update
- func (fsc *FnetSubCategory1Update) AddDocumentIDs(ids ...int) *FnetSubCategory1Update
- func (fsc *FnetSubCategory1Update) AddDocuments(f ...*FnetDocument) *FnetSubCategory1Update
- func (fsc *FnetSubCategory1Update) ClearDocuments() *FnetSubCategory1Update
- func (fsc *FnetSubCategory1Update) Exec(ctx context.Context) error
- func (fsc *FnetSubCategory1Update) ExecX(ctx context.Context)
- func (fsc *FnetSubCategory1Update) Mutation() *FnetSubCategory1Mutation
- func (fsc *FnetSubCategory1Update) RemoveDocumentIDs(ids ...int) *FnetSubCategory1Update
- func (fsc *FnetSubCategory1Update) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory1Update
- func (fsc *FnetSubCategory1Update) Save(ctx context.Context) (int, error)
- func (fsc *FnetSubCategory1Update) SaveX(ctx context.Context) int
- func (fsc *FnetSubCategory1Update) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1Update
- type FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) AddDocumentIDs(ids ...int) *FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) AddDocuments(f ...*FnetDocument) *FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) ClearDocuments() *FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) Exec(ctx context.Context) error
- func (fsco *FnetSubCategory1UpdateOne) ExecX(ctx context.Context)
- func (fsco *FnetSubCategory1UpdateOne) Mutation() *FnetSubCategory1Mutation
- func (fsco *FnetSubCategory1UpdateOne) RemoveDocumentIDs(ids ...int) *FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) Save(ctx context.Context) (*FnetSubCategory1, error)
- func (fsco *FnetSubCategory1UpdateOne) SaveX(ctx context.Context) *FnetSubCategory1
- func (fsco *FnetSubCategory1UpdateOne) Select(field string, fields ...string) *FnetSubCategory1UpdateOne
- func (fsco *FnetSubCategory1UpdateOne) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1UpdateOne
- type FnetSubCategory1Upsert
- type FnetSubCategory1UpsertBulk
- func (u *FnetSubCategory1UpsertBulk) DoNothing() *FnetSubCategory1UpsertBulk
- func (u *FnetSubCategory1UpsertBulk) Exec(ctx context.Context) error
- func (u *FnetSubCategory1UpsertBulk) ExecX(ctx context.Context)
- func (u *FnetSubCategory1UpsertBulk) Ignore() *FnetSubCategory1UpsertBulk
- func (u *FnetSubCategory1UpsertBulk) Update(set func(*FnetSubCategory1Upsert)) *FnetSubCategory1UpsertBulk
- func (u *FnetSubCategory1UpsertBulk) UpdateNewValues() *FnetSubCategory1UpsertBulk
- type FnetSubCategory1UpsertOne
- func (u *FnetSubCategory1UpsertOne) DoNothing() *FnetSubCategory1UpsertOne
- func (u *FnetSubCategory1UpsertOne) Exec(ctx context.Context) error
- func (u *FnetSubCategory1UpsertOne) ExecX(ctx context.Context)
- func (u *FnetSubCategory1UpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *FnetSubCategory1UpsertOne) IDX(ctx context.Context) int
- func (u *FnetSubCategory1UpsertOne) Ignore() *FnetSubCategory1UpsertOne
- func (u *FnetSubCategory1UpsertOne) Update(set func(*FnetSubCategory1Upsert)) *FnetSubCategory1UpsertOne
- func (u *FnetSubCategory1UpsertOne) UpdateNewValues() *FnetSubCategory1UpsertOne
- type FnetSubCategory1s
- type FnetSubCategory2
- type FnetSubCategory2Client
- func (c *FnetSubCategory2Client) Create() *FnetSubCategory2Create
- func (c *FnetSubCategory2Client) CreateBulk(builders ...*FnetSubCategory2Create) *FnetSubCategory2CreateBulk
- func (c *FnetSubCategory2Client) Delete() *FnetSubCategory2Delete
- func (c *FnetSubCategory2Client) DeleteOne(fsc *FnetSubCategory2) *FnetSubCategory2DeleteOne
- func (c *FnetSubCategory2Client) DeleteOneID(id int) *FnetSubCategory2DeleteOne
- func (c *FnetSubCategory2Client) Get(ctx context.Context, id int) (*FnetSubCategory2, error)
- func (c *FnetSubCategory2Client) GetX(ctx context.Context, id int) *FnetSubCategory2
- func (c *FnetSubCategory2Client) Hooks() []Hook
- func (c *FnetSubCategory2Client) Intercept(interceptors ...Interceptor)
- func (c *FnetSubCategory2Client) Interceptors() []Interceptor
- func (c *FnetSubCategory2Client) MapCreateBulk(slice any, setFunc func(*FnetSubCategory2Create, int)) *FnetSubCategory2CreateBulk
- func (c *FnetSubCategory2Client) Query() *FnetSubCategory2Query
- func (c *FnetSubCategory2Client) QueryDocuments(fsc *FnetSubCategory2) *FnetDocumentQuery
- func (c *FnetSubCategory2Client) Update() *FnetSubCategory2Update
- func (c *FnetSubCategory2Client) UpdateOne(fsc *FnetSubCategory2) *FnetSubCategory2UpdateOne
- func (c *FnetSubCategory2Client) UpdateOneID(id int) *FnetSubCategory2UpdateOne
- func (c *FnetSubCategory2Client) Use(hooks ...Hook)
- type FnetSubCategory2Create
- func (fsc *FnetSubCategory2Create) AddDocumentIDs(ids ...int) *FnetSubCategory2Create
- func (fsc *FnetSubCategory2Create) AddDocuments(f ...*FnetDocument) *FnetSubCategory2Create
- func (fsc *FnetSubCategory2Create) Exec(ctx context.Context) error
- func (fsc *FnetSubCategory2Create) ExecX(ctx context.Context)
- func (fsc *FnetSubCategory2Create) Mutation() *FnetSubCategory2Mutation
- func (fsc *FnetSubCategory2Create) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory2UpsertOne
- func (fsc *FnetSubCategory2Create) OnConflictColumns(columns ...string) *FnetSubCategory2UpsertOne
- func (fsc *FnetSubCategory2Create) Save(ctx context.Context) (*FnetSubCategory2, error)
- func (fsc *FnetSubCategory2Create) SaveX(ctx context.Context) *FnetSubCategory2
- func (fsc *FnetSubCategory2Create) SetName(s string) *FnetSubCategory2Create
- type FnetSubCategory2CreateBulk
- func (fscb *FnetSubCategory2CreateBulk) Exec(ctx context.Context) error
- func (fscb *FnetSubCategory2CreateBulk) ExecX(ctx context.Context)
- func (fscb *FnetSubCategory2CreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory2UpsertBulk
- func (fscb *FnetSubCategory2CreateBulk) OnConflictColumns(columns ...string) *FnetSubCategory2UpsertBulk
- func (fscb *FnetSubCategory2CreateBulk) Save(ctx context.Context) ([]*FnetSubCategory2, error)
- func (fscb *FnetSubCategory2CreateBulk) SaveX(ctx context.Context) []*FnetSubCategory2
- type FnetSubCategory2Delete
- type FnetSubCategory2DeleteOne
- type FnetSubCategory2Edges
- type FnetSubCategory2GroupBy
- func (fscb *FnetSubCategory2GroupBy) Aggregate(fns ...AggregateFunc) *FnetSubCategory2GroupBy
- func (s *FnetSubCategory2GroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetSubCategory2GroupBy) BoolX(ctx context.Context) bool
- func (s *FnetSubCategory2GroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetSubCategory2GroupBy) BoolsX(ctx context.Context) []bool
- func (s *FnetSubCategory2GroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetSubCategory2GroupBy) Float64X(ctx context.Context) float64
- func (s *FnetSubCategory2GroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetSubCategory2GroupBy) Float64sX(ctx context.Context) []float64
- func (s *FnetSubCategory2GroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *FnetSubCategory2GroupBy) IntX(ctx context.Context) int
- func (s *FnetSubCategory2GroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *FnetSubCategory2GroupBy) IntsX(ctx context.Context) []int
- func (fscb *FnetSubCategory2GroupBy) Scan(ctx context.Context, v any) error
- func (s *FnetSubCategory2GroupBy) ScanX(ctx context.Context, v any)
- func (s *FnetSubCategory2GroupBy) String(ctx context.Context) (_ string, err error)
- func (s *FnetSubCategory2GroupBy) StringX(ctx context.Context) string
- func (s *FnetSubCategory2GroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *FnetSubCategory2GroupBy) StringsX(ctx context.Context) []string
- type FnetSubCategory2Mutation
- func (m *FnetSubCategory2Mutation) AddDocumentIDs(ids ...int)
- func (m *FnetSubCategory2Mutation) AddField(name string, value ent.Value) error
- func (m *FnetSubCategory2Mutation) AddedEdges() []string
- func (m *FnetSubCategory2Mutation) AddedField(name string) (ent.Value, bool)
- func (m *FnetSubCategory2Mutation) AddedFields() []string
- func (m *FnetSubCategory2Mutation) AddedIDs(name string) []ent.Value
- func (m *FnetSubCategory2Mutation) ClearDocuments()
- func (m *FnetSubCategory2Mutation) ClearEdge(name string) error
- func (m *FnetSubCategory2Mutation) ClearField(name string) error
- func (m *FnetSubCategory2Mutation) ClearedEdges() []string
- func (m *FnetSubCategory2Mutation) ClearedFields() []string
- func (m FnetSubCategory2Mutation) Client() *Client
- func (m *FnetSubCategory2Mutation) DocumentsCleared() bool
- func (m *FnetSubCategory2Mutation) DocumentsIDs() (ids []int)
- func (m *FnetSubCategory2Mutation) EdgeCleared(name string) bool
- func (m *FnetSubCategory2Mutation) Field(name string) (ent.Value, bool)
- func (m *FnetSubCategory2Mutation) FieldCleared(name string) bool
- func (m *FnetSubCategory2Mutation) Fields() []string
- func (m *FnetSubCategory2Mutation) ID() (id int, exists bool)
- func (m *FnetSubCategory2Mutation) IDs(ctx context.Context) ([]int, error)
- func (m *FnetSubCategory2Mutation) Name() (r string, exists bool)
- func (m *FnetSubCategory2Mutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *FnetSubCategory2Mutation) OldName(ctx context.Context) (v string, err error)
- func (m *FnetSubCategory2Mutation) Op() Op
- func (m *FnetSubCategory2Mutation) RemoveDocumentIDs(ids ...int)
- func (m *FnetSubCategory2Mutation) RemovedDocumentsIDs() (ids []int)
- func (m *FnetSubCategory2Mutation) RemovedEdges() []string
- func (m *FnetSubCategory2Mutation) RemovedIDs(name string) []ent.Value
- func (m *FnetSubCategory2Mutation) ResetDocuments()
- func (m *FnetSubCategory2Mutation) ResetEdge(name string) error
- func (m *FnetSubCategory2Mutation) ResetField(name string) error
- func (m *FnetSubCategory2Mutation) ResetName()
- func (m *FnetSubCategory2Mutation) SetField(name string, value ent.Value) error
- func (m *FnetSubCategory2Mutation) SetName(s string)
- func (m *FnetSubCategory2Mutation) SetOp(op Op)
- func (m FnetSubCategory2Mutation) Tx() (*Tx, error)
- func (m *FnetSubCategory2Mutation) Type() string
- func (m *FnetSubCategory2Mutation) Where(ps ...predicate.FnetSubCategory2)
- func (m *FnetSubCategory2Mutation) WhereP(ps ...func(*sql.Selector))
- type FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) Aggregate(fns ...AggregateFunc) *FnetSubCategory2Select
- func (fsc *FnetSubCategory2Query) All(ctx context.Context) ([]*FnetSubCategory2, error)
- func (fsc *FnetSubCategory2Query) AllX(ctx context.Context) []*FnetSubCategory2
- func (fsc *FnetSubCategory2Query) Clone() *FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) Count(ctx context.Context) (int, error)
- func (fsc *FnetSubCategory2Query) CountX(ctx context.Context) int
- func (fsc *FnetSubCategory2Query) Exist(ctx context.Context) (bool, error)
- func (fsc *FnetSubCategory2Query) ExistX(ctx context.Context) bool
- func (fsc *FnetSubCategory2Query) First(ctx context.Context) (*FnetSubCategory2, error)
- func (fsc *FnetSubCategory2Query) FirstID(ctx context.Context) (id int, err error)
- func (fsc *FnetSubCategory2Query) FirstIDX(ctx context.Context) int
- func (fsc *FnetSubCategory2Query) FirstX(ctx context.Context) *FnetSubCategory2
- func (fsc *FnetSubCategory2Query) GroupBy(field string, fields ...string) *FnetSubCategory2GroupBy
- func (fsc *FnetSubCategory2Query) IDs(ctx context.Context) (ids []int, err error)
- func (fsc *FnetSubCategory2Query) IDsX(ctx context.Context) []int
- func (fsc *FnetSubCategory2Query) Limit(limit int) *FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) Offset(offset int) *FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) Only(ctx context.Context) (*FnetSubCategory2, error)
- func (fsc *FnetSubCategory2Query) OnlyID(ctx context.Context) (id int, err error)
- func (fsc *FnetSubCategory2Query) OnlyIDX(ctx context.Context) int
- func (fsc *FnetSubCategory2Query) OnlyX(ctx context.Context) *FnetSubCategory2
- func (fsc *FnetSubCategory2Query) Order(o ...fnetsubcategory2.OrderOption) *FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) QueryDocuments() *FnetDocumentQuery
- func (fsc *FnetSubCategory2Query) Select(fields ...string) *FnetSubCategory2Select
- func (fsc *FnetSubCategory2Query) Unique(unique bool) *FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2Query
- func (fsc *FnetSubCategory2Query) WithDocuments(opts ...func(*FnetDocumentQuery)) *FnetSubCategory2Query
- type FnetSubCategory2Select
- func (fsc *FnetSubCategory2Select) Aggregate(fns ...AggregateFunc) *FnetSubCategory2Select
- func (s *FnetSubCategory2Select) Bool(ctx context.Context) (_ bool, err error)
- func (s *FnetSubCategory2Select) BoolX(ctx context.Context) bool
- func (s *FnetSubCategory2Select) Bools(ctx context.Context) ([]bool, error)
- func (s *FnetSubCategory2Select) BoolsX(ctx context.Context) []bool
- func (s *FnetSubCategory2Select) Float64(ctx context.Context) (_ float64, err error)
- func (s *FnetSubCategory2Select) Float64X(ctx context.Context) float64
- func (s *FnetSubCategory2Select) Float64s(ctx context.Context) ([]float64, error)
- func (s *FnetSubCategory2Select) Float64sX(ctx context.Context) []float64
- func (s *FnetSubCategory2Select) Int(ctx context.Context) (_ int, err error)
- func (s *FnetSubCategory2Select) IntX(ctx context.Context) int
- func (s *FnetSubCategory2Select) Ints(ctx context.Context) ([]int, error)
- func (s *FnetSubCategory2Select) IntsX(ctx context.Context) []int
- func (fsc *FnetSubCategory2Select) Scan(ctx context.Context, v any) error
- func (s *FnetSubCategory2Select) ScanX(ctx context.Context, v any)
- func (s *FnetSubCategory2Select) String(ctx context.Context) (_ string, err error)
- func (s *FnetSubCategory2Select) StringX(ctx context.Context) string
- func (s *FnetSubCategory2Select) Strings(ctx context.Context) ([]string, error)
- func (s *FnetSubCategory2Select) StringsX(ctx context.Context) []string
- type FnetSubCategory2Update
- func (fsc *FnetSubCategory2Update) AddDocumentIDs(ids ...int) *FnetSubCategory2Update
- func (fsc *FnetSubCategory2Update) AddDocuments(f ...*FnetDocument) *FnetSubCategory2Update
- func (fsc *FnetSubCategory2Update) ClearDocuments() *FnetSubCategory2Update
- func (fsc *FnetSubCategory2Update) Exec(ctx context.Context) error
- func (fsc *FnetSubCategory2Update) ExecX(ctx context.Context)
- func (fsc *FnetSubCategory2Update) Mutation() *FnetSubCategory2Mutation
- func (fsc *FnetSubCategory2Update) RemoveDocumentIDs(ids ...int) *FnetSubCategory2Update
- func (fsc *FnetSubCategory2Update) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory2Update
- func (fsc *FnetSubCategory2Update) Save(ctx context.Context) (int, error)
- func (fsc *FnetSubCategory2Update) SaveX(ctx context.Context) int
- func (fsc *FnetSubCategory2Update) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2Update
- type FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) AddDocumentIDs(ids ...int) *FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) AddDocuments(f ...*FnetDocument) *FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) ClearDocuments() *FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) Exec(ctx context.Context) error
- func (fsco *FnetSubCategory2UpdateOne) ExecX(ctx context.Context)
- func (fsco *FnetSubCategory2UpdateOne) Mutation() *FnetSubCategory2Mutation
- func (fsco *FnetSubCategory2UpdateOne) RemoveDocumentIDs(ids ...int) *FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) Save(ctx context.Context) (*FnetSubCategory2, error)
- func (fsco *FnetSubCategory2UpdateOne) SaveX(ctx context.Context) *FnetSubCategory2
- func (fsco *FnetSubCategory2UpdateOne) Select(field string, fields ...string) *FnetSubCategory2UpdateOne
- func (fsco *FnetSubCategory2UpdateOne) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2UpdateOne
- type FnetSubCategory2Upsert
- type FnetSubCategory2UpsertBulk
- func (u *FnetSubCategory2UpsertBulk) DoNothing() *FnetSubCategory2UpsertBulk
- func (u *FnetSubCategory2UpsertBulk) Exec(ctx context.Context) error
- func (u *FnetSubCategory2UpsertBulk) ExecX(ctx context.Context)
- func (u *FnetSubCategory2UpsertBulk) Ignore() *FnetSubCategory2UpsertBulk
- func (u *FnetSubCategory2UpsertBulk) Update(set func(*FnetSubCategory2Upsert)) *FnetSubCategory2UpsertBulk
- func (u *FnetSubCategory2UpsertBulk) UpdateNewValues() *FnetSubCategory2UpsertBulk
- type FnetSubCategory2UpsertOne
- func (u *FnetSubCategory2UpsertOne) DoNothing() *FnetSubCategory2UpsertOne
- func (u *FnetSubCategory2UpsertOne) Exec(ctx context.Context) error
- func (u *FnetSubCategory2UpsertOne) ExecX(ctx context.Context)
- func (u *FnetSubCategory2UpsertOne) ID(ctx context.Context) (id int, err error)
- func (u *FnetSubCategory2UpsertOne) IDX(ctx context.Context) int
- func (u *FnetSubCategory2UpsertOne) Ignore() *FnetSubCategory2UpsertOne
- func (u *FnetSubCategory2UpsertOne) Update(set func(*FnetSubCategory2Upsert)) *FnetSubCategory2UpsertOne
- func (u *FnetSubCategory2UpsertOne) UpdateNewValues() *FnetSubCategory2UpsertOne
- type FnetSubCategory2s
- type Hook
- type InterceptFunc
- type Interceptor
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Policy
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeFnetCategory = "FnetCategory" TypeFnetDocument = "FnetDocument" TypeFnetSubCategory1 = "FnetSubCategory1" TypeFnetSubCategory2 = "FnetSubCategory2" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct { // Schema is the client for creating, migrating and dropping schema. Schema *migrate.Schema // FnetCategory is the client for interacting with the FnetCategory builders. FnetCategory *FnetCategoryClient // FnetDocument is the client for interacting with the FnetDocument builders. FnetDocument *FnetDocumentClient // FnetSubCategory1 is the client for interacting with the FnetSubCategory1 builders. FnetSubCategory1 *FnetSubCategory1Client // FnetSubCategory2 is the client for interacting with the FnetSubCategory2 builders. FnetSubCategory2 *FnetSubCategory2Client // contains filtered or unexported fields }
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). FnetCategory. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer { return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Commit(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type FnetCategories ¶
type FnetCategories []*FnetCategory
FnetCategories is a parsable slice of FnetCategory.
type FnetCategory ¶
type FnetCategory struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FnetCategoryQuery when eager-loading is set. Edges FnetCategoryEdges `json:"edges"` // contains filtered or unexported fields }
FnetCategory is the model entity for the FnetCategory schema.
func (*FnetCategory) QueryDocuments ¶
func (fc *FnetCategory) QueryDocuments() *FnetDocumentQuery
QueryDocuments queries the "documents" edge of the FnetCategory entity.
func (*FnetCategory) String ¶
func (fc *FnetCategory) String() string
String implements the fmt.Stringer.
func (*FnetCategory) Unwrap ¶
func (fc *FnetCategory) Unwrap() *FnetCategory
Unwrap unwraps the FnetCategory entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*FnetCategory) Update ¶
func (fc *FnetCategory) Update() *FnetCategoryUpdateOne
Update returns a builder for updating this FnetCategory. Note that you need to call FnetCategory.Unwrap() before calling this method if this FnetCategory was returned from a transaction, and the transaction was committed or rolled back.
type FnetCategoryClient ¶
type FnetCategoryClient struct {
// contains filtered or unexported fields
}
FnetCategoryClient is a client for the FnetCategory schema.
func NewFnetCategoryClient ¶
func NewFnetCategoryClient(c config) *FnetCategoryClient
NewFnetCategoryClient returns a client for the FnetCategory from the given config.
func (*FnetCategoryClient) Create ¶
func (c *FnetCategoryClient) Create() *FnetCategoryCreate
Create returns a builder for creating a FnetCategory entity.
func (*FnetCategoryClient) CreateBulk ¶
func (c *FnetCategoryClient) CreateBulk(builders ...*FnetCategoryCreate) *FnetCategoryCreateBulk
CreateBulk returns a builder for creating a bulk of FnetCategory entities.
func (*FnetCategoryClient) Delete ¶
func (c *FnetCategoryClient) Delete() *FnetCategoryDelete
Delete returns a delete builder for FnetCategory.
func (*FnetCategoryClient) DeleteOne ¶
func (c *FnetCategoryClient) DeleteOne(fc *FnetCategory) *FnetCategoryDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FnetCategoryClient) DeleteOneID ¶
func (c *FnetCategoryClient) DeleteOneID(id int) *FnetCategoryDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FnetCategoryClient) Get ¶
func (c *FnetCategoryClient) Get(ctx context.Context, id int) (*FnetCategory, error)
Get returns a FnetCategory entity by its id.
func (*FnetCategoryClient) GetX ¶
func (c *FnetCategoryClient) GetX(ctx context.Context, id int) *FnetCategory
GetX is like Get, but panics if an error occurs.
func (*FnetCategoryClient) Hooks ¶
func (c *FnetCategoryClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FnetCategoryClient) Intercept ¶
func (c *FnetCategoryClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `fnetcategory.Intercept(f(g(h())))`.
func (*FnetCategoryClient) Interceptors ¶
func (c *FnetCategoryClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FnetCategoryClient) MapCreateBulk ¶
func (c *FnetCategoryClient) MapCreateBulk(slice any, setFunc func(*FnetCategoryCreate, int)) *FnetCategoryCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*FnetCategoryClient) Query ¶
func (c *FnetCategoryClient) Query() *FnetCategoryQuery
Query returns a query builder for FnetCategory.
func (*FnetCategoryClient) QueryDocuments ¶
func (c *FnetCategoryClient) QueryDocuments(fc *FnetCategory) *FnetDocumentQuery
QueryDocuments queries the documents edge of a FnetCategory.
func (*FnetCategoryClient) Update ¶
func (c *FnetCategoryClient) Update() *FnetCategoryUpdate
Update returns an update builder for FnetCategory.
func (*FnetCategoryClient) UpdateOne ¶
func (c *FnetCategoryClient) UpdateOne(fc *FnetCategory) *FnetCategoryUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FnetCategoryClient) UpdateOneID ¶
func (c *FnetCategoryClient) UpdateOneID(id int) *FnetCategoryUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FnetCategoryClient) Use ¶
func (c *FnetCategoryClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `fnetcategory.Hooks(f(g(h())))`.
type FnetCategoryCreate ¶
type FnetCategoryCreate struct {
// contains filtered or unexported fields
}
FnetCategoryCreate is the builder for creating a FnetCategory entity.
func (*FnetCategoryCreate) AddDocumentIDs ¶
func (fcc *FnetCategoryCreate) AddDocumentIDs(ids ...int) *FnetCategoryCreate
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetCategoryCreate) AddDocuments ¶
func (fcc *FnetCategoryCreate) AddDocuments(f ...*FnetDocument) *FnetCategoryCreate
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetCategoryCreate) Exec ¶
func (fcc *FnetCategoryCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetCategoryCreate) ExecX ¶
func (fcc *FnetCategoryCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryCreate) Mutation ¶
func (fcc *FnetCategoryCreate) Mutation() *FnetCategoryMutation
Mutation returns the FnetCategoryMutation object of the builder.
func (*FnetCategoryCreate) OnConflict ¶
func (fcc *FnetCategoryCreate) OnConflict(opts ...sql.ConflictOption) *FnetCategoryUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetCategory.Create(). SetName(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetCategoryUpsert) { SetName(v+v). }). Exec(ctx)
func (*FnetCategoryCreate) OnConflictColumns ¶
func (fcc *FnetCategoryCreate) OnConflictColumns(columns ...string) *FnetCategoryUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetCategory.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetCategoryCreate) Save ¶
func (fcc *FnetCategoryCreate) Save(ctx context.Context) (*FnetCategory, error)
Save creates the FnetCategory in the database.
func (*FnetCategoryCreate) SaveX ¶
func (fcc *FnetCategoryCreate) SaveX(ctx context.Context) *FnetCategory
SaveX calls Save and panics if Save returns an error.
func (*FnetCategoryCreate) SetName ¶
func (fcc *FnetCategoryCreate) SetName(s string) *FnetCategoryCreate
SetName sets the "name" field.
type FnetCategoryCreateBulk ¶
type FnetCategoryCreateBulk struct {
// contains filtered or unexported fields
}
FnetCategoryCreateBulk is the builder for creating many FnetCategory entities in bulk.
func (*FnetCategoryCreateBulk) Exec ¶
func (fccb *FnetCategoryCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetCategoryCreateBulk) ExecX ¶
func (fccb *FnetCategoryCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryCreateBulk) OnConflict ¶
func (fccb *FnetCategoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetCategoryUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetCategory.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetCategoryUpsert) { SetName(v+v). }). Exec(ctx)
func (*FnetCategoryCreateBulk) OnConflictColumns ¶
func (fccb *FnetCategoryCreateBulk) OnConflictColumns(columns ...string) *FnetCategoryUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetCategory.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetCategoryCreateBulk) Save ¶
func (fccb *FnetCategoryCreateBulk) Save(ctx context.Context) ([]*FnetCategory, error)
Save creates the FnetCategory entities in the database.
func (*FnetCategoryCreateBulk) SaveX ¶
func (fccb *FnetCategoryCreateBulk) SaveX(ctx context.Context) []*FnetCategory
SaveX is like Save, but panics if an error occurs.
type FnetCategoryDelete ¶
type FnetCategoryDelete struct {
// contains filtered or unexported fields
}
FnetCategoryDelete is the builder for deleting a FnetCategory entity.
func (*FnetCategoryDelete) Exec ¶
func (fcd *FnetCategoryDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FnetCategoryDelete) ExecX ¶
func (fcd *FnetCategoryDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryDelete) Where ¶
func (fcd *FnetCategoryDelete) Where(ps ...predicate.FnetCategory) *FnetCategoryDelete
Where appends a list predicates to the FnetCategoryDelete builder.
type FnetCategoryDeleteOne ¶
type FnetCategoryDeleteOne struct {
// contains filtered or unexported fields
}
FnetCategoryDeleteOne is the builder for deleting a single FnetCategory entity.
func (*FnetCategoryDeleteOne) Exec ¶
func (fcdo *FnetCategoryDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FnetCategoryDeleteOne) ExecX ¶
func (fcdo *FnetCategoryDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryDeleteOne) Where ¶
func (fcdo *FnetCategoryDeleteOne) Where(ps ...predicate.FnetCategory) *FnetCategoryDeleteOne
Where appends a list predicates to the FnetCategoryDelete builder.
type FnetCategoryEdges ¶
type FnetCategoryEdges struct { // Documents holds the value of the documents edge. Documents []*FnetDocument `json:"documents,omitempty"` // contains filtered or unexported fields }
FnetCategoryEdges holds the relations/edges for other nodes in the graph.
func (FnetCategoryEdges) DocumentsOrErr ¶
func (e FnetCategoryEdges) DocumentsOrErr() ([]*FnetDocument, error)
DocumentsOrErr returns the Documents value or an error if the edge was not loaded in eager-loading.
type FnetCategoryGroupBy ¶
type FnetCategoryGroupBy struct {
// contains filtered or unexported fields
}
FnetCategoryGroupBy is the group-by builder for FnetCategory entities.
func (*FnetCategoryGroupBy) Aggregate ¶
func (fcgb *FnetCategoryGroupBy) Aggregate(fns ...AggregateFunc) *FnetCategoryGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FnetCategoryGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetCategoryGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetCategoryGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetCategoryGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetCategoryGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetCategoryGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetCategoryGroupBy) Scan ¶
func (fcgb *FnetCategoryGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetCategoryGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetCategoryMutation ¶
type FnetCategoryMutation struct {
// contains filtered or unexported fields
}
FnetCategoryMutation represents an operation that mutates the FnetCategory nodes in the graph.
func (*FnetCategoryMutation) AddDocumentIDs ¶
func (m *FnetCategoryMutation) AddDocumentIDs(ids ...int)
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by ids.
func (*FnetCategoryMutation) AddField ¶
func (m *FnetCategoryMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetCategoryMutation) AddedEdges ¶
func (m *FnetCategoryMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FnetCategoryMutation) AddedField ¶
func (m *FnetCategoryMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetCategoryMutation) AddedFields ¶
func (m *FnetCategoryMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FnetCategoryMutation) AddedIDs ¶
func (m *FnetCategoryMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FnetCategoryMutation) ClearDocuments ¶
func (m *FnetCategoryMutation) ClearDocuments()
ClearDocuments clears the "documents" edge to the FnetDocument entity.
func (*FnetCategoryMutation) ClearEdge ¶
func (m *FnetCategoryMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*FnetCategoryMutation) ClearField ¶
func (m *FnetCategoryMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetCategoryMutation) ClearedEdges ¶
func (m *FnetCategoryMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FnetCategoryMutation) ClearedFields ¶
func (m *FnetCategoryMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FnetCategoryMutation) Client ¶
func (m FnetCategoryMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*FnetCategoryMutation) DocumentsCleared ¶
func (m *FnetCategoryMutation) DocumentsCleared() bool
DocumentsCleared reports if the "documents" edge to the FnetDocument entity was cleared.
func (*FnetCategoryMutation) DocumentsIDs ¶
func (m *FnetCategoryMutation) DocumentsIDs() (ids []int)
DocumentsIDs returns the "documents" edge IDs in the mutation.
func (*FnetCategoryMutation) EdgeCleared ¶
func (m *FnetCategoryMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FnetCategoryMutation) Field ¶
func (m *FnetCategoryMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetCategoryMutation) FieldCleared ¶
func (m *FnetCategoryMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FnetCategoryMutation) Fields ¶
func (m *FnetCategoryMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*FnetCategoryMutation) ID ¶
func (m *FnetCategoryMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*FnetCategoryMutation) IDs ¶
func (m *FnetCategoryMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FnetCategoryMutation) Name ¶
func (m *FnetCategoryMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*FnetCategoryMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*FnetCategoryMutation) OldName ¶
func (m *FnetCategoryMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the FnetCategory entity. If the FnetCategory object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetCategoryMutation) Op ¶
func (m *FnetCategoryMutation) Op() Op
Op returns the operation name.
func (*FnetCategoryMutation) RemoveDocumentIDs ¶
func (m *FnetCategoryMutation) RemoveDocumentIDs(ids ...int)
RemoveDocumentIDs removes the "documents" edge to the FnetDocument entity by IDs.
func (*FnetCategoryMutation) RemovedDocumentsIDs ¶
func (m *FnetCategoryMutation) RemovedDocumentsIDs() (ids []int)
RemovedDocuments returns the removed IDs of the "documents" edge to the FnetDocument entity.
func (*FnetCategoryMutation) RemovedEdges ¶
func (m *FnetCategoryMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FnetCategoryMutation) RemovedIDs ¶
func (m *FnetCategoryMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*FnetCategoryMutation) ResetDocuments ¶
func (m *FnetCategoryMutation) ResetDocuments()
ResetDocuments resets all changes to the "documents" edge.
func (*FnetCategoryMutation) ResetEdge ¶
func (m *FnetCategoryMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*FnetCategoryMutation) ResetField ¶
func (m *FnetCategoryMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetCategoryMutation) ResetName ¶
func (m *FnetCategoryMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*FnetCategoryMutation) SetField ¶
func (m *FnetCategoryMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetCategoryMutation) SetName ¶
func (m *FnetCategoryMutation) SetName(s string)
SetName sets the "name" field.
func (*FnetCategoryMutation) SetOp ¶
func (m *FnetCategoryMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (FnetCategoryMutation) Tx ¶
func (m FnetCategoryMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FnetCategoryMutation) Type ¶
func (m *FnetCategoryMutation) Type() string
Type returns the node type of this mutation (FnetCategory).
func (*FnetCategoryMutation) Where ¶
func (m *FnetCategoryMutation) Where(ps ...predicate.FnetCategory)
Where appends a list predicates to the FnetCategoryMutation builder.
func (*FnetCategoryMutation) WhereP ¶
func (m *FnetCategoryMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FnetCategoryMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FnetCategoryQuery ¶
type FnetCategoryQuery struct {
// contains filtered or unexported fields
}
FnetCategoryQuery is the builder for querying FnetCategory entities.
func (*FnetCategoryQuery) Aggregate ¶
func (fcq *FnetCategoryQuery) Aggregate(fns ...AggregateFunc) *FnetCategorySelect
Aggregate returns a FnetCategorySelect configured with the given aggregations.
func (*FnetCategoryQuery) All ¶
func (fcq *FnetCategoryQuery) All(ctx context.Context) ([]*FnetCategory, error)
All executes the query and returns a list of FnetCategories.
func (*FnetCategoryQuery) AllX ¶
func (fcq *FnetCategoryQuery) AllX(ctx context.Context) []*FnetCategory
AllX is like All, but panics if an error occurs.
func (*FnetCategoryQuery) Clone ¶
func (fcq *FnetCategoryQuery) Clone() *FnetCategoryQuery
Clone returns a duplicate of the FnetCategoryQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FnetCategoryQuery) Count ¶
func (fcq *FnetCategoryQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FnetCategoryQuery) CountX ¶
func (fcq *FnetCategoryQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FnetCategoryQuery) Exist ¶
func (fcq *FnetCategoryQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FnetCategoryQuery) ExistX ¶
func (fcq *FnetCategoryQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FnetCategoryQuery) First ¶
func (fcq *FnetCategoryQuery) First(ctx context.Context) (*FnetCategory, error)
First returns the first FnetCategory entity from the query. Returns a *NotFoundError when no FnetCategory was found.
func (*FnetCategoryQuery) FirstID ¶
func (fcq *FnetCategoryQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first FnetCategory ID from the query. Returns a *NotFoundError when no FnetCategory ID was found.
func (*FnetCategoryQuery) FirstIDX ¶
func (fcq *FnetCategoryQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*FnetCategoryQuery) FirstX ¶
func (fcq *FnetCategoryQuery) FirstX(ctx context.Context) *FnetCategory
FirstX is like First, but panics if an error occurs.
func (*FnetCategoryQuery) GroupBy ¶
func (fcq *FnetCategoryQuery) GroupBy(field string, fields ...string) *FnetCategoryGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.FnetCategory.Query(). GroupBy(fnetcategory.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FnetCategoryQuery) IDs ¶
func (fcq *FnetCategoryQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of FnetCategory IDs.
func (*FnetCategoryQuery) IDsX ¶
func (fcq *FnetCategoryQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*FnetCategoryQuery) Limit ¶
func (fcq *FnetCategoryQuery) Limit(limit int) *FnetCategoryQuery
Limit the number of records to be returned by this query.
func (*FnetCategoryQuery) Offset ¶
func (fcq *FnetCategoryQuery) Offset(offset int) *FnetCategoryQuery
Offset to start from.
func (*FnetCategoryQuery) Only ¶
func (fcq *FnetCategoryQuery) Only(ctx context.Context) (*FnetCategory, error)
Only returns a single FnetCategory entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FnetCategory entity is found. Returns a *NotFoundError when no FnetCategory entities are found.
func (*FnetCategoryQuery) OnlyID ¶
func (fcq *FnetCategoryQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only FnetCategory ID in the query. Returns a *NotSingularError when more than one FnetCategory ID is found. Returns a *NotFoundError when no entities are found.
func (*FnetCategoryQuery) OnlyIDX ¶
func (fcq *FnetCategoryQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FnetCategoryQuery) OnlyX ¶
func (fcq *FnetCategoryQuery) OnlyX(ctx context.Context) *FnetCategory
OnlyX is like Only, but panics if an error occurs.
func (*FnetCategoryQuery) Order ¶
func (fcq *FnetCategoryQuery) Order(o ...fnetcategory.OrderOption) *FnetCategoryQuery
Order specifies how the records should be ordered.
func (*FnetCategoryQuery) QueryDocuments ¶
func (fcq *FnetCategoryQuery) QueryDocuments() *FnetDocumentQuery
QueryDocuments chains the current query on the "documents" edge.
func (*FnetCategoryQuery) Select ¶
func (fcq *FnetCategoryQuery) Select(fields ...string) *FnetCategorySelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.FnetCategory.Query(). Select(fnetcategory.FieldName). Scan(ctx, &v)
func (*FnetCategoryQuery) Unique ¶
func (fcq *FnetCategoryQuery) Unique(unique bool) *FnetCategoryQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*FnetCategoryQuery) Where ¶
func (fcq *FnetCategoryQuery) Where(ps ...predicate.FnetCategory) *FnetCategoryQuery
Where adds a new predicate for the FnetCategoryQuery builder.
func (*FnetCategoryQuery) WithDocuments ¶
func (fcq *FnetCategoryQuery) WithDocuments(opts ...func(*FnetDocumentQuery)) *FnetCategoryQuery
WithDocuments tells the query-builder to eager-load the nodes that are connected to the "documents" edge. The optional arguments are used to configure the query builder of the edge.
type FnetCategorySelect ¶
type FnetCategorySelect struct { *FnetCategoryQuery // contains filtered or unexported fields }
FnetCategorySelect is the builder for selecting fields of FnetCategory entities.
func (*FnetCategorySelect) Aggregate ¶
func (fcs *FnetCategorySelect) Aggregate(fns ...AggregateFunc) *FnetCategorySelect
Aggregate adds the given aggregation functions to the selector query.
func (*FnetCategorySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetCategorySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetCategorySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetCategorySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetCategorySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetCategorySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetCategorySelect) Scan ¶
func (fcs *FnetCategorySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetCategorySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetCategoryUpdate ¶
type FnetCategoryUpdate struct {
// contains filtered or unexported fields
}
FnetCategoryUpdate is the builder for updating FnetCategory entities.
func (*FnetCategoryUpdate) AddDocumentIDs ¶
func (fcu *FnetCategoryUpdate) AddDocumentIDs(ids ...int) *FnetCategoryUpdate
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetCategoryUpdate) AddDocuments ¶
func (fcu *FnetCategoryUpdate) AddDocuments(f ...*FnetDocument) *FnetCategoryUpdate
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetCategoryUpdate) ClearDocuments ¶
func (fcu *FnetCategoryUpdate) ClearDocuments() *FnetCategoryUpdate
ClearDocuments clears all "documents" edges to the FnetDocument entity.
func (*FnetCategoryUpdate) Exec ¶
func (fcu *FnetCategoryUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetCategoryUpdate) ExecX ¶
func (fcu *FnetCategoryUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryUpdate) Mutation ¶
func (fcu *FnetCategoryUpdate) Mutation() *FnetCategoryMutation
Mutation returns the FnetCategoryMutation object of the builder.
func (*FnetCategoryUpdate) RemoveDocumentIDs ¶
func (fcu *FnetCategoryUpdate) RemoveDocumentIDs(ids ...int) *FnetCategoryUpdate
RemoveDocumentIDs removes the "documents" edge to FnetDocument entities by IDs.
func (*FnetCategoryUpdate) RemoveDocuments ¶
func (fcu *FnetCategoryUpdate) RemoveDocuments(f ...*FnetDocument) *FnetCategoryUpdate
RemoveDocuments removes "documents" edges to FnetDocument entities.
func (*FnetCategoryUpdate) Save ¶
func (fcu *FnetCategoryUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FnetCategoryUpdate) SaveX ¶
func (fcu *FnetCategoryUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FnetCategoryUpdate) Where ¶
func (fcu *FnetCategoryUpdate) Where(ps ...predicate.FnetCategory) *FnetCategoryUpdate
Where appends a list predicates to the FnetCategoryUpdate builder.
type FnetCategoryUpdateOne ¶
type FnetCategoryUpdateOne struct {
// contains filtered or unexported fields
}
FnetCategoryUpdateOne is the builder for updating a single FnetCategory entity.
func (*FnetCategoryUpdateOne) AddDocumentIDs ¶
func (fcuo *FnetCategoryUpdateOne) AddDocumentIDs(ids ...int) *FnetCategoryUpdateOne
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetCategoryUpdateOne) AddDocuments ¶
func (fcuo *FnetCategoryUpdateOne) AddDocuments(f ...*FnetDocument) *FnetCategoryUpdateOne
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetCategoryUpdateOne) ClearDocuments ¶
func (fcuo *FnetCategoryUpdateOne) ClearDocuments() *FnetCategoryUpdateOne
ClearDocuments clears all "documents" edges to the FnetDocument entity.
func (*FnetCategoryUpdateOne) Exec ¶
func (fcuo *FnetCategoryUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FnetCategoryUpdateOne) ExecX ¶
func (fcuo *FnetCategoryUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryUpdateOne) Mutation ¶
func (fcuo *FnetCategoryUpdateOne) Mutation() *FnetCategoryMutation
Mutation returns the FnetCategoryMutation object of the builder.
func (*FnetCategoryUpdateOne) RemoveDocumentIDs ¶
func (fcuo *FnetCategoryUpdateOne) RemoveDocumentIDs(ids ...int) *FnetCategoryUpdateOne
RemoveDocumentIDs removes the "documents" edge to FnetDocument entities by IDs.
func (*FnetCategoryUpdateOne) RemoveDocuments ¶
func (fcuo *FnetCategoryUpdateOne) RemoveDocuments(f ...*FnetDocument) *FnetCategoryUpdateOne
RemoveDocuments removes "documents" edges to FnetDocument entities.
func (*FnetCategoryUpdateOne) Save ¶
func (fcuo *FnetCategoryUpdateOne) Save(ctx context.Context) (*FnetCategory, error)
Save executes the query and returns the updated FnetCategory entity.
func (*FnetCategoryUpdateOne) SaveX ¶
func (fcuo *FnetCategoryUpdateOne) SaveX(ctx context.Context) *FnetCategory
SaveX is like Save, but panics if an error occurs.
func (*FnetCategoryUpdateOne) Select ¶
func (fcuo *FnetCategoryUpdateOne) Select(field string, fields ...string) *FnetCategoryUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FnetCategoryUpdateOne) Where ¶
func (fcuo *FnetCategoryUpdateOne) Where(ps ...predicate.FnetCategory) *FnetCategoryUpdateOne
Where appends a list predicates to the FnetCategoryUpdate builder.
type FnetCategoryUpsert ¶
FnetCategoryUpsert is the "OnConflict" setter.
type FnetCategoryUpsertBulk ¶
type FnetCategoryUpsertBulk struct {
// contains filtered or unexported fields
}
FnetCategoryUpsertBulk is the builder for "upsert"-ing a bulk of FnetCategory nodes.
func (*FnetCategoryUpsertBulk) DoNothing ¶
func (u *FnetCategoryUpsertBulk) DoNothing() *FnetCategoryUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetCategoryUpsertBulk) Exec ¶
func (u *FnetCategoryUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetCategoryUpsertBulk) ExecX ¶
func (u *FnetCategoryUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryUpsertBulk) Ignore ¶
func (u *FnetCategoryUpsertBulk) Ignore() *FnetCategoryUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetCategory.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetCategoryUpsertBulk) Update ¶
func (u *FnetCategoryUpsertBulk) Update(set func(*FnetCategoryUpsert)) *FnetCategoryUpsertBulk
Update allows overriding fields `UPDATE` values. See the FnetCategoryCreateBulk.OnConflict documentation for more info.
func (*FnetCategoryUpsertBulk) UpdateNewValues ¶
func (u *FnetCategoryUpsertBulk) UpdateNewValues() *FnetCategoryUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetCategory.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type FnetCategoryUpsertOne ¶
type FnetCategoryUpsertOne struct {
// contains filtered or unexported fields
}
FnetCategoryUpsertOne is the builder for "upsert"-ing
one FnetCategory node.
func (*FnetCategoryUpsertOne) DoNothing ¶
func (u *FnetCategoryUpsertOne) DoNothing() *FnetCategoryUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetCategoryUpsertOne) Exec ¶
func (u *FnetCategoryUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetCategoryUpsertOne) ExecX ¶
func (u *FnetCategoryUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetCategoryUpsertOne) ID ¶
func (u *FnetCategoryUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FnetCategoryUpsertOne) IDX ¶
func (u *FnetCategoryUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*FnetCategoryUpsertOne) Ignore ¶
func (u *FnetCategoryUpsertOne) Ignore() *FnetCategoryUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetCategory.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetCategoryUpsertOne) Update ¶
func (u *FnetCategoryUpsertOne) Update(set func(*FnetCategoryUpsert)) *FnetCategoryUpsertOne
Update allows overriding fields `UPDATE` values. See the FnetCategoryCreate.OnConflict documentation for more info.
func (*FnetCategoryUpsertOne) UpdateNewValues ¶
func (u *FnetCategoryUpsertOne) UpdateNewValues() *FnetCategoryUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetCategory.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type FnetDocument ¶
type FnetDocument struct { // ID of the ent. ID int `json:"id,omitempty"` // FnetID holds the value of the "fnet_id" field. FnetID int `json:"fnet_id,omitempty"` // AdditionalInformation holds the value of the "additional_information" field. AdditionalInformation string `json:"additional_information,omitempty"` // CategoryStr holds the value of the "category_str" field. CategoryStr string `json:"category_str,omitempty"` // FundDescription holds the value of the "fund_description" field. FundDescription string `json:"fund_description,omitempty"` // FundMarketName holds the value of the "fund_market_name" field. FundMarketName string `json:"fund_market_name,omitempty"` // HighPriority holds the value of the "high_priority" field. HighPriority bool `json:"high_priority,omitempty"` // ReferenceDate holds the value of the "reference_date" field. ReferenceDate time.Time `json:"reference_date,omitempty"` // ReferenceDateFormat holds the value of the "reference_date_format" field. ReferenceDateFormat string `json:"reference_date_format,omitempty"` // ReferenceDateStr holds the value of the "reference_date_str" field. ReferenceDateStr string `json:"reference_date_str,omitempty"` // Reviewed holds the value of the "reviewed" field. Reviewed string `json:"reviewed,omitempty"` // Status holds the value of the "status" field. Status string `json:"status,omitempty"` // SubCategory1Str holds the value of the "sub_category1_str" field. SubCategory1Str string `json:"sub_category1_str,omitempty"` // SubCategory2Str holds the value of the "sub_category2_str" field. SubCategory2Str string `json:"sub_category2_str,omitempty"` // SubmissionDate holds the value of the "submission_date" field. SubmissionDate time.Time `json:"submission_date,omitempty"` // SubmissionDateStr holds the value of the "submission_date_str" field. SubmissionDateStr string `json:"submission_date_str,omitempty"` // SubmissionMethod holds the value of the "submission_method" field. SubmissionMethod string `json:"submission_method,omitempty"` // SubmissionMethodDescription holds the value of the "submission_method_description" field. SubmissionMethodDescription string `json:"submission_method_description,omitempty"` // SubmissionStatus holds the value of the "submission_status" field. SubmissionStatus string `json:"submission_status,omitempty"` // SubmissionStatusDescription holds the value of the "submission_status_description" field. SubmissionStatusDescription string `json:"submission_status_description,omitempty"` // Version holds the value of the "version" field. Version int `json:"version,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FnetDocumentQuery when eager-loading is set. Edges FnetDocumentEdges `json:"edges"` // contains filtered or unexported fields }
FnetDocument is the model entity for the FnetDocument schema.
func (*FnetDocument) QueryCategory ¶
func (fd *FnetDocument) QueryCategory() *FnetCategoryQuery
QueryCategory queries the "category" edge of the FnetDocument entity.
func (*FnetDocument) QuerySubCategory1 ¶
func (fd *FnetDocument) QuerySubCategory1() *FnetSubCategory1Query
QuerySubCategory1 queries the "sub_category1" edge of the FnetDocument entity.
func (*FnetDocument) QuerySubCategory2 ¶
func (fd *FnetDocument) QuerySubCategory2() *FnetSubCategory2Query
QuerySubCategory2 queries the "sub_category2" edge of the FnetDocument entity.
func (*FnetDocument) String ¶
func (fd *FnetDocument) String() string
String implements the fmt.Stringer.
func (*FnetDocument) Unwrap ¶
func (fd *FnetDocument) Unwrap() *FnetDocument
Unwrap unwraps the FnetDocument entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*FnetDocument) Update ¶
func (fd *FnetDocument) Update() *FnetDocumentUpdateOne
Update returns a builder for updating this FnetDocument. Note that you need to call FnetDocument.Unwrap() before calling this method if this FnetDocument was returned from a transaction, and the transaction was committed or rolled back.
type FnetDocumentClient ¶
type FnetDocumentClient struct {
// contains filtered or unexported fields
}
FnetDocumentClient is a client for the FnetDocument schema.
func NewFnetDocumentClient ¶
func NewFnetDocumentClient(c config) *FnetDocumentClient
NewFnetDocumentClient returns a client for the FnetDocument from the given config.
func (*FnetDocumentClient) Create ¶
func (c *FnetDocumentClient) Create() *FnetDocumentCreate
Create returns a builder for creating a FnetDocument entity.
func (*FnetDocumentClient) CreateBulk ¶
func (c *FnetDocumentClient) CreateBulk(builders ...*FnetDocumentCreate) *FnetDocumentCreateBulk
CreateBulk returns a builder for creating a bulk of FnetDocument entities.
func (*FnetDocumentClient) Delete ¶
func (c *FnetDocumentClient) Delete() *FnetDocumentDelete
Delete returns a delete builder for FnetDocument.
func (*FnetDocumentClient) DeleteOne ¶
func (c *FnetDocumentClient) DeleteOne(fd *FnetDocument) *FnetDocumentDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FnetDocumentClient) DeleteOneID ¶
func (c *FnetDocumentClient) DeleteOneID(id int) *FnetDocumentDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FnetDocumentClient) Get ¶
func (c *FnetDocumentClient) Get(ctx context.Context, id int) (*FnetDocument, error)
Get returns a FnetDocument entity by its id.
func (*FnetDocumentClient) GetX ¶
func (c *FnetDocumentClient) GetX(ctx context.Context, id int) *FnetDocument
GetX is like Get, but panics if an error occurs.
func (*FnetDocumentClient) Hooks ¶
func (c *FnetDocumentClient) Hooks() []Hook
Hooks returns the client hooks.
func (*FnetDocumentClient) Intercept ¶
func (c *FnetDocumentClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `fnetdocument.Intercept(f(g(h())))`.
func (*FnetDocumentClient) Interceptors ¶
func (c *FnetDocumentClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FnetDocumentClient) MapCreateBulk ¶
func (c *FnetDocumentClient) MapCreateBulk(slice any, setFunc func(*FnetDocumentCreate, int)) *FnetDocumentCreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*FnetDocumentClient) Query ¶
func (c *FnetDocumentClient) Query() *FnetDocumentQuery
Query returns a query builder for FnetDocument.
func (*FnetDocumentClient) QueryCategory ¶
func (c *FnetDocumentClient) QueryCategory(fd *FnetDocument) *FnetCategoryQuery
QueryCategory queries the category edge of a FnetDocument.
func (*FnetDocumentClient) QuerySubCategory1 ¶
func (c *FnetDocumentClient) QuerySubCategory1(fd *FnetDocument) *FnetSubCategory1Query
QuerySubCategory1 queries the sub_category1 edge of a FnetDocument.
func (*FnetDocumentClient) QuerySubCategory2 ¶
func (c *FnetDocumentClient) QuerySubCategory2(fd *FnetDocument) *FnetSubCategory2Query
QuerySubCategory2 queries the sub_category2 edge of a FnetDocument.
func (*FnetDocumentClient) Update ¶
func (c *FnetDocumentClient) Update() *FnetDocumentUpdate
Update returns an update builder for FnetDocument.
func (*FnetDocumentClient) UpdateOne ¶
func (c *FnetDocumentClient) UpdateOne(fd *FnetDocument) *FnetDocumentUpdateOne
UpdateOne returns an update builder for the given entity.
func (*FnetDocumentClient) UpdateOneID ¶
func (c *FnetDocumentClient) UpdateOneID(id int) *FnetDocumentUpdateOne
UpdateOneID returns an update builder for the given id.
func (*FnetDocumentClient) Use ¶
func (c *FnetDocumentClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `fnetdocument.Hooks(f(g(h())))`.
type FnetDocumentCreate ¶
type FnetDocumentCreate struct {
// contains filtered or unexported fields
}
FnetDocumentCreate is the builder for creating a FnetDocument entity.
func (*FnetDocumentCreate) Exec ¶
func (fdc *FnetDocumentCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetDocumentCreate) ExecX ¶
func (fdc *FnetDocumentCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentCreate) Mutation ¶
func (fdc *FnetDocumentCreate) Mutation() *FnetDocumentMutation
Mutation returns the FnetDocumentMutation object of the builder.
func (*FnetDocumentCreate) OnConflict ¶
func (fdc *FnetDocumentCreate) OnConflict(opts ...sql.ConflictOption) *FnetDocumentUpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetDocument.Create(). SetFnetID(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetDocumentUpsert) { SetFnetID(v+v). }). Exec(ctx)
func (*FnetDocumentCreate) OnConflictColumns ¶
func (fdc *FnetDocumentCreate) OnConflictColumns(columns ...string) *FnetDocumentUpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetDocument.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetDocumentCreate) Save ¶
func (fdc *FnetDocumentCreate) Save(ctx context.Context) (*FnetDocument, error)
Save creates the FnetDocument in the database.
func (*FnetDocumentCreate) SaveX ¶
func (fdc *FnetDocumentCreate) SaveX(ctx context.Context) *FnetDocument
SaveX calls Save and panics if Save returns an error.
func (*FnetDocumentCreate) SetAdditionalInformation ¶
func (fdc *FnetDocumentCreate) SetAdditionalInformation(s string) *FnetDocumentCreate
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentCreate) SetCategory ¶
func (fdc *FnetDocumentCreate) SetCategory(f *FnetCategory) *FnetDocumentCreate
SetCategory sets the "category" edge to the FnetCategory entity.
func (*FnetDocumentCreate) SetCategoryID ¶
func (fdc *FnetDocumentCreate) SetCategoryID(id int) *FnetDocumentCreate
SetCategoryID sets the "category" edge to the FnetCategory entity by ID.
func (*FnetDocumentCreate) SetCategoryStr ¶
func (fdc *FnetDocumentCreate) SetCategoryStr(s string) *FnetDocumentCreate
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentCreate) SetFnetID ¶
func (fdc *FnetDocumentCreate) SetFnetID(i int) *FnetDocumentCreate
SetFnetID sets the "fnet_id" field.
func (*FnetDocumentCreate) SetFundDescription ¶
func (fdc *FnetDocumentCreate) SetFundDescription(s string) *FnetDocumentCreate
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentCreate) SetFundMarketName ¶
func (fdc *FnetDocumentCreate) SetFundMarketName(s string) *FnetDocumentCreate
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentCreate) SetHighPriority ¶
func (fdc *FnetDocumentCreate) SetHighPriority(b bool) *FnetDocumentCreate
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentCreate) SetNillableAdditionalInformation ¶
func (fdc *FnetDocumentCreate) SetNillableAdditionalInformation(s *string) *FnetDocumentCreate
SetNillableAdditionalInformation sets the "additional_information" field if the given value is not nil.
func (*FnetDocumentCreate) SetNillableFundMarketName ¶
func (fdc *FnetDocumentCreate) SetNillableFundMarketName(s *string) *FnetDocumentCreate
SetNillableFundMarketName sets the "fund_market_name" field if the given value is not nil.
func (*FnetDocumentCreate) SetNillableSubCategory1ID ¶
func (fdc *FnetDocumentCreate) SetNillableSubCategory1ID(id *int) *FnetDocumentCreate
SetNillableSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by ID if the given value is not nil.
func (*FnetDocumentCreate) SetNillableSubCategory1Str ¶
func (fdc *FnetDocumentCreate) SetNillableSubCategory1Str(s *string) *FnetDocumentCreate
SetNillableSubCategory1Str sets the "sub_category1_str" field if the given value is not nil.
func (*FnetDocumentCreate) SetNillableSubCategory2ID ¶
func (fdc *FnetDocumentCreate) SetNillableSubCategory2ID(id *int) *FnetDocumentCreate
SetNillableSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by ID if the given value is not nil.
func (*FnetDocumentCreate) SetNillableSubCategory2Str ¶
func (fdc *FnetDocumentCreate) SetNillableSubCategory2Str(s *string) *FnetDocumentCreate
SetNillableSubCategory2Str sets the "sub_category2_str" field if the given value is not nil.
func (*FnetDocumentCreate) SetReferenceDate ¶
func (fdc *FnetDocumentCreate) SetReferenceDate(t time.Time) *FnetDocumentCreate
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentCreate) SetReferenceDateFormat ¶
func (fdc *FnetDocumentCreate) SetReferenceDateFormat(s string) *FnetDocumentCreate
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentCreate) SetReferenceDateStr ¶
func (fdc *FnetDocumentCreate) SetReferenceDateStr(s string) *FnetDocumentCreate
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentCreate) SetReviewed ¶
func (fdc *FnetDocumentCreate) SetReviewed(s string) *FnetDocumentCreate
SetReviewed sets the "reviewed" field.
func (*FnetDocumentCreate) SetStatus ¶
func (fdc *FnetDocumentCreate) SetStatus(s string) *FnetDocumentCreate
SetStatus sets the "status" field.
func (*FnetDocumentCreate) SetSubCategory1 ¶
func (fdc *FnetDocumentCreate) SetSubCategory1(f *FnetSubCategory1) *FnetDocumentCreate
SetSubCategory1 sets the "sub_category1" edge to the FnetSubCategory1 entity.
func (*FnetDocumentCreate) SetSubCategory1ID ¶
func (fdc *FnetDocumentCreate) SetSubCategory1ID(id int) *FnetDocumentCreate
SetSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by ID.
func (*FnetDocumentCreate) SetSubCategory1Str ¶
func (fdc *FnetDocumentCreate) SetSubCategory1Str(s string) *FnetDocumentCreate
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentCreate) SetSubCategory2 ¶
func (fdc *FnetDocumentCreate) SetSubCategory2(f *FnetSubCategory2) *FnetDocumentCreate
SetSubCategory2 sets the "sub_category2" edge to the FnetSubCategory2 entity.
func (*FnetDocumentCreate) SetSubCategory2ID ¶
func (fdc *FnetDocumentCreate) SetSubCategory2ID(id int) *FnetDocumentCreate
SetSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by ID.
func (*FnetDocumentCreate) SetSubCategory2Str ¶
func (fdc *FnetDocumentCreate) SetSubCategory2Str(s string) *FnetDocumentCreate
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentCreate) SetSubmissionDate ¶
func (fdc *FnetDocumentCreate) SetSubmissionDate(t time.Time) *FnetDocumentCreate
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentCreate) SetSubmissionDateStr ¶
func (fdc *FnetDocumentCreate) SetSubmissionDateStr(s string) *FnetDocumentCreate
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentCreate) SetSubmissionMethod ¶
func (fdc *FnetDocumentCreate) SetSubmissionMethod(s string) *FnetDocumentCreate
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentCreate) SetSubmissionMethodDescription ¶
func (fdc *FnetDocumentCreate) SetSubmissionMethodDescription(s string) *FnetDocumentCreate
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentCreate) SetSubmissionStatus ¶
func (fdc *FnetDocumentCreate) SetSubmissionStatus(s string) *FnetDocumentCreate
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentCreate) SetSubmissionStatusDescription ¶
func (fdc *FnetDocumentCreate) SetSubmissionStatusDescription(s string) *FnetDocumentCreate
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentCreate) SetVersion ¶
func (fdc *FnetDocumentCreate) SetVersion(i int) *FnetDocumentCreate
SetVersion sets the "version" field.
type FnetDocumentCreateBulk ¶
type FnetDocumentCreateBulk struct {
// contains filtered or unexported fields
}
FnetDocumentCreateBulk is the builder for creating many FnetDocument entities in bulk.
func (*FnetDocumentCreateBulk) Exec ¶
func (fdcb *FnetDocumentCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetDocumentCreateBulk) ExecX ¶
func (fdcb *FnetDocumentCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentCreateBulk) OnConflict ¶
func (fdcb *FnetDocumentCreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetDocumentUpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetDocument.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetDocumentUpsert) { SetFnetID(v+v). }). Exec(ctx)
func (*FnetDocumentCreateBulk) OnConflictColumns ¶
func (fdcb *FnetDocumentCreateBulk) OnConflictColumns(columns ...string) *FnetDocumentUpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetDocument.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetDocumentCreateBulk) Save ¶
func (fdcb *FnetDocumentCreateBulk) Save(ctx context.Context) ([]*FnetDocument, error)
Save creates the FnetDocument entities in the database.
func (*FnetDocumentCreateBulk) SaveX ¶
func (fdcb *FnetDocumentCreateBulk) SaveX(ctx context.Context) []*FnetDocument
SaveX is like Save, but panics if an error occurs.
type FnetDocumentDelete ¶
type FnetDocumentDelete struct {
// contains filtered or unexported fields
}
FnetDocumentDelete is the builder for deleting a FnetDocument entity.
func (*FnetDocumentDelete) Exec ¶
func (fdd *FnetDocumentDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FnetDocumentDelete) ExecX ¶
func (fdd *FnetDocumentDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentDelete) Where ¶
func (fdd *FnetDocumentDelete) Where(ps ...predicate.FnetDocument) *FnetDocumentDelete
Where appends a list predicates to the FnetDocumentDelete builder.
type FnetDocumentDeleteOne ¶
type FnetDocumentDeleteOne struct {
// contains filtered or unexported fields
}
FnetDocumentDeleteOne is the builder for deleting a single FnetDocument entity.
func (*FnetDocumentDeleteOne) Exec ¶
func (fddo *FnetDocumentDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FnetDocumentDeleteOne) ExecX ¶
func (fddo *FnetDocumentDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentDeleteOne) Where ¶
func (fddo *FnetDocumentDeleteOne) Where(ps ...predicate.FnetDocument) *FnetDocumentDeleteOne
Where appends a list predicates to the FnetDocumentDelete builder.
type FnetDocumentEdges ¶
type FnetDocumentEdges struct { // Category holds the value of the category edge. Category *FnetCategory `json:"category,omitempty"` // SubCategory1 holds the value of the sub_category1 edge. SubCategory1 *FnetSubCategory1 `json:"sub_category1,omitempty"` // SubCategory2 holds the value of the sub_category2 edge. SubCategory2 *FnetSubCategory2 `json:"sub_category2,omitempty"` // contains filtered or unexported fields }
FnetDocumentEdges holds the relations/edges for other nodes in the graph.
func (FnetDocumentEdges) CategoryOrErr ¶
func (e FnetDocumentEdges) CategoryOrErr() (*FnetCategory, error)
CategoryOrErr returns the Category value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (FnetDocumentEdges) SubCategory1OrErr ¶
func (e FnetDocumentEdges) SubCategory1OrErr() (*FnetSubCategory1, error)
SubCategory1OrErr returns the SubCategory1 value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (FnetDocumentEdges) SubCategory2OrErr ¶
func (e FnetDocumentEdges) SubCategory2OrErr() (*FnetSubCategory2, error)
SubCategory2OrErr returns the SubCategory2 value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type FnetDocumentGroupBy ¶
type FnetDocumentGroupBy struct {
// contains filtered or unexported fields
}
FnetDocumentGroupBy is the group-by builder for FnetDocument entities.
func (*FnetDocumentGroupBy) Aggregate ¶
func (fdgb *FnetDocumentGroupBy) Aggregate(fns ...AggregateFunc) *FnetDocumentGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FnetDocumentGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetDocumentGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetDocumentGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetDocumentGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetDocumentGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetDocumentGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetDocumentGroupBy) Scan ¶
func (fdgb *FnetDocumentGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetDocumentGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetDocumentMutation ¶
type FnetDocumentMutation struct {
// contains filtered or unexported fields
}
FnetDocumentMutation represents an operation that mutates the FnetDocument nodes in the graph.
func (*FnetDocumentMutation) AddField ¶
func (m *FnetDocumentMutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetDocumentMutation) AddFnetID ¶
func (m *FnetDocumentMutation) AddFnetID(i int)
AddFnetID adds i to the "fnet_id" field.
func (*FnetDocumentMutation) AddVersion ¶
func (m *FnetDocumentMutation) AddVersion(i int)
AddVersion adds i to the "version" field.
func (*FnetDocumentMutation) AddedEdges ¶
func (m *FnetDocumentMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FnetDocumentMutation) AddedField ¶
func (m *FnetDocumentMutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetDocumentMutation) AddedFields ¶
func (m *FnetDocumentMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FnetDocumentMutation) AddedFnetID ¶
func (m *FnetDocumentMutation) AddedFnetID() (r int, exists bool)
AddedFnetID returns the value that was added to the "fnet_id" field in this mutation.
func (*FnetDocumentMutation) AddedIDs ¶
func (m *FnetDocumentMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FnetDocumentMutation) AddedVersion ¶
func (m *FnetDocumentMutation) AddedVersion() (r int, exists bool)
AddedVersion returns the value that was added to the "version" field in this mutation.
func (*FnetDocumentMutation) AdditionalInformation ¶
func (m *FnetDocumentMutation) AdditionalInformation() (r string, exists bool)
AdditionalInformation returns the value of the "additional_information" field in the mutation.
func (*FnetDocumentMutation) AdditionalInformationCleared ¶
func (m *FnetDocumentMutation) AdditionalInformationCleared() bool
AdditionalInformationCleared returns if the "additional_information" field was cleared in this mutation.
func (*FnetDocumentMutation) CategoryCleared ¶
func (m *FnetDocumentMutation) CategoryCleared() bool
CategoryCleared reports if the "category" edge to the FnetCategory entity was cleared.
func (*FnetDocumentMutation) CategoryID ¶
func (m *FnetDocumentMutation) CategoryID() (id int, exists bool)
CategoryID returns the "category" edge ID in the mutation.
func (*FnetDocumentMutation) CategoryIDs ¶
func (m *FnetDocumentMutation) CategoryIDs() (ids []int)
CategoryIDs returns the "category" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use CategoryID instead. It exists only for internal usage by the builders.
func (*FnetDocumentMutation) CategoryStr ¶
func (m *FnetDocumentMutation) CategoryStr() (r string, exists bool)
CategoryStr returns the value of the "category_str" field in the mutation.
func (*FnetDocumentMutation) ClearAdditionalInformation ¶
func (m *FnetDocumentMutation) ClearAdditionalInformation()
ClearAdditionalInformation clears the value of the "additional_information" field.
func (*FnetDocumentMutation) ClearCategory ¶
func (m *FnetDocumentMutation) ClearCategory()
ClearCategory clears the "category" edge to the FnetCategory entity.
func (*FnetDocumentMutation) ClearEdge ¶
func (m *FnetDocumentMutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*FnetDocumentMutation) ClearField ¶
func (m *FnetDocumentMutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetDocumentMutation) ClearFundMarketName ¶
func (m *FnetDocumentMutation) ClearFundMarketName()
ClearFundMarketName clears the value of the "fund_market_name" field.
func (*FnetDocumentMutation) ClearSubCategory1 ¶
func (m *FnetDocumentMutation) ClearSubCategory1()
ClearSubCategory1 clears the "sub_category1" edge to the FnetSubCategory1 entity.
func (*FnetDocumentMutation) ClearSubCategory1Str ¶
func (m *FnetDocumentMutation) ClearSubCategory1Str()
ClearSubCategory1Str clears the value of the "sub_category1_str" field.
func (*FnetDocumentMutation) ClearSubCategory2 ¶
func (m *FnetDocumentMutation) ClearSubCategory2()
ClearSubCategory2 clears the "sub_category2" edge to the FnetSubCategory2 entity.
func (*FnetDocumentMutation) ClearSubCategory2Str ¶
func (m *FnetDocumentMutation) ClearSubCategory2Str()
ClearSubCategory2Str clears the value of the "sub_category2_str" field.
func (*FnetDocumentMutation) ClearedEdges ¶
func (m *FnetDocumentMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FnetDocumentMutation) ClearedFields ¶
func (m *FnetDocumentMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FnetDocumentMutation) Client ¶
func (m FnetDocumentMutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*FnetDocumentMutation) EdgeCleared ¶
func (m *FnetDocumentMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FnetDocumentMutation) Field ¶
func (m *FnetDocumentMutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetDocumentMutation) FieldCleared ¶
func (m *FnetDocumentMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FnetDocumentMutation) Fields ¶
func (m *FnetDocumentMutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*FnetDocumentMutation) FnetID ¶
func (m *FnetDocumentMutation) FnetID() (r int, exists bool)
FnetID returns the value of the "fnet_id" field in the mutation.
func (*FnetDocumentMutation) FundDescription ¶
func (m *FnetDocumentMutation) FundDescription() (r string, exists bool)
FundDescription returns the value of the "fund_description" field in the mutation.
func (*FnetDocumentMutation) FundMarketName ¶
func (m *FnetDocumentMutation) FundMarketName() (r string, exists bool)
FundMarketName returns the value of the "fund_market_name" field in the mutation.
func (*FnetDocumentMutation) FundMarketNameCleared ¶
func (m *FnetDocumentMutation) FundMarketNameCleared() bool
FundMarketNameCleared returns if the "fund_market_name" field was cleared in this mutation.
func (*FnetDocumentMutation) HighPriority ¶
func (m *FnetDocumentMutation) HighPriority() (r bool, exists bool)
HighPriority returns the value of the "high_priority" field in the mutation.
func (*FnetDocumentMutation) ID ¶
func (m *FnetDocumentMutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*FnetDocumentMutation) IDs ¶
func (m *FnetDocumentMutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FnetDocumentMutation) OldAdditionalInformation ¶
func (m *FnetDocumentMutation) OldAdditionalInformation(ctx context.Context) (v string, err error)
OldAdditionalInformation returns the old "additional_information" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldCategoryStr ¶
func (m *FnetDocumentMutation) OldCategoryStr(ctx context.Context) (v string, err error)
OldCategoryStr returns the old "category_str" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*FnetDocumentMutation) OldFnetID ¶
func (m *FnetDocumentMutation) OldFnetID(ctx context.Context) (v int, err error)
OldFnetID returns the old "fnet_id" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldFundDescription ¶
func (m *FnetDocumentMutation) OldFundDescription(ctx context.Context) (v string, err error)
OldFundDescription returns the old "fund_description" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldFundMarketName ¶
func (m *FnetDocumentMutation) OldFundMarketName(ctx context.Context) (v string, err error)
OldFundMarketName returns the old "fund_market_name" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldHighPriority ¶
func (m *FnetDocumentMutation) OldHighPriority(ctx context.Context) (v bool, err error)
OldHighPriority returns the old "high_priority" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldReferenceDate ¶
OldReferenceDate returns the old "reference_date" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldReferenceDateFormat ¶
func (m *FnetDocumentMutation) OldReferenceDateFormat(ctx context.Context) (v string, err error)
OldReferenceDateFormat returns the old "reference_date_format" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldReferenceDateStr ¶
func (m *FnetDocumentMutation) OldReferenceDateStr(ctx context.Context) (v string, err error)
OldReferenceDateStr returns the old "reference_date_str" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldReviewed ¶
func (m *FnetDocumentMutation) OldReviewed(ctx context.Context) (v string, err error)
OldReviewed returns the old "reviewed" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldStatus ¶
func (m *FnetDocumentMutation) OldStatus(ctx context.Context) (v string, err error)
OldStatus returns the old "status" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubCategory1Str ¶
func (m *FnetDocumentMutation) OldSubCategory1Str(ctx context.Context) (v string, err error)
OldSubCategory1Str returns the old "sub_category1_str" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubCategory2Str ¶
func (m *FnetDocumentMutation) OldSubCategory2Str(ctx context.Context) (v string, err error)
OldSubCategory2Str returns the old "sub_category2_str" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubmissionDate ¶
OldSubmissionDate returns the old "submission_date" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubmissionDateStr ¶
func (m *FnetDocumentMutation) OldSubmissionDateStr(ctx context.Context) (v string, err error)
OldSubmissionDateStr returns the old "submission_date_str" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubmissionMethod ¶
func (m *FnetDocumentMutation) OldSubmissionMethod(ctx context.Context) (v string, err error)
OldSubmissionMethod returns the old "submission_method" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubmissionMethodDescription ¶
func (m *FnetDocumentMutation) OldSubmissionMethodDescription(ctx context.Context) (v string, err error)
OldSubmissionMethodDescription returns the old "submission_method_description" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubmissionStatus ¶
func (m *FnetDocumentMutation) OldSubmissionStatus(ctx context.Context) (v string, err error)
OldSubmissionStatus returns the old "submission_status" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldSubmissionStatusDescription ¶
func (m *FnetDocumentMutation) OldSubmissionStatusDescription(ctx context.Context) (v string, err error)
OldSubmissionStatusDescription returns the old "submission_status_description" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) OldVersion ¶
func (m *FnetDocumentMutation) OldVersion(ctx context.Context) (v int, err error)
OldVersion returns the old "version" field's value of the FnetDocument entity. If the FnetDocument object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetDocumentMutation) Op ¶
func (m *FnetDocumentMutation) Op() Op
Op returns the operation name.
func (*FnetDocumentMutation) ReferenceDate ¶
func (m *FnetDocumentMutation) ReferenceDate() (r time.Time, exists bool)
ReferenceDate returns the value of the "reference_date" field in the mutation.
func (*FnetDocumentMutation) ReferenceDateFormat ¶
func (m *FnetDocumentMutation) ReferenceDateFormat() (r string, exists bool)
ReferenceDateFormat returns the value of the "reference_date_format" field in the mutation.
func (*FnetDocumentMutation) ReferenceDateStr ¶
func (m *FnetDocumentMutation) ReferenceDateStr() (r string, exists bool)
ReferenceDateStr returns the value of the "reference_date_str" field in the mutation.
func (*FnetDocumentMutation) RemovedEdges ¶
func (m *FnetDocumentMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FnetDocumentMutation) RemovedIDs ¶
func (m *FnetDocumentMutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*FnetDocumentMutation) ResetAdditionalInformation ¶
func (m *FnetDocumentMutation) ResetAdditionalInformation()
ResetAdditionalInformation resets all changes to the "additional_information" field.
func (*FnetDocumentMutation) ResetCategory ¶
func (m *FnetDocumentMutation) ResetCategory()
ResetCategory resets all changes to the "category" edge.
func (*FnetDocumentMutation) ResetCategoryStr ¶
func (m *FnetDocumentMutation) ResetCategoryStr()
ResetCategoryStr resets all changes to the "category_str" field.
func (*FnetDocumentMutation) ResetEdge ¶
func (m *FnetDocumentMutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*FnetDocumentMutation) ResetField ¶
func (m *FnetDocumentMutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetDocumentMutation) ResetFnetID ¶
func (m *FnetDocumentMutation) ResetFnetID()
ResetFnetID resets all changes to the "fnet_id" field.
func (*FnetDocumentMutation) ResetFundDescription ¶
func (m *FnetDocumentMutation) ResetFundDescription()
ResetFundDescription resets all changes to the "fund_description" field.
func (*FnetDocumentMutation) ResetFundMarketName ¶
func (m *FnetDocumentMutation) ResetFundMarketName()
ResetFundMarketName resets all changes to the "fund_market_name" field.
func (*FnetDocumentMutation) ResetHighPriority ¶
func (m *FnetDocumentMutation) ResetHighPriority()
ResetHighPriority resets all changes to the "high_priority" field.
func (*FnetDocumentMutation) ResetReferenceDate ¶
func (m *FnetDocumentMutation) ResetReferenceDate()
ResetReferenceDate resets all changes to the "reference_date" field.
func (*FnetDocumentMutation) ResetReferenceDateFormat ¶
func (m *FnetDocumentMutation) ResetReferenceDateFormat()
ResetReferenceDateFormat resets all changes to the "reference_date_format" field.
func (*FnetDocumentMutation) ResetReferenceDateStr ¶
func (m *FnetDocumentMutation) ResetReferenceDateStr()
ResetReferenceDateStr resets all changes to the "reference_date_str" field.
func (*FnetDocumentMutation) ResetReviewed ¶
func (m *FnetDocumentMutation) ResetReviewed()
ResetReviewed resets all changes to the "reviewed" field.
func (*FnetDocumentMutation) ResetStatus ¶
func (m *FnetDocumentMutation) ResetStatus()
ResetStatus resets all changes to the "status" field.
func (*FnetDocumentMutation) ResetSubCategory1 ¶
func (m *FnetDocumentMutation) ResetSubCategory1()
ResetSubCategory1 resets all changes to the "sub_category1" edge.
func (*FnetDocumentMutation) ResetSubCategory1Str ¶
func (m *FnetDocumentMutation) ResetSubCategory1Str()
ResetSubCategory1Str resets all changes to the "sub_category1_str" field.
func (*FnetDocumentMutation) ResetSubCategory2 ¶
func (m *FnetDocumentMutation) ResetSubCategory2()
ResetSubCategory2 resets all changes to the "sub_category2" edge.
func (*FnetDocumentMutation) ResetSubCategory2Str ¶
func (m *FnetDocumentMutation) ResetSubCategory2Str()
ResetSubCategory2Str resets all changes to the "sub_category2_str" field.
func (*FnetDocumentMutation) ResetSubmissionDate ¶
func (m *FnetDocumentMutation) ResetSubmissionDate()
ResetSubmissionDate resets all changes to the "submission_date" field.
func (*FnetDocumentMutation) ResetSubmissionDateStr ¶
func (m *FnetDocumentMutation) ResetSubmissionDateStr()
ResetSubmissionDateStr resets all changes to the "submission_date_str" field.
func (*FnetDocumentMutation) ResetSubmissionMethod ¶
func (m *FnetDocumentMutation) ResetSubmissionMethod()
ResetSubmissionMethod resets all changes to the "submission_method" field.
func (*FnetDocumentMutation) ResetSubmissionMethodDescription ¶
func (m *FnetDocumentMutation) ResetSubmissionMethodDescription()
ResetSubmissionMethodDescription resets all changes to the "submission_method_description" field.
func (*FnetDocumentMutation) ResetSubmissionStatus ¶
func (m *FnetDocumentMutation) ResetSubmissionStatus()
ResetSubmissionStatus resets all changes to the "submission_status" field.
func (*FnetDocumentMutation) ResetSubmissionStatusDescription ¶
func (m *FnetDocumentMutation) ResetSubmissionStatusDescription()
ResetSubmissionStatusDescription resets all changes to the "submission_status_description" field.
func (*FnetDocumentMutation) ResetVersion ¶
func (m *FnetDocumentMutation) ResetVersion()
ResetVersion resets all changes to the "version" field.
func (*FnetDocumentMutation) Reviewed ¶
func (m *FnetDocumentMutation) Reviewed() (r string, exists bool)
Reviewed returns the value of the "reviewed" field in the mutation.
func (*FnetDocumentMutation) SetAdditionalInformation ¶
func (m *FnetDocumentMutation) SetAdditionalInformation(s string)
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentMutation) SetCategoryID ¶
func (m *FnetDocumentMutation) SetCategoryID(id int)
SetCategoryID sets the "category" edge to the FnetCategory entity by id.
func (*FnetDocumentMutation) SetCategoryStr ¶
func (m *FnetDocumentMutation) SetCategoryStr(s string)
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentMutation) SetField ¶
func (m *FnetDocumentMutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetDocumentMutation) SetFnetID ¶
func (m *FnetDocumentMutation) SetFnetID(i int)
SetFnetID sets the "fnet_id" field.
func (*FnetDocumentMutation) SetFundDescription ¶
func (m *FnetDocumentMutation) SetFundDescription(s string)
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentMutation) SetFundMarketName ¶
func (m *FnetDocumentMutation) SetFundMarketName(s string)
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentMutation) SetHighPriority ¶
func (m *FnetDocumentMutation) SetHighPriority(b bool)
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentMutation) SetOp ¶
func (m *FnetDocumentMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*FnetDocumentMutation) SetReferenceDate ¶
func (m *FnetDocumentMutation) SetReferenceDate(t time.Time)
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentMutation) SetReferenceDateFormat ¶
func (m *FnetDocumentMutation) SetReferenceDateFormat(s string)
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentMutation) SetReferenceDateStr ¶
func (m *FnetDocumentMutation) SetReferenceDateStr(s string)
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentMutation) SetReviewed ¶
func (m *FnetDocumentMutation) SetReviewed(s string)
SetReviewed sets the "reviewed" field.
func (*FnetDocumentMutation) SetStatus ¶
func (m *FnetDocumentMutation) SetStatus(s string)
SetStatus sets the "status" field.
func (*FnetDocumentMutation) SetSubCategory1ID ¶
func (m *FnetDocumentMutation) SetSubCategory1ID(id int)
SetSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by id.
func (*FnetDocumentMutation) SetSubCategory1Str ¶
func (m *FnetDocumentMutation) SetSubCategory1Str(s string)
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentMutation) SetSubCategory2ID ¶
func (m *FnetDocumentMutation) SetSubCategory2ID(id int)
SetSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by id.
func (*FnetDocumentMutation) SetSubCategory2Str ¶
func (m *FnetDocumentMutation) SetSubCategory2Str(s string)
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentMutation) SetSubmissionDate ¶
func (m *FnetDocumentMutation) SetSubmissionDate(t time.Time)
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentMutation) SetSubmissionDateStr ¶
func (m *FnetDocumentMutation) SetSubmissionDateStr(s string)
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentMutation) SetSubmissionMethod ¶
func (m *FnetDocumentMutation) SetSubmissionMethod(s string)
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentMutation) SetSubmissionMethodDescription ¶
func (m *FnetDocumentMutation) SetSubmissionMethodDescription(s string)
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentMutation) SetSubmissionStatus ¶
func (m *FnetDocumentMutation) SetSubmissionStatus(s string)
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentMutation) SetSubmissionStatusDescription ¶
func (m *FnetDocumentMutation) SetSubmissionStatusDescription(s string)
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentMutation) SetVersion ¶
func (m *FnetDocumentMutation) SetVersion(i int)
SetVersion sets the "version" field.
func (*FnetDocumentMutation) Status ¶
func (m *FnetDocumentMutation) Status() (r string, exists bool)
Status returns the value of the "status" field in the mutation.
func (*FnetDocumentMutation) SubCategory1Cleared ¶
func (m *FnetDocumentMutation) SubCategory1Cleared() bool
SubCategory1Cleared reports if the "sub_category1" edge to the FnetSubCategory1 entity was cleared.
func (*FnetDocumentMutation) SubCategory1ID ¶
func (m *FnetDocumentMutation) SubCategory1ID() (id int, exists bool)
SubCategory1ID returns the "sub_category1" edge ID in the mutation.
func (*FnetDocumentMutation) SubCategory1IDs ¶
func (m *FnetDocumentMutation) SubCategory1IDs() (ids []int)
SubCategory1IDs returns the "sub_category1" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SubCategory1ID instead. It exists only for internal usage by the builders.
func (*FnetDocumentMutation) SubCategory1Str ¶
func (m *FnetDocumentMutation) SubCategory1Str() (r string, exists bool)
SubCategory1Str returns the value of the "sub_category1_str" field in the mutation.
func (*FnetDocumentMutation) SubCategory1StrCleared ¶
func (m *FnetDocumentMutation) SubCategory1StrCleared() bool
SubCategory1StrCleared returns if the "sub_category1_str" field was cleared in this mutation.
func (*FnetDocumentMutation) SubCategory2Cleared ¶
func (m *FnetDocumentMutation) SubCategory2Cleared() bool
SubCategory2Cleared reports if the "sub_category2" edge to the FnetSubCategory2 entity was cleared.
func (*FnetDocumentMutation) SubCategory2ID ¶
func (m *FnetDocumentMutation) SubCategory2ID() (id int, exists bool)
SubCategory2ID returns the "sub_category2" edge ID in the mutation.
func (*FnetDocumentMutation) SubCategory2IDs ¶
func (m *FnetDocumentMutation) SubCategory2IDs() (ids []int)
SubCategory2IDs returns the "sub_category2" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use SubCategory2ID instead. It exists only for internal usage by the builders.
func (*FnetDocumentMutation) SubCategory2Str ¶
func (m *FnetDocumentMutation) SubCategory2Str() (r string, exists bool)
SubCategory2Str returns the value of the "sub_category2_str" field in the mutation.
func (*FnetDocumentMutation) SubCategory2StrCleared ¶
func (m *FnetDocumentMutation) SubCategory2StrCleared() bool
SubCategory2StrCleared returns if the "sub_category2_str" field was cleared in this mutation.
func (*FnetDocumentMutation) SubmissionDate ¶
func (m *FnetDocumentMutation) SubmissionDate() (r time.Time, exists bool)
SubmissionDate returns the value of the "submission_date" field in the mutation.
func (*FnetDocumentMutation) SubmissionDateStr ¶
func (m *FnetDocumentMutation) SubmissionDateStr() (r string, exists bool)
SubmissionDateStr returns the value of the "submission_date_str" field in the mutation.
func (*FnetDocumentMutation) SubmissionMethod ¶
func (m *FnetDocumentMutation) SubmissionMethod() (r string, exists bool)
SubmissionMethod returns the value of the "submission_method" field in the mutation.
func (*FnetDocumentMutation) SubmissionMethodDescription ¶
func (m *FnetDocumentMutation) SubmissionMethodDescription() (r string, exists bool)
SubmissionMethodDescription returns the value of the "submission_method_description" field in the mutation.
func (*FnetDocumentMutation) SubmissionStatus ¶
func (m *FnetDocumentMutation) SubmissionStatus() (r string, exists bool)
SubmissionStatus returns the value of the "submission_status" field in the mutation.
func (*FnetDocumentMutation) SubmissionStatusDescription ¶
func (m *FnetDocumentMutation) SubmissionStatusDescription() (r string, exists bool)
SubmissionStatusDescription returns the value of the "submission_status_description" field in the mutation.
func (FnetDocumentMutation) Tx ¶
func (m FnetDocumentMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FnetDocumentMutation) Type ¶
func (m *FnetDocumentMutation) Type() string
Type returns the node type of this mutation (FnetDocument).
func (*FnetDocumentMutation) Version ¶
func (m *FnetDocumentMutation) Version() (r int, exists bool)
Version returns the value of the "version" field in the mutation.
func (*FnetDocumentMutation) Where ¶
func (m *FnetDocumentMutation) Where(ps ...predicate.FnetDocument)
Where appends a list predicates to the FnetDocumentMutation builder.
func (*FnetDocumentMutation) WhereP ¶
func (m *FnetDocumentMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FnetDocumentMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FnetDocumentQuery ¶
type FnetDocumentQuery struct {
// contains filtered or unexported fields
}
FnetDocumentQuery is the builder for querying FnetDocument entities.
func (*FnetDocumentQuery) Aggregate ¶
func (fdq *FnetDocumentQuery) Aggregate(fns ...AggregateFunc) *FnetDocumentSelect
Aggregate returns a FnetDocumentSelect configured with the given aggregations.
func (*FnetDocumentQuery) All ¶
func (fdq *FnetDocumentQuery) All(ctx context.Context) ([]*FnetDocument, error)
All executes the query and returns a list of FnetDocuments.
func (*FnetDocumentQuery) AllX ¶
func (fdq *FnetDocumentQuery) AllX(ctx context.Context) []*FnetDocument
AllX is like All, but panics if an error occurs.
func (*FnetDocumentQuery) Clone ¶
func (fdq *FnetDocumentQuery) Clone() *FnetDocumentQuery
Clone returns a duplicate of the FnetDocumentQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FnetDocumentQuery) Count ¶
func (fdq *FnetDocumentQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FnetDocumentQuery) CountX ¶
func (fdq *FnetDocumentQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FnetDocumentQuery) Exist ¶
func (fdq *FnetDocumentQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FnetDocumentQuery) ExistX ¶
func (fdq *FnetDocumentQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FnetDocumentQuery) First ¶
func (fdq *FnetDocumentQuery) First(ctx context.Context) (*FnetDocument, error)
First returns the first FnetDocument entity from the query. Returns a *NotFoundError when no FnetDocument was found.
func (*FnetDocumentQuery) FirstID ¶
func (fdq *FnetDocumentQuery) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first FnetDocument ID from the query. Returns a *NotFoundError when no FnetDocument ID was found.
func (*FnetDocumentQuery) FirstIDX ¶
func (fdq *FnetDocumentQuery) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*FnetDocumentQuery) FirstX ¶
func (fdq *FnetDocumentQuery) FirstX(ctx context.Context) *FnetDocument
FirstX is like First, but panics if an error occurs.
func (*FnetDocumentQuery) GroupBy ¶
func (fdq *FnetDocumentQuery) GroupBy(field string, fields ...string) *FnetDocumentGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { FnetID int `json:"fnet_id,omitempty"` Count int `json:"count,omitempty"` } client.FnetDocument.Query(). GroupBy(fnetdocument.FieldFnetID). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FnetDocumentQuery) IDs ¶
func (fdq *FnetDocumentQuery) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of FnetDocument IDs.
func (*FnetDocumentQuery) IDsX ¶
func (fdq *FnetDocumentQuery) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*FnetDocumentQuery) Limit ¶
func (fdq *FnetDocumentQuery) Limit(limit int) *FnetDocumentQuery
Limit the number of records to be returned by this query.
func (*FnetDocumentQuery) Offset ¶
func (fdq *FnetDocumentQuery) Offset(offset int) *FnetDocumentQuery
Offset to start from.
func (*FnetDocumentQuery) Only ¶
func (fdq *FnetDocumentQuery) Only(ctx context.Context) (*FnetDocument, error)
Only returns a single FnetDocument entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FnetDocument entity is found. Returns a *NotFoundError when no FnetDocument entities are found.
func (*FnetDocumentQuery) OnlyID ¶
func (fdq *FnetDocumentQuery) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only FnetDocument ID in the query. Returns a *NotSingularError when more than one FnetDocument ID is found. Returns a *NotFoundError when no entities are found.
func (*FnetDocumentQuery) OnlyIDX ¶
func (fdq *FnetDocumentQuery) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FnetDocumentQuery) OnlyX ¶
func (fdq *FnetDocumentQuery) OnlyX(ctx context.Context) *FnetDocument
OnlyX is like Only, but panics if an error occurs.
func (*FnetDocumentQuery) Order ¶
func (fdq *FnetDocumentQuery) Order(o ...fnetdocument.OrderOption) *FnetDocumentQuery
Order specifies how the records should be ordered.
func (*FnetDocumentQuery) QueryCategory ¶
func (fdq *FnetDocumentQuery) QueryCategory() *FnetCategoryQuery
QueryCategory chains the current query on the "category" edge.
func (*FnetDocumentQuery) QuerySubCategory1 ¶
func (fdq *FnetDocumentQuery) QuerySubCategory1() *FnetSubCategory1Query
QuerySubCategory1 chains the current query on the "sub_category1" edge.
func (*FnetDocumentQuery) QuerySubCategory2 ¶
func (fdq *FnetDocumentQuery) QuerySubCategory2() *FnetSubCategory2Query
QuerySubCategory2 chains the current query on the "sub_category2" edge.
func (*FnetDocumentQuery) Select ¶
func (fdq *FnetDocumentQuery) Select(fields ...string) *FnetDocumentSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { FnetID int `json:"fnet_id,omitempty"` } client.FnetDocument.Query(). Select(fnetdocument.FieldFnetID). Scan(ctx, &v)
func (*FnetDocumentQuery) Unique ¶
func (fdq *FnetDocumentQuery) Unique(unique bool) *FnetDocumentQuery
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*FnetDocumentQuery) Where ¶
func (fdq *FnetDocumentQuery) Where(ps ...predicate.FnetDocument) *FnetDocumentQuery
Where adds a new predicate for the FnetDocumentQuery builder.
func (*FnetDocumentQuery) WithCategory ¶
func (fdq *FnetDocumentQuery) WithCategory(opts ...func(*FnetCategoryQuery)) *FnetDocumentQuery
WithCategory tells the query-builder to eager-load the nodes that are connected to the "category" edge. The optional arguments are used to configure the query builder of the edge.
func (*FnetDocumentQuery) WithSubCategory1 ¶
func (fdq *FnetDocumentQuery) WithSubCategory1(opts ...func(*FnetSubCategory1Query)) *FnetDocumentQuery
WithSubCategory1 tells the query-builder to eager-load the nodes that are connected to the "sub_category1" edge. The optional arguments are used to configure the query builder of the edge.
func (*FnetDocumentQuery) WithSubCategory2 ¶
func (fdq *FnetDocumentQuery) WithSubCategory2(opts ...func(*FnetSubCategory2Query)) *FnetDocumentQuery
WithSubCategory2 tells the query-builder to eager-load the nodes that are connected to the "sub_category2" edge. The optional arguments are used to configure the query builder of the edge.
type FnetDocumentSelect ¶
type FnetDocumentSelect struct { *FnetDocumentQuery // contains filtered or unexported fields }
FnetDocumentSelect is the builder for selecting fields of FnetDocument entities.
func (*FnetDocumentSelect) Aggregate ¶
func (fds *FnetDocumentSelect) Aggregate(fns ...AggregateFunc) *FnetDocumentSelect
Aggregate adds the given aggregation functions to the selector query.
func (*FnetDocumentSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetDocumentSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetDocumentSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetDocumentSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetDocumentSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetDocumentSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetDocumentSelect) Scan ¶
func (fds *FnetDocumentSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetDocumentSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetDocumentUpdate ¶
type FnetDocumentUpdate struct {
// contains filtered or unexported fields
}
FnetDocumentUpdate is the builder for updating FnetDocument entities.
func (*FnetDocumentUpdate) AddVersion ¶
func (fdu *FnetDocumentUpdate) AddVersion(i int) *FnetDocumentUpdate
AddVersion adds i to the "version" field.
func (*FnetDocumentUpdate) ClearAdditionalInformation ¶
func (fdu *FnetDocumentUpdate) ClearAdditionalInformation() *FnetDocumentUpdate
ClearAdditionalInformation clears the value of the "additional_information" field.
func (*FnetDocumentUpdate) ClearCategory ¶
func (fdu *FnetDocumentUpdate) ClearCategory() *FnetDocumentUpdate
ClearCategory clears the "category" edge to the FnetCategory entity.
func (*FnetDocumentUpdate) ClearFundMarketName ¶
func (fdu *FnetDocumentUpdate) ClearFundMarketName() *FnetDocumentUpdate
ClearFundMarketName clears the value of the "fund_market_name" field.
func (*FnetDocumentUpdate) ClearSubCategory1 ¶
func (fdu *FnetDocumentUpdate) ClearSubCategory1() *FnetDocumentUpdate
ClearSubCategory1 clears the "sub_category1" edge to the FnetSubCategory1 entity.
func (*FnetDocumentUpdate) ClearSubCategory1Str ¶
func (fdu *FnetDocumentUpdate) ClearSubCategory1Str() *FnetDocumentUpdate
ClearSubCategory1Str clears the value of the "sub_category1_str" field.
func (*FnetDocumentUpdate) ClearSubCategory2 ¶
func (fdu *FnetDocumentUpdate) ClearSubCategory2() *FnetDocumentUpdate
ClearSubCategory2 clears the "sub_category2" edge to the FnetSubCategory2 entity.
func (*FnetDocumentUpdate) ClearSubCategory2Str ¶
func (fdu *FnetDocumentUpdate) ClearSubCategory2Str() *FnetDocumentUpdate
ClearSubCategory2Str clears the value of the "sub_category2_str" field.
func (*FnetDocumentUpdate) Exec ¶
func (fdu *FnetDocumentUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetDocumentUpdate) ExecX ¶
func (fdu *FnetDocumentUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentUpdate) Mutation ¶
func (fdu *FnetDocumentUpdate) Mutation() *FnetDocumentMutation
Mutation returns the FnetDocumentMutation object of the builder.
func (*FnetDocumentUpdate) Save ¶
func (fdu *FnetDocumentUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FnetDocumentUpdate) SaveX ¶
func (fdu *FnetDocumentUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FnetDocumentUpdate) SetAdditionalInformation ¶
func (fdu *FnetDocumentUpdate) SetAdditionalInformation(s string) *FnetDocumentUpdate
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentUpdate) SetCategory ¶
func (fdu *FnetDocumentUpdate) SetCategory(f *FnetCategory) *FnetDocumentUpdate
SetCategory sets the "category" edge to the FnetCategory entity.
func (*FnetDocumentUpdate) SetCategoryID ¶
func (fdu *FnetDocumentUpdate) SetCategoryID(id int) *FnetDocumentUpdate
SetCategoryID sets the "category" edge to the FnetCategory entity by ID.
func (*FnetDocumentUpdate) SetCategoryStr ¶
func (fdu *FnetDocumentUpdate) SetCategoryStr(s string) *FnetDocumentUpdate
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentUpdate) SetFundDescription ¶
func (fdu *FnetDocumentUpdate) SetFundDescription(s string) *FnetDocumentUpdate
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentUpdate) SetFundMarketName ¶
func (fdu *FnetDocumentUpdate) SetFundMarketName(s string) *FnetDocumentUpdate
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentUpdate) SetHighPriority ¶
func (fdu *FnetDocumentUpdate) SetHighPriority(b bool) *FnetDocumentUpdate
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentUpdate) SetNillableAdditionalInformation ¶
func (fdu *FnetDocumentUpdate) SetNillableAdditionalInformation(s *string) *FnetDocumentUpdate
SetNillableAdditionalInformation sets the "additional_information" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableCategoryStr ¶
func (fdu *FnetDocumentUpdate) SetNillableCategoryStr(s *string) *FnetDocumentUpdate
SetNillableCategoryStr sets the "category_str" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableFundDescription ¶
func (fdu *FnetDocumentUpdate) SetNillableFundDescription(s *string) *FnetDocumentUpdate
SetNillableFundDescription sets the "fund_description" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableFundMarketName ¶
func (fdu *FnetDocumentUpdate) SetNillableFundMarketName(s *string) *FnetDocumentUpdate
SetNillableFundMarketName sets the "fund_market_name" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableHighPriority ¶
func (fdu *FnetDocumentUpdate) SetNillableHighPriority(b *bool) *FnetDocumentUpdate
SetNillableHighPriority sets the "high_priority" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableReferenceDate ¶
func (fdu *FnetDocumentUpdate) SetNillableReferenceDate(t *time.Time) *FnetDocumentUpdate
SetNillableReferenceDate sets the "reference_date" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableReferenceDateFormat ¶
func (fdu *FnetDocumentUpdate) SetNillableReferenceDateFormat(s *string) *FnetDocumentUpdate
SetNillableReferenceDateFormat sets the "reference_date_format" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableReferenceDateStr ¶
func (fdu *FnetDocumentUpdate) SetNillableReferenceDateStr(s *string) *FnetDocumentUpdate
SetNillableReferenceDateStr sets the "reference_date_str" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableReviewed ¶
func (fdu *FnetDocumentUpdate) SetNillableReviewed(s *string) *FnetDocumentUpdate
SetNillableReviewed sets the "reviewed" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableStatus ¶
func (fdu *FnetDocumentUpdate) SetNillableStatus(s *string) *FnetDocumentUpdate
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubCategory1ID ¶
func (fdu *FnetDocumentUpdate) SetNillableSubCategory1ID(id *int) *FnetDocumentUpdate
SetNillableSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by ID if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubCategory1Str ¶
func (fdu *FnetDocumentUpdate) SetNillableSubCategory1Str(s *string) *FnetDocumentUpdate
SetNillableSubCategory1Str sets the "sub_category1_str" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubCategory2ID ¶
func (fdu *FnetDocumentUpdate) SetNillableSubCategory2ID(id *int) *FnetDocumentUpdate
SetNillableSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by ID if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubCategory2Str ¶
func (fdu *FnetDocumentUpdate) SetNillableSubCategory2Str(s *string) *FnetDocumentUpdate
SetNillableSubCategory2Str sets the "sub_category2_str" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubmissionDate ¶
func (fdu *FnetDocumentUpdate) SetNillableSubmissionDate(t *time.Time) *FnetDocumentUpdate
SetNillableSubmissionDate sets the "submission_date" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubmissionDateStr ¶
func (fdu *FnetDocumentUpdate) SetNillableSubmissionDateStr(s *string) *FnetDocumentUpdate
SetNillableSubmissionDateStr sets the "submission_date_str" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubmissionMethod ¶
func (fdu *FnetDocumentUpdate) SetNillableSubmissionMethod(s *string) *FnetDocumentUpdate
SetNillableSubmissionMethod sets the "submission_method" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubmissionMethodDescription ¶
func (fdu *FnetDocumentUpdate) SetNillableSubmissionMethodDescription(s *string) *FnetDocumentUpdate
SetNillableSubmissionMethodDescription sets the "submission_method_description" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubmissionStatus ¶
func (fdu *FnetDocumentUpdate) SetNillableSubmissionStatus(s *string) *FnetDocumentUpdate
SetNillableSubmissionStatus sets the "submission_status" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableSubmissionStatusDescription ¶
func (fdu *FnetDocumentUpdate) SetNillableSubmissionStatusDescription(s *string) *FnetDocumentUpdate
SetNillableSubmissionStatusDescription sets the "submission_status_description" field if the given value is not nil.
func (*FnetDocumentUpdate) SetNillableVersion ¶
func (fdu *FnetDocumentUpdate) SetNillableVersion(i *int) *FnetDocumentUpdate
SetNillableVersion sets the "version" field if the given value is not nil.
func (*FnetDocumentUpdate) SetReferenceDate ¶
func (fdu *FnetDocumentUpdate) SetReferenceDate(t time.Time) *FnetDocumentUpdate
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentUpdate) SetReferenceDateFormat ¶
func (fdu *FnetDocumentUpdate) SetReferenceDateFormat(s string) *FnetDocumentUpdate
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentUpdate) SetReferenceDateStr ¶
func (fdu *FnetDocumentUpdate) SetReferenceDateStr(s string) *FnetDocumentUpdate
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentUpdate) SetReviewed ¶
func (fdu *FnetDocumentUpdate) SetReviewed(s string) *FnetDocumentUpdate
SetReviewed sets the "reviewed" field.
func (*FnetDocumentUpdate) SetStatus ¶
func (fdu *FnetDocumentUpdate) SetStatus(s string) *FnetDocumentUpdate
SetStatus sets the "status" field.
func (*FnetDocumentUpdate) SetSubCategory1 ¶
func (fdu *FnetDocumentUpdate) SetSubCategory1(f *FnetSubCategory1) *FnetDocumentUpdate
SetSubCategory1 sets the "sub_category1" edge to the FnetSubCategory1 entity.
func (*FnetDocumentUpdate) SetSubCategory1ID ¶
func (fdu *FnetDocumentUpdate) SetSubCategory1ID(id int) *FnetDocumentUpdate
SetSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by ID.
func (*FnetDocumentUpdate) SetSubCategory1Str ¶
func (fdu *FnetDocumentUpdate) SetSubCategory1Str(s string) *FnetDocumentUpdate
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentUpdate) SetSubCategory2 ¶
func (fdu *FnetDocumentUpdate) SetSubCategory2(f *FnetSubCategory2) *FnetDocumentUpdate
SetSubCategory2 sets the "sub_category2" edge to the FnetSubCategory2 entity.
func (*FnetDocumentUpdate) SetSubCategory2ID ¶
func (fdu *FnetDocumentUpdate) SetSubCategory2ID(id int) *FnetDocumentUpdate
SetSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by ID.
func (*FnetDocumentUpdate) SetSubCategory2Str ¶
func (fdu *FnetDocumentUpdate) SetSubCategory2Str(s string) *FnetDocumentUpdate
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentUpdate) SetSubmissionDate ¶
func (fdu *FnetDocumentUpdate) SetSubmissionDate(t time.Time) *FnetDocumentUpdate
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentUpdate) SetSubmissionDateStr ¶
func (fdu *FnetDocumentUpdate) SetSubmissionDateStr(s string) *FnetDocumentUpdate
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentUpdate) SetSubmissionMethod ¶
func (fdu *FnetDocumentUpdate) SetSubmissionMethod(s string) *FnetDocumentUpdate
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentUpdate) SetSubmissionMethodDescription ¶
func (fdu *FnetDocumentUpdate) SetSubmissionMethodDescription(s string) *FnetDocumentUpdate
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentUpdate) SetSubmissionStatus ¶
func (fdu *FnetDocumentUpdate) SetSubmissionStatus(s string) *FnetDocumentUpdate
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentUpdate) SetSubmissionStatusDescription ¶
func (fdu *FnetDocumentUpdate) SetSubmissionStatusDescription(s string) *FnetDocumentUpdate
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentUpdate) SetVersion ¶
func (fdu *FnetDocumentUpdate) SetVersion(i int) *FnetDocumentUpdate
SetVersion sets the "version" field.
func (*FnetDocumentUpdate) Where ¶
func (fdu *FnetDocumentUpdate) Where(ps ...predicate.FnetDocument) *FnetDocumentUpdate
Where appends a list predicates to the FnetDocumentUpdate builder.
type FnetDocumentUpdateOne ¶
type FnetDocumentUpdateOne struct {
// contains filtered or unexported fields
}
FnetDocumentUpdateOne is the builder for updating a single FnetDocument entity.
func (*FnetDocumentUpdateOne) AddVersion ¶
func (fduo *FnetDocumentUpdateOne) AddVersion(i int) *FnetDocumentUpdateOne
AddVersion adds i to the "version" field.
func (*FnetDocumentUpdateOne) ClearAdditionalInformation ¶
func (fduo *FnetDocumentUpdateOne) ClearAdditionalInformation() *FnetDocumentUpdateOne
ClearAdditionalInformation clears the value of the "additional_information" field.
func (*FnetDocumentUpdateOne) ClearCategory ¶
func (fduo *FnetDocumentUpdateOne) ClearCategory() *FnetDocumentUpdateOne
ClearCategory clears the "category" edge to the FnetCategory entity.
func (*FnetDocumentUpdateOne) ClearFundMarketName ¶
func (fduo *FnetDocumentUpdateOne) ClearFundMarketName() *FnetDocumentUpdateOne
ClearFundMarketName clears the value of the "fund_market_name" field.
func (*FnetDocumentUpdateOne) ClearSubCategory1 ¶
func (fduo *FnetDocumentUpdateOne) ClearSubCategory1() *FnetDocumentUpdateOne
ClearSubCategory1 clears the "sub_category1" edge to the FnetSubCategory1 entity.
func (*FnetDocumentUpdateOne) ClearSubCategory1Str ¶
func (fduo *FnetDocumentUpdateOne) ClearSubCategory1Str() *FnetDocumentUpdateOne
ClearSubCategory1Str clears the value of the "sub_category1_str" field.
func (*FnetDocumentUpdateOne) ClearSubCategory2 ¶
func (fduo *FnetDocumentUpdateOne) ClearSubCategory2() *FnetDocumentUpdateOne
ClearSubCategory2 clears the "sub_category2" edge to the FnetSubCategory2 entity.
func (*FnetDocumentUpdateOne) ClearSubCategory2Str ¶
func (fduo *FnetDocumentUpdateOne) ClearSubCategory2Str() *FnetDocumentUpdateOne
ClearSubCategory2Str clears the value of the "sub_category2_str" field.
func (*FnetDocumentUpdateOne) Exec ¶
func (fduo *FnetDocumentUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FnetDocumentUpdateOne) ExecX ¶
func (fduo *FnetDocumentUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentUpdateOne) Mutation ¶
func (fduo *FnetDocumentUpdateOne) Mutation() *FnetDocumentMutation
Mutation returns the FnetDocumentMutation object of the builder.
func (*FnetDocumentUpdateOne) Save ¶
func (fduo *FnetDocumentUpdateOne) Save(ctx context.Context) (*FnetDocument, error)
Save executes the query and returns the updated FnetDocument entity.
func (*FnetDocumentUpdateOne) SaveX ¶
func (fduo *FnetDocumentUpdateOne) SaveX(ctx context.Context) *FnetDocument
SaveX is like Save, but panics if an error occurs.
func (*FnetDocumentUpdateOne) Select ¶
func (fduo *FnetDocumentUpdateOne) Select(field string, fields ...string) *FnetDocumentUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FnetDocumentUpdateOne) SetAdditionalInformation ¶
func (fduo *FnetDocumentUpdateOne) SetAdditionalInformation(s string) *FnetDocumentUpdateOne
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentUpdateOne) SetCategory ¶
func (fduo *FnetDocumentUpdateOne) SetCategory(f *FnetCategory) *FnetDocumentUpdateOne
SetCategory sets the "category" edge to the FnetCategory entity.
func (*FnetDocumentUpdateOne) SetCategoryID ¶
func (fduo *FnetDocumentUpdateOne) SetCategoryID(id int) *FnetDocumentUpdateOne
SetCategoryID sets the "category" edge to the FnetCategory entity by ID.
func (*FnetDocumentUpdateOne) SetCategoryStr ¶
func (fduo *FnetDocumentUpdateOne) SetCategoryStr(s string) *FnetDocumentUpdateOne
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentUpdateOne) SetFundDescription ¶
func (fduo *FnetDocumentUpdateOne) SetFundDescription(s string) *FnetDocumentUpdateOne
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentUpdateOne) SetFundMarketName ¶
func (fduo *FnetDocumentUpdateOne) SetFundMarketName(s string) *FnetDocumentUpdateOne
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentUpdateOne) SetHighPriority ¶
func (fduo *FnetDocumentUpdateOne) SetHighPriority(b bool) *FnetDocumentUpdateOne
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentUpdateOne) SetNillableAdditionalInformation ¶
func (fduo *FnetDocumentUpdateOne) SetNillableAdditionalInformation(s *string) *FnetDocumentUpdateOne
SetNillableAdditionalInformation sets the "additional_information" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableCategoryStr ¶
func (fduo *FnetDocumentUpdateOne) SetNillableCategoryStr(s *string) *FnetDocumentUpdateOne
SetNillableCategoryStr sets the "category_str" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableFundDescription ¶
func (fduo *FnetDocumentUpdateOne) SetNillableFundDescription(s *string) *FnetDocumentUpdateOne
SetNillableFundDescription sets the "fund_description" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableFundMarketName ¶
func (fduo *FnetDocumentUpdateOne) SetNillableFundMarketName(s *string) *FnetDocumentUpdateOne
SetNillableFundMarketName sets the "fund_market_name" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableHighPriority ¶
func (fduo *FnetDocumentUpdateOne) SetNillableHighPriority(b *bool) *FnetDocumentUpdateOne
SetNillableHighPriority sets the "high_priority" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableReferenceDate ¶
func (fduo *FnetDocumentUpdateOne) SetNillableReferenceDate(t *time.Time) *FnetDocumentUpdateOne
SetNillableReferenceDate sets the "reference_date" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableReferenceDateFormat ¶
func (fduo *FnetDocumentUpdateOne) SetNillableReferenceDateFormat(s *string) *FnetDocumentUpdateOne
SetNillableReferenceDateFormat sets the "reference_date_format" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableReferenceDateStr ¶
func (fduo *FnetDocumentUpdateOne) SetNillableReferenceDateStr(s *string) *FnetDocumentUpdateOne
SetNillableReferenceDateStr sets the "reference_date_str" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableReviewed ¶
func (fduo *FnetDocumentUpdateOne) SetNillableReviewed(s *string) *FnetDocumentUpdateOne
SetNillableReviewed sets the "reviewed" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableStatus ¶
func (fduo *FnetDocumentUpdateOne) SetNillableStatus(s *string) *FnetDocumentUpdateOne
SetNillableStatus sets the "status" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubCategory1ID ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory1ID(id *int) *FnetDocumentUpdateOne
SetNillableSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by ID if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubCategory1Str ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory1Str(s *string) *FnetDocumentUpdateOne
SetNillableSubCategory1Str sets the "sub_category1_str" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubCategory2ID ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory2ID(id *int) *FnetDocumentUpdateOne
SetNillableSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by ID if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubCategory2Str ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubCategory2Str(s *string) *FnetDocumentUpdateOne
SetNillableSubCategory2Str sets the "sub_category2_str" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubmissionDate ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionDate(t *time.Time) *FnetDocumentUpdateOne
SetNillableSubmissionDate sets the "submission_date" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubmissionDateStr ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionDateStr(s *string) *FnetDocumentUpdateOne
SetNillableSubmissionDateStr sets the "submission_date_str" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubmissionMethod ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionMethod(s *string) *FnetDocumentUpdateOne
SetNillableSubmissionMethod sets the "submission_method" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubmissionMethodDescription ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionMethodDescription(s *string) *FnetDocumentUpdateOne
SetNillableSubmissionMethodDescription sets the "submission_method_description" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubmissionStatus ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionStatus(s *string) *FnetDocumentUpdateOne
SetNillableSubmissionStatus sets the "submission_status" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableSubmissionStatusDescription ¶
func (fduo *FnetDocumentUpdateOne) SetNillableSubmissionStatusDescription(s *string) *FnetDocumentUpdateOne
SetNillableSubmissionStatusDescription sets the "submission_status_description" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetNillableVersion ¶
func (fduo *FnetDocumentUpdateOne) SetNillableVersion(i *int) *FnetDocumentUpdateOne
SetNillableVersion sets the "version" field if the given value is not nil.
func (*FnetDocumentUpdateOne) SetReferenceDate ¶
func (fduo *FnetDocumentUpdateOne) SetReferenceDate(t time.Time) *FnetDocumentUpdateOne
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentUpdateOne) SetReferenceDateFormat ¶
func (fduo *FnetDocumentUpdateOne) SetReferenceDateFormat(s string) *FnetDocumentUpdateOne
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentUpdateOne) SetReferenceDateStr ¶
func (fduo *FnetDocumentUpdateOne) SetReferenceDateStr(s string) *FnetDocumentUpdateOne
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentUpdateOne) SetReviewed ¶
func (fduo *FnetDocumentUpdateOne) SetReviewed(s string) *FnetDocumentUpdateOne
SetReviewed sets the "reviewed" field.
func (*FnetDocumentUpdateOne) SetStatus ¶
func (fduo *FnetDocumentUpdateOne) SetStatus(s string) *FnetDocumentUpdateOne
SetStatus sets the "status" field.
func (*FnetDocumentUpdateOne) SetSubCategory1 ¶
func (fduo *FnetDocumentUpdateOne) SetSubCategory1(f *FnetSubCategory1) *FnetDocumentUpdateOne
SetSubCategory1 sets the "sub_category1" edge to the FnetSubCategory1 entity.
func (*FnetDocumentUpdateOne) SetSubCategory1ID ¶
func (fduo *FnetDocumentUpdateOne) SetSubCategory1ID(id int) *FnetDocumentUpdateOne
SetSubCategory1ID sets the "sub_category1" edge to the FnetSubCategory1 entity by ID.
func (*FnetDocumentUpdateOne) SetSubCategory1Str ¶
func (fduo *FnetDocumentUpdateOne) SetSubCategory1Str(s string) *FnetDocumentUpdateOne
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentUpdateOne) SetSubCategory2 ¶
func (fduo *FnetDocumentUpdateOne) SetSubCategory2(f *FnetSubCategory2) *FnetDocumentUpdateOne
SetSubCategory2 sets the "sub_category2" edge to the FnetSubCategory2 entity.
func (*FnetDocumentUpdateOne) SetSubCategory2ID ¶
func (fduo *FnetDocumentUpdateOne) SetSubCategory2ID(id int) *FnetDocumentUpdateOne
SetSubCategory2ID sets the "sub_category2" edge to the FnetSubCategory2 entity by ID.
func (*FnetDocumentUpdateOne) SetSubCategory2Str ¶
func (fduo *FnetDocumentUpdateOne) SetSubCategory2Str(s string) *FnetDocumentUpdateOne
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentUpdateOne) SetSubmissionDate ¶
func (fduo *FnetDocumentUpdateOne) SetSubmissionDate(t time.Time) *FnetDocumentUpdateOne
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentUpdateOne) SetSubmissionDateStr ¶
func (fduo *FnetDocumentUpdateOne) SetSubmissionDateStr(s string) *FnetDocumentUpdateOne
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentUpdateOne) SetSubmissionMethod ¶
func (fduo *FnetDocumentUpdateOne) SetSubmissionMethod(s string) *FnetDocumentUpdateOne
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentUpdateOne) SetSubmissionMethodDescription ¶
func (fduo *FnetDocumentUpdateOne) SetSubmissionMethodDescription(s string) *FnetDocumentUpdateOne
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentUpdateOne) SetSubmissionStatus ¶
func (fduo *FnetDocumentUpdateOne) SetSubmissionStatus(s string) *FnetDocumentUpdateOne
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentUpdateOne) SetSubmissionStatusDescription ¶
func (fduo *FnetDocumentUpdateOne) SetSubmissionStatusDescription(s string) *FnetDocumentUpdateOne
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentUpdateOne) SetVersion ¶
func (fduo *FnetDocumentUpdateOne) SetVersion(i int) *FnetDocumentUpdateOne
SetVersion sets the "version" field.
func (*FnetDocumentUpdateOne) Where ¶
func (fduo *FnetDocumentUpdateOne) Where(ps ...predicate.FnetDocument) *FnetDocumentUpdateOne
Where appends a list predicates to the FnetDocumentUpdate builder.
type FnetDocumentUpsert ¶
FnetDocumentUpsert is the "OnConflict" setter.
func (*FnetDocumentUpsert) AddVersion ¶
func (u *FnetDocumentUpsert) AddVersion(v int) *FnetDocumentUpsert
AddVersion adds v to the "version" field.
func (*FnetDocumentUpsert) ClearAdditionalInformation ¶
func (u *FnetDocumentUpsert) ClearAdditionalInformation() *FnetDocumentUpsert
ClearAdditionalInformation clears the value of the "additional_information" field.
func (*FnetDocumentUpsert) ClearFundMarketName ¶
func (u *FnetDocumentUpsert) ClearFundMarketName() *FnetDocumentUpsert
ClearFundMarketName clears the value of the "fund_market_name" field.
func (*FnetDocumentUpsert) ClearSubCategory1Str ¶
func (u *FnetDocumentUpsert) ClearSubCategory1Str() *FnetDocumentUpsert
ClearSubCategory1Str clears the value of the "sub_category1_str" field.
func (*FnetDocumentUpsert) ClearSubCategory2Str ¶
func (u *FnetDocumentUpsert) ClearSubCategory2Str() *FnetDocumentUpsert
ClearSubCategory2Str clears the value of the "sub_category2_str" field.
func (*FnetDocumentUpsert) SetAdditionalInformation ¶
func (u *FnetDocumentUpsert) SetAdditionalInformation(v string) *FnetDocumentUpsert
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentUpsert) SetCategoryStr ¶
func (u *FnetDocumentUpsert) SetCategoryStr(v string) *FnetDocumentUpsert
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentUpsert) SetFundDescription ¶
func (u *FnetDocumentUpsert) SetFundDescription(v string) *FnetDocumentUpsert
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentUpsert) SetFundMarketName ¶
func (u *FnetDocumentUpsert) SetFundMarketName(v string) *FnetDocumentUpsert
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentUpsert) SetHighPriority ¶
func (u *FnetDocumentUpsert) SetHighPriority(v bool) *FnetDocumentUpsert
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentUpsert) SetReferenceDate ¶
func (u *FnetDocumentUpsert) SetReferenceDate(v time.Time) *FnetDocumentUpsert
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentUpsert) SetReferenceDateFormat ¶
func (u *FnetDocumentUpsert) SetReferenceDateFormat(v string) *FnetDocumentUpsert
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentUpsert) SetReferenceDateStr ¶
func (u *FnetDocumentUpsert) SetReferenceDateStr(v string) *FnetDocumentUpsert
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentUpsert) SetReviewed ¶
func (u *FnetDocumentUpsert) SetReviewed(v string) *FnetDocumentUpsert
SetReviewed sets the "reviewed" field.
func (*FnetDocumentUpsert) SetStatus ¶
func (u *FnetDocumentUpsert) SetStatus(v string) *FnetDocumentUpsert
SetStatus sets the "status" field.
func (*FnetDocumentUpsert) SetSubCategory1Str ¶
func (u *FnetDocumentUpsert) SetSubCategory1Str(v string) *FnetDocumentUpsert
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentUpsert) SetSubCategory2Str ¶
func (u *FnetDocumentUpsert) SetSubCategory2Str(v string) *FnetDocumentUpsert
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentUpsert) SetSubmissionDate ¶
func (u *FnetDocumentUpsert) SetSubmissionDate(v time.Time) *FnetDocumentUpsert
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentUpsert) SetSubmissionDateStr ¶
func (u *FnetDocumentUpsert) SetSubmissionDateStr(v string) *FnetDocumentUpsert
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentUpsert) SetSubmissionMethod ¶
func (u *FnetDocumentUpsert) SetSubmissionMethod(v string) *FnetDocumentUpsert
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentUpsert) SetSubmissionMethodDescription ¶
func (u *FnetDocumentUpsert) SetSubmissionMethodDescription(v string) *FnetDocumentUpsert
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentUpsert) SetSubmissionStatus ¶
func (u *FnetDocumentUpsert) SetSubmissionStatus(v string) *FnetDocumentUpsert
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentUpsert) SetSubmissionStatusDescription ¶
func (u *FnetDocumentUpsert) SetSubmissionStatusDescription(v string) *FnetDocumentUpsert
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentUpsert) SetVersion ¶
func (u *FnetDocumentUpsert) SetVersion(v int) *FnetDocumentUpsert
SetVersion sets the "version" field.
func (*FnetDocumentUpsert) UpdateAdditionalInformation ¶
func (u *FnetDocumentUpsert) UpdateAdditionalInformation() *FnetDocumentUpsert
UpdateAdditionalInformation sets the "additional_information" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateCategoryStr ¶
func (u *FnetDocumentUpsert) UpdateCategoryStr() *FnetDocumentUpsert
UpdateCategoryStr sets the "category_str" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateFundDescription ¶
func (u *FnetDocumentUpsert) UpdateFundDescription() *FnetDocumentUpsert
UpdateFundDescription sets the "fund_description" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateFundMarketName ¶
func (u *FnetDocumentUpsert) UpdateFundMarketName() *FnetDocumentUpsert
UpdateFundMarketName sets the "fund_market_name" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateHighPriority ¶
func (u *FnetDocumentUpsert) UpdateHighPriority() *FnetDocumentUpsert
UpdateHighPriority sets the "high_priority" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateReferenceDate ¶
func (u *FnetDocumentUpsert) UpdateReferenceDate() *FnetDocumentUpsert
UpdateReferenceDate sets the "reference_date" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateReferenceDateFormat ¶
func (u *FnetDocumentUpsert) UpdateReferenceDateFormat() *FnetDocumentUpsert
UpdateReferenceDateFormat sets the "reference_date_format" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateReferenceDateStr ¶
func (u *FnetDocumentUpsert) UpdateReferenceDateStr() *FnetDocumentUpsert
UpdateReferenceDateStr sets the "reference_date_str" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateReviewed ¶
func (u *FnetDocumentUpsert) UpdateReviewed() *FnetDocumentUpsert
UpdateReviewed sets the "reviewed" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateStatus ¶
func (u *FnetDocumentUpsert) UpdateStatus() *FnetDocumentUpsert
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubCategory1Str ¶
func (u *FnetDocumentUpsert) UpdateSubCategory1Str() *FnetDocumentUpsert
UpdateSubCategory1Str sets the "sub_category1_str" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubCategory2Str ¶
func (u *FnetDocumentUpsert) UpdateSubCategory2Str() *FnetDocumentUpsert
UpdateSubCategory2Str sets the "sub_category2_str" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubmissionDate ¶
func (u *FnetDocumentUpsert) UpdateSubmissionDate() *FnetDocumentUpsert
UpdateSubmissionDate sets the "submission_date" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubmissionDateStr ¶
func (u *FnetDocumentUpsert) UpdateSubmissionDateStr() *FnetDocumentUpsert
UpdateSubmissionDateStr sets the "submission_date_str" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubmissionMethod ¶
func (u *FnetDocumentUpsert) UpdateSubmissionMethod() *FnetDocumentUpsert
UpdateSubmissionMethod sets the "submission_method" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubmissionMethodDescription ¶
func (u *FnetDocumentUpsert) UpdateSubmissionMethodDescription() *FnetDocumentUpsert
UpdateSubmissionMethodDescription sets the "submission_method_description" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubmissionStatus ¶
func (u *FnetDocumentUpsert) UpdateSubmissionStatus() *FnetDocumentUpsert
UpdateSubmissionStatus sets the "submission_status" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateSubmissionStatusDescription ¶
func (u *FnetDocumentUpsert) UpdateSubmissionStatusDescription() *FnetDocumentUpsert
UpdateSubmissionStatusDescription sets the "submission_status_description" field to the value that was provided on create.
func (*FnetDocumentUpsert) UpdateVersion ¶
func (u *FnetDocumentUpsert) UpdateVersion() *FnetDocumentUpsert
UpdateVersion sets the "version" field to the value that was provided on create.
type FnetDocumentUpsertBulk ¶
type FnetDocumentUpsertBulk struct {
// contains filtered or unexported fields
}
FnetDocumentUpsertBulk is the builder for "upsert"-ing a bulk of FnetDocument nodes.
func (*FnetDocumentUpsertBulk) AddVersion ¶
func (u *FnetDocumentUpsertBulk) AddVersion(v int) *FnetDocumentUpsertBulk
AddVersion adds v to the "version" field.
func (*FnetDocumentUpsertBulk) ClearAdditionalInformation ¶
func (u *FnetDocumentUpsertBulk) ClearAdditionalInformation() *FnetDocumentUpsertBulk
ClearAdditionalInformation clears the value of the "additional_information" field.
func (*FnetDocumentUpsertBulk) ClearFundMarketName ¶
func (u *FnetDocumentUpsertBulk) ClearFundMarketName() *FnetDocumentUpsertBulk
ClearFundMarketName clears the value of the "fund_market_name" field.
func (*FnetDocumentUpsertBulk) ClearSubCategory1Str ¶
func (u *FnetDocumentUpsertBulk) ClearSubCategory1Str() *FnetDocumentUpsertBulk
ClearSubCategory1Str clears the value of the "sub_category1_str" field.
func (*FnetDocumentUpsertBulk) ClearSubCategory2Str ¶
func (u *FnetDocumentUpsertBulk) ClearSubCategory2Str() *FnetDocumentUpsertBulk
ClearSubCategory2Str clears the value of the "sub_category2_str" field.
func (*FnetDocumentUpsertBulk) DoNothing ¶
func (u *FnetDocumentUpsertBulk) DoNothing() *FnetDocumentUpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetDocumentUpsertBulk) Exec ¶
func (u *FnetDocumentUpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetDocumentUpsertBulk) ExecX ¶
func (u *FnetDocumentUpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentUpsertBulk) Ignore ¶
func (u *FnetDocumentUpsertBulk) Ignore() *FnetDocumentUpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetDocument.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetDocumentUpsertBulk) SetAdditionalInformation ¶
func (u *FnetDocumentUpsertBulk) SetAdditionalInformation(v string) *FnetDocumentUpsertBulk
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentUpsertBulk) SetCategoryStr ¶
func (u *FnetDocumentUpsertBulk) SetCategoryStr(v string) *FnetDocumentUpsertBulk
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentUpsertBulk) SetFundDescription ¶
func (u *FnetDocumentUpsertBulk) SetFundDescription(v string) *FnetDocumentUpsertBulk
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentUpsertBulk) SetFundMarketName ¶
func (u *FnetDocumentUpsertBulk) SetFundMarketName(v string) *FnetDocumentUpsertBulk
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentUpsertBulk) SetHighPriority ¶
func (u *FnetDocumentUpsertBulk) SetHighPriority(v bool) *FnetDocumentUpsertBulk
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentUpsertBulk) SetReferenceDate ¶
func (u *FnetDocumentUpsertBulk) SetReferenceDate(v time.Time) *FnetDocumentUpsertBulk
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentUpsertBulk) SetReferenceDateFormat ¶
func (u *FnetDocumentUpsertBulk) SetReferenceDateFormat(v string) *FnetDocumentUpsertBulk
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentUpsertBulk) SetReferenceDateStr ¶
func (u *FnetDocumentUpsertBulk) SetReferenceDateStr(v string) *FnetDocumentUpsertBulk
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentUpsertBulk) SetReviewed ¶
func (u *FnetDocumentUpsertBulk) SetReviewed(v string) *FnetDocumentUpsertBulk
SetReviewed sets the "reviewed" field.
func (*FnetDocumentUpsertBulk) SetStatus ¶
func (u *FnetDocumentUpsertBulk) SetStatus(v string) *FnetDocumentUpsertBulk
SetStatus sets the "status" field.
func (*FnetDocumentUpsertBulk) SetSubCategory1Str ¶
func (u *FnetDocumentUpsertBulk) SetSubCategory1Str(v string) *FnetDocumentUpsertBulk
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentUpsertBulk) SetSubCategory2Str ¶
func (u *FnetDocumentUpsertBulk) SetSubCategory2Str(v string) *FnetDocumentUpsertBulk
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentUpsertBulk) SetSubmissionDate ¶
func (u *FnetDocumentUpsertBulk) SetSubmissionDate(v time.Time) *FnetDocumentUpsertBulk
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentUpsertBulk) SetSubmissionDateStr ¶
func (u *FnetDocumentUpsertBulk) SetSubmissionDateStr(v string) *FnetDocumentUpsertBulk
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentUpsertBulk) SetSubmissionMethod ¶
func (u *FnetDocumentUpsertBulk) SetSubmissionMethod(v string) *FnetDocumentUpsertBulk
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentUpsertBulk) SetSubmissionMethodDescription ¶
func (u *FnetDocumentUpsertBulk) SetSubmissionMethodDescription(v string) *FnetDocumentUpsertBulk
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentUpsertBulk) SetSubmissionStatus ¶
func (u *FnetDocumentUpsertBulk) SetSubmissionStatus(v string) *FnetDocumentUpsertBulk
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentUpsertBulk) SetSubmissionStatusDescription ¶
func (u *FnetDocumentUpsertBulk) SetSubmissionStatusDescription(v string) *FnetDocumentUpsertBulk
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentUpsertBulk) SetVersion ¶
func (u *FnetDocumentUpsertBulk) SetVersion(v int) *FnetDocumentUpsertBulk
SetVersion sets the "version" field.
func (*FnetDocumentUpsertBulk) Update ¶
func (u *FnetDocumentUpsertBulk) Update(set func(*FnetDocumentUpsert)) *FnetDocumentUpsertBulk
Update allows overriding fields `UPDATE` values. See the FnetDocumentCreateBulk.OnConflict documentation for more info.
func (*FnetDocumentUpsertBulk) UpdateAdditionalInformation ¶
func (u *FnetDocumentUpsertBulk) UpdateAdditionalInformation() *FnetDocumentUpsertBulk
UpdateAdditionalInformation sets the "additional_information" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateCategoryStr ¶
func (u *FnetDocumentUpsertBulk) UpdateCategoryStr() *FnetDocumentUpsertBulk
UpdateCategoryStr sets the "category_str" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateFundDescription ¶
func (u *FnetDocumentUpsertBulk) UpdateFundDescription() *FnetDocumentUpsertBulk
UpdateFundDescription sets the "fund_description" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateFundMarketName ¶
func (u *FnetDocumentUpsertBulk) UpdateFundMarketName() *FnetDocumentUpsertBulk
UpdateFundMarketName sets the "fund_market_name" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateHighPriority ¶
func (u *FnetDocumentUpsertBulk) UpdateHighPriority() *FnetDocumentUpsertBulk
UpdateHighPriority sets the "high_priority" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateNewValues ¶
func (u *FnetDocumentUpsertBulk) UpdateNewValues() *FnetDocumentUpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetDocument.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*FnetDocumentUpsertBulk) UpdateReferenceDate ¶
func (u *FnetDocumentUpsertBulk) UpdateReferenceDate() *FnetDocumentUpsertBulk
UpdateReferenceDate sets the "reference_date" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateReferenceDateFormat ¶
func (u *FnetDocumentUpsertBulk) UpdateReferenceDateFormat() *FnetDocumentUpsertBulk
UpdateReferenceDateFormat sets the "reference_date_format" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateReferenceDateStr ¶
func (u *FnetDocumentUpsertBulk) UpdateReferenceDateStr() *FnetDocumentUpsertBulk
UpdateReferenceDateStr sets the "reference_date_str" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateReviewed ¶
func (u *FnetDocumentUpsertBulk) UpdateReviewed() *FnetDocumentUpsertBulk
UpdateReviewed sets the "reviewed" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateStatus ¶
func (u *FnetDocumentUpsertBulk) UpdateStatus() *FnetDocumentUpsertBulk
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubCategory1Str ¶
func (u *FnetDocumentUpsertBulk) UpdateSubCategory1Str() *FnetDocumentUpsertBulk
UpdateSubCategory1Str sets the "sub_category1_str" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubCategory2Str ¶
func (u *FnetDocumentUpsertBulk) UpdateSubCategory2Str() *FnetDocumentUpsertBulk
UpdateSubCategory2Str sets the "sub_category2_str" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubmissionDate ¶
func (u *FnetDocumentUpsertBulk) UpdateSubmissionDate() *FnetDocumentUpsertBulk
UpdateSubmissionDate sets the "submission_date" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubmissionDateStr ¶
func (u *FnetDocumentUpsertBulk) UpdateSubmissionDateStr() *FnetDocumentUpsertBulk
UpdateSubmissionDateStr sets the "submission_date_str" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubmissionMethod ¶
func (u *FnetDocumentUpsertBulk) UpdateSubmissionMethod() *FnetDocumentUpsertBulk
UpdateSubmissionMethod sets the "submission_method" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubmissionMethodDescription ¶
func (u *FnetDocumentUpsertBulk) UpdateSubmissionMethodDescription() *FnetDocumentUpsertBulk
UpdateSubmissionMethodDescription sets the "submission_method_description" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubmissionStatus ¶
func (u *FnetDocumentUpsertBulk) UpdateSubmissionStatus() *FnetDocumentUpsertBulk
UpdateSubmissionStatus sets the "submission_status" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateSubmissionStatusDescription ¶
func (u *FnetDocumentUpsertBulk) UpdateSubmissionStatusDescription() *FnetDocumentUpsertBulk
UpdateSubmissionStatusDescription sets the "submission_status_description" field to the value that was provided on create.
func (*FnetDocumentUpsertBulk) UpdateVersion ¶
func (u *FnetDocumentUpsertBulk) UpdateVersion() *FnetDocumentUpsertBulk
UpdateVersion sets the "version" field to the value that was provided on create.
type FnetDocumentUpsertOne ¶
type FnetDocumentUpsertOne struct {
// contains filtered or unexported fields
}
FnetDocumentUpsertOne is the builder for "upsert"-ing
one FnetDocument node.
func (*FnetDocumentUpsertOne) AddVersion ¶
func (u *FnetDocumentUpsertOne) AddVersion(v int) *FnetDocumentUpsertOne
AddVersion adds v to the "version" field.
func (*FnetDocumentUpsertOne) ClearAdditionalInformation ¶
func (u *FnetDocumentUpsertOne) ClearAdditionalInformation() *FnetDocumentUpsertOne
ClearAdditionalInformation clears the value of the "additional_information" field.
func (*FnetDocumentUpsertOne) ClearFundMarketName ¶
func (u *FnetDocumentUpsertOne) ClearFundMarketName() *FnetDocumentUpsertOne
ClearFundMarketName clears the value of the "fund_market_name" field.
func (*FnetDocumentUpsertOne) ClearSubCategory1Str ¶
func (u *FnetDocumentUpsertOne) ClearSubCategory1Str() *FnetDocumentUpsertOne
ClearSubCategory1Str clears the value of the "sub_category1_str" field.
func (*FnetDocumentUpsertOne) ClearSubCategory2Str ¶
func (u *FnetDocumentUpsertOne) ClearSubCategory2Str() *FnetDocumentUpsertOne
ClearSubCategory2Str clears the value of the "sub_category2_str" field.
func (*FnetDocumentUpsertOne) DoNothing ¶
func (u *FnetDocumentUpsertOne) DoNothing() *FnetDocumentUpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetDocumentUpsertOne) Exec ¶
func (u *FnetDocumentUpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetDocumentUpsertOne) ExecX ¶
func (u *FnetDocumentUpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetDocumentUpsertOne) ID ¶
func (u *FnetDocumentUpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FnetDocumentUpsertOne) IDX ¶
func (u *FnetDocumentUpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*FnetDocumentUpsertOne) Ignore ¶
func (u *FnetDocumentUpsertOne) Ignore() *FnetDocumentUpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetDocument.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetDocumentUpsertOne) SetAdditionalInformation ¶
func (u *FnetDocumentUpsertOne) SetAdditionalInformation(v string) *FnetDocumentUpsertOne
SetAdditionalInformation sets the "additional_information" field.
func (*FnetDocumentUpsertOne) SetCategoryStr ¶
func (u *FnetDocumentUpsertOne) SetCategoryStr(v string) *FnetDocumentUpsertOne
SetCategoryStr sets the "category_str" field.
func (*FnetDocumentUpsertOne) SetFundDescription ¶
func (u *FnetDocumentUpsertOne) SetFundDescription(v string) *FnetDocumentUpsertOne
SetFundDescription sets the "fund_description" field.
func (*FnetDocumentUpsertOne) SetFundMarketName ¶
func (u *FnetDocumentUpsertOne) SetFundMarketName(v string) *FnetDocumentUpsertOne
SetFundMarketName sets the "fund_market_name" field.
func (*FnetDocumentUpsertOne) SetHighPriority ¶
func (u *FnetDocumentUpsertOne) SetHighPriority(v bool) *FnetDocumentUpsertOne
SetHighPriority sets the "high_priority" field.
func (*FnetDocumentUpsertOne) SetReferenceDate ¶
func (u *FnetDocumentUpsertOne) SetReferenceDate(v time.Time) *FnetDocumentUpsertOne
SetReferenceDate sets the "reference_date" field.
func (*FnetDocumentUpsertOne) SetReferenceDateFormat ¶
func (u *FnetDocumentUpsertOne) SetReferenceDateFormat(v string) *FnetDocumentUpsertOne
SetReferenceDateFormat sets the "reference_date_format" field.
func (*FnetDocumentUpsertOne) SetReferenceDateStr ¶
func (u *FnetDocumentUpsertOne) SetReferenceDateStr(v string) *FnetDocumentUpsertOne
SetReferenceDateStr sets the "reference_date_str" field.
func (*FnetDocumentUpsertOne) SetReviewed ¶
func (u *FnetDocumentUpsertOne) SetReviewed(v string) *FnetDocumentUpsertOne
SetReviewed sets the "reviewed" field.
func (*FnetDocumentUpsertOne) SetStatus ¶
func (u *FnetDocumentUpsertOne) SetStatus(v string) *FnetDocumentUpsertOne
SetStatus sets the "status" field.
func (*FnetDocumentUpsertOne) SetSubCategory1Str ¶
func (u *FnetDocumentUpsertOne) SetSubCategory1Str(v string) *FnetDocumentUpsertOne
SetSubCategory1Str sets the "sub_category1_str" field.
func (*FnetDocumentUpsertOne) SetSubCategory2Str ¶
func (u *FnetDocumentUpsertOne) SetSubCategory2Str(v string) *FnetDocumentUpsertOne
SetSubCategory2Str sets the "sub_category2_str" field.
func (*FnetDocumentUpsertOne) SetSubmissionDate ¶
func (u *FnetDocumentUpsertOne) SetSubmissionDate(v time.Time) *FnetDocumentUpsertOne
SetSubmissionDate sets the "submission_date" field.
func (*FnetDocumentUpsertOne) SetSubmissionDateStr ¶
func (u *FnetDocumentUpsertOne) SetSubmissionDateStr(v string) *FnetDocumentUpsertOne
SetSubmissionDateStr sets the "submission_date_str" field.
func (*FnetDocumentUpsertOne) SetSubmissionMethod ¶
func (u *FnetDocumentUpsertOne) SetSubmissionMethod(v string) *FnetDocumentUpsertOne
SetSubmissionMethod sets the "submission_method" field.
func (*FnetDocumentUpsertOne) SetSubmissionMethodDescription ¶
func (u *FnetDocumentUpsertOne) SetSubmissionMethodDescription(v string) *FnetDocumentUpsertOne
SetSubmissionMethodDescription sets the "submission_method_description" field.
func (*FnetDocumentUpsertOne) SetSubmissionStatus ¶
func (u *FnetDocumentUpsertOne) SetSubmissionStatus(v string) *FnetDocumentUpsertOne
SetSubmissionStatus sets the "submission_status" field.
func (*FnetDocumentUpsertOne) SetSubmissionStatusDescription ¶
func (u *FnetDocumentUpsertOne) SetSubmissionStatusDescription(v string) *FnetDocumentUpsertOne
SetSubmissionStatusDescription sets the "submission_status_description" field.
func (*FnetDocumentUpsertOne) SetVersion ¶
func (u *FnetDocumentUpsertOne) SetVersion(v int) *FnetDocumentUpsertOne
SetVersion sets the "version" field.
func (*FnetDocumentUpsertOne) Update ¶
func (u *FnetDocumentUpsertOne) Update(set func(*FnetDocumentUpsert)) *FnetDocumentUpsertOne
Update allows overriding fields `UPDATE` values. See the FnetDocumentCreate.OnConflict documentation for more info.
func (*FnetDocumentUpsertOne) UpdateAdditionalInformation ¶
func (u *FnetDocumentUpsertOne) UpdateAdditionalInformation() *FnetDocumentUpsertOne
UpdateAdditionalInformation sets the "additional_information" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateCategoryStr ¶
func (u *FnetDocumentUpsertOne) UpdateCategoryStr() *FnetDocumentUpsertOne
UpdateCategoryStr sets the "category_str" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateFundDescription ¶
func (u *FnetDocumentUpsertOne) UpdateFundDescription() *FnetDocumentUpsertOne
UpdateFundDescription sets the "fund_description" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateFundMarketName ¶
func (u *FnetDocumentUpsertOne) UpdateFundMarketName() *FnetDocumentUpsertOne
UpdateFundMarketName sets the "fund_market_name" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateHighPriority ¶
func (u *FnetDocumentUpsertOne) UpdateHighPriority() *FnetDocumentUpsertOne
UpdateHighPriority sets the "high_priority" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateNewValues ¶
func (u *FnetDocumentUpsertOne) UpdateNewValues() *FnetDocumentUpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetDocument.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
func (*FnetDocumentUpsertOne) UpdateReferenceDate ¶
func (u *FnetDocumentUpsertOne) UpdateReferenceDate() *FnetDocumentUpsertOne
UpdateReferenceDate sets the "reference_date" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateReferenceDateFormat ¶
func (u *FnetDocumentUpsertOne) UpdateReferenceDateFormat() *FnetDocumentUpsertOne
UpdateReferenceDateFormat sets the "reference_date_format" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateReferenceDateStr ¶
func (u *FnetDocumentUpsertOne) UpdateReferenceDateStr() *FnetDocumentUpsertOne
UpdateReferenceDateStr sets the "reference_date_str" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateReviewed ¶
func (u *FnetDocumentUpsertOne) UpdateReviewed() *FnetDocumentUpsertOne
UpdateReviewed sets the "reviewed" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateStatus ¶
func (u *FnetDocumentUpsertOne) UpdateStatus() *FnetDocumentUpsertOne
UpdateStatus sets the "status" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubCategory1Str ¶
func (u *FnetDocumentUpsertOne) UpdateSubCategory1Str() *FnetDocumentUpsertOne
UpdateSubCategory1Str sets the "sub_category1_str" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubCategory2Str ¶
func (u *FnetDocumentUpsertOne) UpdateSubCategory2Str() *FnetDocumentUpsertOne
UpdateSubCategory2Str sets the "sub_category2_str" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubmissionDate ¶
func (u *FnetDocumentUpsertOne) UpdateSubmissionDate() *FnetDocumentUpsertOne
UpdateSubmissionDate sets the "submission_date" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubmissionDateStr ¶
func (u *FnetDocumentUpsertOne) UpdateSubmissionDateStr() *FnetDocumentUpsertOne
UpdateSubmissionDateStr sets the "submission_date_str" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubmissionMethod ¶
func (u *FnetDocumentUpsertOne) UpdateSubmissionMethod() *FnetDocumentUpsertOne
UpdateSubmissionMethod sets the "submission_method" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubmissionMethodDescription ¶
func (u *FnetDocumentUpsertOne) UpdateSubmissionMethodDescription() *FnetDocumentUpsertOne
UpdateSubmissionMethodDescription sets the "submission_method_description" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubmissionStatus ¶
func (u *FnetDocumentUpsertOne) UpdateSubmissionStatus() *FnetDocumentUpsertOne
UpdateSubmissionStatus sets the "submission_status" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateSubmissionStatusDescription ¶
func (u *FnetDocumentUpsertOne) UpdateSubmissionStatusDescription() *FnetDocumentUpsertOne
UpdateSubmissionStatusDescription sets the "submission_status_description" field to the value that was provided on create.
func (*FnetDocumentUpsertOne) UpdateVersion ¶
func (u *FnetDocumentUpsertOne) UpdateVersion() *FnetDocumentUpsertOne
UpdateVersion sets the "version" field to the value that was provided on create.
type FnetDocuments ¶
type FnetDocuments []*FnetDocument
FnetDocuments is a parsable slice of FnetDocument.
type FnetSubCategory1 ¶
type FnetSubCategory1 struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FnetSubCategory1Query when eager-loading is set. Edges FnetSubCategory1Edges `json:"edges"` // contains filtered or unexported fields }
FnetSubCategory1 is the model entity for the FnetSubCategory1 schema.
func (*FnetSubCategory1) QueryDocuments ¶
func (fsc *FnetSubCategory1) QueryDocuments() *FnetDocumentQuery
QueryDocuments queries the "documents" edge of the FnetSubCategory1 entity.
func (*FnetSubCategory1) String ¶
func (fsc *FnetSubCategory1) String() string
String implements the fmt.Stringer.
func (*FnetSubCategory1) Unwrap ¶
func (fsc *FnetSubCategory1) Unwrap() *FnetSubCategory1
Unwrap unwraps the FnetSubCategory1 entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*FnetSubCategory1) Update ¶
func (fsc *FnetSubCategory1) Update() *FnetSubCategory1UpdateOne
Update returns a builder for updating this FnetSubCategory1. Note that you need to call FnetSubCategory1.Unwrap() before calling this method if this FnetSubCategory1 was returned from a transaction, and the transaction was committed or rolled back.
type FnetSubCategory1Client ¶
type FnetSubCategory1Client struct {
// contains filtered or unexported fields
}
FnetSubCategory1Client is a client for the FnetSubCategory1 schema.
func NewFnetSubCategory1Client ¶
func NewFnetSubCategory1Client(c config) *FnetSubCategory1Client
NewFnetSubCategory1Client returns a client for the FnetSubCategory1 from the given config.
func (*FnetSubCategory1Client) Create ¶
func (c *FnetSubCategory1Client) Create() *FnetSubCategory1Create
Create returns a builder for creating a FnetSubCategory1 entity.
func (*FnetSubCategory1Client) CreateBulk ¶
func (c *FnetSubCategory1Client) CreateBulk(builders ...*FnetSubCategory1Create) *FnetSubCategory1CreateBulk
CreateBulk returns a builder for creating a bulk of FnetSubCategory1 entities.
func (*FnetSubCategory1Client) Delete ¶
func (c *FnetSubCategory1Client) Delete() *FnetSubCategory1Delete
Delete returns a delete builder for FnetSubCategory1.
func (*FnetSubCategory1Client) DeleteOne ¶
func (c *FnetSubCategory1Client) DeleteOne(fsc *FnetSubCategory1) *FnetSubCategory1DeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FnetSubCategory1Client) DeleteOneID ¶
func (c *FnetSubCategory1Client) DeleteOneID(id int) *FnetSubCategory1DeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FnetSubCategory1Client) Get ¶
func (c *FnetSubCategory1Client) Get(ctx context.Context, id int) (*FnetSubCategory1, error)
Get returns a FnetSubCategory1 entity by its id.
func (*FnetSubCategory1Client) GetX ¶
func (c *FnetSubCategory1Client) GetX(ctx context.Context, id int) *FnetSubCategory1
GetX is like Get, but panics if an error occurs.
func (*FnetSubCategory1Client) Hooks ¶
func (c *FnetSubCategory1Client) Hooks() []Hook
Hooks returns the client hooks.
func (*FnetSubCategory1Client) Intercept ¶
func (c *FnetSubCategory1Client) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `fnetsubcategory1.Intercept(f(g(h())))`.
func (*FnetSubCategory1Client) Interceptors ¶
func (c *FnetSubCategory1Client) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FnetSubCategory1Client) MapCreateBulk ¶
func (c *FnetSubCategory1Client) MapCreateBulk(slice any, setFunc func(*FnetSubCategory1Create, int)) *FnetSubCategory1CreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*FnetSubCategory1Client) Query ¶
func (c *FnetSubCategory1Client) Query() *FnetSubCategory1Query
Query returns a query builder for FnetSubCategory1.
func (*FnetSubCategory1Client) QueryDocuments ¶
func (c *FnetSubCategory1Client) QueryDocuments(fsc *FnetSubCategory1) *FnetDocumentQuery
QueryDocuments queries the documents edge of a FnetSubCategory1.
func (*FnetSubCategory1Client) Update ¶
func (c *FnetSubCategory1Client) Update() *FnetSubCategory1Update
Update returns an update builder for FnetSubCategory1.
func (*FnetSubCategory1Client) UpdateOne ¶
func (c *FnetSubCategory1Client) UpdateOne(fsc *FnetSubCategory1) *FnetSubCategory1UpdateOne
UpdateOne returns an update builder for the given entity.
func (*FnetSubCategory1Client) UpdateOneID ¶
func (c *FnetSubCategory1Client) UpdateOneID(id int) *FnetSubCategory1UpdateOne
UpdateOneID returns an update builder for the given id.
func (*FnetSubCategory1Client) Use ¶
func (c *FnetSubCategory1Client) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `fnetsubcategory1.Hooks(f(g(h())))`.
type FnetSubCategory1Create ¶
type FnetSubCategory1Create struct {
// contains filtered or unexported fields
}
FnetSubCategory1Create is the builder for creating a FnetSubCategory1 entity.
func (*FnetSubCategory1Create) AddDocumentIDs ¶
func (fsc *FnetSubCategory1Create) AddDocumentIDs(ids ...int) *FnetSubCategory1Create
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory1Create) AddDocuments ¶
func (fsc *FnetSubCategory1Create) AddDocuments(f ...*FnetDocument) *FnetSubCategory1Create
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetSubCategory1Create) Exec ¶
func (fsc *FnetSubCategory1Create) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory1Create) ExecX ¶
func (fsc *FnetSubCategory1Create) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1Create) Mutation ¶
func (fsc *FnetSubCategory1Create) Mutation() *FnetSubCategory1Mutation
Mutation returns the FnetSubCategory1Mutation object of the builder.
func (*FnetSubCategory1Create) OnConflict ¶
func (fsc *FnetSubCategory1Create) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory1UpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetSubCategory1.Create(). SetName(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetSubCategory1Upsert) { SetName(v+v). }). Exec(ctx)
func (*FnetSubCategory1Create) OnConflictColumns ¶
func (fsc *FnetSubCategory1Create) OnConflictColumns(columns ...string) *FnetSubCategory1UpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetSubCategory1.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetSubCategory1Create) Save ¶
func (fsc *FnetSubCategory1Create) Save(ctx context.Context) (*FnetSubCategory1, error)
Save creates the FnetSubCategory1 in the database.
func (*FnetSubCategory1Create) SaveX ¶
func (fsc *FnetSubCategory1Create) SaveX(ctx context.Context) *FnetSubCategory1
SaveX calls Save and panics if Save returns an error.
func (*FnetSubCategory1Create) SetName ¶
func (fsc *FnetSubCategory1Create) SetName(s string) *FnetSubCategory1Create
SetName sets the "name" field.
type FnetSubCategory1CreateBulk ¶
type FnetSubCategory1CreateBulk struct {
// contains filtered or unexported fields
}
FnetSubCategory1CreateBulk is the builder for creating many FnetSubCategory1 entities in bulk.
func (*FnetSubCategory1CreateBulk) Exec ¶
func (fscb *FnetSubCategory1CreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory1CreateBulk) ExecX ¶
func (fscb *FnetSubCategory1CreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1CreateBulk) OnConflict ¶
func (fscb *FnetSubCategory1CreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory1UpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetSubCategory1.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetSubCategory1Upsert) { SetName(v+v). }). Exec(ctx)
func (*FnetSubCategory1CreateBulk) OnConflictColumns ¶
func (fscb *FnetSubCategory1CreateBulk) OnConflictColumns(columns ...string) *FnetSubCategory1UpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetSubCategory1.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetSubCategory1CreateBulk) Save ¶
func (fscb *FnetSubCategory1CreateBulk) Save(ctx context.Context) ([]*FnetSubCategory1, error)
Save creates the FnetSubCategory1 entities in the database.
func (*FnetSubCategory1CreateBulk) SaveX ¶
func (fscb *FnetSubCategory1CreateBulk) SaveX(ctx context.Context) []*FnetSubCategory1
SaveX is like Save, but panics if an error occurs.
type FnetSubCategory1Delete ¶
type FnetSubCategory1Delete struct {
// contains filtered or unexported fields
}
FnetSubCategory1Delete is the builder for deleting a FnetSubCategory1 entity.
func (*FnetSubCategory1Delete) Exec ¶
func (fsc *FnetSubCategory1Delete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FnetSubCategory1Delete) ExecX ¶
func (fsc *FnetSubCategory1Delete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1Delete) Where ¶
func (fsc *FnetSubCategory1Delete) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1Delete
Where appends a list predicates to the FnetSubCategory1Delete builder.
type FnetSubCategory1DeleteOne ¶
type FnetSubCategory1DeleteOne struct {
// contains filtered or unexported fields
}
FnetSubCategory1DeleteOne is the builder for deleting a single FnetSubCategory1 entity.
func (*FnetSubCategory1DeleteOne) Exec ¶
func (fsco *FnetSubCategory1DeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FnetSubCategory1DeleteOne) ExecX ¶
func (fsco *FnetSubCategory1DeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1DeleteOne) Where ¶
func (fsco *FnetSubCategory1DeleteOne) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1DeleteOne
Where appends a list predicates to the FnetSubCategory1Delete builder.
type FnetSubCategory1Edges ¶
type FnetSubCategory1Edges struct { // Documents holds the value of the documents edge. Documents []*FnetDocument `json:"documents,omitempty"` // contains filtered or unexported fields }
FnetSubCategory1Edges holds the relations/edges for other nodes in the graph.
func (FnetSubCategory1Edges) DocumentsOrErr ¶
func (e FnetSubCategory1Edges) DocumentsOrErr() ([]*FnetDocument, error)
DocumentsOrErr returns the Documents value or an error if the edge was not loaded in eager-loading.
type FnetSubCategory1GroupBy ¶
type FnetSubCategory1GroupBy struct {
// contains filtered or unexported fields
}
FnetSubCategory1GroupBy is the group-by builder for FnetSubCategory1 entities.
func (*FnetSubCategory1GroupBy) Aggregate ¶
func (fscb *FnetSubCategory1GroupBy) Aggregate(fns ...AggregateFunc) *FnetSubCategory1GroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FnetSubCategory1GroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1GroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1GroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1GroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1GroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FnetSubCategory1GroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1GroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1GroupBy) Scan ¶
func (fscb *FnetSubCategory1GroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetSubCategory1GroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetSubCategory1Mutation ¶
type FnetSubCategory1Mutation struct {
// contains filtered or unexported fields
}
FnetSubCategory1Mutation represents an operation that mutates the FnetSubCategory1 nodes in the graph.
func (*FnetSubCategory1Mutation) AddDocumentIDs ¶
func (m *FnetSubCategory1Mutation) AddDocumentIDs(ids ...int)
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by ids.
func (*FnetSubCategory1Mutation) AddField ¶
func (m *FnetSubCategory1Mutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetSubCategory1Mutation) AddedEdges ¶
func (m *FnetSubCategory1Mutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FnetSubCategory1Mutation) AddedField ¶
func (m *FnetSubCategory1Mutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetSubCategory1Mutation) AddedFields ¶
func (m *FnetSubCategory1Mutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FnetSubCategory1Mutation) AddedIDs ¶
func (m *FnetSubCategory1Mutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FnetSubCategory1Mutation) ClearDocuments ¶
func (m *FnetSubCategory1Mutation) ClearDocuments()
ClearDocuments clears the "documents" edge to the FnetDocument entity.
func (*FnetSubCategory1Mutation) ClearEdge ¶
func (m *FnetSubCategory1Mutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*FnetSubCategory1Mutation) ClearField ¶
func (m *FnetSubCategory1Mutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetSubCategory1Mutation) ClearedEdges ¶
func (m *FnetSubCategory1Mutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FnetSubCategory1Mutation) ClearedFields ¶
func (m *FnetSubCategory1Mutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FnetSubCategory1Mutation) Client ¶
func (m FnetSubCategory1Mutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*FnetSubCategory1Mutation) DocumentsCleared ¶
func (m *FnetSubCategory1Mutation) DocumentsCleared() bool
DocumentsCleared reports if the "documents" edge to the FnetDocument entity was cleared.
func (*FnetSubCategory1Mutation) DocumentsIDs ¶
func (m *FnetSubCategory1Mutation) DocumentsIDs() (ids []int)
DocumentsIDs returns the "documents" edge IDs in the mutation.
func (*FnetSubCategory1Mutation) EdgeCleared ¶
func (m *FnetSubCategory1Mutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FnetSubCategory1Mutation) Field ¶
func (m *FnetSubCategory1Mutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetSubCategory1Mutation) FieldCleared ¶
func (m *FnetSubCategory1Mutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FnetSubCategory1Mutation) Fields ¶
func (m *FnetSubCategory1Mutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*FnetSubCategory1Mutation) ID ¶
func (m *FnetSubCategory1Mutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*FnetSubCategory1Mutation) IDs ¶
func (m *FnetSubCategory1Mutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FnetSubCategory1Mutation) Name ¶
func (m *FnetSubCategory1Mutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*FnetSubCategory1Mutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*FnetSubCategory1Mutation) OldName ¶
func (m *FnetSubCategory1Mutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the FnetSubCategory1 entity. If the FnetSubCategory1 object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetSubCategory1Mutation) Op ¶
func (m *FnetSubCategory1Mutation) Op() Op
Op returns the operation name.
func (*FnetSubCategory1Mutation) RemoveDocumentIDs ¶
func (m *FnetSubCategory1Mutation) RemoveDocumentIDs(ids ...int)
RemoveDocumentIDs removes the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory1Mutation) RemovedDocumentsIDs ¶
func (m *FnetSubCategory1Mutation) RemovedDocumentsIDs() (ids []int)
RemovedDocuments returns the removed IDs of the "documents" edge to the FnetDocument entity.
func (*FnetSubCategory1Mutation) RemovedEdges ¶
func (m *FnetSubCategory1Mutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FnetSubCategory1Mutation) RemovedIDs ¶
func (m *FnetSubCategory1Mutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*FnetSubCategory1Mutation) ResetDocuments ¶
func (m *FnetSubCategory1Mutation) ResetDocuments()
ResetDocuments resets all changes to the "documents" edge.
func (*FnetSubCategory1Mutation) ResetEdge ¶
func (m *FnetSubCategory1Mutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*FnetSubCategory1Mutation) ResetField ¶
func (m *FnetSubCategory1Mutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetSubCategory1Mutation) ResetName ¶
func (m *FnetSubCategory1Mutation) ResetName()
ResetName resets all changes to the "name" field.
func (*FnetSubCategory1Mutation) SetField ¶
func (m *FnetSubCategory1Mutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetSubCategory1Mutation) SetName ¶
func (m *FnetSubCategory1Mutation) SetName(s string)
SetName sets the "name" field.
func (*FnetSubCategory1Mutation) SetOp ¶
func (m *FnetSubCategory1Mutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (FnetSubCategory1Mutation) Tx ¶
func (m FnetSubCategory1Mutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FnetSubCategory1Mutation) Type ¶
func (m *FnetSubCategory1Mutation) Type() string
Type returns the node type of this mutation (FnetSubCategory1).
func (*FnetSubCategory1Mutation) Where ¶
func (m *FnetSubCategory1Mutation) Where(ps ...predicate.FnetSubCategory1)
Where appends a list predicates to the FnetSubCategory1Mutation builder.
func (*FnetSubCategory1Mutation) WhereP ¶
func (m *FnetSubCategory1Mutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FnetSubCategory1Mutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FnetSubCategory1Query ¶
type FnetSubCategory1Query struct {
// contains filtered or unexported fields
}
FnetSubCategory1Query is the builder for querying FnetSubCategory1 entities.
func (*FnetSubCategory1Query) Aggregate ¶
func (fsc *FnetSubCategory1Query) Aggregate(fns ...AggregateFunc) *FnetSubCategory1Select
Aggregate returns a FnetSubCategory1Select configured with the given aggregations.
func (*FnetSubCategory1Query) All ¶
func (fsc *FnetSubCategory1Query) All(ctx context.Context) ([]*FnetSubCategory1, error)
All executes the query and returns a list of FnetSubCategory1s.
func (*FnetSubCategory1Query) AllX ¶
func (fsc *FnetSubCategory1Query) AllX(ctx context.Context) []*FnetSubCategory1
AllX is like All, but panics if an error occurs.
func (*FnetSubCategory1Query) Clone ¶
func (fsc *FnetSubCategory1Query) Clone() *FnetSubCategory1Query
Clone returns a duplicate of the FnetSubCategory1Query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FnetSubCategory1Query) Count ¶
func (fsc *FnetSubCategory1Query) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FnetSubCategory1Query) CountX ¶
func (fsc *FnetSubCategory1Query) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FnetSubCategory1Query) Exist ¶
func (fsc *FnetSubCategory1Query) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FnetSubCategory1Query) ExistX ¶
func (fsc *FnetSubCategory1Query) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FnetSubCategory1Query) First ¶
func (fsc *FnetSubCategory1Query) First(ctx context.Context) (*FnetSubCategory1, error)
First returns the first FnetSubCategory1 entity from the query. Returns a *NotFoundError when no FnetSubCategory1 was found.
func (*FnetSubCategory1Query) FirstID ¶
func (fsc *FnetSubCategory1Query) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first FnetSubCategory1 ID from the query. Returns a *NotFoundError when no FnetSubCategory1 ID was found.
func (*FnetSubCategory1Query) FirstIDX ¶
func (fsc *FnetSubCategory1Query) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*FnetSubCategory1Query) FirstX ¶
func (fsc *FnetSubCategory1Query) FirstX(ctx context.Context) *FnetSubCategory1
FirstX is like First, but panics if an error occurs.
func (*FnetSubCategory1Query) GroupBy ¶
func (fsc *FnetSubCategory1Query) GroupBy(field string, fields ...string) *FnetSubCategory1GroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.FnetSubCategory1.Query(). GroupBy(fnetsubcategory1.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FnetSubCategory1Query) IDs ¶
func (fsc *FnetSubCategory1Query) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of FnetSubCategory1 IDs.
func (*FnetSubCategory1Query) IDsX ¶
func (fsc *FnetSubCategory1Query) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*FnetSubCategory1Query) Limit ¶
func (fsc *FnetSubCategory1Query) Limit(limit int) *FnetSubCategory1Query
Limit the number of records to be returned by this query.
func (*FnetSubCategory1Query) Offset ¶
func (fsc *FnetSubCategory1Query) Offset(offset int) *FnetSubCategory1Query
Offset to start from.
func (*FnetSubCategory1Query) Only ¶
func (fsc *FnetSubCategory1Query) Only(ctx context.Context) (*FnetSubCategory1, error)
Only returns a single FnetSubCategory1 entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FnetSubCategory1 entity is found. Returns a *NotFoundError when no FnetSubCategory1 entities are found.
func (*FnetSubCategory1Query) OnlyID ¶
func (fsc *FnetSubCategory1Query) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only FnetSubCategory1 ID in the query. Returns a *NotSingularError when more than one FnetSubCategory1 ID is found. Returns a *NotFoundError when no entities are found.
func (*FnetSubCategory1Query) OnlyIDX ¶
func (fsc *FnetSubCategory1Query) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FnetSubCategory1Query) OnlyX ¶
func (fsc *FnetSubCategory1Query) OnlyX(ctx context.Context) *FnetSubCategory1
OnlyX is like Only, but panics if an error occurs.
func (*FnetSubCategory1Query) Order ¶
func (fsc *FnetSubCategory1Query) Order(o ...fnetsubcategory1.OrderOption) *FnetSubCategory1Query
Order specifies how the records should be ordered.
func (*FnetSubCategory1Query) QueryDocuments ¶
func (fsc *FnetSubCategory1Query) QueryDocuments() *FnetDocumentQuery
QueryDocuments chains the current query on the "documents" edge.
func (*FnetSubCategory1Query) Select ¶
func (fsc *FnetSubCategory1Query) Select(fields ...string) *FnetSubCategory1Select
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.FnetSubCategory1.Query(). Select(fnetsubcategory1.FieldName). Scan(ctx, &v)
func (*FnetSubCategory1Query) Unique ¶
func (fsc *FnetSubCategory1Query) Unique(unique bool) *FnetSubCategory1Query
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*FnetSubCategory1Query) Where ¶
func (fsc *FnetSubCategory1Query) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1Query
Where adds a new predicate for the FnetSubCategory1Query builder.
func (*FnetSubCategory1Query) WithDocuments ¶
func (fsc *FnetSubCategory1Query) WithDocuments(opts ...func(*FnetDocumentQuery)) *FnetSubCategory1Query
WithDocuments tells the query-builder to eager-load the nodes that are connected to the "documents" edge. The optional arguments are used to configure the query builder of the edge.
type FnetSubCategory1Select ¶
type FnetSubCategory1Select struct { *FnetSubCategory1Query // contains filtered or unexported fields }
FnetSubCategory1Select is the builder for selecting fields of FnetSubCategory1 entities.
func (*FnetSubCategory1Select) Aggregate ¶
func (fsc *FnetSubCategory1Select) Aggregate(fns ...AggregateFunc) *FnetSubCategory1Select
Aggregate adds the given aggregation functions to the selector query.
func (*FnetSubCategory1Select) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1Select) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1Select) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1Select) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1Select) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FnetSubCategory1Select) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1Select) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory1Select) Scan ¶
func (fsc *FnetSubCategory1Select) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetSubCategory1Select) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetSubCategory1Update ¶
type FnetSubCategory1Update struct {
// contains filtered or unexported fields
}
FnetSubCategory1Update is the builder for updating FnetSubCategory1 entities.
func (*FnetSubCategory1Update) AddDocumentIDs ¶
func (fsc *FnetSubCategory1Update) AddDocumentIDs(ids ...int) *FnetSubCategory1Update
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory1Update) AddDocuments ¶
func (fsc *FnetSubCategory1Update) AddDocuments(f ...*FnetDocument) *FnetSubCategory1Update
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetSubCategory1Update) ClearDocuments ¶
func (fsc *FnetSubCategory1Update) ClearDocuments() *FnetSubCategory1Update
ClearDocuments clears all "documents" edges to the FnetDocument entity.
func (*FnetSubCategory1Update) Exec ¶
func (fsc *FnetSubCategory1Update) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory1Update) ExecX ¶
func (fsc *FnetSubCategory1Update) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1Update) Mutation ¶
func (fsc *FnetSubCategory1Update) Mutation() *FnetSubCategory1Mutation
Mutation returns the FnetSubCategory1Mutation object of the builder.
func (*FnetSubCategory1Update) RemoveDocumentIDs ¶
func (fsc *FnetSubCategory1Update) RemoveDocumentIDs(ids ...int) *FnetSubCategory1Update
RemoveDocumentIDs removes the "documents" edge to FnetDocument entities by IDs.
func (*FnetSubCategory1Update) RemoveDocuments ¶
func (fsc *FnetSubCategory1Update) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory1Update
RemoveDocuments removes "documents" edges to FnetDocument entities.
func (*FnetSubCategory1Update) Save ¶
func (fsc *FnetSubCategory1Update) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FnetSubCategory1Update) SaveX ¶
func (fsc *FnetSubCategory1Update) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FnetSubCategory1Update) Where ¶
func (fsc *FnetSubCategory1Update) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1Update
Where appends a list predicates to the FnetSubCategory1Update builder.
type FnetSubCategory1UpdateOne ¶
type FnetSubCategory1UpdateOne struct {
// contains filtered or unexported fields
}
FnetSubCategory1UpdateOne is the builder for updating a single FnetSubCategory1 entity.
func (*FnetSubCategory1UpdateOne) AddDocumentIDs ¶
func (fsco *FnetSubCategory1UpdateOne) AddDocumentIDs(ids ...int) *FnetSubCategory1UpdateOne
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory1UpdateOne) AddDocuments ¶
func (fsco *FnetSubCategory1UpdateOne) AddDocuments(f ...*FnetDocument) *FnetSubCategory1UpdateOne
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetSubCategory1UpdateOne) ClearDocuments ¶
func (fsco *FnetSubCategory1UpdateOne) ClearDocuments() *FnetSubCategory1UpdateOne
ClearDocuments clears all "documents" edges to the FnetDocument entity.
func (*FnetSubCategory1UpdateOne) Exec ¶
func (fsco *FnetSubCategory1UpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FnetSubCategory1UpdateOne) ExecX ¶
func (fsco *FnetSubCategory1UpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1UpdateOne) Mutation ¶
func (fsco *FnetSubCategory1UpdateOne) Mutation() *FnetSubCategory1Mutation
Mutation returns the FnetSubCategory1Mutation object of the builder.
func (*FnetSubCategory1UpdateOne) RemoveDocumentIDs ¶
func (fsco *FnetSubCategory1UpdateOne) RemoveDocumentIDs(ids ...int) *FnetSubCategory1UpdateOne
RemoveDocumentIDs removes the "documents" edge to FnetDocument entities by IDs.
func (*FnetSubCategory1UpdateOne) RemoveDocuments ¶
func (fsco *FnetSubCategory1UpdateOne) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory1UpdateOne
RemoveDocuments removes "documents" edges to FnetDocument entities.
func (*FnetSubCategory1UpdateOne) Save ¶
func (fsco *FnetSubCategory1UpdateOne) Save(ctx context.Context) (*FnetSubCategory1, error)
Save executes the query and returns the updated FnetSubCategory1 entity.
func (*FnetSubCategory1UpdateOne) SaveX ¶
func (fsco *FnetSubCategory1UpdateOne) SaveX(ctx context.Context) *FnetSubCategory1
SaveX is like Save, but panics if an error occurs.
func (*FnetSubCategory1UpdateOne) Select ¶
func (fsco *FnetSubCategory1UpdateOne) Select(field string, fields ...string) *FnetSubCategory1UpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FnetSubCategory1UpdateOne) Where ¶
func (fsco *FnetSubCategory1UpdateOne) Where(ps ...predicate.FnetSubCategory1) *FnetSubCategory1UpdateOne
Where appends a list predicates to the FnetSubCategory1Update builder.
type FnetSubCategory1Upsert ¶
FnetSubCategory1Upsert is the "OnConflict" setter.
type FnetSubCategory1UpsertBulk ¶
type FnetSubCategory1UpsertBulk struct {
// contains filtered or unexported fields
}
FnetSubCategory1UpsertBulk is the builder for "upsert"-ing a bulk of FnetSubCategory1 nodes.
func (*FnetSubCategory1UpsertBulk) DoNothing ¶
func (u *FnetSubCategory1UpsertBulk) DoNothing() *FnetSubCategory1UpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetSubCategory1UpsertBulk) Exec ¶
func (u *FnetSubCategory1UpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory1UpsertBulk) ExecX ¶
func (u *FnetSubCategory1UpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1UpsertBulk) Ignore ¶
func (u *FnetSubCategory1UpsertBulk) Ignore() *FnetSubCategory1UpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetSubCategory1.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetSubCategory1UpsertBulk) Update ¶
func (u *FnetSubCategory1UpsertBulk) Update(set func(*FnetSubCategory1Upsert)) *FnetSubCategory1UpsertBulk
Update allows overriding fields `UPDATE` values. See the FnetSubCategory1CreateBulk.OnConflict documentation for more info.
func (*FnetSubCategory1UpsertBulk) UpdateNewValues ¶
func (u *FnetSubCategory1UpsertBulk) UpdateNewValues() *FnetSubCategory1UpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetSubCategory1.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type FnetSubCategory1UpsertOne ¶
type FnetSubCategory1UpsertOne struct {
// contains filtered or unexported fields
}
FnetSubCategory1UpsertOne is the builder for "upsert"-ing
one FnetSubCategory1 node.
func (*FnetSubCategory1UpsertOne) DoNothing ¶
func (u *FnetSubCategory1UpsertOne) DoNothing() *FnetSubCategory1UpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetSubCategory1UpsertOne) Exec ¶
func (u *FnetSubCategory1UpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory1UpsertOne) ExecX ¶
func (u *FnetSubCategory1UpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory1UpsertOne) ID ¶
func (u *FnetSubCategory1UpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FnetSubCategory1UpsertOne) IDX ¶
func (u *FnetSubCategory1UpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*FnetSubCategory1UpsertOne) Ignore ¶
func (u *FnetSubCategory1UpsertOne) Ignore() *FnetSubCategory1UpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetSubCategory1.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetSubCategory1UpsertOne) Update ¶
func (u *FnetSubCategory1UpsertOne) Update(set func(*FnetSubCategory1Upsert)) *FnetSubCategory1UpsertOne
Update allows overriding fields `UPDATE` values. See the FnetSubCategory1Create.OnConflict documentation for more info.
func (*FnetSubCategory1UpsertOne) UpdateNewValues ¶
func (u *FnetSubCategory1UpsertOne) UpdateNewValues() *FnetSubCategory1UpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetSubCategory1.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type FnetSubCategory1s ¶
type FnetSubCategory1s []*FnetSubCategory1
FnetSubCategory1s is a parsable slice of FnetSubCategory1.
type FnetSubCategory2 ¶
type FnetSubCategory2 struct { // ID of the ent. ID int `json:"id,omitempty"` // Name holds the value of the "name" field. Name string `json:"name,omitempty"` // Edges holds the relations/edges for other nodes in the graph. // The values are being populated by the FnetSubCategory2Query when eager-loading is set. Edges FnetSubCategory2Edges `json:"edges"` // contains filtered or unexported fields }
FnetSubCategory2 is the model entity for the FnetSubCategory2 schema.
func (*FnetSubCategory2) QueryDocuments ¶
func (fsc *FnetSubCategory2) QueryDocuments() *FnetDocumentQuery
QueryDocuments queries the "documents" edge of the FnetSubCategory2 entity.
func (*FnetSubCategory2) String ¶
func (fsc *FnetSubCategory2) String() string
String implements the fmt.Stringer.
func (*FnetSubCategory2) Unwrap ¶
func (fsc *FnetSubCategory2) Unwrap() *FnetSubCategory2
Unwrap unwraps the FnetSubCategory2 entity that was returned from a transaction after it was closed, so that all future queries will be executed through the driver which created the transaction.
func (*FnetSubCategory2) Update ¶
func (fsc *FnetSubCategory2) Update() *FnetSubCategory2UpdateOne
Update returns a builder for updating this FnetSubCategory2. Note that you need to call FnetSubCategory2.Unwrap() before calling this method if this FnetSubCategory2 was returned from a transaction, and the transaction was committed or rolled back.
type FnetSubCategory2Client ¶
type FnetSubCategory2Client struct {
// contains filtered or unexported fields
}
FnetSubCategory2Client is a client for the FnetSubCategory2 schema.
func NewFnetSubCategory2Client ¶
func NewFnetSubCategory2Client(c config) *FnetSubCategory2Client
NewFnetSubCategory2Client returns a client for the FnetSubCategory2 from the given config.
func (*FnetSubCategory2Client) Create ¶
func (c *FnetSubCategory2Client) Create() *FnetSubCategory2Create
Create returns a builder for creating a FnetSubCategory2 entity.
func (*FnetSubCategory2Client) CreateBulk ¶
func (c *FnetSubCategory2Client) CreateBulk(builders ...*FnetSubCategory2Create) *FnetSubCategory2CreateBulk
CreateBulk returns a builder for creating a bulk of FnetSubCategory2 entities.
func (*FnetSubCategory2Client) Delete ¶
func (c *FnetSubCategory2Client) Delete() *FnetSubCategory2Delete
Delete returns a delete builder for FnetSubCategory2.
func (*FnetSubCategory2Client) DeleteOne ¶
func (c *FnetSubCategory2Client) DeleteOne(fsc *FnetSubCategory2) *FnetSubCategory2DeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*FnetSubCategory2Client) DeleteOneID ¶
func (c *FnetSubCategory2Client) DeleteOneID(id int) *FnetSubCategory2DeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*FnetSubCategory2Client) Get ¶
func (c *FnetSubCategory2Client) Get(ctx context.Context, id int) (*FnetSubCategory2, error)
Get returns a FnetSubCategory2 entity by its id.
func (*FnetSubCategory2Client) GetX ¶
func (c *FnetSubCategory2Client) GetX(ctx context.Context, id int) *FnetSubCategory2
GetX is like Get, but panics if an error occurs.
func (*FnetSubCategory2Client) Hooks ¶
func (c *FnetSubCategory2Client) Hooks() []Hook
Hooks returns the client hooks.
func (*FnetSubCategory2Client) Intercept ¶
func (c *FnetSubCategory2Client) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `fnetsubcategory2.Intercept(f(g(h())))`.
func (*FnetSubCategory2Client) Interceptors ¶
func (c *FnetSubCategory2Client) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*FnetSubCategory2Client) MapCreateBulk ¶
func (c *FnetSubCategory2Client) MapCreateBulk(slice any, setFunc func(*FnetSubCategory2Create, int)) *FnetSubCategory2CreateBulk
MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.
func (*FnetSubCategory2Client) Query ¶
func (c *FnetSubCategory2Client) Query() *FnetSubCategory2Query
Query returns a query builder for FnetSubCategory2.
func (*FnetSubCategory2Client) QueryDocuments ¶
func (c *FnetSubCategory2Client) QueryDocuments(fsc *FnetSubCategory2) *FnetDocumentQuery
QueryDocuments queries the documents edge of a FnetSubCategory2.
func (*FnetSubCategory2Client) Update ¶
func (c *FnetSubCategory2Client) Update() *FnetSubCategory2Update
Update returns an update builder for FnetSubCategory2.
func (*FnetSubCategory2Client) UpdateOne ¶
func (c *FnetSubCategory2Client) UpdateOne(fsc *FnetSubCategory2) *FnetSubCategory2UpdateOne
UpdateOne returns an update builder for the given entity.
func (*FnetSubCategory2Client) UpdateOneID ¶
func (c *FnetSubCategory2Client) UpdateOneID(id int) *FnetSubCategory2UpdateOne
UpdateOneID returns an update builder for the given id.
func (*FnetSubCategory2Client) Use ¶
func (c *FnetSubCategory2Client) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `fnetsubcategory2.Hooks(f(g(h())))`.
type FnetSubCategory2Create ¶
type FnetSubCategory2Create struct {
// contains filtered or unexported fields
}
FnetSubCategory2Create is the builder for creating a FnetSubCategory2 entity.
func (*FnetSubCategory2Create) AddDocumentIDs ¶
func (fsc *FnetSubCategory2Create) AddDocumentIDs(ids ...int) *FnetSubCategory2Create
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory2Create) AddDocuments ¶
func (fsc *FnetSubCategory2Create) AddDocuments(f ...*FnetDocument) *FnetSubCategory2Create
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetSubCategory2Create) Exec ¶
func (fsc *FnetSubCategory2Create) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory2Create) ExecX ¶
func (fsc *FnetSubCategory2Create) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2Create) Mutation ¶
func (fsc *FnetSubCategory2Create) Mutation() *FnetSubCategory2Mutation
Mutation returns the FnetSubCategory2Mutation object of the builder.
func (*FnetSubCategory2Create) OnConflict ¶
func (fsc *FnetSubCategory2Create) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory2UpsertOne
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetSubCategory2.Create(). SetName(v). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetSubCategory2Upsert) { SetName(v+v). }). Exec(ctx)
func (*FnetSubCategory2Create) OnConflictColumns ¶
func (fsc *FnetSubCategory2Create) OnConflictColumns(columns ...string) *FnetSubCategory2UpsertOne
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetSubCategory2.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetSubCategory2Create) Save ¶
func (fsc *FnetSubCategory2Create) Save(ctx context.Context) (*FnetSubCategory2, error)
Save creates the FnetSubCategory2 in the database.
func (*FnetSubCategory2Create) SaveX ¶
func (fsc *FnetSubCategory2Create) SaveX(ctx context.Context) *FnetSubCategory2
SaveX calls Save and panics if Save returns an error.
func (*FnetSubCategory2Create) SetName ¶
func (fsc *FnetSubCategory2Create) SetName(s string) *FnetSubCategory2Create
SetName sets the "name" field.
type FnetSubCategory2CreateBulk ¶
type FnetSubCategory2CreateBulk struct {
// contains filtered or unexported fields
}
FnetSubCategory2CreateBulk is the builder for creating many FnetSubCategory2 entities in bulk.
func (*FnetSubCategory2CreateBulk) Exec ¶
func (fscb *FnetSubCategory2CreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory2CreateBulk) ExecX ¶
func (fscb *FnetSubCategory2CreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2CreateBulk) OnConflict ¶
func (fscb *FnetSubCategory2CreateBulk) OnConflict(opts ...sql.ConflictOption) *FnetSubCategory2UpsertBulk
OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:
client.FnetSubCategory2.CreateBulk(builders...). OnConflict( // Update the row with the new values // the was proposed for insertion. sql.ResolveWithNewValues(), ). // Override some of the fields with custom // update values. Update(func(u *ent.FnetSubCategory2Upsert) { SetName(v+v). }). Exec(ctx)
func (*FnetSubCategory2CreateBulk) OnConflictColumns ¶
func (fscb *FnetSubCategory2CreateBulk) OnConflictColumns(columns ...string) *FnetSubCategory2UpsertBulk
OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:
client.FnetSubCategory2.Create(). OnConflict(sql.ConflictColumns(columns...)). Exec(ctx)
func (*FnetSubCategory2CreateBulk) Save ¶
func (fscb *FnetSubCategory2CreateBulk) Save(ctx context.Context) ([]*FnetSubCategory2, error)
Save creates the FnetSubCategory2 entities in the database.
func (*FnetSubCategory2CreateBulk) SaveX ¶
func (fscb *FnetSubCategory2CreateBulk) SaveX(ctx context.Context) []*FnetSubCategory2
SaveX is like Save, but panics if an error occurs.
type FnetSubCategory2Delete ¶
type FnetSubCategory2Delete struct {
// contains filtered or unexported fields
}
FnetSubCategory2Delete is the builder for deleting a FnetSubCategory2 entity.
func (*FnetSubCategory2Delete) Exec ¶
func (fsc *FnetSubCategory2Delete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*FnetSubCategory2Delete) ExecX ¶
func (fsc *FnetSubCategory2Delete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2Delete) Where ¶
func (fsc *FnetSubCategory2Delete) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2Delete
Where appends a list predicates to the FnetSubCategory2Delete builder.
type FnetSubCategory2DeleteOne ¶
type FnetSubCategory2DeleteOne struct {
// contains filtered or unexported fields
}
FnetSubCategory2DeleteOne is the builder for deleting a single FnetSubCategory2 entity.
func (*FnetSubCategory2DeleteOne) Exec ¶
func (fsco *FnetSubCategory2DeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*FnetSubCategory2DeleteOne) ExecX ¶
func (fsco *FnetSubCategory2DeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2DeleteOne) Where ¶
func (fsco *FnetSubCategory2DeleteOne) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2DeleteOne
Where appends a list predicates to the FnetSubCategory2Delete builder.
type FnetSubCategory2Edges ¶
type FnetSubCategory2Edges struct { // Documents holds the value of the documents edge. Documents []*FnetDocument `json:"documents,omitempty"` // contains filtered or unexported fields }
FnetSubCategory2Edges holds the relations/edges for other nodes in the graph.
func (FnetSubCategory2Edges) DocumentsOrErr ¶
func (e FnetSubCategory2Edges) DocumentsOrErr() ([]*FnetDocument, error)
DocumentsOrErr returns the Documents value or an error if the edge was not loaded in eager-loading.
type FnetSubCategory2GroupBy ¶
type FnetSubCategory2GroupBy struct {
// contains filtered or unexported fields
}
FnetSubCategory2GroupBy is the group-by builder for FnetSubCategory2 entities.
func (*FnetSubCategory2GroupBy) Aggregate ¶
func (fscb *FnetSubCategory2GroupBy) Aggregate(fns ...AggregateFunc) *FnetSubCategory2GroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*FnetSubCategory2GroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2GroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2GroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2GroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2GroupBy) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FnetSubCategory2GroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2GroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2GroupBy) Scan ¶
func (fscb *FnetSubCategory2GroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetSubCategory2GroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetSubCategory2Mutation ¶
type FnetSubCategory2Mutation struct {
// contains filtered or unexported fields
}
FnetSubCategory2Mutation represents an operation that mutates the FnetSubCategory2 nodes in the graph.
func (*FnetSubCategory2Mutation) AddDocumentIDs ¶
func (m *FnetSubCategory2Mutation) AddDocumentIDs(ids ...int)
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by ids.
func (*FnetSubCategory2Mutation) AddField ¶
func (m *FnetSubCategory2Mutation) AddField(name string, value ent.Value) error
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetSubCategory2Mutation) AddedEdges ¶
func (m *FnetSubCategory2Mutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*FnetSubCategory2Mutation) AddedField ¶
func (m *FnetSubCategory2Mutation) AddedField(name string) (ent.Value, bool)
AddedField returns the numeric value that was incremented/decremented on a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetSubCategory2Mutation) AddedFields ¶
func (m *FnetSubCategory2Mutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*FnetSubCategory2Mutation) AddedIDs ¶
func (m *FnetSubCategory2Mutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*FnetSubCategory2Mutation) ClearDocuments ¶
func (m *FnetSubCategory2Mutation) ClearDocuments()
ClearDocuments clears the "documents" edge to the FnetDocument entity.
func (*FnetSubCategory2Mutation) ClearEdge ¶
func (m *FnetSubCategory2Mutation) ClearEdge(name string) error
ClearEdge clears the value of the edge with the given name. It returns an error if that edge is not defined in the schema.
func (*FnetSubCategory2Mutation) ClearField ¶
func (m *FnetSubCategory2Mutation) ClearField(name string) error
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetSubCategory2Mutation) ClearedEdges ¶
func (m *FnetSubCategory2Mutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*FnetSubCategory2Mutation) ClearedFields ¶
func (m *FnetSubCategory2Mutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (FnetSubCategory2Mutation) Client ¶
func (m FnetSubCategory2Mutation) Client() *Client
Client returns a new `ent.Client` from the mutation. If the mutation was executed in a transaction (ent.Tx), a transactional client is returned.
func (*FnetSubCategory2Mutation) DocumentsCleared ¶
func (m *FnetSubCategory2Mutation) DocumentsCleared() bool
DocumentsCleared reports if the "documents" edge to the FnetDocument entity was cleared.
func (*FnetSubCategory2Mutation) DocumentsIDs ¶
func (m *FnetSubCategory2Mutation) DocumentsIDs() (ids []int)
DocumentsIDs returns the "documents" edge IDs in the mutation.
func (*FnetSubCategory2Mutation) EdgeCleared ¶
func (m *FnetSubCategory2Mutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*FnetSubCategory2Mutation) Field ¶
func (m *FnetSubCategory2Mutation) Field(name string) (ent.Value, bool)
Field returns the value of a field with the given name. The second boolean return value indicates that this field was not set, or was not defined in the schema.
func (*FnetSubCategory2Mutation) FieldCleared ¶
func (m *FnetSubCategory2Mutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*FnetSubCategory2Mutation) Fields ¶
func (m *FnetSubCategory2Mutation) Fields() []string
Fields returns all fields that were changed during this mutation. Note that in order to get all numeric fields that were incremented/decremented, call AddedFields().
func (*FnetSubCategory2Mutation) ID ¶
func (m *FnetSubCategory2Mutation) ID() (id int, exists bool)
ID returns the ID value in the mutation. Note that the ID is only available if it was provided to the builder or after it was returned from the database.
func (*FnetSubCategory2Mutation) IDs ¶
func (m *FnetSubCategory2Mutation) IDs(ctx context.Context) ([]int, error)
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*FnetSubCategory2Mutation) Name ¶
func (m *FnetSubCategory2Mutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*FnetSubCategory2Mutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*FnetSubCategory2Mutation) OldName ¶
func (m *FnetSubCategory2Mutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the FnetSubCategory2 entity. If the FnetSubCategory2 object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*FnetSubCategory2Mutation) Op ¶
func (m *FnetSubCategory2Mutation) Op() Op
Op returns the operation name.
func (*FnetSubCategory2Mutation) RemoveDocumentIDs ¶
func (m *FnetSubCategory2Mutation) RemoveDocumentIDs(ids ...int)
RemoveDocumentIDs removes the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory2Mutation) RemovedDocumentsIDs ¶
func (m *FnetSubCategory2Mutation) RemovedDocumentsIDs() (ids []int)
RemovedDocuments returns the removed IDs of the "documents" edge to the FnetDocument entity.
func (*FnetSubCategory2Mutation) RemovedEdges ¶
func (m *FnetSubCategory2Mutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*FnetSubCategory2Mutation) RemovedIDs ¶
func (m *FnetSubCategory2Mutation) RemovedIDs(name string) []ent.Value
RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.
func (*FnetSubCategory2Mutation) ResetDocuments ¶
func (m *FnetSubCategory2Mutation) ResetDocuments()
ResetDocuments resets all changes to the "documents" edge.
func (*FnetSubCategory2Mutation) ResetEdge ¶
func (m *FnetSubCategory2Mutation) ResetEdge(name string) error
ResetEdge resets all changes to the edge with the given name in this mutation. It returns an error if the edge is not defined in the schema.
func (*FnetSubCategory2Mutation) ResetField ¶
func (m *FnetSubCategory2Mutation) ResetField(name string) error
ResetField resets all changes in the mutation for the field with the given name. It returns an error if the field is not defined in the schema.
func (*FnetSubCategory2Mutation) ResetName ¶
func (m *FnetSubCategory2Mutation) ResetName()
ResetName resets all changes to the "name" field.
func (*FnetSubCategory2Mutation) SetField ¶
func (m *FnetSubCategory2Mutation) SetField(name string, value ent.Value) error
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the field type.
func (*FnetSubCategory2Mutation) SetName ¶
func (m *FnetSubCategory2Mutation) SetName(s string)
SetName sets the "name" field.
func (*FnetSubCategory2Mutation) SetOp ¶
func (m *FnetSubCategory2Mutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (FnetSubCategory2Mutation) Tx ¶
func (m FnetSubCategory2Mutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*FnetSubCategory2Mutation) Type ¶
func (m *FnetSubCategory2Mutation) Type() string
Type returns the node type of this mutation (FnetSubCategory2).
func (*FnetSubCategory2Mutation) Where ¶
func (m *FnetSubCategory2Mutation) Where(ps ...predicate.FnetSubCategory2)
Where appends a list predicates to the FnetSubCategory2Mutation builder.
func (*FnetSubCategory2Mutation) WhereP ¶
func (m *FnetSubCategory2Mutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the FnetSubCategory2Mutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type FnetSubCategory2Query ¶
type FnetSubCategory2Query struct {
// contains filtered or unexported fields
}
FnetSubCategory2Query is the builder for querying FnetSubCategory2 entities.
func (*FnetSubCategory2Query) Aggregate ¶
func (fsc *FnetSubCategory2Query) Aggregate(fns ...AggregateFunc) *FnetSubCategory2Select
Aggregate returns a FnetSubCategory2Select configured with the given aggregations.
func (*FnetSubCategory2Query) All ¶
func (fsc *FnetSubCategory2Query) All(ctx context.Context) ([]*FnetSubCategory2, error)
All executes the query and returns a list of FnetSubCategory2s.
func (*FnetSubCategory2Query) AllX ¶
func (fsc *FnetSubCategory2Query) AllX(ctx context.Context) []*FnetSubCategory2
AllX is like All, but panics if an error occurs.
func (*FnetSubCategory2Query) Clone ¶
func (fsc *FnetSubCategory2Query) Clone() *FnetSubCategory2Query
Clone returns a duplicate of the FnetSubCategory2Query builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*FnetSubCategory2Query) Count ¶
func (fsc *FnetSubCategory2Query) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*FnetSubCategory2Query) CountX ¶
func (fsc *FnetSubCategory2Query) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*FnetSubCategory2Query) Exist ¶
func (fsc *FnetSubCategory2Query) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*FnetSubCategory2Query) ExistX ¶
func (fsc *FnetSubCategory2Query) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*FnetSubCategory2Query) First ¶
func (fsc *FnetSubCategory2Query) First(ctx context.Context) (*FnetSubCategory2, error)
First returns the first FnetSubCategory2 entity from the query. Returns a *NotFoundError when no FnetSubCategory2 was found.
func (*FnetSubCategory2Query) FirstID ¶
func (fsc *FnetSubCategory2Query) FirstID(ctx context.Context) (id int, err error)
FirstID returns the first FnetSubCategory2 ID from the query. Returns a *NotFoundError when no FnetSubCategory2 ID was found.
func (*FnetSubCategory2Query) FirstIDX ¶
func (fsc *FnetSubCategory2Query) FirstIDX(ctx context.Context) int
FirstIDX is like FirstID, but panics if an error occurs.
func (*FnetSubCategory2Query) FirstX ¶
func (fsc *FnetSubCategory2Query) FirstX(ctx context.Context) *FnetSubCategory2
FirstX is like First, but panics if an error occurs.
func (*FnetSubCategory2Query) GroupBy ¶
func (fsc *FnetSubCategory2Query) GroupBy(field string, fields ...string) *FnetSubCategory2GroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct { Name string `json:"name,omitempty"` Count int `json:"count,omitempty"` } client.FnetSubCategory2.Query(). GroupBy(fnetsubcategory2.FieldName). Aggregate(ent.Count()). Scan(ctx, &v)
func (*FnetSubCategory2Query) IDs ¶
func (fsc *FnetSubCategory2Query) IDs(ctx context.Context) (ids []int, err error)
IDs executes the query and returns a list of FnetSubCategory2 IDs.
func (*FnetSubCategory2Query) IDsX ¶
func (fsc *FnetSubCategory2Query) IDsX(ctx context.Context) []int
IDsX is like IDs, but panics if an error occurs.
func (*FnetSubCategory2Query) Limit ¶
func (fsc *FnetSubCategory2Query) Limit(limit int) *FnetSubCategory2Query
Limit the number of records to be returned by this query.
func (*FnetSubCategory2Query) Offset ¶
func (fsc *FnetSubCategory2Query) Offset(offset int) *FnetSubCategory2Query
Offset to start from.
func (*FnetSubCategory2Query) Only ¶
func (fsc *FnetSubCategory2Query) Only(ctx context.Context) (*FnetSubCategory2, error)
Only returns a single FnetSubCategory2 entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one FnetSubCategory2 entity is found. Returns a *NotFoundError when no FnetSubCategory2 entities are found.
func (*FnetSubCategory2Query) OnlyID ¶
func (fsc *FnetSubCategory2Query) OnlyID(ctx context.Context) (id int, err error)
OnlyID is like Only, but returns the only FnetSubCategory2 ID in the query. Returns a *NotSingularError when more than one FnetSubCategory2 ID is found. Returns a *NotFoundError when no entities are found.
func (*FnetSubCategory2Query) OnlyIDX ¶
func (fsc *FnetSubCategory2Query) OnlyIDX(ctx context.Context) int
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*FnetSubCategory2Query) OnlyX ¶
func (fsc *FnetSubCategory2Query) OnlyX(ctx context.Context) *FnetSubCategory2
OnlyX is like Only, but panics if an error occurs.
func (*FnetSubCategory2Query) Order ¶
func (fsc *FnetSubCategory2Query) Order(o ...fnetsubcategory2.OrderOption) *FnetSubCategory2Query
Order specifies how the records should be ordered.
func (*FnetSubCategory2Query) QueryDocuments ¶
func (fsc *FnetSubCategory2Query) QueryDocuments() *FnetDocumentQuery
QueryDocuments chains the current query on the "documents" edge.
func (*FnetSubCategory2Query) Select ¶
func (fsc *FnetSubCategory2Query) Select(fields ...string) *FnetSubCategory2Select
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct { Name string `json:"name,omitempty"` } client.FnetSubCategory2.Query(). Select(fnetsubcategory2.FieldName). Scan(ctx, &v)
func (*FnetSubCategory2Query) Unique ¶
func (fsc *FnetSubCategory2Query) Unique(unique bool) *FnetSubCategory2Query
Unique configures the query builder to filter duplicate records on query. By default, unique is set to true, and can be disabled using this method.
func (*FnetSubCategory2Query) Where ¶
func (fsc *FnetSubCategory2Query) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2Query
Where adds a new predicate for the FnetSubCategory2Query builder.
func (*FnetSubCategory2Query) WithDocuments ¶
func (fsc *FnetSubCategory2Query) WithDocuments(opts ...func(*FnetDocumentQuery)) *FnetSubCategory2Query
WithDocuments tells the query-builder to eager-load the nodes that are connected to the "documents" edge. The optional arguments are used to configure the query builder of the edge.
type FnetSubCategory2Select ¶
type FnetSubCategory2Select struct { *FnetSubCategory2Query // contains filtered or unexported fields }
FnetSubCategory2Select is the builder for selecting fields of FnetSubCategory2 entities.
func (*FnetSubCategory2Select) Aggregate ¶
func (fsc *FnetSubCategory2Select) Aggregate(fns ...AggregateFunc) *FnetSubCategory2Select
Aggregate adds the given aggregation functions to the selector query.
func (*FnetSubCategory2Select) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2Select) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2Select) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2Select) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2Select) Float64sX ¶
Float64sX is like Float64s, but panics if an error occurs.
func (*FnetSubCategory2Select) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2Select) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*FnetSubCategory2Select) Scan ¶
func (fsc *FnetSubCategory2Select) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*FnetSubCategory2Select) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type FnetSubCategory2Update ¶
type FnetSubCategory2Update struct {
// contains filtered or unexported fields
}
FnetSubCategory2Update is the builder for updating FnetSubCategory2 entities.
func (*FnetSubCategory2Update) AddDocumentIDs ¶
func (fsc *FnetSubCategory2Update) AddDocumentIDs(ids ...int) *FnetSubCategory2Update
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory2Update) AddDocuments ¶
func (fsc *FnetSubCategory2Update) AddDocuments(f ...*FnetDocument) *FnetSubCategory2Update
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetSubCategory2Update) ClearDocuments ¶
func (fsc *FnetSubCategory2Update) ClearDocuments() *FnetSubCategory2Update
ClearDocuments clears all "documents" edges to the FnetDocument entity.
func (*FnetSubCategory2Update) Exec ¶
func (fsc *FnetSubCategory2Update) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory2Update) ExecX ¶
func (fsc *FnetSubCategory2Update) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2Update) Mutation ¶
func (fsc *FnetSubCategory2Update) Mutation() *FnetSubCategory2Mutation
Mutation returns the FnetSubCategory2Mutation object of the builder.
func (*FnetSubCategory2Update) RemoveDocumentIDs ¶
func (fsc *FnetSubCategory2Update) RemoveDocumentIDs(ids ...int) *FnetSubCategory2Update
RemoveDocumentIDs removes the "documents" edge to FnetDocument entities by IDs.
func (*FnetSubCategory2Update) RemoveDocuments ¶
func (fsc *FnetSubCategory2Update) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory2Update
RemoveDocuments removes "documents" edges to FnetDocument entities.
func (*FnetSubCategory2Update) Save ¶
func (fsc *FnetSubCategory2Update) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*FnetSubCategory2Update) SaveX ¶
func (fsc *FnetSubCategory2Update) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*FnetSubCategory2Update) Where ¶
func (fsc *FnetSubCategory2Update) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2Update
Where appends a list predicates to the FnetSubCategory2Update builder.
type FnetSubCategory2UpdateOne ¶
type FnetSubCategory2UpdateOne struct {
// contains filtered or unexported fields
}
FnetSubCategory2UpdateOne is the builder for updating a single FnetSubCategory2 entity.
func (*FnetSubCategory2UpdateOne) AddDocumentIDs ¶
func (fsco *FnetSubCategory2UpdateOne) AddDocumentIDs(ids ...int) *FnetSubCategory2UpdateOne
AddDocumentIDs adds the "documents" edge to the FnetDocument entity by IDs.
func (*FnetSubCategory2UpdateOne) AddDocuments ¶
func (fsco *FnetSubCategory2UpdateOne) AddDocuments(f ...*FnetDocument) *FnetSubCategory2UpdateOne
AddDocuments adds the "documents" edges to the FnetDocument entity.
func (*FnetSubCategory2UpdateOne) ClearDocuments ¶
func (fsco *FnetSubCategory2UpdateOne) ClearDocuments() *FnetSubCategory2UpdateOne
ClearDocuments clears all "documents" edges to the FnetDocument entity.
func (*FnetSubCategory2UpdateOne) Exec ¶
func (fsco *FnetSubCategory2UpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*FnetSubCategory2UpdateOne) ExecX ¶
func (fsco *FnetSubCategory2UpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2UpdateOne) Mutation ¶
func (fsco *FnetSubCategory2UpdateOne) Mutation() *FnetSubCategory2Mutation
Mutation returns the FnetSubCategory2Mutation object of the builder.
func (*FnetSubCategory2UpdateOne) RemoveDocumentIDs ¶
func (fsco *FnetSubCategory2UpdateOne) RemoveDocumentIDs(ids ...int) *FnetSubCategory2UpdateOne
RemoveDocumentIDs removes the "documents" edge to FnetDocument entities by IDs.
func (*FnetSubCategory2UpdateOne) RemoveDocuments ¶
func (fsco *FnetSubCategory2UpdateOne) RemoveDocuments(f ...*FnetDocument) *FnetSubCategory2UpdateOne
RemoveDocuments removes "documents" edges to FnetDocument entities.
func (*FnetSubCategory2UpdateOne) Save ¶
func (fsco *FnetSubCategory2UpdateOne) Save(ctx context.Context) (*FnetSubCategory2, error)
Save executes the query and returns the updated FnetSubCategory2 entity.
func (*FnetSubCategory2UpdateOne) SaveX ¶
func (fsco *FnetSubCategory2UpdateOne) SaveX(ctx context.Context) *FnetSubCategory2
SaveX is like Save, but panics if an error occurs.
func (*FnetSubCategory2UpdateOne) Select ¶
func (fsco *FnetSubCategory2UpdateOne) Select(field string, fields ...string) *FnetSubCategory2UpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*FnetSubCategory2UpdateOne) Where ¶
func (fsco *FnetSubCategory2UpdateOne) Where(ps ...predicate.FnetSubCategory2) *FnetSubCategory2UpdateOne
Where appends a list predicates to the FnetSubCategory2Update builder.
type FnetSubCategory2Upsert ¶
FnetSubCategory2Upsert is the "OnConflict" setter.
type FnetSubCategory2UpsertBulk ¶
type FnetSubCategory2UpsertBulk struct {
// contains filtered or unexported fields
}
FnetSubCategory2UpsertBulk is the builder for "upsert"-ing a bulk of FnetSubCategory2 nodes.
func (*FnetSubCategory2UpsertBulk) DoNothing ¶
func (u *FnetSubCategory2UpsertBulk) DoNothing() *FnetSubCategory2UpsertBulk
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetSubCategory2UpsertBulk) Exec ¶
func (u *FnetSubCategory2UpsertBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory2UpsertBulk) ExecX ¶
func (u *FnetSubCategory2UpsertBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2UpsertBulk) Ignore ¶
func (u *FnetSubCategory2UpsertBulk) Ignore() *FnetSubCategory2UpsertBulk
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetSubCategory2.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetSubCategory2UpsertBulk) Update ¶
func (u *FnetSubCategory2UpsertBulk) Update(set func(*FnetSubCategory2Upsert)) *FnetSubCategory2UpsertBulk
Update allows overriding fields `UPDATE` values. See the FnetSubCategory2CreateBulk.OnConflict documentation for more info.
func (*FnetSubCategory2UpsertBulk) UpdateNewValues ¶
func (u *FnetSubCategory2UpsertBulk) UpdateNewValues() *FnetSubCategory2UpsertBulk
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetSubCategory2.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type FnetSubCategory2UpsertOne ¶
type FnetSubCategory2UpsertOne struct {
// contains filtered or unexported fields
}
FnetSubCategory2UpsertOne is the builder for "upsert"-ing
one FnetSubCategory2 node.
func (*FnetSubCategory2UpsertOne) DoNothing ¶
func (u *FnetSubCategory2UpsertOne) DoNothing() *FnetSubCategory2UpsertOne
DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.
func (*FnetSubCategory2UpsertOne) Exec ¶
func (u *FnetSubCategory2UpsertOne) Exec(ctx context.Context) error
Exec executes the query.
func (*FnetSubCategory2UpsertOne) ExecX ¶
func (u *FnetSubCategory2UpsertOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*FnetSubCategory2UpsertOne) ID ¶
func (u *FnetSubCategory2UpsertOne) ID(ctx context.Context) (id int, err error)
Exec executes the UPSERT query and returns the inserted/updated ID.
func (*FnetSubCategory2UpsertOne) IDX ¶
func (u *FnetSubCategory2UpsertOne) IDX(ctx context.Context) int
IDX is like ID, but panics if an error occurs.
func (*FnetSubCategory2UpsertOne) Ignore ¶
func (u *FnetSubCategory2UpsertOne) Ignore() *FnetSubCategory2UpsertOne
Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:
client.FnetSubCategory2.Create(). OnConflict(sql.ResolveWithIgnore()). Exec(ctx)
func (*FnetSubCategory2UpsertOne) Update ¶
func (u *FnetSubCategory2UpsertOne) Update(set func(*FnetSubCategory2Upsert)) *FnetSubCategory2UpsertOne
Update allows overriding fields `UPDATE` values. See the FnetSubCategory2Create.OnConflict documentation for more info.
func (*FnetSubCategory2UpsertOne) UpdateNewValues ¶
func (u *FnetSubCategory2UpsertOne) UpdateNewValues() *FnetSubCategory2UpsertOne
UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:
client.FnetSubCategory2.Create(). OnConflict( sql.ResolveWithNewValues(), ). Exec(ctx)
type FnetSubCategory2s ¶
type FnetSubCategory2s []*FnetSubCategory2
FnetSubCategory2s is a parsable slice of FnetSubCategory2.
type InterceptFunc ¶
type InterceptFunc = ent.InterceptFunc
ent aliases to avoid import conflicts in user's code.
type Interceptor ¶
type Interceptor = ent.Interceptor
ent aliases to avoid import conflicts in user's code.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker { return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error { // Do some stuff before. if err := next.Rollback(ctx, tx); err != nil { return err } // Do some stuff after. return nil }) }
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct { // FnetCategory is the client for interacting with the FnetCategory builders. FnetCategory *FnetCategoryClient // FnetDocument is the client for interacting with the FnetDocument builders. FnetDocument *FnetDocumentClient // FnetSubCategory1 is the client for interacting with the FnetSubCategory1 builders. FnetSubCategory1 *FnetSubCategory1Client // FnetSubCategory2 is the client for interacting with the FnetSubCategory2 builders. FnetSubCategory2 *FnetSubCategory2Client // contains filtered or unexported fields }
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct { Name string // Field or edge name. // contains filtered or unexported fields }
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files ¶
- client.go
- ent.go
- fnetcategory.go
- fnetcategory_create.go
- fnetcategory_delete.go
- fnetcategory_query.go
- fnetcategory_update.go
- fnetdocument.go
- fnetdocument_create.go
- fnetdocument_delete.go
- fnetdocument_query.go
- fnetdocument_update.go
- fnetsubcategory1.go
- fnetsubcategory1_create.go
- fnetsubcategory1_delete.go
- fnetsubcategory1_query.go
- fnetsubcategory1_update.go
- fnetsubcategory2.go
- fnetsubcategory2_create.go
- fnetsubcategory2_delete.go
- fnetsubcategory2_query.go
- fnetsubcategory2_update.go
- generate.go
- mutation.go
- runtime.go
- tx.go