ent

package
v0.0.0-...-8e376f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
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

This section is empty.

Functions

func IsConstraintError

func IsConstraintError(err error) bool

IsConstraintError returns a boolean indicating whether the error is a constraint failure.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns a boolean indicating whether the error is a not found error.

func IsNotLoaded

func IsNotLoaded(err error) bool

IsNotLoaded returns a boolean indicating whether the error is a not loaded error.

func IsNotSingular

func IsNotSingular(err error) bool

IsNotSingular returns a boolean indicating whether the error is a not singular error.

func IsValidationError

func IsValidationError(err error) bool

IsValidationError returns a boolean indicating whether the error is a validation error.

func MaskNotFound

func MaskNotFound(err error) error

MaskNotFound masks not found error.

func NewContext

func NewContext(parent context.Context, c *Client) context.Context

NewContext returns a new context with the given Client attached.

func NewTxContext

func NewTxContext(parent context.Context, tx *Tx) context.Context

NewTxContext returns a new context with the given Tx attached.

Types

type AggregateFunc

type AggregateFunc func(*sql.Selector) string

AggregateFunc applies an aggregation step on the group-by traversal/selector.

func As

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

func FromContext(ctx context.Context) *Client

FromContext returns a Client stored inside a context, or nil if there isn't one.

func NewClient

func NewClient(opts ...Option) *Client

NewClient creates a new client configured with the given options.

func Open

func Open(driverName, dataSourceName string, options ...Option) (*Client, error)

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) BeginTx

func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)

BeginTx returns a transactional client with specified options.

func (*Client) Close

func (c *Client) Close() error

Close closes the database connection and prevents new queries from starting.

func (*Client) Debug

func (c *Client) Debug() *Client

Debug returns a new debug-client. It's used to get verbose logging on specific operations.

client.Debug().
	FnetCategory.
	Query().
	Count(ctx)

func (*Client) Tx

func (c *Client) Tx(ctx context.Context) (*Tx, error)

Tx returns a new transactional client. The provided context is used until the transaction is committed or rolled back.

func (*Client) Use

func (c *Client) Use(hooks ...Hook)

Use adds the mutation hooks to all the entity clients. In order to add hooks to a specific client, call: `client.Node.Use(...)`.

type CommitFunc

type CommitFunc func(context.Context, *Tx) error

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.

func (CommitFunc) Commit

func (f CommitFunc) Commit(ctx context.Context, tx *Tx) error

Commit calls f(ctx, m).

type CommitHook

type CommitHook func(Committer) Committer

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 Committer

type Committer interface {
	Commit(context.Context, *Tx) error
}

Committer is the interface that wraps the Commit method.

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

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

Delete returns a delete builder for FnetCategory.

func (*FnetCategoryClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*FnetCategoryClient) DeleteOneID

func (c *FnetCategoryClient) DeleteOneID(id int) *FnetCategoryDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*FnetCategoryClient) Get

Get returns a FnetCategory entity by its id.

func (*FnetCategoryClient) GetX

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) Query

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

Update returns an update builder for FnetCategory.

func (*FnetCategoryClient) UpdateOne

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

Save creates the FnetCategory in the database.

func (*FnetCategoryCreate) SaveX

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

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

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

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.

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

func (s *FnetCategoryGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) BoolX

func (s *FnetCategoryGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetCategoryGroupBy) Bools

func (s *FnetCategoryGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) BoolsX

func (s *FnetCategoryGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetCategoryGroupBy) Float64

func (s *FnetCategoryGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) Float64X

func (s *FnetCategoryGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetCategoryGroupBy) Float64s

func (s *FnetCategoryGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) Float64sX

func (s *FnetCategoryGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetCategoryGroupBy) Int

func (s *FnetCategoryGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) IntX

func (s *FnetCategoryGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetCategoryGroupBy) Ints

func (s *FnetCategoryGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) IntsX

func (s *FnetCategoryGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetCategoryGroupBy) Scan

func (fcgb *FnetCategoryGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*FnetCategoryGroupBy) ScanX

func (s *FnetCategoryGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetCategoryGroupBy) String

func (s *FnetCategoryGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) StringX

func (s *FnetCategoryGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetCategoryGroupBy) Strings

func (s *FnetCategoryGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetCategoryGroupBy) StringsX

func (s *FnetCategoryGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

func (m *FnetCategoryMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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) 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

Where appends a list predicates to the FnetCategoryMutation builder.

type FnetCategoryQuery

type FnetCategoryQuery struct {
	// contains filtered or unexported fields
}

FnetCategoryQuery is the builder for querying FnetCategory entities.

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) ([]int, 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 adds a limit step to the query.

func (*FnetCategoryQuery) Offset

func (fcq *FnetCategoryQuery) Offset(offset int) *FnetCategoryQuery

Offset adds an offset step to the query.

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 ...OrderFunc) *FnetCategoryQuery

Order adds an order step to the query.

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

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) Bool

func (s *FnetCategorySelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) BoolX

func (s *FnetCategorySelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetCategorySelect) Bools

func (s *FnetCategorySelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) BoolsX

func (s *FnetCategorySelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetCategorySelect) Float64

func (s *FnetCategorySelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) Float64X

func (s *FnetCategorySelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetCategorySelect) Float64s

func (s *FnetCategorySelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) Float64sX

func (s *FnetCategorySelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetCategorySelect) Int

func (s *FnetCategorySelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) IntX

func (s *FnetCategorySelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetCategorySelect) Ints

func (s *FnetCategorySelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) IntsX

func (s *FnetCategorySelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetCategorySelect) Scan

func (fcs *FnetCategorySelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*FnetCategorySelect) ScanX

func (s *FnetCategorySelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetCategorySelect) String

func (s *FnetCategorySelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) StringX

func (s *FnetCategorySelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetCategorySelect) Strings

func (s *FnetCategorySelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetCategorySelect) StringsX

func (s *FnetCategorySelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

Save executes the query and returns the updated FnetCategory entity.

func (*FnetCategoryUpdateOne) SaveX

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.

type FnetCategoryUpsert

type FnetCategoryUpsert struct {
	*sql.UpdateSet
}

FnetCategoryUpsert is the "OnConflict" setter.

func (*FnetCategoryUpsert) SetName

SetName sets the "name" field.

func (*FnetCategoryUpsert) UpdateName

func (u *FnetCategoryUpsert) UpdateName() *FnetCategoryUpsert

UpdateName sets the "name" field to the value that was provided on create.

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetCategoryUpsertBulk) Exec

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

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) SetName

SetName sets the "name" field.

func (*FnetCategoryUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FnetCategoryCreateBulk.OnConflict documentation for more info.

func (*FnetCategoryUpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetCategoryUpsertOne) Exec

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

IDX is like ID, but panics if an error occurs.

func (*FnetCategoryUpsertOne) Ignore

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) SetName

SetName sets the "name" field.

func (*FnetCategoryUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FnetCategoryCreate.OnConflict documentation for more info.

func (*FnetCategoryUpsertOne) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

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

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

Delete returns a delete builder for FnetDocument.

func (*FnetDocumentClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*FnetDocumentClient) DeleteOneID

func (c *FnetDocumentClient) DeleteOneID(id int) *FnetDocumentDeleteOne

DeleteOne returns a builder for deleting the given entity by its id.

func (*FnetDocumentClient) Get

Get returns a FnetDocument entity by its id.

func (*FnetDocumentClient) GetX

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) Query

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

Update returns an update builder for FnetDocument.

func (*FnetDocumentClient) UpdateOne

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

Save creates the FnetDocument in the database.

func (*FnetDocumentCreate) SaveX

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

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

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

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.

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

func (s *FnetDocumentGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) BoolX

func (s *FnetDocumentGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetDocumentGroupBy) Bools

func (s *FnetDocumentGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) BoolsX

func (s *FnetDocumentGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetDocumentGroupBy) Float64

func (s *FnetDocumentGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) Float64X

func (s *FnetDocumentGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetDocumentGroupBy) Float64s

func (s *FnetDocumentGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) Float64sX

func (s *FnetDocumentGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetDocumentGroupBy) Int

func (s *FnetDocumentGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) IntX

func (s *FnetDocumentGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetDocumentGroupBy) Ints

func (s *FnetDocumentGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) IntsX

func (s *FnetDocumentGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetDocumentGroupBy) Scan

func (fdgb *FnetDocumentGroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*FnetDocumentGroupBy) ScanX

func (s *FnetDocumentGroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetDocumentGroupBy) String

func (s *FnetDocumentGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) StringX

func (s *FnetDocumentGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetDocumentGroupBy) Strings

func (s *FnetDocumentGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetDocumentGroupBy) StringsX

func (s *FnetDocumentGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

func (m *FnetDocumentMutation) OldField(ctx context.Context, name string) (ent.Value, error)

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

func (m *FnetDocumentMutation) OldReferenceDate(ctx context.Context) (v time.Time, err error)

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

func (m *FnetDocumentMutation) OldSubmissionDate(ctx context.Context) (v time.Time, err error)

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) 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

Where appends a list predicates to the FnetDocumentMutation builder.

type FnetDocumentQuery

type FnetDocumentQuery struct {
	// contains filtered or unexported fields
}

FnetDocumentQuery is the builder for querying FnetDocument entities.

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) ([]int, 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 adds a limit step to the query.

func (*FnetDocumentQuery) Offset

func (fdq *FnetDocumentQuery) Offset(offset int) *FnetDocumentQuery

Offset adds an offset step to the query.

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 ...OrderFunc) *FnetDocumentQuery

Order adds an order step to the query.

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

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) Bool

func (s *FnetDocumentSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) BoolX

func (s *FnetDocumentSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetDocumentSelect) Bools

func (s *FnetDocumentSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) BoolsX

func (s *FnetDocumentSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetDocumentSelect) Float64

func (s *FnetDocumentSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) Float64X

func (s *FnetDocumentSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetDocumentSelect) Float64s

func (s *FnetDocumentSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) Float64sX

func (s *FnetDocumentSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetDocumentSelect) Int

func (s *FnetDocumentSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) IntX

func (s *FnetDocumentSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetDocumentSelect) Ints

func (s *FnetDocumentSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) IntsX

func (s *FnetDocumentSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetDocumentSelect) Scan

func (fds *FnetDocumentSelect) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*FnetDocumentSelect) ScanX

func (s *FnetDocumentSelect) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetDocumentSelect) String

func (s *FnetDocumentSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) StringX

func (s *FnetDocumentSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetDocumentSelect) Strings

func (s *FnetDocumentSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetDocumentSelect) StringsX

func (s *FnetDocumentSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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) SetNillableFundMarketName

func (fdu *FnetDocumentUpdate) SetNillableFundMarketName(s *string) *FnetDocumentUpdate

SetNillableFundMarketName sets the "fund_market_name" 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) 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

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

Save executes the query and returns the updated FnetDocument entity.

func (*FnetDocumentUpdateOne) SaveX

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

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) SetNillableFundMarketName

func (fduo *FnetDocumentUpdateOne) SetNillableFundMarketName(s *string) *FnetDocumentUpdateOne

SetNillableFundMarketName sets the "fund_market_name" 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) 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

SetStatus sets the "status" field.

func (*FnetDocumentUpdateOne) SetSubCategory1

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

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.

type FnetDocumentUpsert

type FnetDocumentUpsert struct {
	*sql.UpdateSet
}

FnetDocumentUpsert is the "OnConflict" setter.

func (*FnetDocumentUpsert) AddFnetID

func (u *FnetDocumentUpsert) AddFnetID(v int) *FnetDocumentUpsert

AddFnetID adds v to the "fnet_id" field.

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) SetFnetID

func (u *FnetDocumentUpsert) SetFnetID(v int) *FnetDocumentUpsert

SetFnetID sets the "fnet_id" 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) UpdateFnetID

func (u *FnetDocumentUpsert) UpdateFnetID() *FnetDocumentUpsert

UpdateFnetID sets the "fnet_id" 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) AddFnetID

AddFnetID adds v to the "fnet_id" field.

func (*FnetDocumentUpsertBulk) AddVersion

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetDocumentUpsertBulk) Exec

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

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

SetCategoryStr sets the "category_str" field.

func (*FnetDocumentUpsertBulk) SetFnetID

SetFnetID sets the "fnet_id" 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

SetReviewed sets the "reviewed" field.

func (*FnetDocumentUpsertBulk) SetStatus

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

SetVersion sets the "version" field.

func (*FnetDocumentUpsertBulk) Update

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) UpdateFnetID

UpdateFnetID sets the "fnet_id" 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

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) AddFnetID

AddFnetID adds v to the "fnet_id" field.

func (*FnetDocumentUpsertOne) AddVersion

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetDocumentUpsertOne) Exec

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

IDX is like ID, but panics if an error occurs.

func (*FnetDocumentUpsertOne) Ignore

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) SetFnetID

SetFnetID sets the "fnet_id" 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

SetReviewed sets the "reviewed" field.

func (*FnetDocumentUpsertOne) SetStatus

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

SetVersion sets the "version" field.

func (*FnetDocumentUpsertOne) Update

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) UpdateFnetID

func (u *FnetDocumentUpsertOne) UpdateFnetID() *FnetDocumentUpsertOne

UpdateFnetID sets the "fnet_id" 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

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

Create returns a builder for creating a FnetSubCategory1 entity.

func (*FnetSubCategory1Client) CreateBulk

CreateBulk returns a builder for creating a bulk of FnetSubCategory1 entities.

func (*FnetSubCategory1Client) Delete

Delete returns a delete builder for FnetSubCategory1.

func (*FnetSubCategory1Client) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*FnetSubCategory1Client) DeleteOneID

DeleteOne returns a builder for deleting the given entity by its id.

func (*FnetSubCategory1Client) Get

Get returns a FnetSubCategory1 entity by its id.

func (*FnetSubCategory1Client) GetX

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) Query

Query returns a query builder for FnetSubCategory1.

func (*FnetSubCategory1Client) QueryDocuments

QueryDocuments queries the documents edge of a FnetSubCategory1.

func (*FnetSubCategory1Client) Update

Update returns an update builder for FnetSubCategory1.

func (*FnetSubCategory1Client) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FnetSubCategory1Client) UpdateOneID

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

AddDocuments adds the "documents" edges to the FnetDocument entity.

func (*FnetSubCategory1Create) Exec

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

Mutation returns the FnetSubCategory1Mutation object of the builder.

func (*FnetSubCategory1Create) OnConflict

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

Save creates the FnetSubCategory1 in the database.

func (*FnetSubCategory1Create) SaveX

SaveX calls Save and panics if Save returns an error.

func (*FnetSubCategory1Create) SetName

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

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

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

Save creates the FnetSubCategory1 entities in the database.

func (*FnetSubCategory1CreateBulk) SaveX

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

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

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.

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FnetSubCategory1GroupBy) Bool

func (s *FnetSubCategory1GroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) BoolX

func (s *FnetSubCategory1GroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Bools

func (s *FnetSubCategory1GroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) BoolsX

func (s *FnetSubCategory1GroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Float64

func (s *FnetSubCategory1GroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) Float64X

func (s *FnetSubCategory1GroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Float64s

func (s *FnetSubCategory1GroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) Float64sX

func (s *FnetSubCategory1GroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Int

func (s *FnetSubCategory1GroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) IntX

func (s *FnetSubCategory1GroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Ints

func (s *FnetSubCategory1GroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) IntsX

func (s *FnetSubCategory1GroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Scan

func (fscb *FnetSubCategory1GroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*FnetSubCategory1GroupBy) ScanX

func (s *FnetSubCategory1GroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) String

func (s *FnetSubCategory1GroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) StringX

func (s *FnetSubCategory1GroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetSubCategory1GroupBy) Strings

func (s *FnetSubCategory1GroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1GroupBy) StringsX

func (s *FnetSubCategory1GroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

func (m *FnetSubCategory1Mutation) OldField(ctx context.Context, name string) (ent.Value, error)

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) 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

Where appends a list predicates to the FnetSubCategory1Mutation builder.

type FnetSubCategory1Query

type FnetSubCategory1Query struct {
	// contains filtered or unexported fields
}

FnetSubCategory1Query is the builder for querying FnetSubCategory1 entities.

func (*FnetSubCategory1Query) All

All executes the query and returns a list of FnetSubCategory1s.

func (*FnetSubCategory1Query) AllX

AllX is like All, but panics if an error occurs.

func (*FnetSubCategory1Query) Clone

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

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

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) ([]int, 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 adds a limit step to the query.

func (*FnetSubCategory1Query) Offset

func (fsc *FnetSubCategory1Query) Offset(offset int) *FnetSubCategory1Query

Offset adds an offset step to the query.

func (*FnetSubCategory1Query) Only

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

OnlyX is like Only, but panics if an error occurs.

func (*FnetSubCategory1Query) Order

Order adds an order step to the query.

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

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) Bool

func (s *FnetSubCategory1Select) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) BoolX

func (s *FnetSubCategory1Select) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetSubCategory1Select) Bools

func (s *FnetSubCategory1Select) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) BoolsX

func (s *FnetSubCategory1Select) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetSubCategory1Select) Float64

func (s *FnetSubCategory1Select) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) Float64X

func (s *FnetSubCategory1Select) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetSubCategory1Select) Float64s

func (s *FnetSubCategory1Select) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) Float64sX

func (s *FnetSubCategory1Select) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetSubCategory1Select) Int

func (s *FnetSubCategory1Select) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) IntX

func (s *FnetSubCategory1Select) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetSubCategory1Select) Ints

func (s *FnetSubCategory1Select) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) IntsX

func (s *FnetSubCategory1Select) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetSubCategory1Select) Scan

func (fsc *FnetSubCategory1Select) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*FnetSubCategory1Select) ScanX

func (s *FnetSubCategory1Select) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetSubCategory1Select) String

func (s *FnetSubCategory1Select) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) StringX

func (s *FnetSubCategory1Select) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetSubCategory1Select) Strings

func (s *FnetSubCategory1Select) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory1Select) StringsX

func (s *FnetSubCategory1Select) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

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

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

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

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

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

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

RemoveDocuments removes "documents" edges to FnetDocument entities.

func (*FnetSubCategory1UpdateOne) Save

Save executes the query and returns the updated FnetSubCategory1 entity.

func (*FnetSubCategory1UpdateOne) SaveX

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.

type FnetSubCategory1Upsert

type FnetSubCategory1Upsert struct {
	*sql.UpdateSet
}

FnetSubCategory1Upsert is the "OnConflict" setter.

func (*FnetSubCategory1Upsert) SetName

SetName sets the "name" field.

func (*FnetSubCategory1Upsert) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetSubCategory1UpsertBulk) Exec

Exec executes the query.

func (*FnetSubCategory1UpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FnetSubCategory1UpsertBulk) Ignore

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) SetName

SetName sets the "name" field.

func (*FnetSubCategory1UpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FnetSubCategory1CreateBulk.OnConflict documentation for more info.

func (*FnetSubCategory1UpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*FnetSubCategory1UpsertBulk) UpdateNewValues

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetSubCategory1UpsertOne) Exec

Exec executes the query.

func (*FnetSubCategory1UpsertOne) ExecX

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

IDX is like ID, but panics if an error occurs.

func (*FnetSubCategory1UpsertOne) Ignore

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) SetName

SetName sets the "name" field.

func (*FnetSubCategory1UpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FnetSubCategory1Create.OnConflict documentation for more info.

func (*FnetSubCategory1UpsertOne) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*FnetSubCategory1UpsertOne) UpdateNewValues

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

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

Create returns a builder for creating a FnetSubCategory2 entity.

func (*FnetSubCategory2Client) CreateBulk

CreateBulk returns a builder for creating a bulk of FnetSubCategory2 entities.

func (*FnetSubCategory2Client) Delete

Delete returns a delete builder for FnetSubCategory2.

func (*FnetSubCategory2Client) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*FnetSubCategory2Client) DeleteOneID

DeleteOne returns a builder for deleting the given entity by its id.

func (*FnetSubCategory2Client) Get

Get returns a FnetSubCategory2 entity by its id.

func (*FnetSubCategory2Client) GetX

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) Query

Query returns a query builder for FnetSubCategory2.

func (*FnetSubCategory2Client) QueryDocuments

QueryDocuments queries the documents edge of a FnetSubCategory2.

func (*FnetSubCategory2Client) Update

Update returns an update builder for FnetSubCategory2.

func (*FnetSubCategory2Client) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*FnetSubCategory2Client) UpdateOneID

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

AddDocuments adds the "documents" edges to the FnetDocument entity.

func (*FnetSubCategory2Create) Exec

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

Mutation returns the FnetSubCategory2Mutation object of the builder.

func (*FnetSubCategory2Create) OnConflict

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

Save creates the FnetSubCategory2 in the database.

func (*FnetSubCategory2Create) SaveX

SaveX calls Save and panics if Save returns an error.

func (*FnetSubCategory2Create) SetName

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

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

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

Save creates the FnetSubCategory2 entities in the database.

func (*FnetSubCategory2CreateBulk) SaveX

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

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

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.

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

Aggregate adds the given aggregation functions to the group-by query.

func (*FnetSubCategory2GroupBy) Bool

func (s *FnetSubCategory2GroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) BoolX

func (s *FnetSubCategory2GroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Bools

func (s *FnetSubCategory2GroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) BoolsX

func (s *FnetSubCategory2GroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Float64

func (s *FnetSubCategory2GroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) Float64X

func (s *FnetSubCategory2GroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Float64s

func (s *FnetSubCategory2GroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) Float64sX

func (s *FnetSubCategory2GroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Int

func (s *FnetSubCategory2GroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) IntX

func (s *FnetSubCategory2GroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Ints

func (s *FnetSubCategory2GroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) IntsX

func (s *FnetSubCategory2GroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Scan

func (fscb *FnetSubCategory2GroupBy) Scan(ctx context.Context, v interface{}) error

Scan applies the group-by query and scans the result into the given value.

func (*FnetSubCategory2GroupBy) ScanX

func (s *FnetSubCategory2GroupBy) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) String

func (s *FnetSubCategory2GroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) StringX

func (s *FnetSubCategory2GroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetSubCategory2GroupBy) Strings

func (s *FnetSubCategory2GroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2GroupBy) StringsX

func (s *FnetSubCategory2GroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

func (m *FnetSubCategory2Mutation) OldField(ctx context.Context, name string) (ent.Value, error)

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) 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

Where appends a list predicates to the FnetSubCategory2Mutation builder.

type FnetSubCategory2Query

type FnetSubCategory2Query struct {
	// contains filtered or unexported fields
}

FnetSubCategory2Query is the builder for querying FnetSubCategory2 entities.

func (*FnetSubCategory2Query) All

All executes the query and returns a list of FnetSubCategory2s.

func (*FnetSubCategory2Query) AllX

AllX is like All, but panics if an error occurs.

func (*FnetSubCategory2Query) Clone

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

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

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) ([]int, 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 adds a limit step to the query.

func (*FnetSubCategory2Query) Offset

func (fsc *FnetSubCategory2Query) Offset(offset int) *FnetSubCategory2Query

Offset adds an offset step to the query.

func (*FnetSubCategory2Query) Only

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

OnlyX is like Only, but panics if an error occurs.

func (*FnetSubCategory2Query) Order

Order adds an order step to the query.

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

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) Bool

func (s *FnetSubCategory2Select) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) BoolX

func (s *FnetSubCategory2Select) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*FnetSubCategory2Select) Bools

func (s *FnetSubCategory2Select) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) BoolsX

func (s *FnetSubCategory2Select) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*FnetSubCategory2Select) Float64

func (s *FnetSubCategory2Select) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) Float64X

func (s *FnetSubCategory2Select) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*FnetSubCategory2Select) Float64s

func (s *FnetSubCategory2Select) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) Float64sX

func (s *FnetSubCategory2Select) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*FnetSubCategory2Select) Int

func (s *FnetSubCategory2Select) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) IntX

func (s *FnetSubCategory2Select) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*FnetSubCategory2Select) Ints

func (s *FnetSubCategory2Select) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) IntsX

func (s *FnetSubCategory2Select) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*FnetSubCategory2Select) Scan

func (fsc *FnetSubCategory2Select) Scan(ctx context.Context, v interface{}) error

Scan applies the selector query and scans the result into the given value.

func (*FnetSubCategory2Select) ScanX

func (s *FnetSubCategory2Select) ScanX(ctx context.Context, v interface{})

ScanX is like Scan, but panics if an error occurs.

func (*FnetSubCategory2Select) String

func (s *FnetSubCategory2Select) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) StringX

func (s *FnetSubCategory2Select) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*FnetSubCategory2Select) Strings

func (s *FnetSubCategory2Select) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*FnetSubCategory2Select) StringsX

func (s *FnetSubCategory2Select) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

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

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

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

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

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

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

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

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

RemoveDocuments removes "documents" edges to FnetDocument entities.

func (*FnetSubCategory2UpdateOne) Save

Save executes the query and returns the updated FnetSubCategory2 entity.

func (*FnetSubCategory2UpdateOne) SaveX

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.

type FnetSubCategory2Upsert

type FnetSubCategory2Upsert struct {
	*sql.UpdateSet
}

FnetSubCategory2Upsert is the "OnConflict" setter.

func (*FnetSubCategory2Upsert) SetName

SetName sets the "name" field.

func (*FnetSubCategory2Upsert) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetSubCategory2UpsertBulk) Exec

Exec executes the query.

func (*FnetSubCategory2UpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*FnetSubCategory2UpsertBulk) Ignore

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) SetName

SetName sets the "name" field.

func (*FnetSubCategory2UpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the FnetSubCategory2CreateBulk.OnConflict documentation for more info.

func (*FnetSubCategory2UpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*FnetSubCategory2UpsertBulk) UpdateNewValues

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

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*FnetSubCategory2UpsertOne) Exec

Exec executes the query.

func (*FnetSubCategory2UpsertOne) ExecX

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

IDX is like ID, but panics if an error occurs.

func (*FnetSubCategory2UpsertOne) Ignore

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) SetName

SetName sets the "name" field.

func (*FnetSubCategory2UpsertOne) Update

Update allows overriding fields `UPDATE` values. See the FnetSubCategory2Create.OnConflict documentation for more info.

func (*FnetSubCategory2UpsertOne) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*FnetSubCategory2UpsertOne) UpdateNewValues

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 Hook

type Hook = ent.Hook

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 Mutation

type Mutation = ent.Mutation

ent aliases to avoid import conflicts in user's code.

type Mutator

type Mutator = ent.Mutator

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 Op

type Op = ent.Op

ent aliases to avoid import conflicts in user's code.

type Option

type Option func(*config)

Option function to configure the client.

func Debug

func Debug() Option

Debug enables debug logging on the ent.Driver.

func Driver

func Driver(driver dialect.Driver) Option

Driver configures the client driver.

func Log

func Log(fn func(...interface{})) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector.

func Asc

func Asc(fields ...string) OrderFunc

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) OrderFunc

Desc applies the given fields in DESC order.

type Policy

type Policy = ent.Policy

ent aliases to avoid import conflicts in user's code.

type Query

type Query = ent.Query

ent aliases to avoid import conflicts in user's code.

type RollbackFunc

type RollbackFunc func(context.Context, *Tx) error

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.

func (RollbackFunc) Rollback

func (f RollbackFunc) Rollback(ctx context.Context, tx *Tx) error

Rollback calls f(ctx, m).

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

type Rollbacker interface {
	Rollback(context.Context, *Tx) error
}

Rollbacker is the interface that wraps the Rollback method.

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

func TxFromContext(ctx context.Context) *Tx

TxFromContext returns a Tx stored inside a context, or nil if there isn't one.

func (*Tx) Client

func (tx *Tx) Client() *Client

Client returns a Client that binds to current transaction.

func (*Tx) Commit

func (tx *Tx) Commit() error

Commit commits the transaction.

func (*Tx) OnCommit

func (tx *Tx) OnCommit(f CommitHook)

OnCommit adds a hook to call on commit.

func (*Tx) OnRollback

func (tx *Tx) OnRollback(f RollbackHook)

OnRollback adds a hook to call on rollback.

func (*Tx) Rollback

func (tx *Tx) Rollback() error

Rollback rollbacks the transaction.

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.

type Value

type Value = ent.Value

ent aliases to avoid import conflicts in user's code.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL