ent

package
v0.0.0-...-8064f01 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 34 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.
	TypeRent591Home                                = "Rent591Home"
	TypeRent591HomeDetail                          = "Rent591HomeDetail"
	TypeRent591HomeDetailBreadcrumb                = "Rent591HomeDetailBreadcrumb"
	TypeRent591HomeDetailBrowse                    = "Rent591HomeDetailBrowse"
	TypeRent591HomeDetailInfo                      = "Rent591HomeDetailInfo"
	TypeRent591HomeDetailNavData                   = "Rent591HomeDetailNavData"
	TypeRent591HomeDetailPositionRound             = "Rent591HomeDetailPositionRound"
	TypeRent591HomeDetailPositionRoundData         = "Rent591HomeDetailPositionRoundData"
	TypeRent591HomeDetailPositionRoundDataChildren = "Rent591HomeDetailPositionRoundDataChildren"
	TypeRent591HomeDetailPublish                   = "Rent591HomeDetailPublish"
	TypeRent591HomeDetailShareInfo                 = "Rent591HomeDetailShareInfo"
	TypeRent591HomeDetailTag                       = "Rent591HomeDetailTag"
	TypeRent591HomeSurrounding                     = "Rent591HomeSurrounding"
	TypeRent591HomeTag                             = "Rent591HomeTag"
)

Variables

This section is empty.

Functions

func Asc

func Asc(fields ...string) func(*sql.Selector)

Asc applies the given fields in ASC order.

func Desc

func Desc(fields ...string) func(*sql.Selector)

Desc applies the given fields in DESC order.

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
	// Rent591Home is the client for interacting with the Rent591Home builders.
	Rent591Home *Rent591HomeClient
	// Rent591HomeDetail is the client for interacting with the Rent591HomeDetail builders.
	Rent591HomeDetail *Rent591HomeDetailClient
	// Rent591HomeDetailBreadcrumb is the client for interacting with the Rent591HomeDetailBreadcrumb builders.
	Rent591HomeDetailBreadcrumb *Rent591HomeDetailBreadcrumbClient
	// Rent591HomeDetailBrowse is the client for interacting with the Rent591HomeDetailBrowse builders.
	Rent591HomeDetailBrowse *Rent591HomeDetailBrowseClient
	// Rent591HomeDetailInfo is the client for interacting with the Rent591HomeDetailInfo builders.
	Rent591HomeDetailInfo *Rent591HomeDetailInfoClient
	// Rent591HomeDetailNavData is the client for interacting with the Rent591HomeDetailNavData builders.
	Rent591HomeDetailNavData *Rent591HomeDetailNavDataClient
	// Rent591HomeDetailPositionRound is the client for interacting with the Rent591HomeDetailPositionRound builders.
	Rent591HomeDetailPositionRound *Rent591HomeDetailPositionRoundClient
	// Rent591HomeDetailPositionRoundData is the client for interacting with the Rent591HomeDetailPositionRoundData builders.
	Rent591HomeDetailPositionRoundData *Rent591HomeDetailPositionRoundDataClient
	// Rent591HomeDetailPositionRoundDataChildren is the client for interacting with the Rent591HomeDetailPositionRoundDataChildren builders.
	Rent591HomeDetailPositionRoundDataChildren *Rent591HomeDetailPositionRoundDataChildrenClient
	// Rent591HomeDetailPublish is the client for interacting with the Rent591HomeDetailPublish builders.
	Rent591HomeDetailPublish *Rent591HomeDetailPublishClient
	// Rent591HomeDetailShareInfo is the client for interacting with the Rent591HomeDetailShareInfo builders.
	Rent591HomeDetailShareInfo *Rent591HomeDetailShareInfoClient
	// Rent591HomeDetailTag is the client for interacting with the Rent591HomeDetailTag builders.
	Rent591HomeDetailTag *Rent591HomeDetailTagClient
	// Rent591HomeSurrounding is the client for interacting with the Rent591HomeSurrounding builders.
	Rent591HomeSurrounding *Rent591HomeSurroundingClient
	// Rent591HomeTag is the client for interacting with the Rent591HomeTag builders.
	Rent591HomeTag *Rent591HomeTagClient
	// 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().
	Rent591Home.
	Query().
	Count(ctx)

func (*Client) Intercept

func (c *Client) Intercept(interceptors ...Interceptor)

Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.

func (*Client) Mutate

func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)

Mutate implements the ent.Mutator interface.

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 Hook

type Hook = ent.Hook

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

type InterceptFunc

type InterceptFunc = ent.InterceptFunc

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

type Interceptor

type Interceptor = ent.Interceptor

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

type MutateFunc

type MutateFunc = ent.MutateFunc

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

type 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(...any)) Option

Log sets the logging function for debug mode.

type OrderFunc

type OrderFunc func(*sql.Selector)

OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.

type Policy

type Policy = ent.Policy

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

type Querier

type Querier = ent.Querier

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

type QuerierFunc

type QuerierFunc = ent.QuerierFunc

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 QueryContext

type QueryContext = ent.QueryContext

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

type Rent591Home

type Rent591Home struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Type holds the value of the "type" field.
	Type int `json:"type,omitempty"`
	// PostID holds the value of the "post_id" field.
	PostID int `json:"post_id,omitempty"`
	// KindName holds the value of the "kind_name" field.
	KindName string `json:"kind_name,omitempty"`
	// RoomStr holds the value of the "room_str" field.
	RoomStr string `json:"room_str,omitempty"`
	// FloorStr holds the value of the "floor_str" field.
	FloorStr string `json:"floor_str,omitempty"`
	// Community holds the value of the "community" field.
	Community string `json:"community,omitempty"`
	// Price holds the value of the "price" field.
	Price int `json:"price,omitempty"`
	// PriceUnit holds the value of the "price_unit" field.
	PriceUnit string `json:"price_unit,omitempty"`
	// PhotoList holds the value of the "photo_list" field.
	PhotoList []string `json:"photo_list,omitempty"`
	// RegionName holds the value of the "region_name" field.
	RegionName string `json:"region_name,omitempty"`
	// SectionName holds the value of the "section_name" field.
	SectionName string `json:"section_name,omitempty"`
	// StreetName holds the value of the "street_name" field.
	StreetName string `json:"street_name,omitempty"`
	// Location holds the value of the "location" field.
	Location string `json:"location,omitempty"`
	// Area holds the value of the "area" field.
	Area string `json:"area,omitempty"`
	// RoleName holds the value of the "role_name" field.
	RoleName string `json:"role_name,omitempty"`
	// Contact holds the value of the "contact" field.
	Contact string `json:"contact,omitempty"`
	// RefreshTime holds the value of the "refresh_time" field.
	RefreshTime string `json:"refresh_time,omitempty"`
	// YesterdayHit holds the value of the "yesterday_hit" field.
	YesterdayHit int `json:"yesterday_hit,omitempty"`
	// IsVip holds the value of the "is_vip" field.
	IsVip int `json:"is_vip,omitempty"`
	// IsCombine holds the value of the "is_combine" field.
	IsCombine int `json:"is_combine,omitempty"`
	// Hurry holds the value of the "hurry" field.
	Hurry int `json:"hurry,omitempty"`
	// IsSocial holds the value of the "is_social" field.
	IsSocial int `json:"is_social,omitempty"`
	// DiscountPriceStr holds the value of the "discount_price_str" field.
	DiscountPriceStr string `json:"discount_price_str,omitempty"`
	// CasesID holds the value of the "cases_id" field.
	CasesID int `json:"cases_id,omitempty"`
	// IsVideo holds the value of the "is_video" field.
	IsVideo int `json:"is_video,omitempty"`
	// Preferred holds the value of the "preferred" field.
	Preferred int `json:"preferred,omitempty"`
	// Cid holds the value of the "cid" field.
	Cid int `json:"cid,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeQuery when eager-loading is set.
	Edges Rent591HomeEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591Home is the model entity for the Rent591Home schema.

func (*Rent591Home) QueryRent591homeDetails

func (r *Rent591Home) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591Home entity.

func (*Rent591Home) QueryRent591homeSurroundings

func (r *Rent591Home) QueryRent591homeSurroundings() *Rent591HomeSurroundingQuery

QueryRent591homeSurroundings queries the "rent591home_surroundings" edge of the Rent591Home entity.

func (*Rent591Home) QueryRent591homeTags

func (r *Rent591Home) QueryRent591homeTags() *Rent591HomeTagQuery

QueryRent591homeTags queries the "rent591home_tags" edge of the Rent591Home entity.

func (*Rent591Home) String

func (r *Rent591Home) String() string

String implements the fmt.Stringer.

func (*Rent591Home) Unwrap

func (r *Rent591Home) Unwrap() *Rent591Home

Unwrap unwraps the Rent591Home 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 (*Rent591Home) Update

func (r *Rent591Home) Update() *Rent591HomeUpdateOne

Update returns a builder for updating this Rent591Home. Note that you need to call Rent591Home.Unwrap() before calling this method if this Rent591Home was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591Home) Value

func (r *Rent591Home) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591Home. This includes values selected through modifiers, order, etc.

type Rent591HomeClient

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

Rent591HomeClient is a client for the Rent591Home schema.

func NewRent591HomeClient

func NewRent591HomeClient(c config) *Rent591HomeClient

NewRent591HomeClient returns a client for the Rent591Home from the given config.

func (*Rent591HomeClient) Create

func (c *Rent591HomeClient) Create() *Rent591HomeCreate

Create returns a builder for creating a Rent591Home entity.

func (*Rent591HomeClient) CreateBulk

func (c *Rent591HomeClient) CreateBulk(builders ...*Rent591HomeCreate) *Rent591HomeCreateBulk

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

func (*Rent591HomeClient) Delete

func (c *Rent591HomeClient) Delete() *Rent591HomeDelete

Delete returns a delete builder for Rent591Home.

func (*Rent591HomeClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeClient) DeleteOneID

func (c *Rent591HomeClient) DeleteOneID(id int) *Rent591HomeDeleteOne

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

func (*Rent591HomeClient) Get

func (c *Rent591HomeClient) Get(ctx context.Context, id int) (*Rent591Home, error)

Get returns a Rent591Home entity by its id.

func (*Rent591HomeClient) GetX

func (c *Rent591HomeClient) GetX(ctx context.Context, id int) *Rent591Home

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeClient) Hooks

func (c *Rent591HomeClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeClient) Intercept

func (c *Rent591HomeClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591home.Intercept(f(g(h())))`.

func (*Rent591HomeClient) Interceptors

func (c *Rent591HomeClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeClient) Query

func (c *Rent591HomeClient) Query() *Rent591HomeQuery

Query returns a query builder for Rent591Home.

func (*Rent591HomeClient) QueryRent591homeDetails

func (c *Rent591HomeClient) QueryRent591homeDetails(r *Rent591Home) *Rent591HomeDetailQuery

QueryRent591homeDetails queries the rent591home_details edge of a Rent591Home.

func (*Rent591HomeClient) QueryRent591homeSurroundings

func (c *Rent591HomeClient) QueryRent591homeSurroundings(r *Rent591Home) *Rent591HomeSurroundingQuery

QueryRent591homeSurroundings queries the rent591home_surroundings edge of a Rent591Home.

func (*Rent591HomeClient) QueryRent591homeTags

func (c *Rent591HomeClient) QueryRent591homeTags(r *Rent591Home) *Rent591HomeTagQuery

QueryRent591homeTags queries the rent591home_tags edge of a Rent591Home.

func (*Rent591HomeClient) Update

func (c *Rent591HomeClient) Update() *Rent591HomeUpdate

Update returns an update builder for Rent591Home.

func (*Rent591HomeClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeClient) UpdateOneID

func (c *Rent591HomeClient) UpdateOneID(id int) *Rent591HomeUpdateOne

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591home.Hooks(f(g(h())))`.

type Rent591HomeCreate

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

Rent591HomeCreate is the builder for creating a Rent591Home entity.

func (*Rent591HomeCreate) AddRent591homeTagIDs

func (rc *Rent591HomeCreate) AddRent591homeTagIDs(ids ...int) *Rent591HomeCreate

AddRent591homeTagIDs adds the "rent591home_tags" edge to the Rent591HomeTag entity by IDs.

func (*Rent591HomeCreate) AddRent591homeTags

func (rc *Rent591HomeCreate) AddRent591homeTags(r ...*Rent591HomeTag) *Rent591HomeCreate

AddRent591homeTags adds the "rent591home_tags" edges to the Rent591HomeTag entity.

func (*Rent591HomeCreate) Exec

func (rc *Rent591HomeCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*Rent591HomeCreate) ExecX

func (rc *Rent591HomeCreate) ExecX(ctx context.Context)

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

func (*Rent591HomeCreate) Mutation

func (rc *Rent591HomeCreate) Mutation() *Rent591HomeMutation

Mutation returns the Rent591HomeMutation object of the builder.

func (*Rent591HomeCreate) OnConflict

func (rc *Rent591HomeCreate) OnConflict(opts ...sql.ConflictOption) *Rent591HomeUpsertOne

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591Home.Create().
	SetTitle(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.Rent591HomeUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeCreate) OnConflictColumns

func (rc *Rent591HomeCreate) OnConflictColumns(columns ...string) *Rent591HomeUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591Home.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeCreate) Save

Save creates the Rent591Home in the database.

func (*Rent591HomeCreate) SaveX

func (rc *Rent591HomeCreate) SaveX(ctx context.Context) *Rent591Home

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeCreate) SetArea

func (rc *Rent591HomeCreate) SetArea(s string) *Rent591HomeCreate

SetArea sets the "area" field.

func (*Rent591HomeCreate) SetCasesID

func (rc *Rent591HomeCreate) SetCasesID(i int) *Rent591HomeCreate

SetCasesID sets the "cases_id" field.

func (*Rent591HomeCreate) SetCid

func (rc *Rent591HomeCreate) SetCid(i int) *Rent591HomeCreate

SetCid sets the "cid" field.

func (*Rent591HomeCreate) SetCommunity

func (rc *Rent591HomeCreate) SetCommunity(s string) *Rent591HomeCreate

SetCommunity sets the "community" field.

func (*Rent591HomeCreate) SetContact

func (rc *Rent591HomeCreate) SetContact(s string) *Rent591HomeCreate

SetContact sets the "contact" field.

func (*Rent591HomeCreate) SetCreatedAt

func (rc *Rent591HomeCreate) SetCreatedAt(t time.Time) *Rent591HomeCreate

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeCreate) SetDiscountPriceStr

func (rc *Rent591HomeCreate) SetDiscountPriceStr(s string) *Rent591HomeCreate

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeCreate) SetFloorStr

func (rc *Rent591HomeCreate) SetFloorStr(s string) *Rent591HomeCreate

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeCreate) SetHurry

func (rc *Rent591HomeCreate) SetHurry(i int) *Rent591HomeCreate

SetHurry sets the "hurry" field.

func (*Rent591HomeCreate) SetIsCombine

func (rc *Rent591HomeCreate) SetIsCombine(i int) *Rent591HomeCreate

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeCreate) SetIsSocial

func (rc *Rent591HomeCreate) SetIsSocial(i int) *Rent591HomeCreate

SetIsSocial sets the "is_social" field.

func (*Rent591HomeCreate) SetIsVideo

func (rc *Rent591HomeCreate) SetIsVideo(i int) *Rent591HomeCreate

SetIsVideo sets the "is_video" field.

func (*Rent591HomeCreate) SetIsVip

func (rc *Rent591HomeCreate) SetIsVip(i int) *Rent591HomeCreate

SetIsVip sets the "is_vip" field.

func (*Rent591HomeCreate) SetKindName

func (rc *Rent591HomeCreate) SetKindName(s string) *Rent591HomeCreate

SetKindName sets the "kind_name" field.

func (*Rent591HomeCreate) SetLocation

func (rc *Rent591HomeCreate) SetLocation(s string) *Rent591HomeCreate

SetLocation sets the "location" field.

func (*Rent591HomeCreate) SetNillableCreatedAt

func (rc *Rent591HomeCreate) SetNillableCreatedAt(t *time.Time) *Rent591HomeCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeCreate) SetNillableRegionName

func (rc *Rent591HomeCreate) SetNillableRegionName(s *string) *Rent591HomeCreate

SetNillableRegionName sets the "region_name" field if the given value is not nil.

func (*Rent591HomeCreate) SetNillableRent591homeDetailsID

func (rc *Rent591HomeCreate) SetNillableRent591homeDetailsID(id *int) *Rent591HomeCreate

SetNillableRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID if the given value is not nil.

func (*Rent591HomeCreate) SetNillableRent591homeSurroundingsID

func (rc *Rent591HomeCreate) SetNillableRent591homeSurroundingsID(id *int) *Rent591HomeCreate

SetNillableRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by ID if the given value is not nil.

func (*Rent591HomeCreate) SetNillableUpdatedAt

func (rc *Rent591HomeCreate) SetNillableUpdatedAt(t *time.Time) *Rent591HomeCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*Rent591HomeCreate) SetPhotoList

func (rc *Rent591HomeCreate) SetPhotoList(s []string) *Rent591HomeCreate

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeCreate) SetPostID

func (rc *Rent591HomeCreate) SetPostID(i int) *Rent591HomeCreate

SetPostID sets the "post_id" field.

func (*Rent591HomeCreate) SetPreferred

func (rc *Rent591HomeCreate) SetPreferred(i int) *Rent591HomeCreate

SetPreferred sets the "preferred" field.

func (*Rent591HomeCreate) SetPrice

func (rc *Rent591HomeCreate) SetPrice(i int) *Rent591HomeCreate

SetPrice sets the "price" field.

func (*Rent591HomeCreate) SetPriceUnit

func (rc *Rent591HomeCreate) SetPriceUnit(s string) *Rent591HomeCreate

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeCreate) SetRefreshTime

func (rc *Rent591HomeCreate) SetRefreshTime(s string) *Rent591HomeCreate

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeCreate) SetRegionName

func (rc *Rent591HomeCreate) SetRegionName(s string) *Rent591HomeCreate

SetRegionName sets the "region_name" field.

func (*Rent591HomeCreate) SetRent591homeDetails

func (rc *Rent591HomeCreate) SetRent591homeDetails(r *Rent591HomeDetail) *Rent591HomeCreate

SetRent591homeDetails sets the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeCreate) SetRent591homeDetailsID

func (rc *Rent591HomeCreate) SetRent591homeDetailsID(id int) *Rent591HomeCreate

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID.

func (*Rent591HomeCreate) SetRent591homeSurroundings

func (rc *Rent591HomeCreate) SetRent591homeSurroundings(r *Rent591HomeSurrounding) *Rent591HomeCreate

SetRent591homeSurroundings sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity.

func (*Rent591HomeCreate) SetRent591homeSurroundingsID

func (rc *Rent591HomeCreate) SetRent591homeSurroundingsID(id int) *Rent591HomeCreate

SetRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by ID.

func (*Rent591HomeCreate) SetRoleName

func (rc *Rent591HomeCreate) SetRoleName(s string) *Rent591HomeCreate

SetRoleName sets the "role_name" field.

func (*Rent591HomeCreate) SetRoomStr

func (rc *Rent591HomeCreate) SetRoomStr(s string) *Rent591HomeCreate

SetRoomStr sets the "room_str" field.

func (*Rent591HomeCreate) SetSectionName

func (rc *Rent591HomeCreate) SetSectionName(s string) *Rent591HomeCreate

SetSectionName sets the "section_name" field.

func (*Rent591HomeCreate) SetStreetName

func (rc *Rent591HomeCreate) SetStreetName(s string) *Rent591HomeCreate

SetStreetName sets the "street_name" field.

func (*Rent591HomeCreate) SetTitle

func (rc *Rent591HomeCreate) SetTitle(s string) *Rent591HomeCreate

SetTitle sets the "title" field.

func (*Rent591HomeCreate) SetType

func (rc *Rent591HomeCreate) SetType(i int) *Rent591HomeCreate

SetType sets the "type" field.

func (*Rent591HomeCreate) SetUpdatedAt

func (rc *Rent591HomeCreate) SetUpdatedAt(t time.Time) *Rent591HomeCreate

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeCreate) SetYesterdayHit

func (rc *Rent591HomeCreate) SetYesterdayHit(i int) *Rent591HomeCreate

SetYesterdayHit sets the "yesterday_hit" field.

type Rent591HomeCreateBulk

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

Rent591HomeCreateBulk is the builder for creating many Rent591Home entities in bulk.

func (*Rent591HomeCreateBulk) Exec

func (rcb *Rent591HomeCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*Rent591HomeCreateBulk) ExecX

func (rcb *Rent591HomeCreateBulk) ExecX(ctx context.Context)

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

func (*Rent591HomeCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591Home.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.Rent591HomeUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeCreateBulk) OnConflictColumns

func (rcb *Rent591HomeCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591Home.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeCreateBulk) Save

func (rcb *Rent591HomeCreateBulk) Save(ctx context.Context) ([]*Rent591Home, error)

Save creates the Rent591Home entities in the database.

func (*Rent591HomeCreateBulk) SaveX

func (rcb *Rent591HomeCreateBulk) SaveX(ctx context.Context) []*Rent591Home

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDelete

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

Rent591HomeDelete is the builder for deleting a Rent591Home entity.

func (*Rent591HomeDelete) Exec

func (rd *Rent591HomeDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDelete) ExecX

func (rd *Rent591HomeDelete) ExecX(ctx context.Context) int

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

func (*Rent591HomeDelete) Where

Where appends a list predicates to the Rent591HomeDelete builder.

type Rent591HomeDeleteOne

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

Rent591HomeDeleteOne is the builder for deleting a single Rent591Home entity.

func (*Rent591HomeDeleteOne) Exec

func (rdo *Rent591HomeDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*Rent591HomeDeleteOne) ExecX

func (rdo *Rent591HomeDeleteOne) ExecX(ctx context.Context)

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

func (*Rent591HomeDeleteOne) Where

Where appends a list predicates to the Rent591HomeDelete builder.

type Rent591HomeDetail

type Rent591HomeDetail struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Deposit holds the value of the "deposit" field.
	Deposit string `json:"deposit,omitempty"`
	// Kind holds the value of the "kind" field.
	Kind int `json:"kind,omitempty"`
	// Relieved holds the value of the "relieved" field.
	Relieved int `json:"relieved,omitempty"`
	// RegionID holds the value of the "region_id" field.
	RegionID int `json:"region_id,omitempty"`
	// SectionID holds the value of the "section_id" field.
	SectionID int `json:"section_id,omitempty"`
	// DealText holds the value of the "deal_text" field.
	DealText string `json:"deal_text,omitempty"`
	// DealTime holds the value of the "deal_time" field.
	DealTime int `json:"deal_time,omitempty"`
	// Price holds the value of the "price" field.
	Price int `json:"price,omitempty"`
	// PriceUnit holds the value of the "price_unit" field.
	PriceUnit string `json:"price_unit,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailQuery when eager-loading is set.
	Edges Rent591HomeDetailEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetail is the model entity for the Rent591HomeDetail schema.

func (*Rent591HomeDetail) QueryRent591homeDetailBreadcrumbs

func (rd *Rent591HomeDetail) QueryRent591homeDetailBreadcrumbs() *Rent591HomeDetailBreadcrumbQuery

QueryRent591homeDetailBreadcrumbs queries the "rent591home_detail_breadcrumbs" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailBrowses

func (rd *Rent591HomeDetail) QueryRent591homeDetailBrowses() *Rent591HomeDetailBrowseQuery

QueryRent591homeDetailBrowses queries the "rent591home_detail_browses" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailInfos

func (rd *Rent591HomeDetail) QueryRent591homeDetailInfos() *Rent591HomeDetailInfoQuery

QueryRent591homeDetailInfos queries the "rent591home_detail_infos" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailNavdatas

func (rd *Rent591HomeDetail) QueryRent591homeDetailNavdatas() *Rent591HomeDetailNavDataQuery

QueryRent591homeDetailNavdatas queries the "rent591home_detail_navdatas" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailPositionRounds

func (rd *Rent591HomeDetail) QueryRent591homeDetailPositionRounds() *Rent591HomeDetailPositionRoundQuery

QueryRent591homeDetailPositionRounds queries the "rent591home_detail_position_rounds" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailPublishs

func (rd *Rent591HomeDetail) QueryRent591homeDetailPublishs() *Rent591HomeDetailPublishQuery

QueryRent591homeDetailPublishs queries the "rent591home_detail_publishs" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailShareinfos

func (rd *Rent591HomeDetail) QueryRent591homeDetailShareinfos() *Rent591HomeDetailShareInfoQuery

QueryRent591homeDetailShareinfos queries the "rent591home_detail_shareinfos" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homeDetailTags

func (rd *Rent591HomeDetail) QueryRent591homeDetailTags() *Rent591HomeDetailTagQuery

QueryRent591homeDetailTags queries the "rent591home_detail_tags" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) QueryRent591homes

func (rd *Rent591HomeDetail) QueryRent591homes() *Rent591HomeQuery

QueryRent591homes queries the "rent591homes" edge of the Rent591HomeDetail entity.

func (*Rent591HomeDetail) String

func (rd *Rent591HomeDetail) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetail) Unwrap

func (rd *Rent591HomeDetail) Unwrap() *Rent591HomeDetail

Unwrap unwraps the Rent591HomeDetail 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 (*Rent591HomeDetail) Update

Update returns a builder for updating this Rent591HomeDetail. Note that you need to call Rent591HomeDetail.Unwrap() before calling this method if this Rent591HomeDetail was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetail) Value

func (rd *Rent591HomeDetail) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetail. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailBreadcrumb

type Rent591HomeDetailBreadcrumb struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// PostID holds the value of the "post_id" field.
	PostID int `json:"post_id,omitempty"`
	// Query holds the value of the "query" field.
	Query string `json:"query,omitempty"`
	// Link holds the value of the "link" field.
	Link string `json:"link,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailBreadcrumbQuery when eager-loading is set.
	Edges Rent591HomeDetailBreadcrumbEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailBreadcrumb is the model entity for the Rent591HomeDetailBreadcrumb schema.

func (*Rent591HomeDetailBreadcrumb) QueryRent591homeDetails

func (rdb *Rent591HomeDetailBreadcrumb) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumb) String

func (rdb *Rent591HomeDetailBreadcrumb) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailBreadcrumb) Unwrap

Unwrap unwraps the Rent591HomeDetailBreadcrumb 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 (*Rent591HomeDetailBreadcrumb) Update

Update returns a builder for updating this Rent591HomeDetailBreadcrumb. Note that you need to call Rent591HomeDetailBreadcrumb.Unwrap() before calling this method if this Rent591HomeDetailBreadcrumb was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailBreadcrumb) Value

func (rdb *Rent591HomeDetailBreadcrumb) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailBreadcrumb. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailBreadcrumbClient

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

Rent591HomeDetailBreadcrumbClient is a client for the Rent591HomeDetailBreadcrumb schema.

func NewRent591HomeDetailBreadcrumbClient

func NewRent591HomeDetailBreadcrumbClient(c config) *Rent591HomeDetailBreadcrumbClient

NewRent591HomeDetailBreadcrumbClient returns a client for the Rent591HomeDetailBreadcrumb from the given config.

func (*Rent591HomeDetailBreadcrumbClient) Create

Create returns a builder for creating a Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumbClient) CreateBulk

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

func (*Rent591HomeDetailBreadcrumbClient) Delete

Delete returns a delete builder for Rent591HomeDetailBreadcrumb.

func (*Rent591HomeDetailBreadcrumbClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailBreadcrumbClient) DeleteOneID

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

func (*Rent591HomeDetailBreadcrumbClient) Get

Get returns a Rent591HomeDetailBreadcrumb entity by its id.

func (*Rent591HomeDetailBreadcrumbClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbClient) Hooks

Hooks returns the client hooks.

func (*Rent591HomeDetailBreadcrumbClient) Intercept

func (c *Rent591HomeDetailBreadcrumbClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailbreadcrumb.Intercept(f(g(h())))`.

func (*Rent591HomeDetailBreadcrumbClient) Interceptors

func (c *Rent591HomeDetailBreadcrumbClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailBreadcrumbClient) Query

Query returns a query builder for Rent591HomeDetailBreadcrumb.

func (*Rent591HomeDetailBreadcrumbClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailBreadcrumb.

func (*Rent591HomeDetailBreadcrumbClient) Update

Update returns an update builder for Rent591HomeDetailBreadcrumb.

func (*Rent591HomeDetailBreadcrumbClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailBreadcrumbClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailBreadcrumbClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailbreadcrumb.Hooks(f(g(h())))`.

type Rent591HomeDetailBreadcrumbCreate

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

Rent591HomeDetailBreadcrumbCreate is the builder for creating a Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumbCreate) AddRent591homeDetailIDs

func (rdbc *Rent591HomeDetailBreadcrumbCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBreadcrumbCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBreadcrumbCreate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailBreadcrumbCreate) ExecX

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

func (*Rent591HomeDetailBreadcrumbCreate) Mutation

Mutation returns the Rent591HomeDetailBreadcrumbMutation object of the builder.

func (*Rent591HomeDetailBreadcrumbCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailBreadcrumb.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.Rent591HomeDetailBreadcrumbUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailBreadcrumbCreate) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailBreadcrumb.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailBreadcrumbCreate) Save

Save creates the Rent591HomeDetailBreadcrumb in the database.

func (*Rent591HomeDetailBreadcrumbCreate) SaveX

SaveX calls Save and panics if Save returns an error.

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbCreate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbCreate) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbCreate) SetQuery

SetQuery sets the "query" field.

type Rent591HomeDetailBreadcrumbCreateBulk

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

Rent591HomeDetailBreadcrumbCreateBulk is the builder for creating many Rent591HomeDetailBreadcrumb entities in bulk.

func (*Rent591HomeDetailBreadcrumbCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailBreadcrumbCreateBulk) ExecX

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

func (*Rent591HomeDetailBreadcrumbCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailBreadcrumb.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.Rent591HomeDetailBreadcrumbUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailBreadcrumbCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailBreadcrumb.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailBreadcrumbCreateBulk) Save

Save creates the Rent591HomeDetailBreadcrumb entities in the database.

func (*Rent591HomeDetailBreadcrumbCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailBreadcrumbDelete

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

Rent591HomeDetailBreadcrumbDelete is the builder for deleting a Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumbDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailBreadcrumbDelete) ExecX

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

func (*Rent591HomeDetailBreadcrumbDelete) Where

Where appends a list predicates to the Rent591HomeDetailBreadcrumbDelete builder.

type Rent591HomeDetailBreadcrumbDeleteOne

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

Rent591HomeDetailBreadcrumbDeleteOne is the builder for deleting a single Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumbDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailBreadcrumbDeleteOne) ExecX

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

func (*Rent591HomeDetailBreadcrumbDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailBreadcrumbDelete builder.

type Rent591HomeDetailBreadcrumbEdges

type Rent591HomeDetailBreadcrumbEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailBreadcrumbEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailBreadcrumbEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailBreadcrumbEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailBreadcrumbGroupBy

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

Rent591HomeDetailBreadcrumbGroupBy is the group-by builder for Rent591HomeDetailBreadcrumb entities.

func (*Rent591HomeDetailBreadcrumbGroupBy) Aggregate

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Bool

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) BoolX

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Bools

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) BoolsX

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Float64

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Float64X

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Float64s

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Float64sX

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Int

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) IntX

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Ints

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) IntsX

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Scan

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

func (*Rent591HomeDetailBreadcrumbGroupBy) ScanX

func (s *Rent591HomeDetailBreadcrumbGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailBreadcrumbGroupBy) String

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) StringX

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) Strings

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

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

func (*Rent591HomeDetailBreadcrumbGroupBy) StringsX

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

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

type Rent591HomeDetailBreadcrumbMutation

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

Rent591HomeDetailBreadcrumbMutation represents an operation that mutates the Rent591HomeDetailBreadcrumb nodes in the graph.

func (*Rent591HomeDetailBreadcrumbMutation) AddField

func (m *Rent591HomeDetailBreadcrumbMutation) 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 (*Rent591HomeDetailBreadcrumbMutation) AddPostID

func (m *Rent591HomeDetailBreadcrumbMutation) AddPostID(i int)

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailBreadcrumbMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailBreadcrumbMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailBreadcrumbMutation) AddedEdges

func (m *Rent591HomeDetailBreadcrumbMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) AddedField

func (m *Rent591HomeDetailBreadcrumbMutation) 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 (*Rent591HomeDetailBreadcrumbMutation) AddedFields

func (m *Rent591HomeDetailBreadcrumbMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) AddedIDs

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) AddedPostID

func (m *Rent591HomeDetailBreadcrumbMutation) AddedPostID() (r int, exists bool)

AddedPostID returns the value that was added to the "post_id" field in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) ClearEdge

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 (*Rent591HomeDetailBreadcrumbMutation) ClearField

func (m *Rent591HomeDetailBreadcrumbMutation) 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 (*Rent591HomeDetailBreadcrumbMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailBreadcrumbMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbMutation) ClearedEdges

func (m *Rent591HomeDetailBreadcrumbMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) ClearedFields

func (m *Rent591HomeDetailBreadcrumbMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailBreadcrumbMutation) 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 (*Rent591HomeDetailBreadcrumbMutation) EdgeCleared

func (m *Rent591HomeDetailBreadcrumbMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) Field

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 (*Rent591HomeDetailBreadcrumbMutation) FieldCleared

func (m *Rent591HomeDetailBreadcrumbMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) Fields

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 (*Rent591HomeDetailBreadcrumbMutation) ID

func (m *Rent591HomeDetailBreadcrumbMutation) 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 (*Rent591HomeDetailBreadcrumbMutation) 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 (m *Rent591HomeDetailBreadcrumbMutation) Link() (r string, exists bool)

Link returns the value of the "link" field in the mutation.

func (*Rent591HomeDetailBreadcrumbMutation) Name

func (m *Rent591HomeDetailBreadcrumbMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*Rent591HomeDetailBreadcrumbMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

OldLink returns the old "link" field's value of the Rent591HomeDetailBreadcrumb entity. If the Rent591HomeDetailBreadcrumb 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 (*Rent591HomeDetailBreadcrumbMutation) OldName

OldName returns the old "name" field's value of the Rent591HomeDetailBreadcrumb entity. If the Rent591HomeDetailBreadcrumb 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 (*Rent591HomeDetailBreadcrumbMutation) OldPostID

func (m *Rent591HomeDetailBreadcrumbMutation) OldPostID(ctx context.Context) (v int, err error)

OldPostID returns the old "post_id" field's value of the Rent591HomeDetailBreadcrumb entity. If the Rent591HomeDetailBreadcrumb 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 (*Rent591HomeDetailBreadcrumbMutation) OldQuery

OldQuery returns the old "query" field's value of the Rent591HomeDetailBreadcrumb entity. If the Rent591HomeDetailBreadcrumb 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 (*Rent591HomeDetailBreadcrumbMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailBreadcrumbMutation) PostID

func (m *Rent591HomeDetailBreadcrumbMutation) PostID() (r int, exists bool)

PostID returns the value of the "post_id" field in the mutation.

func (*Rent591HomeDetailBreadcrumbMutation) Query

func (m *Rent591HomeDetailBreadcrumbMutation) Query() (r string, exists bool)

Query returns the value of the "query" field in the mutation.

func (*Rent591HomeDetailBreadcrumbMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailBreadcrumbMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBreadcrumbMutation) RemovedEdges

func (m *Rent591HomeDetailBreadcrumbMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailBreadcrumbMutation) RemovedIDs

func (m *Rent591HomeDetailBreadcrumbMutation) 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 (*Rent591HomeDetailBreadcrumbMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailBreadcrumbMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailBreadcrumbMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailBreadcrumbMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailBreadcrumbMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailBreadcrumbMutation) ResetEdge

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 (*Rent591HomeDetailBreadcrumbMutation) ResetField

func (m *Rent591HomeDetailBreadcrumbMutation) 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 (m *Rent591HomeDetailBreadcrumbMutation) ResetLink()

ResetLink resets all changes to the "link" field.

func (*Rent591HomeDetailBreadcrumbMutation) ResetName

func (m *Rent591HomeDetailBreadcrumbMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*Rent591HomeDetailBreadcrumbMutation) ResetPostID

func (m *Rent591HomeDetailBreadcrumbMutation) ResetPostID()

ResetPostID resets all changes to the "post_id" field.

func (*Rent591HomeDetailBreadcrumbMutation) ResetQuery

func (m *Rent591HomeDetailBreadcrumbMutation) ResetQuery()

ResetQuery resets all changes to the "query" field.

func (*Rent591HomeDetailBreadcrumbMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailBreadcrumbMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailBreadcrumbMutation) SetField

func (m *Rent591HomeDetailBreadcrumbMutation) 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.

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbMutation) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbMutation) SetOp

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailBreadcrumbMutation) SetPostID

func (m *Rent591HomeDetailBreadcrumbMutation) SetPostID(i int)

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbMutation) SetQuery

SetQuery sets the "query" field.

func (Rent591HomeDetailBreadcrumbMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailBreadcrumbMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailBreadcrumb).

func (*Rent591HomeDetailBreadcrumbMutation) Where

Where appends a list predicates to the Rent591HomeDetailBreadcrumbMutation builder.

func (*Rent591HomeDetailBreadcrumbMutation) WhereP

func (m *Rent591HomeDetailBreadcrumbMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailBreadcrumbMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailBreadcrumbQuery

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

Rent591HomeDetailBreadcrumbQuery is the builder for querying Rent591HomeDetailBreadcrumb entities.

func (*Rent591HomeDetailBreadcrumbQuery) Aggregate

Aggregate returns a Rent591HomeDetailBreadcrumbSelect configured with the given aggregations.

func (*Rent591HomeDetailBreadcrumbQuery) All

All executes the query and returns a list of Rent591HomeDetailBreadcrumbs.

func (*Rent591HomeDetailBreadcrumbQuery) AllX

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

func (*Rent591HomeDetailBreadcrumbQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailBreadcrumbQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailBreadcrumbQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailBreadcrumbQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailBreadcrumbQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbQuery) First

First returns the first Rent591HomeDetailBreadcrumb entity from the query. Returns a *NotFoundError when no Rent591HomeDetailBreadcrumb was found.

func (*Rent591HomeDetailBreadcrumbQuery) FirstID

func (rdbq *Rent591HomeDetailBreadcrumbQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailBreadcrumb ID from the query. Returns a *NotFoundError when no Rent591HomeDetailBreadcrumb ID was found.

func (*Rent591HomeDetailBreadcrumbQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbQuery) GroupBy

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.Rent591HomeDetailBreadcrumb.Query().
	GroupBy(rent591homedetailbreadcrumb.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailBreadcrumbQuery) IDs

func (rdbq *Rent591HomeDetailBreadcrumbQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailBreadcrumb IDs.

func (*Rent591HomeDetailBreadcrumbQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailBreadcrumbQuery) Offset

Offset to start from.

func (*Rent591HomeDetailBreadcrumbQuery) Only

Only returns a single Rent591HomeDetailBreadcrumb entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailBreadcrumb entity is found. Returns a *NotFoundError when no Rent591HomeDetailBreadcrumb entities are found.

func (*Rent591HomeDetailBreadcrumbQuery) OnlyID

func (rdbq *Rent591HomeDetailBreadcrumbQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailBreadcrumb ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailBreadcrumb ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailBreadcrumbQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbQuery) OnlyX

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

func (*Rent591HomeDetailBreadcrumbQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailBreadcrumbQuery) QueryRent591homeDetails

func (rdbq *Rent591HomeDetailBreadcrumbQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailBreadcrumbQuery) Select

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.Rent591HomeDetailBreadcrumb.Query().
	Select(rent591homedetailbreadcrumb.FieldName).
	Scan(ctx, &v)

func (*Rent591HomeDetailBreadcrumbQuery) Unique

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 (*Rent591HomeDetailBreadcrumbQuery) Where

Where adds a new predicate for the Rent591HomeDetailBreadcrumbQuery builder.

func (*Rent591HomeDetailBreadcrumbQuery) WithRent591homeDetails

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailBreadcrumbSelect

type Rent591HomeDetailBreadcrumbSelect struct {
	*Rent591HomeDetailBreadcrumbQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailBreadcrumbSelect is the builder for selecting fields of Rent591HomeDetailBreadcrumb entities.

func (*Rent591HomeDetailBreadcrumbSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailBreadcrumbSelect) Bool

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

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

func (*Rent591HomeDetailBreadcrumbSelect) BoolX

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Bools

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

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

func (*Rent591HomeDetailBreadcrumbSelect) BoolsX

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Float64

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Float64X

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Float64s

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Float64sX

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Int

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

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

func (*Rent591HomeDetailBreadcrumbSelect) IntX

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Ints

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

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

func (*Rent591HomeDetailBreadcrumbSelect) IntsX

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Scan

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

func (*Rent591HomeDetailBreadcrumbSelect) ScanX

func (s *Rent591HomeDetailBreadcrumbSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailBreadcrumbSelect) String

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

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

func (*Rent591HomeDetailBreadcrumbSelect) StringX

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

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

func (*Rent591HomeDetailBreadcrumbSelect) Strings

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

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

func (*Rent591HomeDetailBreadcrumbSelect) StringsX

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

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

type Rent591HomeDetailBreadcrumbUpdate

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

Rent591HomeDetailBreadcrumbUpdate is the builder for updating Rent591HomeDetailBreadcrumb entities.

func (*Rent591HomeDetailBreadcrumbUpdate) AddPostID

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpdate) AddRent591homeDetailIDs

func (rdbu *Rent591HomeDetailBreadcrumbUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBreadcrumbUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBreadcrumbUpdate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbUpdate) ClearRent591homeDetails

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailBreadcrumbUpdate) ExecX

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

func (*Rent591HomeDetailBreadcrumbUpdate) Mutation

Mutation returns the Rent591HomeDetailBreadcrumbMutation object of the builder.

func (*Rent591HomeDetailBreadcrumbUpdate) RemoveRent591homeDetailIDs

func (rdbu *Rent591HomeDetailBreadcrumbUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBreadcrumbUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailBreadcrumbUpdate) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailBreadcrumbUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailBreadcrumbUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbUpdate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbUpdate) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpdate) SetQuery

SetQuery sets the "query" field.

func (*Rent591HomeDetailBreadcrumbUpdate) Where

Where appends a list predicates to the Rent591HomeDetailBreadcrumbUpdate builder.

type Rent591HomeDetailBreadcrumbUpdateOne

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

Rent591HomeDetailBreadcrumbUpdateOne is the builder for updating a single Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumbUpdateOne) AddPostID

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpdateOne) AddRent591homeDetailIDs

func (rdbuo *Rent591HomeDetailBreadcrumbUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBreadcrumbUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBreadcrumbUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbUpdateOne) ClearRent591homeDetails

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBreadcrumbUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailBreadcrumbUpdateOne) ExecX

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

func (*Rent591HomeDetailBreadcrumbUpdateOne) Mutation

Mutation returns the Rent591HomeDetailBreadcrumbMutation object of the builder.

func (*Rent591HomeDetailBreadcrumbUpdateOne) RemoveRent591homeDetailIDs

func (rdbuo *Rent591HomeDetailBreadcrumbUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBreadcrumbUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailBreadcrumbUpdateOne) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailBreadcrumbUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailBreadcrumbUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailBreadcrumbUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbUpdateOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbUpdateOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpdateOne) SetQuery

SetQuery sets the "query" field.

func (*Rent591HomeDetailBreadcrumbUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailBreadcrumbUpdate builder.

type Rent591HomeDetailBreadcrumbUpsert

type Rent591HomeDetailBreadcrumbUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailBreadcrumbUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailBreadcrumbUpsert) AddPostID

AddPostID adds v to the "post_id" field.

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbUpsert) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbUpsert) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpsert) SetQuery

SetQuery sets the "query" field.

UpdateLink sets the "link" field to the value that was provided on create.

func (*Rent591HomeDetailBreadcrumbUpsert) UpdateName

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

func (*Rent591HomeDetailBreadcrumbUpsert) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailBreadcrumbUpsert) UpdateQuery

UpdateQuery sets the "query" field to the value that was provided on create.

type Rent591HomeDetailBreadcrumbUpsertBulk

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

Rent591HomeDetailBreadcrumbUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailBreadcrumb nodes.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) DoNothing

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

func (*Rent591HomeDetailBreadcrumbUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) ExecX

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

func (*Rent591HomeDetailBreadcrumbUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailBreadcrumb.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) SetQuery

SetQuery sets the "query" field.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) Update

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

UpdateLink sets the "link" field to the value that was provided on create.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) UpdateName

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

func (*Rent591HomeDetailBreadcrumbUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailBreadcrumb.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailBreadcrumbUpsertBulk) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailBreadcrumbUpsertBulk) UpdateQuery

UpdateQuery sets the "query" field to the value that was provided on create.

type Rent591HomeDetailBreadcrumbUpsertOne

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

Rent591HomeDetailBreadcrumbUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailBreadcrumb node.

func (*Rent591HomeDetailBreadcrumbUpsertOne) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpsertOne) DoNothing

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

func (*Rent591HomeDetailBreadcrumbUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailBreadcrumbUpsertOne) ExecX

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

func (*Rent591HomeDetailBreadcrumbUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailBreadcrumbUpsertOne) IDX

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

func (*Rent591HomeDetailBreadcrumbUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailBreadcrumb.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

SetLink sets the "link" field.

func (*Rent591HomeDetailBreadcrumbUpsertOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailBreadcrumbUpsertOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailBreadcrumbUpsertOne) SetQuery

SetQuery sets the "query" field.

func (*Rent591HomeDetailBreadcrumbUpsertOne) Update

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

UpdateLink sets the "link" field to the value that was provided on create.

func (*Rent591HomeDetailBreadcrumbUpsertOne) UpdateName

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

func (*Rent591HomeDetailBreadcrumbUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailBreadcrumb.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailBreadcrumbUpsertOne) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailBreadcrumbUpsertOne) UpdateQuery

UpdateQuery sets the "query" field to the value that was provided on create.

type Rent591HomeDetailBreadcrumbs

type Rent591HomeDetailBreadcrumbs []*Rent591HomeDetailBreadcrumb

Rent591HomeDetailBreadcrumbs is a parsable slice of Rent591HomeDetailBreadcrumb.

type Rent591HomeDetailBrowse

type Rent591HomeDetailBrowse struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Pc holds the value of the "pc" field.
	Pc int `json:"pc,omitempty"`
	// Mobile holds the value of the "mobile" field.
	Mobile int `json:"mobile,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailBrowseQuery when eager-loading is set.
	Edges Rent591HomeDetailBrowseEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailBrowse is the model entity for the Rent591HomeDetailBrowse schema.

func (*Rent591HomeDetailBrowse) QueryRent591homeDetails

func (rdb *Rent591HomeDetailBrowse) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowse) String

func (rdb *Rent591HomeDetailBrowse) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailBrowse) Unwrap

Unwrap unwraps the Rent591HomeDetailBrowse 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 (*Rent591HomeDetailBrowse) Update

Update returns a builder for updating this Rent591HomeDetailBrowse. Note that you need to call Rent591HomeDetailBrowse.Unwrap() before calling this method if this Rent591HomeDetailBrowse was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailBrowse) Value

func (rdb *Rent591HomeDetailBrowse) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailBrowse. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailBrowseClient

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

Rent591HomeDetailBrowseClient is a client for the Rent591HomeDetailBrowse schema.

func NewRent591HomeDetailBrowseClient

func NewRent591HomeDetailBrowseClient(c config) *Rent591HomeDetailBrowseClient

NewRent591HomeDetailBrowseClient returns a client for the Rent591HomeDetailBrowse from the given config.

func (*Rent591HomeDetailBrowseClient) Create

Create returns a builder for creating a Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowseClient) CreateBulk

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

func (*Rent591HomeDetailBrowseClient) Delete

Delete returns a delete builder for Rent591HomeDetailBrowse.

func (*Rent591HomeDetailBrowseClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailBrowseClient) DeleteOneID

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

func (*Rent591HomeDetailBrowseClient) Get

Get returns a Rent591HomeDetailBrowse entity by its id.

func (*Rent591HomeDetailBrowseClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailBrowseClient) Hooks

func (c *Rent591HomeDetailBrowseClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeDetailBrowseClient) Intercept

func (c *Rent591HomeDetailBrowseClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailbrowse.Intercept(f(g(h())))`.

func (*Rent591HomeDetailBrowseClient) Interceptors

func (c *Rent591HomeDetailBrowseClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailBrowseClient) Query

Query returns a query builder for Rent591HomeDetailBrowse.

func (*Rent591HomeDetailBrowseClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailBrowse.

func (*Rent591HomeDetailBrowseClient) Update

Update returns an update builder for Rent591HomeDetailBrowse.

func (*Rent591HomeDetailBrowseClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailBrowseClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailBrowseClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailbrowse.Hooks(f(g(h())))`.

type Rent591HomeDetailBrowseCreate

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

Rent591HomeDetailBrowseCreate is the builder for creating a Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowseCreate) AddRent591homeDetailIDs

func (rdbc *Rent591HomeDetailBrowseCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBrowseCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBrowseCreate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailBrowseCreate) ExecX

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

func (*Rent591HomeDetailBrowseCreate) Mutation

Mutation returns the Rent591HomeDetailBrowseMutation object of the builder.

func (*Rent591HomeDetailBrowseCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailBrowse.Create().
	SetPc(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.Rent591HomeDetailBrowseUpsert) {
		SetPc(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailBrowseCreate) OnConflictColumns

func (rdbc *Rent591HomeDetailBrowseCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailBrowseUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailBrowse.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailBrowseCreate) Save

Save creates the Rent591HomeDetailBrowse in the database.

func (*Rent591HomeDetailBrowseCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailBrowseCreate) SetMobile

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseCreate) SetPc

SetPc sets the "pc" field.

type Rent591HomeDetailBrowseCreateBulk

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

Rent591HomeDetailBrowseCreateBulk is the builder for creating many Rent591HomeDetailBrowse entities in bulk.

func (*Rent591HomeDetailBrowseCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailBrowseCreateBulk) ExecX

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

func (*Rent591HomeDetailBrowseCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailBrowse.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.Rent591HomeDetailBrowseUpsert) {
		SetPc(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailBrowseCreateBulk) OnConflictColumns

func (rdbcb *Rent591HomeDetailBrowseCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeDetailBrowseUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailBrowse.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailBrowseCreateBulk) Save

Save creates the Rent591HomeDetailBrowse entities in the database.

func (*Rent591HomeDetailBrowseCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailBrowseDelete

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

Rent591HomeDetailBrowseDelete is the builder for deleting a Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowseDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailBrowseDelete) ExecX

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

func (*Rent591HomeDetailBrowseDelete) Where

Where appends a list predicates to the Rent591HomeDetailBrowseDelete builder.

type Rent591HomeDetailBrowseDeleteOne

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

Rent591HomeDetailBrowseDeleteOne is the builder for deleting a single Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowseDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailBrowseDeleteOne) ExecX

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

func (*Rent591HomeDetailBrowseDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailBrowseDelete builder.

type Rent591HomeDetailBrowseEdges

type Rent591HomeDetailBrowseEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailBrowseEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailBrowseEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailBrowseEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailBrowseGroupBy

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

Rent591HomeDetailBrowseGroupBy is the group-by builder for Rent591HomeDetailBrowse entities.

func (*Rent591HomeDetailBrowseGroupBy) Aggregate

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

func (*Rent591HomeDetailBrowseGroupBy) Bool

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

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

func (*Rent591HomeDetailBrowseGroupBy) BoolX

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

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

func (*Rent591HomeDetailBrowseGroupBy) Bools

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

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

func (*Rent591HomeDetailBrowseGroupBy) BoolsX

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

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

func (*Rent591HomeDetailBrowseGroupBy) Float64

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

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

func (*Rent591HomeDetailBrowseGroupBy) Float64X

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

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

func (*Rent591HomeDetailBrowseGroupBy) Float64s

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

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

func (*Rent591HomeDetailBrowseGroupBy) Float64sX

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

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

func (*Rent591HomeDetailBrowseGroupBy) Int

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

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

func (*Rent591HomeDetailBrowseGroupBy) IntX

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

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

func (*Rent591HomeDetailBrowseGroupBy) Ints

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

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

func (*Rent591HomeDetailBrowseGroupBy) IntsX

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

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

func (*Rent591HomeDetailBrowseGroupBy) Scan

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

func (*Rent591HomeDetailBrowseGroupBy) ScanX

func (s *Rent591HomeDetailBrowseGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailBrowseGroupBy) String

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

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

func (*Rent591HomeDetailBrowseGroupBy) StringX

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

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

func (*Rent591HomeDetailBrowseGroupBy) Strings

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

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

func (*Rent591HomeDetailBrowseGroupBy) StringsX

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

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

type Rent591HomeDetailBrowseMutation

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

Rent591HomeDetailBrowseMutation represents an operation that mutates the Rent591HomeDetailBrowse nodes in the graph.

func (*Rent591HomeDetailBrowseMutation) AddField

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) AddMobile

func (m *Rent591HomeDetailBrowseMutation) AddMobile(i int)

AddMobile adds i to the "mobile" field.

func (*Rent591HomeDetailBrowseMutation) AddPc

AddPc adds i to the "pc" field.

func (*Rent591HomeDetailBrowseMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailBrowseMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailBrowseMutation) AddedEdges

func (m *Rent591HomeDetailBrowseMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailBrowseMutation) AddedField

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) AddedFields

func (m *Rent591HomeDetailBrowseMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailBrowseMutation) AddedIDs

func (m *Rent591HomeDetailBrowseMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailBrowseMutation) AddedMobile

func (m *Rent591HomeDetailBrowseMutation) AddedMobile() (r int, exists bool)

AddedMobile returns the value that was added to the "mobile" field in this mutation.

func (*Rent591HomeDetailBrowseMutation) AddedPc

func (m *Rent591HomeDetailBrowseMutation) AddedPc() (r int, exists bool)

AddedPc returns the value that was added to the "pc" field in this mutation.

func (*Rent591HomeDetailBrowseMutation) ClearEdge

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) ClearField

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailBrowseMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseMutation) ClearedEdges

func (m *Rent591HomeDetailBrowseMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailBrowseMutation) ClearedFields

func (m *Rent591HomeDetailBrowseMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) EdgeCleared

func (m *Rent591HomeDetailBrowseMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailBrowseMutation) Field

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 (*Rent591HomeDetailBrowseMutation) FieldCleared

func (m *Rent591HomeDetailBrowseMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailBrowseMutation) Fields

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 (*Rent591HomeDetailBrowseMutation) ID

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) Mobile

func (m *Rent591HomeDetailBrowseMutation) Mobile() (r int, exists bool)

Mobile returns the value of the "mobile" field in the mutation.

func (*Rent591HomeDetailBrowseMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailBrowseMutation) OldMobile

func (m *Rent591HomeDetailBrowseMutation) OldMobile(ctx context.Context) (v int, err error)

OldMobile returns the old "mobile" field's value of the Rent591HomeDetailBrowse entity. If the Rent591HomeDetailBrowse 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 (*Rent591HomeDetailBrowseMutation) OldPc

func (m *Rent591HomeDetailBrowseMutation) OldPc(ctx context.Context) (v int, err error)

OldPc returns the old "pc" field's value of the Rent591HomeDetailBrowse entity. If the Rent591HomeDetailBrowse 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 (*Rent591HomeDetailBrowseMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailBrowseMutation) Pc

func (m *Rent591HomeDetailBrowseMutation) Pc() (r int, exists bool)

Pc returns the value of the "pc" field in the mutation.

func (*Rent591HomeDetailBrowseMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailBrowseMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBrowseMutation) RemovedEdges

func (m *Rent591HomeDetailBrowseMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailBrowseMutation) RemovedIDs

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailBrowseMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailBrowseMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailBrowseMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailBrowseMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailBrowseMutation) ResetEdge

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) ResetField

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) ResetMobile

func (m *Rent591HomeDetailBrowseMutation) ResetMobile()

ResetMobile resets all changes to the "mobile" field.

func (*Rent591HomeDetailBrowseMutation) ResetPc

func (m *Rent591HomeDetailBrowseMutation) ResetPc()

ResetPc resets all changes to the "pc" field.

func (*Rent591HomeDetailBrowseMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailBrowseMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailBrowseMutation) SetField

func (m *Rent591HomeDetailBrowseMutation) 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 (*Rent591HomeDetailBrowseMutation) SetMobile

func (m *Rent591HomeDetailBrowseMutation) SetMobile(i int)

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseMutation) SetOp

func (m *Rent591HomeDetailBrowseMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailBrowseMutation) SetPc

SetPc sets the "pc" field.

func (Rent591HomeDetailBrowseMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailBrowseMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailBrowse).

func (*Rent591HomeDetailBrowseMutation) Where

Where appends a list predicates to the Rent591HomeDetailBrowseMutation builder.

func (*Rent591HomeDetailBrowseMutation) WhereP

func (m *Rent591HomeDetailBrowseMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailBrowseMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailBrowseQuery

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

Rent591HomeDetailBrowseQuery is the builder for querying Rent591HomeDetailBrowse entities.

func (*Rent591HomeDetailBrowseQuery) Aggregate

Aggregate returns a Rent591HomeDetailBrowseSelect configured with the given aggregations.

func (*Rent591HomeDetailBrowseQuery) All

All executes the query and returns a list of Rent591HomeDetailBrowses.

func (*Rent591HomeDetailBrowseQuery) AllX

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

func (*Rent591HomeDetailBrowseQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailBrowseQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailBrowseQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailBrowseQuery) CountX

func (rdbq *Rent591HomeDetailBrowseQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailBrowseQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailBrowseQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailBrowseQuery) First

First returns the first Rent591HomeDetailBrowse entity from the query. Returns a *NotFoundError when no Rent591HomeDetailBrowse was found.

func (*Rent591HomeDetailBrowseQuery) FirstID

func (rdbq *Rent591HomeDetailBrowseQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailBrowse ID from the query. Returns a *NotFoundError when no Rent591HomeDetailBrowse ID was found.

func (*Rent591HomeDetailBrowseQuery) FirstIDX

func (rdbq *Rent591HomeDetailBrowseQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailBrowseQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailBrowseQuery) GroupBy

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 {
	Pc int `json:"pc,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetailBrowse.Query().
	GroupBy(rent591homedetailbrowse.FieldPc).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailBrowseQuery) IDs

func (rdbq *Rent591HomeDetailBrowseQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailBrowse IDs.

func (*Rent591HomeDetailBrowseQuery) IDsX

func (rdbq *Rent591HomeDetailBrowseQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailBrowseQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailBrowseQuery) Offset

Offset to start from.

func (*Rent591HomeDetailBrowseQuery) Only

Only returns a single Rent591HomeDetailBrowse entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailBrowse entity is found. Returns a *NotFoundError when no Rent591HomeDetailBrowse entities are found.

func (*Rent591HomeDetailBrowseQuery) OnlyID

func (rdbq *Rent591HomeDetailBrowseQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailBrowse ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailBrowse ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailBrowseQuery) OnlyIDX

func (rdbq *Rent591HomeDetailBrowseQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailBrowseQuery) OnlyX

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

func (*Rent591HomeDetailBrowseQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailBrowseQuery) QueryRent591homeDetails

func (rdbq *Rent591HomeDetailBrowseQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailBrowseQuery) Select

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 {
	Pc int `json:"pc,omitempty"`
}

client.Rent591HomeDetailBrowse.Query().
	Select(rent591homedetailbrowse.FieldPc).
	Scan(ctx, &v)

func (*Rent591HomeDetailBrowseQuery) Unique

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 (*Rent591HomeDetailBrowseQuery) Where

Where adds a new predicate for the Rent591HomeDetailBrowseQuery builder.

func (*Rent591HomeDetailBrowseQuery) WithRent591homeDetails

func (rdbq *Rent591HomeDetailBrowseQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeDetailBrowseQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailBrowseSelect

type Rent591HomeDetailBrowseSelect struct {
	*Rent591HomeDetailBrowseQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailBrowseSelect is the builder for selecting fields of Rent591HomeDetailBrowse entities.

func (*Rent591HomeDetailBrowseSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailBrowseSelect) Bool

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

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

func (*Rent591HomeDetailBrowseSelect) BoolX

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

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

func (*Rent591HomeDetailBrowseSelect) Bools

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

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

func (*Rent591HomeDetailBrowseSelect) BoolsX

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

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

func (*Rent591HomeDetailBrowseSelect) Float64

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

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

func (*Rent591HomeDetailBrowseSelect) Float64X

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

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

func (*Rent591HomeDetailBrowseSelect) Float64s

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

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

func (*Rent591HomeDetailBrowseSelect) Float64sX

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

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

func (*Rent591HomeDetailBrowseSelect) Int

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

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

func (*Rent591HomeDetailBrowseSelect) IntX

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

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

func (*Rent591HomeDetailBrowseSelect) Ints

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

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

func (*Rent591HomeDetailBrowseSelect) IntsX

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

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

func (*Rent591HomeDetailBrowseSelect) Scan

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

func (*Rent591HomeDetailBrowseSelect) ScanX

func (s *Rent591HomeDetailBrowseSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailBrowseSelect) String

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

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

func (*Rent591HomeDetailBrowseSelect) StringX

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

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

func (*Rent591HomeDetailBrowseSelect) Strings

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

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

func (*Rent591HomeDetailBrowseSelect) StringsX

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

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

type Rent591HomeDetailBrowseUpdate

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

Rent591HomeDetailBrowseUpdate is the builder for updating Rent591HomeDetailBrowse entities.

func (*Rent591HomeDetailBrowseUpdate) AddMobile

AddMobile adds i to the "mobile" field.

func (*Rent591HomeDetailBrowseUpdate) AddPc

AddPc adds i to the "pc" field.

func (*Rent591HomeDetailBrowseUpdate) AddRent591homeDetailIDs

func (rdbu *Rent591HomeDetailBrowseUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBrowseUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBrowseUpdate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseUpdate) ClearRent591homeDetails

func (rdbu *Rent591HomeDetailBrowseUpdate) ClearRent591homeDetails() *Rent591HomeDetailBrowseUpdate

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailBrowseUpdate) ExecX

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

func (*Rent591HomeDetailBrowseUpdate) Mutation

Mutation returns the Rent591HomeDetailBrowseMutation object of the builder.

func (*Rent591HomeDetailBrowseUpdate) RemoveRent591homeDetailIDs

func (rdbu *Rent591HomeDetailBrowseUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBrowseUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailBrowseUpdate) RemoveRent591homeDetails

func (rdbu *Rent591HomeDetailBrowseUpdate) RemoveRent591homeDetails(r ...*Rent591HomeDetail) *Rent591HomeDetailBrowseUpdate

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailBrowseUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailBrowseUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailBrowseUpdate) SetMobile

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseUpdate) SetPc

SetPc sets the "pc" field.

func (*Rent591HomeDetailBrowseUpdate) Where

Where appends a list predicates to the Rent591HomeDetailBrowseUpdate builder.

type Rent591HomeDetailBrowseUpdateOne

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

Rent591HomeDetailBrowseUpdateOne is the builder for updating a single Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowseUpdateOne) AddMobile

AddMobile adds i to the "mobile" field.

func (*Rent591HomeDetailBrowseUpdateOne) AddPc

AddPc adds i to the "pc" field.

func (*Rent591HomeDetailBrowseUpdateOne) AddRent591homeDetailIDs

func (rdbuo *Rent591HomeDetailBrowseUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBrowseUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailBrowseUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseUpdateOne) ClearRent591homeDetails

func (rdbuo *Rent591HomeDetailBrowseUpdateOne) ClearRent591homeDetails() *Rent591HomeDetailBrowseUpdateOne

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailBrowseUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailBrowseUpdateOne) ExecX

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

func (*Rent591HomeDetailBrowseUpdateOne) Mutation

Mutation returns the Rent591HomeDetailBrowseMutation object of the builder.

func (*Rent591HomeDetailBrowseUpdateOne) RemoveRent591homeDetailIDs

func (rdbuo *Rent591HomeDetailBrowseUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailBrowseUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailBrowseUpdateOne) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailBrowseUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailBrowseUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailBrowseUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailBrowseUpdateOne) SetMobile

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseUpdateOne) SetPc

SetPc sets the "pc" field.

func (*Rent591HomeDetailBrowseUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailBrowseUpdate builder.

type Rent591HomeDetailBrowseUpsert

type Rent591HomeDetailBrowseUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailBrowseUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailBrowseUpsert) AddMobile

AddMobile adds v to the "mobile" field.

func (*Rent591HomeDetailBrowseUpsert) AddPc

AddPc adds v to the "pc" field.

func (*Rent591HomeDetailBrowseUpsert) SetMobile

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseUpsert) SetPc

SetPc sets the "pc" field.

func (*Rent591HomeDetailBrowseUpsert) UpdateMobile

UpdateMobile sets the "mobile" field to the value that was provided on create.

func (*Rent591HomeDetailBrowseUpsert) UpdatePc

UpdatePc sets the "pc" field to the value that was provided on create.

type Rent591HomeDetailBrowseUpsertBulk

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

Rent591HomeDetailBrowseUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailBrowse nodes.

func (*Rent591HomeDetailBrowseUpsertBulk) AddMobile

AddMobile adds v to the "mobile" field.

func (*Rent591HomeDetailBrowseUpsertBulk) AddPc

AddPc adds v to the "pc" field.

func (*Rent591HomeDetailBrowseUpsertBulk) DoNothing

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

func (*Rent591HomeDetailBrowseUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailBrowseUpsertBulk) ExecX

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

func (*Rent591HomeDetailBrowseUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailBrowse.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailBrowseUpsertBulk) SetMobile

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseUpsertBulk) SetPc

SetPc sets the "pc" field.

func (*Rent591HomeDetailBrowseUpsertBulk) Update

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

func (*Rent591HomeDetailBrowseUpsertBulk) UpdateMobile

UpdateMobile sets the "mobile" field to the value that was provided on create.

func (*Rent591HomeDetailBrowseUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailBrowse.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailBrowseUpsertBulk) UpdatePc

UpdatePc sets the "pc" field to the value that was provided on create.

type Rent591HomeDetailBrowseUpsertOne

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

Rent591HomeDetailBrowseUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailBrowse node.

func (*Rent591HomeDetailBrowseUpsertOne) AddMobile

AddMobile adds v to the "mobile" field.

func (*Rent591HomeDetailBrowseUpsertOne) AddPc

AddPc adds v to the "pc" field.

func (*Rent591HomeDetailBrowseUpsertOne) DoNothing

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

func (*Rent591HomeDetailBrowseUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailBrowseUpsertOne) ExecX

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

func (*Rent591HomeDetailBrowseUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailBrowseUpsertOne) IDX

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

func (*Rent591HomeDetailBrowseUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailBrowse.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailBrowseUpsertOne) SetMobile

SetMobile sets the "mobile" field.

func (*Rent591HomeDetailBrowseUpsertOne) SetPc

SetPc sets the "pc" field.

func (*Rent591HomeDetailBrowseUpsertOne) Update

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

func (*Rent591HomeDetailBrowseUpsertOne) UpdateMobile

UpdateMobile sets the "mobile" field to the value that was provided on create.

func (*Rent591HomeDetailBrowseUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailBrowse.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailBrowseUpsertOne) UpdatePc

UpdatePc sets the "pc" field to the value that was provided on create.

type Rent591HomeDetailBrowses

type Rent591HomeDetailBrowses []*Rent591HomeDetailBrowse

Rent591HomeDetailBrowses is a parsable slice of Rent591HomeDetailBrowse.

type Rent591HomeDetailClient

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

Rent591HomeDetailClient is a client for the Rent591HomeDetail schema.

func NewRent591HomeDetailClient

func NewRent591HomeDetailClient(c config) *Rent591HomeDetailClient

NewRent591HomeDetailClient returns a client for the Rent591HomeDetail from the given config.

func (*Rent591HomeDetailClient) Create

Create returns a builder for creating a Rent591HomeDetail entity.

func (*Rent591HomeDetailClient) CreateBulk

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

func (*Rent591HomeDetailClient) Delete

Delete returns a delete builder for Rent591HomeDetail.

func (*Rent591HomeDetailClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailClient) DeleteOneID

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

func (*Rent591HomeDetailClient) Get

Get returns a Rent591HomeDetail entity by its id.

func (*Rent591HomeDetailClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailClient) Hooks

func (c *Rent591HomeDetailClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeDetailClient) Intercept

func (c *Rent591HomeDetailClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetail.Intercept(f(g(h())))`.

func (*Rent591HomeDetailClient) Interceptors

func (c *Rent591HomeDetailClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailClient) Query

Query returns a query builder for Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailBreadcrumbs

func (c *Rent591HomeDetailClient) QueryRent591homeDetailBreadcrumbs(rd *Rent591HomeDetail) *Rent591HomeDetailBreadcrumbQuery

QueryRent591homeDetailBreadcrumbs queries the rent591home_detail_breadcrumbs edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailBrowses

func (c *Rent591HomeDetailClient) QueryRent591homeDetailBrowses(rd *Rent591HomeDetail) *Rent591HomeDetailBrowseQuery

QueryRent591homeDetailBrowses queries the rent591home_detail_browses edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailInfos

func (c *Rent591HomeDetailClient) QueryRent591homeDetailInfos(rd *Rent591HomeDetail) *Rent591HomeDetailInfoQuery

QueryRent591homeDetailInfos queries the rent591home_detail_infos edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailNavdatas

func (c *Rent591HomeDetailClient) QueryRent591homeDetailNavdatas(rd *Rent591HomeDetail) *Rent591HomeDetailNavDataQuery

QueryRent591homeDetailNavdatas queries the rent591home_detail_navdatas edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailPositionRounds

func (c *Rent591HomeDetailClient) QueryRent591homeDetailPositionRounds(rd *Rent591HomeDetail) *Rent591HomeDetailPositionRoundQuery

QueryRent591homeDetailPositionRounds queries the rent591home_detail_position_rounds edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailPublishs

func (c *Rent591HomeDetailClient) QueryRent591homeDetailPublishs(rd *Rent591HomeDetail) *Rent591HomeDetailPublishQuery

QueryRent591homeDetailPublishs queries the rent591home_detail_publishs edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailShareinfos

func (c *Rent591HomeDetailClient) QueryRent591homeDetailShareinfos(rd *Rent591HomeDetail) *Rent591HomeDetailShareInfoQuery

QueryRent591homeDetailShareinfos queries the rent591home_detail_shareinfos edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homeDetailTags

func (c *Rent591HomeDetailClient) QueryRent591homeDetailTags(rd *Rent591HomeDetail) *Rent591HomeDetailTagQuery

QueryRent591homeDetailTags queries the rent591home_detail_tags edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) QueryRent591homes

func (c *Rent591HomeDetailClient) QueryRent591homes(rd *Rent591HomeDetail) *Rent591HomeQuery

QueryRent591homes queries the rent591homes edge of a Rent591HomeDetail.

func (*Rent591HomeDetailClient) Update

Update returns an update builder for Rent591HomeDetail.

func (*Rent591HomeDetailClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetail.Hooks(f(g(h())))`.

type Rent591HomeDetailCreate

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

Rent591HomeDetailCreate is the builder for creating a Rent591HomeDetail entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailBreadcrumbIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailBreadcrumbIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailBreadcrumbIDs adds the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailBreadcrumbs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailBreadcrumbs(r ...*Rent591HomeDetailBreadcrumb) *Rent591HomeDetailCreate

AddRent591homeDetailBreadcrumbs adds the "rent591home_detail_breadcrumbs" edges to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailBrowseIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailBrowseIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailBrowseIDs adds the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailBrowses

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailBrowses(r ...*Rent591HomeDetailBrowse) *Rent591HomeDetailCreate

AddRent591homeDetailBrowses adds the "rent591home_detail_browses" edges to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailInfoIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailInfoIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailInfoIDs adds the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailInfos

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailInfos(r ...*Rent591HomeDetailInfo) *Rent591HomeDetailCreate

AddRent591homeDetailInfos adds the "rent591home_detail_infos" edges to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailNavdataIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailNavdataIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailNavdataIDs adds the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailNavdatas

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailNavdatas(r ...*Rent591HomeDetailNavData) *Rent591HomeDetailCreate

AddRent591homeDetailNavdatas adds the "rent591home_detail_navdatas" edges to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailPublishIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailPublishIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailPublishIDs adds the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailPublishs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailPublishs(r ...*Rent591HomeDetailPublish) *Rent591HomeDetailCreate

AddRent591homeDetailPublishs adds the "rent591home_detail_publishs" edges to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailShareinfoIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailShareinfoIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailShareinfoIDs adds the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailShareinfos

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailShareinfos(r ...*Rent591HomeDetailShareInfo) *Rent591HomeDetailCreate

AddRent591homeDetailShareinfos adds the "rent591home_detail_shareinfos" edges to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailCreate) AddRent591homeDetailTagIDs

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailTagIDs(ids ...int) *Rent591HomeDetailCreate

AddRent591homeDetailTagIDs adds the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity by IDs.

func (*Rent591HomeDetailCreate) AddRent591homeDetailTags

func (rdc *Rent591HomeDetailCreate) AddRent591homeDetailTags(r ...*Rent591HomeDetailTag) *Rent591HomeDetailCreate

AddRent591homeDetailTags adds the "rent591home_detail_tags" edges to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailCreate) ExecX

func (rdc *Rent591HomeDetailCreate) ExecX(ctx context.Context)

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

func (*Rent591HomeDetailCreate) Mutation

Mutation returns the Rent591HomeDetailMutation object of the builder.

func (*Rent591HomeDetailCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetail.Create().
	SetTitle(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.Rent591HomeDetailUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailCreate) OnConflictColumns

func (rdc *Rent591HomeDetailCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetail.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailCreate) Save

Save creates the Rent591HomeDetail in the database.

func (*Rent591HomeDetailCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailCreate) SetDealText

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailCreate) SetDealTime

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailCreate) SetDeposit

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailCreate) SetKind

SetKind sets the "kind" field.

func (*Rent591HomeDetailCreate) SetNillableCreatedAt

func (rdc *Rent591HomeDetailCreate) SetNillableCreatedAt(t *time.Time) *Rent591HomeDetailCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeDetailCreate) SetNillableDealText

func (rdc *Rent591HomeDetailCreate) SetNillableDealText(s *string) *Rent591HomeDetailCreate

SetNillableDealText sets the "deal_text" field if the given value is not nil.

func (*Rent591HomeDetailCreate) SetNillableRent591homeDetailPositionRoundsID

func (rdc *Rent591HomeDetailCreate) SetNillableRent591homeDetailPositionRoundsID(id *int) *Rent591HomeDetailCreate

SetNillableRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ID if the given value is not nil.

func (*Rent591HomeDetailCreate) SetNillableRent591homesID

func (rdc *Rent591HomeDetailCreate) SetNillableRent591homesID(id *int) *Rent591HomeDetailCreate

SetNillableRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID if the given value is not nil.

func (*Rent591HomeDetailCreate) SetNillableUpdatedAt

func (rdc *Rent591HomeDetailCreate) SetNillableUpdatedAt(t *time.Time) *Rent591HomeDetailCreate

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

func (*Rent591HomeDetailCreate) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeDetailCreate) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailCreate) SetRegionID

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailCreate) SetRelieved

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailCreate) SetRent591homeDetailPositionRounds

func (rdc *Rent591HomeDetailCreate) SetRent591homeDetailPositionRounds(r *Rent591HomeDetailPositionRound) *Rent591HomeDetailCreate

SetRent591homeDetailPositionRounds sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailCreate) SetRent591homeDetailPositionRoundsID

func (rdc *Rent591HomeDetailCreate) SetRent591homeDetailPositionRoundsID(id int) *Rent591HomeDetailCreate

SetRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ID.

func (*Rent591HomeDetailCreate) SetRent591homes

SetRent591homes sets the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeDetailCreate) SetRent591homesID

func (rdc *Rent591HomeDetailCreate) SetRent591homesID(id int) *Rent591HomeDetailCreate

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID.

func (*Rent591HomeDetailCreate) SetSectionID

func (rdc *Rent591HomeDetailCreate) SetSectionID(i int) *Rent591HomeDetailCreate

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailCreate) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailCreate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

type Rent591HomeDetailCreateBulk

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

Rent591HomeDetailCreateBulk is the builder for creating many Rent591HomeDetail entities in bulk.

func (*Rent591HomeDetailCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailCreateBulk) ExecX

func (rdcb *Rent591HomeDetailCreateBulk) ExecX(ctx context.Context)

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

func (*Rent591HomeDetailCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetail.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.Rent591HomeDetailUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailCreateBulk) OnConflictColumns

func (rdcb *Rent591HomeDetailCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeDetailUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetail.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailCreateBulk) Save

Save creates the Rent591HomeDetail entities in the database.

func (*Rent591HomeDetailCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailDelete

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

Rent591HomeDetailDelete is the builder for deleting a Rent591HomeDetail entity.

func (*Rent591HomeDetailDelete) Exec

func (rdd *Rent591HomeDetailDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailDelete) ExecX

func (rdd *Rent591HomeDetailDelete) ExecX(ctx context.Context) int

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

func (*Rent591HomeDetailDelete) Where

Where appends a list predicates to the Rent591HomeDetailDelete builder.

type Rent591HomeDetailDeleteOne

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

Rent591HomeDetailDeleteOne is the builder for deleting a single Rent591HomeDetail entity.

func (*Rent591HomeDetailDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailDeleteOne) ExecX

func (rddo *Rent591HomeDetailDeleteOne) ExecX(ctx context.Context)

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

func (*Rent591HomeDetailDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailDelete builder.

type Rent591HomeDetailEdges

type Rent591HomeDetailEdges struct {
	// Rent591homes holds the value of the rent591homes edge.
	Rent591homes *Rent591Home `json:"rent591homes,omitempty"`
	// Rent591homeDetailBreadcrumbs holds the value of the rent591home_detail_breadcrumbs edge.
	Rent591homeDetailBreadcrumbs []*Rent591HomeDetailBreadcrumb `json:"rent591home_detail_breadcrumbs,omitempty"`
	// Rent591homeDetailShareinfos holds the value of the rent591home_detail_shareinfos edge.
	Rent591homeDetailShareinfos []*Rent591HomeDetailShareInfo `json:"rent591home_detail_shareinfos,omitempty"`
	// Rent591homeDetailBrowses holds the value of the rent591home_detail_browses edge.
	Rent591homeDetailBrowses []*Rent591HomeDetailBrowse `json:"rent591home_detail_browses,omitempty"`
	// Rent591homeDetailTags holds the value of the rent591home_detail_tags edge.
	Rent591homeDetailTags []*Rent591HomeDetailTag `json:"rent591home_detail_tags,omitempty"`
	// Rent591homeDetailNavdatas holds the value of the rent591home_detail_navdatas edge.
	Rent591homeDetailNavdatas []*Rent591HomeDetailNavData `json:"rent591home_detail_navdatas,omitempty"`
	// Rent591homeDetailInfos holds the value of the rent591home_detail_infos edge.
	Rent591homeDetailInfos []*Rent591HomeDetailInfo `json:"rent591home_detail_infos,omitempty"`
	// Rent591homeDetailPublishs holds the value of the rent591home_detail_publishs edge.
	Rent591homeDetailPublishs []*Rent591HomeDetailPublish `json:"rent591home_detail_publishs,omitempty"`
	// Rent591homeDetailPositionRounds holds the value of the rent591home_detail_position_rounds edge.
	Rent591homeDetailPositionRounds *Rent591HomeDetailPositionRound `json:"rent591home_detail_position_rounds,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailEdges) Rent591homeDetailBreadcrumbsOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailBreadcrumbsOrErr() ([]*Rent591HomeDetailBreadcrumb, error)

Rent591homeDetailBreadcrumbsOrErr returns the Rent591homeDetailBreadcrumbs value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homeDetailBrowsesOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailBrowsesOrErr() ([]*Rent591HomeDetailBrowse, error)

Rent591homeDetailBrowsesOrErr returns the Rent591homeDetailBrowses value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homeDetailInfosOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailInfosOrErr() ([]*Rent591HomeDetailInfo, error)

Rent591homeDetailInfosOrErr returns the Rent591homeDetailInfos value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homeDetailNavdatasOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailNavdatasOrErr() ([]*Rent591HomeDetailNavData, error)

Rent591homeDetailNavdatasOrErr returns the Rent591homeDetailNavdatas value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homeDetailPositionRoundsOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailPositionRoundsOrErr() (*Rent591HomeDetailPositionRound, error)

Rent591homeDetailPositionRoundsOrErr returns the Rent591homeDetailPositionRounds value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (Rent591HomeDetailEdges) Rent591homeDetailPublishsOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailPublishsOrErr() ([]*Rent591HomeDetailPublish, error)

Rent591homeDetailPublishsOrErr returns the Rent591homeDetailPublishs value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homeDetailShareinfosOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailShareinfosOrErr() ([]*Rent591HomeDetailShareInfo, error)

Rent591homeDetailShareinfosOrErr returns the Rent591homeDetailShareinfos value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homeDetailTagsOrErr

func (e Rent591HomeDetailEdges) Rent591homeDetailTagsOrErr() ([]*Rent591HomeDetailTag, error)

Rent591homeDetailTagsOrErr returns the Rent591homeDetailTags value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailEdges) Rent591homesOrErr

func (e Rent591HomeDetailEdges) Rent591homesOrErr() (*Rent591Home, error)

Rent591homesOrErr returns the Rent591homes value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type Rent591HomeDetailGroupBy

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

Rent591HomeDetailGroupBy is the group-by builder for Rent591HomeDetail entities.

func (*Rent591HomeDetailGroupBy) Aggregate

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

func (*Rent591HomeDetailGroupBy) Bool

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

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

func (*Rent591HomeDetailGroupBy) BoolX

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

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

func (*Rent591HomeDetailGroupBy) Bools

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

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

func (*Rent591HomeDetailGroupBy) BoolsX

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

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

func (*Rent591HomeDetailGroupBy) Float64

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

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

func (*Rent591HomeDetailGroupBy) Float64X

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

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

func (*Rent591HomeDetailGroupBy) Float64s

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

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

func (*Rent591HomeDetailGroupBy) Float64sX

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

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

func (*Rent591HomeDetailGroupBy) Int

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

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

func (*Rent591HomeDetailGroupBy) IntX

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

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

func (*Rent591HomeDetailGroupBy) Ints

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

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

func (*Rent591HomeDetailGroupBy) IntsX

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

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

func (*Rent591HomeDetailGroupBy) Scan

func (rdgb *Rent591HomeDetailGroupBy) Scan(ctx context.Context, v any) error

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

func (*Rent591HomeDetailGroupBy) ScanX

func (s *Rent591HomeDetailGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailGroupBy) String

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

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

func (*Rent591HomeDetailGroupBy) StringX

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

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

func (*Rent591HomeDetailGroupBy) Strings

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

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

func (*Rent591HomeDetailGroupBy) StringsX

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

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

type Rent591HomeDetailInfo

type Rent591HomeDetailInfo struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Value holds the value of the "value" field.
	Value string `json:"value,omitempty"`
	// Key holds the value of the "key" field.
	Key int `json:"key,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailInfoQuery when eager-loading is set.
	Edges Rent591HomeDetailInfoEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailInfo is the model entity for the Rent591HomeDetailInfo schema.

func (*Rent591HomeDetailInfo) GetValue

func (rdi *Rent591HomeDetailInfo) GetValue(name string) (ent.Value, error)

GetValue returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailInfo. This includes values selected through modifiers, order, etc.

func (*Rent591HomeDetailInfo) QueryRent591homeDetails

func (rdi *Rent591HomeDetailInfo) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfo) String

func (rdi *Rent591HomeDetailInfo) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailInfo) Unwrap

Unwrap unwraps the Rent591HomeDetailInfo 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 (*Rent591HomeDetailInfo) Update

Update returns a builder for updating this Rent591HomeDetailInfo. Note that you need to call Rent591HomeDetailInfo.Unwrap() before calling this method if this Rent591HomeDetailInfo was returned from a transaction, and the transaction was committed or rolled back.

type Rent591HomeDetailInfoClient

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

Rent591HomeDetailInfoClient is a client for the Rent591HomeDetailInfo schema.

func NewRent591HomeDetailInfoClient

func NewRent591HomeDetailInfoClient(c config) *Rent591HomeDetailInfoClient

NewRent591HomeDetailInfoClient returns a client for the Rent591HomeDetailInfo from the given config.

func (*Rent591HomeDetailInfoClient) Create

Create returns a builder for creating a Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfoClient) CreateBulk

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

func (*Rent591HomeDetailInfoClient) Delete

Delete returns a delete builder for Rent591HomeDetailInfo.

func (*Rent591HomeDetailInfoClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailInfoClient) DeleteOneID

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

func (*Rent591HomeDetailInfoClient) Get

Get returns a Rent591HomeDetailInfo entity by its id.

func (*Rent591HomeDetailInfoClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailInfoClient) Hooks

func (c *Rent591HomeDetailInfoClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeDetailInfoClient) Intercept

func (c *Rent591HomeDetailInfoClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailinfo.Intercept(f(g(h())))`.

func (*Rent591HomeDetailInfoClient) Interceptors

func (c *Rent591HomeDetailInfoClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailInfoClient) Query

Query returns a query builder for Rent591HomeDetailInfo.

func (*Rent591HomeDetailInfoClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailInfo.

func (*Rent591HomeDetailInfoClient) Update

Update returns an update builder for Rent591HomeDetailInfo.

func (*Rent591HomeDetailInfoClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailInfoClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailInfoClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailinfo.Hooks(f(g(h())))`.

type Rent591HomeDetailInfoCreate

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

Rent591HomeDetailInfoCreate is the builder for creating a Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfoCreate) AddRent591homeDetailIDs

func (rdic *Rent591HomeDetailInfoCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailInfoCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailInfoCreate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailInfoCreate) ExecX

func (rdic *Rent591HomeDetailInfoCreate) ExecX(ctx context.Context)

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

func (*Rent591HomeDetailInfoCreate) Mutation

Mutation returns the Rent591HomeDetailInfoMutation object of the builder.

func (*Rent591HomeDetailInfoCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailInfo.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.Rent591HomeDetailInfoUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailInfoCreate) OnConflictColumns

func (rdic *Rent591HomeDetailInfoCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailInfoUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailInfo.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailInfoCreate) Save

Save creates the Rent591HomeDetailInfo in the database.

func (*Rent591HomeDetailInfoCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailInfoCreate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoCreate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailInfoCreate) SetValue

SetValue sets the "value" field.

type Rent591HomeDetailInfoCreateBulk

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

Rent591HomeDetailInfoCreateBulk is the builder for creating many Rent591HomeDetailInfo entities in bulk.

func (*Rent591HomeDetailInfoCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailInfoCreateBulk) ExecX

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

func (*Rent591HomeDetailInfoCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailInfo.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.Rent591HomeDetailInfoUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailInfoCreateBulk) OnConflictColumns

func (rdicb *Rent591HomeDetailInfoCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeDetailInfoUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailInfo.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailInfoCreateBulk) Save

Save creates the Rent591HomeDetailInfo entities in the database.

func (*Rent591HomeDetailInfoCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailInfoDelete

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

Rent591HomeDetailInfoDelete is the builder for deleting a Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfoDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailInfoDelete) ExecX

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

func (*Rent591HomeDetailInfoDelete) Where

Where appends a list predicates to the Rent591HomeDetailInfoDelete builder.

type Rent591HomeDetailInfoDeleteOne

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

Rent591HomeDetailInfoDeleteOne is the builder for deleting a single Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfoDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailInfoDeleteOne) ExecX

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

func (*Rent591HomeDetailInfoDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailInfoDelete builder.

type Rent591HomeDetailInfoEdges

type Rent591HomeDetailInfoEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailInfoEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailInfoEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailInfoEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailInfoGroupBy

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

Rent591HomeDetailInfoGroupBy is the group-by builder for Rent591HomeDetailInfo entities.

func (*Rent591HomeDetailInfoGroupBy) Aggregate

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

func (*Rent591HomeDetailInfoGroupBy) Bool

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

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

func (*Rent591HomeDetailInfoGroupBy) BoolX

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

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

func (*Rent591HomeDetailInfoGroupBy) Bools

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

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

func (*Rent591HomeDetailInfoGroupBy) BoolsX

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

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

func (*Rent591HomeDetailInfoGroupBy) Float64

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

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

func (*Rent591HomeDetailInfoGroupBy) Float64X

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

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

func (*Rent591HomeDetailInfoGroupBy) Float64s

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

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

func (*Rent591HomeDetailInfoGroupBy) Float64sX

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

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

func (*Rent591HomeDetailInfoGroupBy) Int

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

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

func (*Rent591HomeDetailInfoGroupBy) IntX

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

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

func (*Rent591HomeDetailInfoGroupBy) Ints

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

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

func (*Rent591HomeDetailInfoGroupBy) IntsX

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

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

func (*Rent591HomeDetailInfoGroupBy) Scan

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

func (*Rent591HomeDetailInfoGroupBy) ScanX

func (s *Rent591HomeDetailInfoGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailInfoGroupBy) String

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

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

func (*Rent591HomeDetailInfoGroupBy) StringX

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

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

func (*Rent591HomeDetailInfoGroupBy) Strings

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

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

func (*Rent591HomeDetailInfoGroupBy) StringsX

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

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

type Rent591HomeDetailInfoMutation

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

Rent591HomeDetailInfoMutation represents an operation that mutates the Rent591HomeDetailInfo nodes in the graph.

func (*Rent591HomeDetailInfoMutation) AddField

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) AddKey

func (m *Rent591HomeDetailInfoMutation) AddKey(i int)

AddKey adds i to the "key" field.

func (*Rent591HomeDetailInfoMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailInfoMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailInfoMutation) AddedEdges

func (m *Rent591HomeDetailInfoMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailInfoMutation) AddedField

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) AddedFields

func (m *Rent591HomeDetailInfoMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailInfoMutation) AddedIDs

func (m *Rent591HomeDetailInfoMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailInfoMutation) AddedKey

func (m *Rent591HomeDetailInfoMutation) AddedKey() (r int, exists bool)

AddedKey returns the value that was added to the "key" field in this mutation.

func (*Rent591HomeDetailInfoMutation) ClearEdge

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) ClearField

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailInfoMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoMutation) ClearedEdges

func (m *Rent591HomeDetailInfoMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailInfoMutation) ClearedFields

func (m *Rent591HomeDetailInfoMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) EdgeCleared

func (m *Rent591HomeDetailInfoMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailInfoMutation) Field

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 (*Rent591HomeDetailInfoMutation) FieldCleared

func (m *Rent591HomeDetailInfoMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailInfoMutation) Fields

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) ID

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) Key

func (m *Rent591HomeDetailInfoMutation) Key() (r int, exists bool)

Key returns the value of the "key" field in the mutation.

func (*Rent591HomeDetailInfoMutation) Name

func (m *Rent591HomeDetailInfoMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*Rent591HomeDetailInfoMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailInfoMutation) OldKey

func (m *Rent591HomeDetailInfoMutation) OldKey(ctx context.Context) (v int, err error)

OldKey returns the old "key" field's value of the Rent591HomeDetailInfo entity. If the Rent591HomeDetailInfo 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 (*Rent591HomeDetailInfoMutation) OldName

func (m *Rent591HomeDetailInfoMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Rent591HomeDetailInfo entity. If the Rent591HomeDetailInfo 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 (*Rent591HomeDetailInfoMutation) OldValue

func (m *Rent591HomeDetailInfoMutation) OldValue(ctx context.Context) (v string, err error)

OldValue returns the old "value" field's value of the Rent591HomeDetailInfo entity. If the Rent591HomeDetailInfo 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 (*Rent591HomeDetailInfoMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailInfoMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailInfoMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailInfoMutation) RemovedEdges

func (m *Rent591HomeDetailInfoMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailInfoMutation) RemovedIDs

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailInfoMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailInfoMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailInfoMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailInfoMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailInfoMutation) ResetEdge

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) ResetField

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) ResetKey

func (m *Rent591HomeDetailInfoMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*Rent591HomeDetailInfoMutation) ResetName

func (m *Rent591HomeDetailInfoMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*Rent591HomeDetailInfoMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailInfoMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailInfoMutation) ResetValue

func (m *Rent591HomeDetailInfoMutation) ResetValue()

ResetValue resets all changes to the "value" field.

func (*Rent591HomeDetailInfoMutation) SetField

func (m *Rent591HomeDetailInfoMutation) 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 (*Rent591HomeDetailInfoMutation) SetKey

func (m *Rent591HomeDetailInfoMutation) SetKey(i int)

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoMutation) SetName

func (m *Rent591HomeDetailInfoMutation) SetName(s string)

SetName sets the "name" field.

func (*Rent591HomeDetailInfoMutation) SetOp

func (m *Rent591HomeDetailInfoMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailInfoMutation) SetValue

func (m *Rent591HomeDetailInfoMutation) SetValue(s string)

SetValue sets the "value" field.

func (Rent591HomeDetailInfoMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailInfoMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailInfo).

func (*Rent591HomeDetailInfoMutation) Value

func (m *Rent591HomeDetailInfoMutation) Value() (r string, exists bool)

Value returns the value of the "value" field in the mutation.

func (*Rent591HomeDetailInfoMutation) Where

Where appends a list predicates to the Rent591HomeDetailInfoMutation builder.

func (*Rent591HomeDetailInfoMutation) WhereP

func (m *Rent591HomeDetailInfoMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailInfoMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailInfoQuery

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

Rent591HomeDetailInfoQuery is the builder for querying Rent591HomeDetailInfo entities.

func (*Rent591HomeDetailInfoQuery) Aggregate

Aggregate returns a Rent591HomeDetailInfoSelect configured with the given aggregations.

func (*Rent591HomeDetailInfoQuery) All

All executes the query and returns a list of Rent591HomeDetailInfos.

func (*Rent591HomeDetailInfoQuery) AllX

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

func (*Rent591HomeDetailInfoQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailInfoQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailInfoQuery) Count

func (rdiq *Rent591HomeDetailInfoQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*Rent591HomeDetailInfoQuery) CountX

func (rdiq *Rent591HomeDetailInfoQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailInfoQuery) Exist

func (rdiq *Rent591HomeDetailInfoQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailInfoQuery) ExistX

func (rdiq *Rent591HomeDetailInfoQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailInfoQuery) First

First returns the first Rent591HomeDetailInfo entity from the query. Returns a *NotFoundError when no Rent591HomeDetailInfo was found.

func (*Rent591HomeDetailInfoQuery) FirstID

func (rdiq *Rent591HomeDetailInfoQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailInfo ID from the query. Returns a *NotFoundError when no Rent591HomeDetailInfo ID was found.

func (*Rent591HomeDetailInfoQuery) FirstIDX

func (rdiq *Rent591HomeDetailInfoQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailInfoQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailInfoQuery) GroupBy

func (rdiq *Rent591HomeDetailInfoQuery) GroupBy(field string, fields ...string) *Rent591HomeDetailInfoGroupBy

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.Rent591HomeDetailInfo.Query().
	GroupBy(rent591homedetailinfo.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailInfoQuery) IDs

func (rdiq *Rent591HomeDetailInfoQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailInfo IDs.

func (*Rent591HomeDetailInfoQuery) IDsX

func (rdiq *Rent591HomeDetailInfoQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailInfoQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailInfoQuery) Offset

Offset to start from.

func (*Rent591HomeDetailInfoQuery) Only

Only returns a single Rent591HomeDetailInfo entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailInfo entity is found. Returns a *NotFoundError when no Rent591HomeDetailInfo entities are found.

func (*Rent591HomeDetailInfoQuery) OnlyID

func (rdiq *Rent591HomeDetailInfoQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailInfo ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailInfo ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailInfoQuery) OnlyIDX

func (rdiq *Rent591HomeDetailInfoQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailInfoQuery) OnlyX

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

func (*Rent591HomeDetailInfoQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailInfoQuery) QueryRent591homeDetails

func (rdiq *Rent591HomeDetailInfoQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailInfoQuery) Select

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.Rent591HomeDetailInfo.Query().
	Select(rent591homedetailinfo.FieldName).
	Scan(ctx, &v)

func (*Rent591HomeDetailInfoQuery) Unique

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 (*Rent591HomeDetailInfoQuery) Where

Where adds a new predicate for the Rent591HomeDetailInfoQuery builder.

func (*Rent591HomeDetailInfoQuery) WithRent591homeDetails

func (rdiq *Rent591HomeDetailInfoQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeDetailInfoQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailInfoSelect

type Rent591HomeDetailInfoSelect struct {
	*Rent591HomeDetailInfoQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailInfoSelect is the builder for selecting fields of Rent591HomeDetailInfo entities.

func (*Rent591HomeDetailInfoSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailInfoSelect) Bool

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

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

func (*Rent591HomeDetailInfoSelect) BoolX

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

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

func (*Rent591HomeDetailInfoSelect) Bools

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

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

func (*Rent591HomeDetailInfoSelect) BoolsX

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

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

func (*Rent591HomeDetailInfoSelect) Float64

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

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

func (*Rent591HomeDetailInfoSelect) Float64X

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

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

func (*Rent591HomeDetailInfoSelect) Float64s

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

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

func (*Rent591HomeDetailInfoSelect) Float64sX

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

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

func (*Rent591HomeDetailInfoSelect) Int

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

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

func (*Rent591HomeDetailInfoSelect) IntX

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

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

func (*Rent591HomeDetailInfoSelect) Ints

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

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

func (*Rent591HomeDetailInfoSelect) IntsX

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

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

func (*Rent591HomeDetailInfoSelect) Scan

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

func (*Rent591HomeDetailInfoSelect) ScanX

func (s *Rent591HomeDetailInfoSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailInfoSelect) String

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

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

func (*Rent591HomeDetailInfoSelect) StringX

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

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

func (*Rent591HomeDetailInfoSelect) Strings

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

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

func (*Rent591HomeDetailInfoSelect) StringsX

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

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

type Rent591HomeDetailInfoUpdate

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

Rent591HomeDetailInfoUpdate is the builder for updating Rent591HomeDetailInfo entities.

func (*Rent591HomeDetailInfoUpdate) AddKey

AddKey adds i to the "key" field.

func (*Rent591HomeDetailInfoUpdate) AddRent591homeDetailIDs

func (rdiu *Rent591HomeDetailInfoUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailInfoUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailInfoUpdate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoUpdate) ClearRent591homeDetails

func (rdiu *Rent591HomeDetailInfoUpdate) ClearRent591homeDetails() *Rent591HomeDetailInfoUpdate

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailInfoUpdate) ExecX

func (rdiu *Rent591HomeDetailInfoUpdate) ExecX(ctx context.Context)

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

func (*Rent591HomeDetailInfoUpdate) Mutation

Mutation returns the Rent591HomeDetailInfoMutation object of the builder.

func (*Rent591HomeDetailInfoUpdate) RemoveRent591homeDetailIDs

func (rdiu *Rent591HomeDetailInfoUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailInfoUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailInfoUpdate) RemoveRent591homeDetails

func (rdiu *Rent591HomeDetailInfoUpdate) RemoveRent591homeDetails(r ...*Rent591HomeDetail) *Rent591HomeDetailInfoUpdate

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailInfoUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailInfoUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailInfoUpdate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoUpdate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailInfoUpdate) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailInfoUpdate) Where

Where appends a list predicates to the Rent591HomeDetailInfoUpdate builder.

type Rent591HomeDetailInfoUpdateOne

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

Rent591HomeDetailInfoUpdateOne is the builder for updating a single Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfoUpdateOne) AddKey

AddKey adds i to the "key" field.

func (*Rent591HomeDetailInfoUpdateOne) AddRent591homeDetailIDs

func (rdiuo *Rent591HomeDetailInfoUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailInfoUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailInfoUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoUpdateOne) ClearRent591homeDetails

func (rdiuo *Rent591HomeDetailInfoUpdateOne) ClearRent591homeDetails() *Rent591HomeDetailInfoUpdateOne

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailInfoUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailInfoUpdateOne) ExecX

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

func (*Rent591HomeDetailInfoUpdateOne) Mutation

Mutation returns the Rent591HomeDetailInfoMutation object of the builder.

func (*Rent591HomeDetailInfoUpdateOne) RemoveRent591homeDetailIDs

func (rdiuo *Rent591HomeDetailInfoUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailInfoUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailInfoUpdateOne) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailInfoUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailInfoUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailInfoUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailInfoUpdateOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoUpdateOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailInfoUpdateOne) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailInfoUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailInfoUpdate builder.

type Rent591HomeDetailInfoUpsert

type Rent591HomeDetailInfoUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailInfoUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailInfoUpsert) AddKey

AddKey adds v to the "key" field.

func (*Rent591HomeDetailInfoUpsert) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoUpsert) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailInfoUpsert) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailInfoUpsert) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailInfoUpsert) UpdateName

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

func (*Rent591HomeDetailInfoUpsert) UpdateValue

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

type Rent591HomeDetailInfoUpsertBulk

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

Rent591HomeDetailInfoUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailInfo nodes.

func (*Rent591HomeDetailInfoUpsertBulk) AddKey

AddKey adds v to the "key" field.

func (*Rent591HomeDetailInfoUpsertBulk) DoNothing

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

func (*Rent591HomeDetailInfoUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailInfoUpsertBulk) ExecX

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

func (*Rent591HomeDetailInfoUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailInfo.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailInfoUpsertBulk) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoUpsertBulk) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailInfoUpsertBulk) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailInfoUpsertBulk) Update

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

func (*Rent591HomeDetailInfoUpsertBulk) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailInfoUpsertBulk) UpdateName

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

func (*Rent591HomeDetailInfoUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailInfo.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailInfoUpsertBulk) UpdateValue

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

type Rent591HomeDetailInfoUpsertOne

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

Rent591HomeDetailInfoUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailInfo node.

func (*Rent591HomeDetailInfoUpsertOne) AddKey

AddKey adds v to the "key" field.

func (*Rent591HomeDetailInfoUpsertOne) DoNothing

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

func (*Rent591HomeDetailInfoUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailInfoUpsertOne) ExecX

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

func (*Rent591HomeDetailInfoUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailInfoUpsertOne) IDX

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

func (*Rent591HomeDetailInfoUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailInfo.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailInfoUpsertOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailInfoUpsertOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailInfoUpsertOne) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailInfoUpsertOne) Update

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

func (*Rent591HomeDetailInfoUpsertOne) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailInfoUpsertOne) UpdateName

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

func (*Rent591HomeDetailInfoUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailInfo.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailInfoUpsertOne) UpdateValue

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

type Rent591HomeDetailInfos

type Rent591HomeDetailInfos []*Rent591HomeDetailInfo

Rent591HomeDetailInfos is a parsable slice of Rent591HomeDetailInfo.

type Rent591HomeDetailMutation

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

Rent591HomeDetailMutation represents an operation that mutates the Rent591HomeDetail nodes in the graph.

func (*Rent591HomeDetailMutation) AddDealTime

func (m *Rent591HomeDetailMutation) AddDealTime(i int)

AddDealTime adds i to the "deal_time" field.

func (*Rent591HomeDetailMutation) AddField

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) AddKind

func (m *Rent591HomeDetailMutation) AddKind(i int)

AddKind adds i to the "kind" field.

func (*Rent591HomeDetailMutation) AddPrice

func (m *Rent591HomeDetailMutation) AddPrice(i int)

AddPrice adds i to the "price" field.

func (*Rent591HomeDetailMutation) AddRegionID

func (m *Rent591HomeDetailMutation) AddRegionID(i int)

AddRegionID adds i to the "region_id" field.

func (*Rent591HomeDetailMutation) AddRelieved

func (m *Rent591HomeDetailMutation) AddRelieved(i int)

AddRelieved adds i to the "relieved" field.

func (*Rent591HomeDetailMutation) AddRent591homeDetailBreadcrumbIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailBreadcrumbIDs(ids ...int)

AddRent591homeDetailBreadcrumbIDs adds the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity by ids.

func (*Rent591HomeDetailMutation) AddRent591homeDetailBrowseIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailBrowseIDs(ids ...int)

AddRent591homeDetailBrowseIDs adds the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity by ids.

func (*Rent591HomeDetailMutation) AddRent591homeDetailInfoIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailInfoIDs(ids ...int)

AddRent591homeDetailInfoIDs adds the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity by ids.

func (*Rent591HomeDetailMutation) AddRent591homeDetailNavdataIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailNavdataIDs(ids ...int)

AddRent591homeDetailNavdataIDs adds the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity by ids.

func (*Rent591HomeDetailMutation) AddRent591homeDetailPublishIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailPublishIDs(ids ...int)

AddRent591homeDetailPublishIDs adds the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity by ids.

func (*Rent591HomeDetailMutation) AddRent591homeDetailShareinfoIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailShareinfoIDs(ids ...int)

AddRent591homeDetailShareinfoIDs adds the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity by ids.

func (*Rent591HomeDetailMutation) AddRent591homeDetailTagIDs

func (m *Rent591HomeDetailMutation) AddRent591homeDetailTagIDs(ids ...int)

AddRent591homeDetailTagIDs adds the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity by ids.

func (*Rent591HomeDetailMutation) AddSectionID

func (m *Rent591HomeDetailMutation) AddSectionID(i int)

AddSectionID adds i to the "section_id" field.

func (*Rent591HomeDetailMutation) AddedDealTime

func (m *Rent591HomeDetailMutation) AddedDealTime() (r int, exists bool)

AddedDealTime returns the value that was added to the "deal_time" field in this mutation.

func (*Rent591HomeDetailMutation) AddedEdges

func (m *Rent591HomeDetailMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailMutation) AddedField

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) AddedFields

func (m *Rent591HomeDetailMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailMutation) AddedIDs

func (m *Rent591HomeDetailMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailMutation) AddedKind

func (m *Rent591HomeDetailMutation) AddedKind() (r int, exists bool)

AddedKind returns the value that was added to the "kind" field in this mutation.

func (*Rent591HomeDetailMutation) AddedPrice

func (m *Rent591HomeDetailMutation) AddedPrice() (r int, exists bool)

AddedPrice returns the value that was added to the "price" field in this mutation.

func (*Rent591HomeDetailMutation) AddedRegionID

func (m *Rent591HomeDetailMutation) AddedRegionID() (r int, exists bool)

AddedRegionID returns the value that was added to the "region_id" field in this mutation.

func (*Rent591HomeDetailMutation) AddedRelieved

func (m *Rent591HomeDetailMutation) AddedRelieved() (r int, exists bool)

AddedRelieved returns the value that was added to the "relieved" field in this mutation.

func (*Rent591HomeDetailMutation) AddedSectionID

func (m *Rent591HomeDetailMutation) AddedSectionID() (r int, exists bool)

AddedSectionID returns the value that was added to the "section_id" field in this mutation.

func (*Rent591HomeDetailMutation) ClearDealText

func (m *Rent591HomeDetailMutation) ClearDealText()

ClearDealText clears the value of the "deal_text" field.

func (*Rent591HomeDetailMutation) ClearEdge

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) ClearField

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) ClearRent591homeDetailBreadcrumbs

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailBreadcrumbs()

ClearRent591homeDetailBreadcrumbs clears the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailBrowses

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailBrowses()

ClearRent591homeDetailBrowses clears the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailInfos

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailInfos()

ClearRent591homeDetailInfos clears the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailNavdatas

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailNavdatas()

ClearRent591homeDetailNavdatas clears the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailPositionRounds

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailPositionRounds()

ClearRent591homeDetailPositionRounds clears the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailPublishs

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailPublishs()

ClearRent591homeDetailPublishs clears the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailShareinfos

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailShareinfos()

ClearRent591homeDetailShareinfos clears the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailMutation) ClearRent591homeDetailTags

func (m *Rent591HomeDetailMutation) ClearRent591homeDetailTags()

ClearRent591homeDetailTags clears the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailMutation) ClearRent591homes

func (m *Rent591HomeDetailMutation) ClearRent591homes()

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeDetailMutation) ClearedEdges

func (m *Rent591HomeDetailMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailMutation) ClearedFields

func (m *Rent591HomeDetailMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailMutation) Client

func (m Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) CreatedAt

func (m *Rent591HomeDetailMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*Rent591HomeDetailMutation) DealText

func (m *Rent591HomeDetailMutation) DealText() (r string, exists bool)

DealText returns the value of the "deal_text" field in the mutation.

func (*Rent591HomeDetailMutation) DealTextCleared

func (m *Rent591HomeDetailMutation) DealTextCleared() bool

DealTextCleared returns if the "deal_text" field was cleared in this mutation.

func (*Rent591HomeDetailMutation) DealTime

func (m *Rent591HomeDetailMutation) DealTime() (r int, exists bool)

DealTime returns the value of the "deal_time" field in the mutation.

func (*Rent591HomeDetailMutation) Deposit

func (m *Rent591HomeDetailMutation) Deposit() (r string, exists bool)

Deposit returns the value of the "deposit" field in the mutation.

func (*Rent591HomeDetailMutation) EdgeCleared

func (m *Rent591HomeDetailMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailMutation) Field

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) FieldCleared

func (m *Rent591HomeDetailMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailMutation) Fields

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) ID

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) Kind

func (m *Rent591HomeDetailMutation) Kind() (r int, exists bool)

Kind returns the value of the "kind" field in the mutation.

func (*Rent591HomeDetailMutation) OldCreatedAt

func (m *Rent591HomeDetailMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldDealText

func (m *Rent591HomeDetailMutation) OldDealText(ctx context.Context) (v string, err error)

OldDealText returns the old "deal_text" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldDealTime

func (m *Rent591HomeDetailMutation) OldDealTime(ctx context.Context) (v int, err error)

OldDealTime returns the old "deal_time" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldDeposit

func (m *Rent591HomeDetailMutation) OldDeposit(ctx context.Context) (v string, err error)

OldDeposit returns the old "deposit" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldField

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) OldKind

func (m *Rent591HomeDetailMutation) OldKind(ctx context.Context) (v int, err error)

OldKind returns the old "kind" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldPrice

func (m *Rent591HomeDetailMutation) OldPrice(ctx context.Context) (v int, err error)

OldPrice returns the old "price" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldPriceUnit

func (m *Rent591HomeDetailMutation) OldPriceUnit(ctx context.Context) (v string, err error)

OldPriceUnit returns the old "price_unit" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldRegionID

func (m *Rent591HomeDetailMutation) OldRegionID(ctx context.Context) (v int, err error)

OldRegionID returns the old "region_id" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldRelieved

func (m *Rent591HomeDetailMutation) OldRelieved(ctx context.Context) (v int, err error)

OldRelieved returns the old "relieved" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldSectionID

func (m *Rent591HomeDetailMutation) OldSectionID(ctx context.Context) (v int, err error)

OldSectionID returns the old "section_id" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldTitle

func (m *Rent591HomeDetailMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) OldUpdatedAt

func (m *Rent591HomeDetailMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Rent591HomeDetail entity. If the Rent591HomeDetail 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 (*Rent591HomeDetailMutation) Op

func (m *Rent591HomeDetailMutation) Op() Op

Op returns the operation name.

func (*Rent591HomeDetailMutation) Price

func (m *Rent591HomeDetailMutation) Price() (r int, exists bool)

Price returns the value of the "price" field in the mutation.

func (*Rent591HomeDetailMutation) PriceUnit

func (m *Rent591HomeDetailMutation) PriceUnit() (r string, exists bool)

PriceUnit returns the value of the "price_unit" field in the mutation.

func (*Rent591HomeDetailMutation) RegionID

func (m *Rent591HomeDetailMutation) RegionID() (r int, exists bool)

RegionID returns the value of the "region_id" field in the mutation.

func (*Rent591HomeDetailMutation) Relieved

func (m *Rent591HomeDetailMutation) Relieved() (r int, exists bool)

Relieved returns the value of the "relieved" field in the mutation.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailBreadcrumbIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailBreadcrumbIDs(ids ...int)

RemoveRent591homeDetailBreadcrumbIDs removes the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity by IDs.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailBrowseIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailBrowseIDs(ids ...int)

RemoveRent591homeDetailBrowseIDs removes the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity by IDs.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailInfoIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailInfoIDs(ids ...int)

RemoveRent591homeDetailInfoIDs removes the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity by IDs.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailNavdataIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailNavdataIDs(ids ...int)

RemoveRent591homeDetailNavdataIDs removes the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity by IDs.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailPublishIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailPublishIDs(ids ...int)

RemoveRent591homeDetailPublishIDs removes the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity by IDs.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailShareinfoIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailShareinfoIDs(ids ...int)

RemoveRent591homeDetailShareinfoIDs removes the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity by IDs.

func (*Rent591HomeDetailMutation) RemoveRent591homeDetailTagIDs

func (m *Rent591HomeDetailMutation) RemoveRent591homeDetailTagIDs(ids ...int)

RemoveRent591homeDetailTagIDs removes the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity by IDs.

func (*Rent591HomeDetailMutation) RemovedEdges

func (m *Rent591HomeDetailMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailMutation) RemovedIDs

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) RemovedRent591homeDetailBreadcrumbsIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailBreadcrumbsIDs() (ids []int)

RemovedRent591homeDetailBreadcrumbs returns the removed IDs of the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailMutation) RemovedRent591homeDetailBrowsesIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailBrowsesIDs() (ids []int)

RemovedRent591homeDetailBrowses returns the removed IDs of the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailMutation) RemovedRent591homeDetailInfosIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailInfosIDs() (ids []int)

RemovedRent591homeDetailInfos returns the removed IDs of the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailMutation) RemovedRent591homeDetailNavdatasIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailNavdatasIDs() (ids []int)

RemovedRent591homeDetailNavdatas returns the removed IDs of the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailMutation) RemovedRent591homeDetailPublishsIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailPublishsIDs() (ids []int)

RemovedRent591homeDetailPublishs returns the removed IDs of the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailMutation) RemovedRent591homeDetailShareinfosIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailShareinfosIDs() (ids []int)

RemovedRent591homeDetailShareinfos returns the removed IDs of the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailMutation) RemovedRent591homeDetailTagsIDs

func (m *Rent591HomeDetailMutation) RemovedRent591homeDetailTagsIDs() (ids []int)

RemovedRent591homeDetailTags returns the removed IDs of the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailMutation) Rent591homeDetailBreadcrumbsCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailBreadcrumbsCleared() bool

Rent591homeDetailBreadcrumbsCleared reports if the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailBreadcrumbsIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailBreadcrumbsIDs() (ids []int)

Rent591homeDetailBreadcrumbsIDs returns the "rent591home_detail_breadcrumbs" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailBrowsesCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailBrowsesCleared() bool

Rent591homeDetailBrowsesCleared reports if the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailBrowsesIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailBrowsesIDs() (ids []int)

Rent591homeDetailBrowsesIDs returns the "rent591home_detail_browses" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailInfosCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailInfosCleared() bool

Rent591homeDetailInfosCleared reports if the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailInfosIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailInfosIDs() (ids []int)

Rent591homeDetailInfosIDs returns the "rent591home_detail_infos" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailNavdatasCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailNavdatasCleared() bool

Rent591homeDetailNavdatasCleared reports if the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailNavdatasIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailNavdatasIDs() (ids []int)

Rent591homeDetailNavdatasIDs returns the "rent591home_detail_navdatas" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailPositionRoundsCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailPositionRoundsCleared() bool

Rent591homeDetailPositionRoundsCleared reports if the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailPositionRoundsID

func (m *Rent591HomeDetailMutation) Rent591homeDetailPositionRoundsID() (id int, exists bool)

Rent591homeDetailPositionRoundsID returns the "rent591home_detail_position_rounds" edge ID in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailPositionRoundsIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailPositionRoundsIDs() (ids []int)

Rent591homeDetailPositionRoundsIDs returns the "rent591home_detail_position_rounds" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use Rent591homeDetailPositionRoundsID instead. It exists only for internal usage by the builders.

func (*Rent591HomeDetailMutation) Rent591homeDetailPublishsCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailPublishsCleared() bool

Rent591homeDetailPublishsCleared reports if the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailPublishsIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailPublishsIDs() (ids []int)

Rent591homeDetailPublishsIDs returns the "rent591home_detail_publishs" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailShareinfosCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailShareinfosCleared() bool

Rent591homeDetailShareinfosCleared reports if the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailShareinfosIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailShareinfosIDs() (ids []int)

Rent591homeDetailShareinfosIDs returns the "rent591home_detail_shareinfos" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homeDetailTagsCleared

func (m *Rent591HomeDetailMutation) Rent591homeDetailTagsCleared() bool

Rent591homeDetailTagsCleared reports if the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homeDetailTagsIDs

func (m *Rent591HomeDetailMutation) Rent591homeDetailTagsIDs() (ids []int)

Rent591homeDetailTagsIDs returns the "rent591home_detail_tags" edge IDs in the mutation.

func (*Rent591HomeDetailMutation) Rent591homesCleared

func (m *Rent591HomeDetailMutation) Rent591homesCleared() bool

Rent591homesCleared reports if the "rent591homes" edge to the Rent591Home entity was cleared.

func (*Rent591HomeDetailMutation) Rent591homesID

func (m *Rent591HomeDetailMutation) Rent591homesID() (id int, exists bool)

Rent591homesID returns the "rent591homes" edge ID in the mutation.

func (*Rent591HomeDetailMutation) Rent591homesIDs

func (m *Rent591HomeDetailMutation) Rent591homesIDs() (ids []int)

Rent591homesIDs returns the "rent591homes" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use Rent591homesID instead. It exists only for internal usage by the builders.

func (*Rent591HomeDetailMutation) ResetCreatedAt

func (m *Rent591HomeDetailMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*Rent591HomeDetailMutation) ResetDealText

func (m *Rent591HomeDetailMutation) ResetDealText()

ResetDealText resets all changes to the "deal_text" field.

func (*Rent591HomeDetailMutation) ResetDealTime

func (m *Rent591HomeDetailMutation) ResetDealTime()

ResetDealTime resets all changes to the "deal_time" field.

func (*Rent591HomeDetailMutation) ResetDeposit

func (m *Rent591HomeDetailMutation) ResetDeposit()

ResetDeposit resets all changes to the "deposit" field.

func (*Rent591HomeDetailMutation) ResetEdge

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) ResetField

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) ResetKind

func (m *Rent591HomeDetailMutation) ResetKind()

ResetKind resets all changes to the "kind" field.

func (*Rent591HomeDetailMutation) ResetPrice

func (m *Rent591HomeDetailMutation) ResetPrice()

ResetPrice resets all changes to the "price" field.

func (*Rent591HomeDetailMutation) ResetPriceUnit

func (m *Rent591HomeDetailMutation) ResetPriceUnit()

ResetPriceUnit resets all changes to the "price_unit" field.

func (*Rent591HomeDetailMutation) ResetRegionID

func (m *Rent591HomeDetailMutation) ResetRegionID()

ResetRegionID resets all changes to the "region_id" field.

func (*Rent591HomeDetailMutation) ResetRelieved

func (m *Rent591HomeDetailMutation) ResetRelieved()

ResetRelieved resets all changes to the "relieved" field.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailBreadcrumbs

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailBreadcrumbs()

ResetRent591homeDetailBreadcrumbs resets all changes to the "rent591home_detail_breadcrumbs" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailBrowses

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailBrowses()

ResetRent591homeDetailBrowses resets all changes to the "rent591home_detail_browses" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailInfos

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailInfos()

ResetRent591homeDetailInfos resets all changes to the "rent591home_detail_infos" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailNavdatas

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailNavdatas()

ResetRent591homeDetailNavdatas resets all changes to the "rent591home_detail_navdatas" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailPositionRounds

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailPositionRounds()

ResetRent591homeDetailPositionRounds resets all changes to the "rent591home_detail_position_rounds" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailPublishs

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailPublishs()

ResetRent591homeDetailPublishs resets all changes to the "rent591home_detail_publishs" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailShareinfos

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailShareinfos()

ResetRent591homeDetailShareinfos resets all changes to the "rent591home_detail_shareinfos" edge.

func (*Rent591HomeDetailMutation) ResetRent591homeDetailTags

func (m *Rent591HomeDetailMutation) ResetRent591homeDetailTags()

ResetRent591homeDetailTags resets all changes to the "rent591home_detail_tags" edge.

func (*Rent591HomeDetailMutation) ResetRent591homes

func (m *Rent591HomeDetailMutation) ResetRent591homes()

ResetRent591homes resets all changes to the "rent591homes" edge.

func (*Rent591HomeDetailMutation) ResetSectionID

func (m *Rent591HomeDetailMutation) ResetSectionID()

ResetSectionID resets all changes to the "section_id" field.

func (*Rent591HomeDetailMutation) ResetTitle

func (m *Rent591HomeDetailMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*Rent591HomeDetailMutation) ResetUpdatedAt

func (m *Rent591HomeDetailMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*Rent591HomeDetailMutation) SectionID

func (m *Rent591HomeDetailMutation) SectionID() (r int, exists bool)

SectionID returns the value of the "section_id" field in the mutation.

func (*Rent591HomeDetailMutation) SetCreatedAt

func (m *Rent591HomeDetailMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailMutation) SetDealText

func (m *Rent591HomeDetailMutation) SetDealText(s string)

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailMutation) SetDealTime

func (m *Rent591HomeDetailMutation) SetDealTime(i int)

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailMutation) SetDeposit

func (m *Rent591HomeDetailMutation) SetDeposit(s string)

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailMutation) SetField

func (m *Rent591HomeDetailMutation) 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 (*Rent591HomeDetailMutation) SetKind

func (m *Rent591HomeDetailMutation) SetKind(i int)

SetKind sets the "kind" field.

func (*Rent591HomeDetailMutation) SetOp

func (m *Rent591HomeDetailMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailMutation) SetPrice

func (m *Rent591HomeDetailMutation) SetPrice(i int)

SetPrice sets the "price" field.

func (*Rent591HomeDetailMutation) SetPriceUnit

func (m *Rent591HomeDetailMutation) SetPriceUnit(s string)

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailMutation) SetRegionID

func (m *Rent591HomeDetailMutation) SetRegionID(i int)

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailMutation) SetRelieved

func (m *Rent591HomeDetailMutation) SetRelieved(i int)

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailMutation) SetRent591homeDetailPositionRoundsID

func (m *Rent591HomeDetailMutation) SetRent591homeDetailPositionRoundsID(id int)

SetRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by id.

func (*Rent591HomeDetailMutation) SetRent591homesID

func (m *Rent591HomeDetailMutation) SetRent591homesID(id int)

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by id.

func (*Rent591HomeDetailMutation) SetSectionID

func (m *Rent591HomeDetailMutation) SetSectionID(i int)

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailMutation) SetTitle

func (m *Rent591HomeDetailMutation) SetTitle(s string)

SetTitle sets the "title" field.

func (*Rent591HomeDetailMutation) SetUpdatedAt

func (m *Rent591HomeDetailMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeDetailMutation) Title

func (m *Rent591HomeDetailMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (Rent591HomeDetailMutation) Tx

func (m Rent591HomeDetailMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailMutation) Type

Type returns the node type of this mutation (Rent591HomeDetail).

func (*Rent591HomeDetailMutation) UpdatedAt

func (m *Rent591HomeDetailMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*Rent591HomeDetailMutation) Where

Where appends a list predicates to the Rent591HomeDetailMutation builder.

func (*Rent591HomeDetailMutation) WhereP

func (m *Rent591HomeDetailMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailNavData

type Rent591HomeDetailNavData struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Key holds the value of the "key" field.
	Key string `json:"key,omitempty"`
	// Active holds the value of the "active" field.
	Active int `json:"active,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailNavDataQuery when eager-loading is set.
	Edges Rent591HomeDetailNavDataEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailNavData is the model entity for the Rent591HomeDetailNavData schema.

func (*Rent591HomeDetailNavData) QueryRent591homeDetails

func (rdnd *Rent591HomeDetailNavData) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavData) String

func (rdnd *Rent591HomeDetailNavData) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailNavData) Unwrap

Unwrap unwraps the Rent591HomeDetailNavData 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 (*Rent591HomeDetailNavData) Update

Update returns a builder for updating this Rent591HomeDetailNavData. Note that you need to call Rent591HomeDetailNavData.Unwrap() before calling this method if this Rent591HomeDetailNavData was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailNavData) Value

func (rdnd *Rent591HomeDetailNavData) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailNavData. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailNavDataClient

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

Rent591HomeDetailNavDataClient is a client for the Rent591HomeDetailNavData schema.

func NewRent591HomeDetailNavDataClient

func NewRent591HomeDetailNavDataClient(c config) *Rent591HomeDetailNavDataClient

NewRent591HomeDetailNavDataClient returns a client for the Rent591HomeDetailNavData from the given config.

func (*Rent591HomeDetailNavDataClient) Create

Create returns a builder for creating a Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavDataClient) CreateBulk

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

func (*Rent591HomeDetailNavDataClient) Delete

Delete returns a delete builder for Rent591HomeDetailNavData.

func (*Rent591HomeDetailNavDataClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailNavDataClient) DeleteOneID

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

func (*Rent591HomeDetailNavDataClient) Get

Get returns a Rent591HomeDetailNavData entity by its id.

func (*Rent591HomeDetailNavDataClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailNavDataClient) Hooks

func (c *Rent591HomeDetailNavDataClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeDetailNavDataClient) Intercept

func (c *Rent591HomeDetailNavDataClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailnavdata.Intercept(f(g(h())))`.

func (*Rent591HomeDetailNavDataClient) Interceptors

func (c *Rent591HomeDetailNavDataClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailNavDataClient) Query

Query returns a query builder for Rent591HomeDetailNavData.

func (*Rent591HomeDetailNavDataClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailNavData.

func (*Rent591HomeDetailNavDataClient) Update

Update returns an update builder for Rent591HomeDetailNavData.

func (*Rent591HomeDetailNavDataClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailNavDataClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailNavDataClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailnavdata.Hooks(f(g(h())))`.

type Rent591HomeDetailNavDataCreate

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

Rent591HomeDetailNavDataCreate is the builder for creating a Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavDataCreate) AddRent591homeDetailIDs

func (rdndc *Rent591HomeDetailNavDataCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailNavDataCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailNavDataCreate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailNavDataCreate) ExecX

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

func (*Rent591HomeDetailNavDataCreate) Mutation

Mutation returns the Rent591HomeDetailNavDataMutation object of the builder.

func (*Rent591HomeDetailNavDataCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailNavData.Create().
	SetTitle(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.Rent591HomeDetailNavDataUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailNavDataCreate) OnConflictColumns

func (rdndc *Rent591HomeDetailNavDataCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailNavDataUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailNavData.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailNavDataCreate) Save

Save creates the Rent591HomeDetailNavData in the database.

func (*Rent591HomeDetailNavDataCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailNavDataCreate) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataCreate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataCreate) SetTitle

SetTitle sets the "title" field.

type Rent591HomeDetailNavDataCreateBulk

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

Rent591HomeDetailNavDataCreateBulk is the builder for creating many Rent591HomeDetailNavData entities in bulk.

func (*Rent591HomeDetailNavDataCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailNavDataCreateBulk) ExecX

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

func (*Rent591HomeDetailNavDataCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailNavData.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.Rent591HomeDetailNavDataUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailNavDataCreateBulk) OnConflictColumns

func (rdndcb *Rent591HomeDetailNavDataCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeDetailNavDataUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailNavData.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailNavDataCreateBulk) Save

Save creates the Rent591HomeDetailNavData entities in the database.

func (*Rent591HomeDetailNavDataCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailNavDataDelete

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

Rent591HomeDetailNavDataDelete is the builder for deleting a Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavDataDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailNavDataDelete) ExecX

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

func (*Rent591HomeDetailNavDataDelete) Where

Where appends a list predicates to the Rent591HomeDetailNavDataDelete builder.

type Rent591HomeDetailNavDataDeleteOne

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

Rent591HomeDetailNavDataDeleteOne is the builder for deleting a single Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavDataDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailNavDataDeleteOne) ExecX

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

func (*Rent591HomeDetailNavDataDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailNavDataDelete builder.

type Rent591HomeDetailNavDataEdges

type Rent591HomeDetailNavDataEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailNavDataEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailNavDataEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailNavDataEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailNavDataGroupBy

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

Rent591HomeDetailNavDataGroupBy is the group-by builder for Rent591HomeDetailNavData entities.

func (*Rent591HomeDetailNavDataGroupBy) Aggregate

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

func (*Rent591HomeDetailNavDataGroupBy) Bool

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

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

func (*Rent591HomeDetailNavDataGroupBy) BoolX

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

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

func (*Rent591HomeDetailNavDataGroupBy) Bools

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

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

func (*Rent591HomeDetailNavDataGroupBy) BoolsX

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

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

func (*Rent591HomeDetailNavDataGroupBy) Float64

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

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

func (*Rent591HomeDetailNavDataGroupBy) Float64X

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

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

func (*Rent591HomeDetailNavDataGroupBy) Float64s

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

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

func (*Rent591HomeDetailNavDataGroupBy) Float64sX

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

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

func (*Rent591HomeDetailNavDataGroupBy) Int

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

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

func (*Rent591HomeDetailNavDataGroupBy) IntX

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

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

func (*Rent591HomeDetailNavDataGroupBy) Ints

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

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

func (*Rent591HomeDetailNavDataGroupBy) IntsX

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

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

func (*Rent591HomeDetailNavDataGroupBy) Scan

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

func (*Rent591HomeDetailNavDataGroupBy) ScanX

func (s *Rent591HomeDetailNavDataGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailNavDataGroupBy) String

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

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

func (*Rent591HomeDetailNavDataGroupBy) StringX

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

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

func (*Rent591HomeDetailNavDataGroupBy) Strings

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

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

func (*Rent591HomeDetailNavDataGroupBy) StringsX

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

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

type Rent591HomeDetailNavDataMutation

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

Rent591HomeDetailNavDataMutation represents an operation that mutates the Rent591HomeDetailNavData nodes in the graph.

func (*Rent591HomeDetailNavDataMutation) Active

func (m *Rent591HomeDetailNavDataMutation) Active() (r int, exists bool)

Active returns the value of the "active" field in the mutation.

func (*Rent591HomeDetailNavDataMutation) AddActive

func (m *Rent591HomeDetailNavDataMutation) AddActive(i int)

AddActive adds i to the "active" field.

func (*Rent591HomeDetailNavDataMutation) AddField

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailNavDataMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailNavDataMutation) AddedActive

func (m *Rent591HomeDetailNavDataMutation) AddedActive() (r int, exists bool)

AddedActive returns the value that was added to the "active" field in this mutation.

func (*Rent591HomeDetailNavDataMutation) AddedEdges

func (m *Rent591HomeDetailNavDataMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailNavDataMutation) AddedField

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) AddedFields

func (m *Rent591HomeDetailNavDataMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailNavDataMutation) AddedIDs

func (m *Rent591HomeDetailNavDataMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailNavDataMutation) ClearEdge

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) ClearField

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailNavDataMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataMutation) ClearedEdges

func (m *Rent591HomeDetailNavDataMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailNavDataMutation) ClearedFields

func (m *Rent591HomeDetailNavDataMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) EdgeCleared

func (m *Rent591HomeDetailNavDataMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailNavDataMutation) Field

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 (*Rent591HomeDetailNavDataMutation) FieldCleared

func (m *Rent591HomeDetailNavDataMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailNavDataMutation) Fields

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 (*Rent591HomeDetailNavDataMutation) ID

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) Key

func (m *Rent591HomeDetailNavDataMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*Rent591HomeDetailNavDataMutation) OldActive

func (m *Rent591HomeDetailNavDataMutation) OldActive(ctx context.Context) (v int, err error)

OldActive returns the old "active" field's value of the Rent591HomeDetailNavData entity. If the Rent591HomeDetailNavData 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 (*Rent591HomeDetailNavDataMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailNavDataMutation) OldKey

OldKey returns the old "key" field's value of the Rent591HomeDetailNavData entity. If the Rent591HomeDetailNavData 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 (*Rent591HomeDetailNavDataMutation) OldTitle

func (m *Rent591HomeDetailNavDataMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the Rent591HomeDetailNavData entity. If the Rent591HomeDetailNavData 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 (*Rent591HomeDetailNavDataMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailNavDataMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailNavDataMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailNavDataMutation) RemovedEdges

func (m *Rent591HomeDetailNavDataMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailNavDataMutation) RemovedIDs

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailNavDataMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailNavDataMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailNavDataMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailNavDataMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailNavDataMutation) ResetActive

func (m *Rent591HomeDetailNavDataMutation) ResetActive()

ResetActive resets all changes to the "active" field.

func (*Rent591HomeDetailNavDataMutation) ResetEdge

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) ResetField

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) ResetKey

func (m *Rent591HomeDetailNavDataMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*Rent591HomeDetailNavDataMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailNavDataMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailNavDataMutation) ResetTitle

func (m *Rent591HomeDetailNavDataMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*Rent591HomeDetailNavDataMutation) SetActive

func (m *Rent591HomeDetailNavDataMutation) SetActive(i int)

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataMutation) SetField

func (m *Rent591HomeDetailNavDataMutation) 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 (*Rent591HomeDetailNavDataMutation) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataMutation) SetOp

func (m *Rent591HomeDetailNavDataMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailNavDataMutation) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailNavDataMutation) Title

func (m *Rent591HomeDetailNavDataMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (Rent591HomeDetailNavDataMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailNavDataMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailNavData).

func (*Rent591HomeDetailNavDataMutation) Where

Where appends a list predicates to the Rent591HomeDetailNavDataMutation builder.

func (*Rent591HomeDetailNavDataMutation) WhereP

func (m *Rent591HomeDetailNavDataMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailNavDataMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailNavDataQuery

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

Rent591HomeDetailNavDataQuery is the builder for querying Rent591HomeDetailNavData entities.

func (*Rent591HomeDetailNavDataQuery) Aggregate

Aggregate returns a Rent591HomeDetailNavDataSelect configured with the given aggregations.

func (*Rent591HomeDetailNavDataQuery) All

All executes the query and returns a list of Rent591HomeDetailNavDataSlice.

func (*Rent591HomeDetailNavDataQuery) AllX

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

func (*Rent591HomeDetailNavDataQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailNavDataQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailNavDataQuery) Count

func (rdndq *Rent591HomeDetailNavDataQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*Rent591HomeDetailNavDataQuery) CountX

func (rdndq *Rent591HomeDetailNavDataQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailNavDataQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailNavDataQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailNavDataQuery) First

First returns the first Rent591HomeDetailNavData entity from the query. Returns a *NotFoundError when no Rent591HomeDetailNavData was found.

func (*Rent591HomeDetailNavDataQuery) FirstID

func (rdndq *Rent591HomeDetailNavDataQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailNavData ID from the query. Returns a *NotFoundError when no Rent591HomeDetailNavData ID was found.

func (*Rent591HomeDetailNavDataQuery) FirstIDX

func (rdndq *Rent591HomeDetailNavDataQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailNavDataQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailNavDataQuery) GroupBy

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 {
	Title string `json:"title,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetailNavData.Query().
	GroupBy(rent591homedetailnavdata.FieldTitle).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailNavDataQuery) IDs

func (rdndq *Rent591HomeDetailNavDataQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailNavData IDs.

func (*Rent591HomeDetailNavDataQuery) IDsX

func (rdndq *Rent591HomeDetailNavDataQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailNavDataQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailNavDataQuery) Offset

Offset to start from.

func (*Rent591HomeDetailNavDataQuery) Only

Only returns a single Rent591HomeDetailNavData entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailNavData entity is found. Returns a *NotFoundError when no Rent591HomeDetailNavData entities are found.

func (*Rent591HomeDetailNavDataQuery) OnlyID

func (rdndq *Rent591HomeDetailNavDataQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailNavData ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailNavData ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailNavDataQuery) OnlyIDX

func (rdndq *Rent591HomeDetailNavDataQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailNavDataQuery) OnlyX

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

func (*Rent591HomeDetailNavDataQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailNavDataQuery) QueryRent591homeDetails

func (rdndq *Rent591HomeDetailNavDataQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailNavDataQuery) Select

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 {
	Title string `json:"title,omitempty"`
}

client.Rent591HomeDetailNavData.Query().
	Select(rent591homedetailnavdata.FieldTitle).
	Scan(ctx, &v)

func (*Rent591HomeDetailNavDataQuery) Unique

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 (*Rent591HomeDetailNavDataQuery) Where

Where adds a new predicate for the Rent591HomeDetailNavDataQuery builder.

func (*Rent591HomeDetailNavDataQuery) WithRent591homeDetails

func (rdndq *Rent591HomeDetailNavDataQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeDetailNavDataQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailNavDataSelect

type Rent591HomeDetailNavDataSelect struct {
	*Rent591HomeDetailNavDataQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailNavDataSelect is the builder for selecting fields of Rent591HomeDetailNavData entities.

func (*Rent591HomeDetailNavDataSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailNavDataSelect) Bool

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

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

func (*Rent591HomeDetailNavDataSelect) BoolX

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

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

func (*Rent591HomeDetailNavDataSelect) Bools

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

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

func (*Rent591HomeDetailNavDataSelect) BoolsX

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

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

func (*Rent591HomeDetailNavDataSelect) Float64

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

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

func (*Rent591HomeDetailNavDataSelect) Float64X

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

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

func (*Rent591HomeDetailNavDataSelect) Float64s

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

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

func (*Rent591HomeDetailNavDataSelect) Float64sX

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

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

func (*Rent591HomeDetailNavDataSelect) Int

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

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

func (*Rent591HomeDetailNavDataSelect) IntX

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

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

func (*Rent591HomeDetailNavDataSelect) Ints

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

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

func (*Rent591HomeDetailNavDataSelect) IntsX

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

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

func (*Rent591HomeDetailNavDataSelect) Scan

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

func (*Rent591HomeDetailNavDataSelect) ScanX

func (s *Rent591HomeDetailNavDataSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailNavDataSelect) String

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

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

func (*Rent591HomeDetailNavDataSelect) StringX

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

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

func (*Rent591HomeDetailNavDataSelect) Strings

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

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

func (*Rent591HomeDetailNavDataSelect) StringsX

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

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

type Rent591HomeDetailNavDataSlice

type Rent591HomeDetailNavDataSlice []*Rent591HomeDetailNavData

Rent591HomeDetailNavDataSlice is a parsable slice of Rent591HomeDetailNavData.

type Rent591HomeDetailNavDataUpdate

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

Rent591HomeDetailNavDataUpdate is the builder for updating Rent591HomeDetailNavData entities.

func (*Rent591HomeDetailNavDataUpdate) AddActive

AddActive adds i to the "active" field.

func (*Rent591HomeDetailNavDataUpdate) AddRent591homeDetailIDs

func (rdndu *Rent591HomeDetailNavDataUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailNavDataUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailNavDataUpdate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataUpdate) ClearRent591homeDetails

func (rdndu *Rent591HomeDetailNavDataUpdate) ClearRent591homeDetails() *Rent591HomeDetailNavDataUpdate

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailNavDataUpdate) ExecX

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

func (*Rent591HomeDetailNavDataUpdate) Mutation

Mutation returns the Rent591HomeDetailNavDataMutation object of the builder.

func (*Rent591HomeDetailNavDataUpdate) RemoveRent591homeDetailIDs

func (rdndu *Rent591HomeDetailNavDataUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailNavDataUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailNavDataUpdate) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailNavDataUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailNavDataUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailNavDataUpdate) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataUpdate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataUpdate) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailNavDataUpdate) Where

Where appends a list predicates to the Rent591HomeDetailNavDataUpdate builder.

type Rent591HomeDetailNavDataUpdateOne

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

Rent591HomeDetailNavDataUpdateOne is the builder for updating a single Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavDataUpdateOne) AddActive

AddActive adds i to the "active" field.

func (*Rent591HomeDetailNavDataUpdateOne) AddRent591homeDetailIDs

func (rdnduo *Rent591HomeDetailNavDataUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailNavDataUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailNavDataUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataUpdateOne) ClearRent591homeDetails

func (rdnduo *Rent591HomeDetailNavDataUpdateOne) ClearRent591homeDetails() *Rent591HomeDetailNavDataUpdateOne

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailNavDataUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailNavDataUpdateOne) ExecX

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

func (*Rent591HomeDetailNavDataUpdateOne) Mutation

Mutation returns the Rent591HomeDetailNavDataMutation object of the builder.

func (*Rent591HomeDetailNavDataUpdateOne) RemoveRent591homeDetailIDs

func (rdnduo *Rent591HomeDetailNavDataUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailNavDataUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailNavDataUpdateOne) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailNavDataUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailNavDataUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailNavDataUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailNavDataUpdateOne) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataUpdateOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataUpdateOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailNavDataUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailNavDataUpdate builder.

type Rent591HomeDetailNavDataUpsert

type Rent591HomeDetailNavDataUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailNavDataUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailNavDataUpsert) AddActive

AddActive adds v to the "active" field.

func (*Rent591HomeDetailNavDataUpsert) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataUpsert) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataUpsert) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailNavDataUpsert) UpdateActive

UpdateActive sets the "active" field to the value that was provided on create.

func (*Rent591HomeDetailNavDataUpsert) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailNavDataUpsert) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

type Rent591HomeDetailNavDataUpsertBulk

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

Rent591HomeDetailNavDataUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailNavData nodes.

func (*Rent591HomeDetailNavDataUpsertBulk) AddActive

AddActive adds v to the "active" field.

func (*Rent591HomeDetailNavDataUpsertBulk) DoNothing

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

func (*Rent591HomeDetailNavDataUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailNavDataUpsertBulk) ExecX

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

func (*Rent591HomeDetailNavDataUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailNavData.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailNavDataUpsertBulk) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataUpsertBulk) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataUpsertBulk) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailNavDataUpsertBulk) Update

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

func (*Rent591HomeDetailNavDataUpsertBulk) UpdateActive

UpdateActive sets the "active" field to the value that was provided on create.

func (*Rent591HomeDetailNavDataUpsertBulk) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailNavDataUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailNavData.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailNavDataUpsertBulk) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

type Rent591HomeDetailNavDataUpsertOne

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

Rent591HomeDetailNavDataUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailNavData node.

func (*Rent591HomeDetailNavDataUpsertOne) AddActive

AddActive adds v to the "active" field.

func (*Rent591HomeDetailNavDataUpsertOne) DoNothing

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

func (*Rent591HomeDetailNavDataUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailNavDataUpsertOne) ExecX

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

func (*Rent591HomeDetailNavDataUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailNavDataUpsertOne) IDX

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

func (*Rent591HomeDetailNavDataUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailNavData.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailNavDataUpsertOne) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailNavDataUpsertOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailNavDataUpsertOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailNavDataUpsertOne) Update

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

func (*Rent591HomeDetailNavDataUpsertOne) UpdateActive

UpdateActive sets the "active" field to the value that was provided on create.

func (*Rent591HomeDetailNavDataUpsertOne) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailNavDataUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailNavData.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailNavDataUpsertOne) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

type Rent591HomeDetailPositionRound

type Rent591HomeDetailPositionRound struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Key holds the value of the "key" field.
	Key string `json:"key,omitempty"`
	// Active holds the value of the "active" field.
	Active int `json:"active,omitempty"`
	// CommunityName holds the value of the "community_name" field.
	CommunityName string `json:"community_name,omitempty"`
	// CommunityID holds the value of the "community_id" field.
	CommunityID int `json:"community_id,omitempty"`
	// Address holds the value of the "address" field.
	Address string `json:"address,omitempty"`
	// Lat holds the value of the "lat" field.
	Lat float64 `json:"lat,omitempty"`
	// Lng holds the value of the "lng" field.
	Lng float64 `json:"lng,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailPositionRoundQuery when eager-loading is set.
	Edges Rent591HomeDetailPositionRoundEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRound is the model entity for the Rent591HomeDetailPositionRound schema.

func (*Rent591HomeDetailPositionRound) QueryRent591homeDetailPositionRoundDatas

func (rdpr *Rent591HomeDetailPositionRound) QueryRent591homeDetailPositionRoundDatas() *Rent591HomeDetailPositionRoundDataQuery

QueryRent591homeDetailPositionRoundDatas queries the "rent591home_detail_position_round_datas" edge of the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRound) QueryRent591homeDetails

func (rdpr *Rent591HomeDetailPositionRound) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRound) String

func (rdpr *Rent591HomeDetailPositionRound) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailPositionRound) Unwrap

Unwrap unwraps the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRound) Update

Update returns a builder for updating this Rent591HomeDetailPositionRound. Note that you need to call Rent591HomeDetailPositionRound.Unwrap() before calling this method if this Rent591HomeDetailPositionRound was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailPositionRound) Value

func (rdpr *Rent591HomeDetailPositionRound) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailPositionRound. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailPositionRoundClient

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

Rent591HomeDetailPositionRoundClient is a client for the Rent591HomeDetailPositionRound schema.

func NewRent591HomeDetailPositionRoundClient

func NewRent591HomeDetailPositionRoundClient(c config) *Rent591HomeDetailPositionRoundClient

NewRent591HomeDetailPositionRoundClient returns a client for the Rent591HomeDetailPositionRound from the given config.

func (*Rent591HomeDetailPositionRoundClient) Create

Create returns a builder for creating a Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundClient) CreateBulk

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

func (*Rent591HomeDetailPositionRoundClient) Delete

Delete returns a delete builder for Rent591HomeDetailPositionRound.

func (*Rent591HomeDetailPositionRoundClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailPositionRoundClient) DeleteOneID

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

func (*Rent591HomeDetailPositionRoundClient) Get

Get returns a Rent591HomeDetailPositionRound entity by its id.

func (*Rent591HomeDetailPositionRoundClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundClient) Hooks

Hooks returns the client hooks.

func (*Rent591HomeDetailPositionRoundClient) Intercept

func (c *Rent591HomeDetailPositionRoundClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailpositionround.Intercept(f(g(h())))`.

func (*Rent591HomeDetailPositionRoundClient) Interceptors

Interceptors returns the client interceptors.

func (*Rent591HomeDetailPositionRoundClient) Query

Query returns a query builder for Rent591HomeDetailPositionRound.

func (*Rent591HomeDetailPositionRoundClient) QueryRent591homeDetailPositionRoundDatas

QueryRent591homeDetailPositionRoundDatas queries the rent591home_detail_position_round_datas edge of a Rent591HomeDetailPositionRound.

func (*Rent591HomeDetailPositionRoundClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailPositionRound.

func (*Rent591HomeDetailPositionRoundClient) Update

Update returns an update builder for Rent591HomeDetailPositionRound.

func (*Rent591HomeDetailPositionRoundClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailPositionRoundClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailPositionRoundClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailpositionround.Hooks(f(g(h())))`.

type Rent591HomeDetailPositionRoundCreate

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

Rent591HomeDetailPositionRoundCreate is the builder for creating a Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundCreate) AddRent591homeDetailPositionRoundDataIDs

func (rdprc *Rent591HomeDetailPositionRoundCreate) AddRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundCreate

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundCreate) AddRent591homeDetailPositionRoundDatas

AddRent591homeDetailPositionRoundDatas adds the "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundCreate) ExecX

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

func (*Rent591HomeDetailPositionRoundCreate) Mutation

Mutation returns the Rent591HomeDetailPositionRoundMutation object of the builder.

func (*Rent591HomeDetailPositionRoundCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPositionRound.Create().
	SetTitle(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.Rent591HomeDetailPositionRoundUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundCreate) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRound.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundCreate) Save

Save creates the Rent591HomeDetailPositionRound in the database.

func (*Rent591HomeDetailPositionRoundCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailPositionRoundCreate) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundCreate) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundCreate) SetCommunityID

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundCreate) SetCommunityName

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundCreate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundCreate) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundCreate) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundCreate) SetNillableRent591homeDetailsID

func (rdprc *Rent591HomeDetailPositionRoundCreate) SetNillableRent591homeDetailsID(id *int) *Rent591HomeDetailPositionRoundCreate

SetNillableRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID if the given value is not nil.

func (*Rent591HomeDetailPositionRoundCreate) SetRent591homeDetails

SetRent591homeDetails sets the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPositionRoundCreate) SetRent591homeDetailsID

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID.

func (*Rent591HomeDetailPositionRoundCreate) SetTitle

SetTitle sets the "title" field.

type Rent591HomeDetailPositionRoundCreateBulk

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

Rent591HomeDetailPositionRoundCreateBulk is the builder for creating many Rent591HomeDetailPositionRound entities in bulk.

func (*Rent591HomeDetailPositionRoundCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundCreateBulk) ExecX

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

func (*Rent591HomeDetailPositionRoundCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPositionRound.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.Rent591HomeDetailPositionRoundUpsert) {
		SetTitle(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRound.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundCreateBulk) Save

Save creates the Rent591HomeDetailPositionRound entities in the database.

func (*Rent591HomeDetailPositionRoundCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailPositionRoundData

type Rent591HomeDetailPositionRoundData struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Key holds the value of the "key" field.
	Key string `json:"key,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailPositionRoundDataQuery when eager-loading is set.
	Edges Rent591HomeDetailPositionRoundDataEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundData is the model entity for the Rent591HomeDetailPositionRoundData schema.

func (*Rent591HomeDetailPositionRoundData) QueryRent591homeDetailPositionRoundDataChildrens

func (rdprd *Rent591HomeDetailPositionRoundData) QueryRent591homeDetailPositionRoundDataChildrens() *Rent591HomeDetailPositionRoundDataChildrenQuery

QueryRent591homeDetailPositionRoundDataChildrens queries the "rent591home_detail_position_round_data_childrens" edge of the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundData) QueryRent591homeDetailPositionRounds

func (rdprd *Rent591HomeDetailPositionRoundData) QueryRent591homeDetailPositionRounds() *Rent591HomeDetailPositionRoundQuery

QueryRent591homeDetailPositionRounds queries the "rent591home_detail_position_rounds" edge of the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundData) String

String implements the fmt.Stringer.

func (*Rent591HomeDetailPositionRoundData) Unwrap

Unwrap unwraps the Rent591HomeDetailPositionRoundData 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 (*Rent591HomeDetailPositionRoundData) Update

Update returns a builder for updating this Rent591HomeDetailPositionRoundData. Note that you need to call Rent591HomeDetailPositionRoundData.Unwrap() before calling this method if this Rent591HomeDetailPositionRoundData was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailPositionRoundData) Value

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailPositionRoundData. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailPositionRoundDataChildren

type Rent591HomeDetailPositionRoundDataChildren struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Key holds the value of the "key" field.
	Key string `json:"key,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailPositionRoundDataChildrenQuery when eager-loading is set.
	Edges Rent591HomeDetailPositionRoundDataChildrenEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundDataChildren is the model entity for the Rent591HomeDetailPositionRoundDataChildren schema.

func (*Rent591HomeDetailPositionRoundDataChildren) QueryRent591homeDetailPositionRoundDatas

func (rdprdc *Rent591HomeDetailPositionRoundDataChildren) QueryRent591homeDetailPositionRoundDatas() *Rent591HomeDetailPositionRoundDataQuery

QueryRent591homeDetailPositionRoundDatas queries the "rent591home_detail_position_round_datas" edge of the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildren) String

String implements the fmt.Stringer.

func (*Rent591HomeDetailPositionRoundDataChildren) Unwrap

Unwrap unwraps the Rent591HomeDetailPositionRoundDataChildren 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 (*Rent591HomeDetailPositionRoundDataChildren) Update

Update returns a builder for updating this Rent591HomeDetailPositionRoundDataChildren. Note that you need to call Rent591HomeDetailPositionRoundDataChildren.Unwrap() before calling this method if this Rent591HomeDetailPositionRoundDataChildren was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailPositionRoundDataChildren) Value

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailPositionRoundDataChildren. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailPositionRoundDataChildrenClient

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

Rent591HomeDetailPositionRoundDataChildrenClient is a client for the Rent591HomeDetailPositionRoundDataChildren schema.

func NewRent591HomeDetailPositionRoundDataChildrenClient

func NewRent591HomeDetailPositionRoundDataChildrenClient(c config) *Rent591HomeDetailPositionRoundDataChildrenClient

NewRent591HomeDetailPositionRoundDataChildrenClient returns a client for the Rent591HomeDetailPositionRoundDataChildren from the given config.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Create

Create returns a builder for creating a Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) CreateBulk

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

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Delete

Delete returns a delete builder for Rent591HomeDetailPositionRoundDataChildren.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) DeleteOneID

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

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Get

Get returns a Rent591HomeDetailPositionRoundDataChildren entity by its id.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Hooks

Hooks returns the client hooks.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Intercept

func (c *Rent591HomeDetailPositionRoundDataChildrenClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailpositionrounddatachildren.Intercept(f(g(h())))`.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Interceptors

Interceptors returns the client interceptors.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Query

Query returns a query builder for Rent591HomeDetailPositionRoundDataChildren.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) QueryRent591homeDetailPositionRoundDatas

QueryRent591homeDetailPositionRoundDatas queries the rent591home_detail_position_round_datas edge of a Rent591HomeDetailPositionRoundDataChildren.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Update

Update returns an update builder for Rent591HomeDetailPositionRoundDataChildren.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailPositionRoundDataChildrenClient) Use

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailpositionrounddatachildren.Hooks(f(g(h())))`.

type Rent591HomeDetailPositionRoundDataChildrenCreate

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

Rent591HomeDetailPositionRoundDataChildrenCreate is the builder for creating a Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) AddRent591homeDetailPositionRoundDataIDs

func (rdprdcc *Rent591HomeDetailPositionRoundDataChildrenCreate) AddRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundDataChildrenCreate

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) AddRent591homeDetailPositionRoundDatas

AddRent591homeDetailPositionRoundDatas adds the "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) Mutation

Mutation returns the Rent591HomeDetailPositionRoundDataChildrenMutation object of the builder.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPositionRoundDataChildren.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.Rent591HomeDetailPositionRoundDataChildrenUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundDataChildren.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) Save

Save creates the Rent591HomeDetailPositionRoundDataChildren in the database.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenCreate) SetName

SetName sets the "name" field.

type Rent591HomeDetailPositionRoundDataChildrenCreateBulk

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

Rent591HomeDetailPositionRoundDataChildrenCreateBulk is the builder for creating many Rent591HomeDetailPositionRoundDataChildren entities in bulk.

func (*Rent591HomeDetailPositionRoundDataChildrenCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataChildrenCreateBulk) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPositionRoundDataChildren.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.Rent591HomeDetailPositionRoundDataChildrenUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataChildrenCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundDataChildren.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataChildrenCreateBulk) Save

Save creates the Rent591HomeDetailPositionRoundDataChildren entities in the database.

func (*Rent591HomeDetailPositionRoundDataChildrenCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailPositionRoundDataChildrenDelete

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

Rent591HomeDetailPositionRoundDataChildrenDelete is the builder for deleting a Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildrenDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailPositionRoundDataChildrenDelete) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenDelete) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataChildrenDelete builder.

type Rent591HomeDetailPositionRoundDataChildrenDeleteOne

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

Rent591HomeDetailPositionRoundDataChildrenDeleteOne is the builder for deleting a single Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildrenDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailPositionRoundDataChildrenDeleteOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataChildrenDelete builder.

type Rent591HomeDetailPositionRoundDataChildrenEdges

type Rent591HomeDetailPositionRoundDataChildrenEdges struct {
	// Rent591homeDetailPositionRoundDatas holds the value of the rent591home_detail_position_round_datas edge.
	Rent591homeDetailPositionRoundDatas []*Rent591HomeDetailPositionRoundData `json:"rent591home_detail_position_round_datas,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundDataChildrenEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailPositionRoundDataChildrenEdges) Rent591homeDetailPositionRoundDatasOrErr

func (e Rent591HomeDetailPositionRoundDataChildrenEdges) Rent591homeDetailPositionRoundDatasOrErr() ([]*Rent591HomeDetailPositionRoundData, error)

Rent591homeDetailPositionRoundDatasOrErr returns the Rent591homeDetailPositionRoundDatas value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailPositionRoundDataChildrenGroupBy

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

Rent591HomeDetailPositionRoundDataChildrenGroupBy is the group-by builder for Rent591HomeDetailPositionRoundDataChildren entities.

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Aggregate

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Bool

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) BoolX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Bools

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) BoolsX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Float64

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Float64X

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Float64s

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Float64sX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Int

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) IntX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Ints

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) IntsX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Scan

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) ScanX

func (s *Rent591HomeDetailPositionRoundDataChildrenGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) String

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) StringX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) Strings

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenGroupBy) StringsX

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

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

type Rent591HomeDetailPositionRoundDataChildrenMutation

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

Rent591HomeDetailPositionRoundDataChildrenMutation represents an operation that mutates the Rent591HomeDetailPositionRoundDataChildren nodes in the graph.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) AddField

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) AddRent591homeDetailPositionRoundDataIDs

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) AddRent591homeDetailPositionRoundDataIDs(ids ...int)

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by ids.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) AddedEdges

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) AddedField

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) AddedFields

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) AddedIDs

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) ClearEdge

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) ClearField

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) ClearRent591homeDetailPositionRoundDatas

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) ClearRent591homeDetailPositionRoundDatas()

ClearRent591homeDetailPositionRoundDatas clears the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) ClearedEdges

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) ClearedFields

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailPositionRoundDataChildrenMutation) 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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) EdgeCleared

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Field

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) FieldCleared

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Fields

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) ID

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) 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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) Key

Key returns the value of the "key" field in the mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Name

Name returns the value of the "name" field in the mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) OldKey

OldKey returns the old "key" field's value of the Rent591HomeDetailPositionRoundDataChildren entity. If the Rent591HomeDetailPositionRoundDataChildren 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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) OldName

OldName returns the old "name" field's value of the Rent591HomeDetailPositionRoundDataChildren entity. If the Rent591HomeDetailPositionRoundDataChildren 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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) RemoveRent591homeDetailPositionRoundDataIDs

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) RemoveRent591homeDetailPositionRoundDataIDs(ids ...int)

RemoveRent591homeDetailPositionRoundDataIDs removes the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) RemovedEdges

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) RemovedIDs

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) RemovedRent591homeDetailPositionRoundDatasIDs

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) RemovedRent591homeDetailPositionRoundDatasIDs() (ids []int)

RemovedRent591homeDetailPositionRoundDatas returns the removed IDs of the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Rent591homeDetailPositionRoundDatasCleared

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) Rent591homeDetailPositionRoundDatasCleared() bool

Rent591homeDetailPositionRoundDatasCleared reports if the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity was cleared.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Rent591homeDetailPositionRoundDatasIDs

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) Rent591homeDetailPositionRoundDatasIDs() (ids []int)

Rent591homeDetailPositionRoundDatasIDs returns the "rent591home_detail_position_round_datas" edge IDs in the mutation.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) ResetEdge

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) ResetField

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) ResetKey

ResetKey resets all changes to the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) ResetName

ResetName resets all changes to the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) ResetRent591homeDetailPositionRoundDatas

func (m *Rent591HomeDetailPositionRoundDataChildrenMutation) ResetRent591homeDetailPositionRoundDatas()

ResetRent591homeDetailPositionRoundDatas resets all changes to the "rent591home_detail_position_round_datas" edge.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) SetField

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 (*Rent591HomeDetailPositionRoundDataChildrenMutation) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) SetOp

SetOp allows setting the mutation operation.

func (Rent591HomeDetailPositionRoundDataChildrenMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailPositionRoundDataChildren).

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataChildrenMutation builder.

func (*Rent591HomeDetailPositionRoundDataChildrenMutation) WhereP

WhereP appends storage-level predicates to the Rent591HomeDetailPositionRoundDataChildrenMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailPositionRoundDataChildrenQuery

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

Rent591HomeDetailPositionRoundDataChildrenQuery is the builder for querying Rent591HomeDetailPositionRoundDataChildren entities.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Aggregate

Aggregate returns a Rent591HomeDetailPositionRoundDataChildrenSelect configured with the given aggregations.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) All

All executes the query and returns a list of Rent591HomeDetailPositionRoundDataChildrens.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) AllX

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

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailPositionRoundDataChildrenQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) First

First returns the first Rent591HomeDetailPositionRoundDataChildren entity from the query. Returns a *NotFoundError when no Rent591HomeDetailPositionRoundDataChildren was found.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) FirstID

FirstID returns the first Rent591HomeDetailPositionRoundDataChildren ID from the query. Returns a *NotFoundError when no Rent591HomeDetailPositionRoundDataChildren ID was found.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) GroupBy

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.Rent591HomeDetailPositionRoundDataChildren.Query().
	GroupBy(rent591homedetailpositionrounddatachildren.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) IDs

IDs executes the query and returns a list of Rent591HomeDetailPositionRoundDataChildren IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Offset

Offset to start from.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Only

Only returns a single Rent591HomeDetailPositionRoundDataChildren entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailPositionRoundDataChildren entity is found. Returns a *NotFoundError when no Rent591HomeDetailPositionRoundDataChildren entities are found.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) OnlyID

OnlyID is like Only, but returns the only Rent591HomeDetailPositionRoundDataChildren ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailPositionRoundDataChildren ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) OnlyX

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

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) QueryRent591homeDetailPositionRoundDatas

func (rdprdcq *Rent591HomeDetailPositionRoundDataChildrenQuery) QueryRent591homeDetailPositionRoundDatas() *Rent591HomeDetailPositionRoundDataQuery

QueryRent591homeDetailPositionRoundDatas chains the current query on the "rent591home_detail_position_round_datas" edge.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Select

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.Rent591HomeDetailPositionRoundDataChildren.Query().
	Select(rent591homedetailpositionrounddatachildren.FieldName).
	Scan(ctx, &v)

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) Unique

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 (*Rent591HomeDetailPositionRoundDataChildrenQuery) Where

Where adds a new predicate for the Rent591HomeDetailPositionRoundDataChildrenQuery builder.

func (*Rent591HomeDetailPositionRoundDataChildrenQuery) WithRent591homeDetailPositionRoundDatas

WithRent591homeDetailPositionRoundDatas tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_position_round_datas" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailPositionRoundDataChildrenSelect

type Rent591HomeDetailPositionRoundDataChildrenSelect struct {
	*Rent591HomeDetailPositionRoundDataChildrenQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundDataChildrenSelect is the builder for selecting fields of Rent591HomeDetailPositionRoundDataChildren entities.

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Bool

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) BoolX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Bools

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) BoolsX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Float64

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Float64X

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Float64s

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Float64sX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Int

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) IntX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Ints

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) IntsX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Scan

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) ScanX

func (s *Rent591HomeDetailPositionRoundDataChildrenSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) String

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) StringX

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) Strings

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

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

func (*Rent591HomeDetailPositionRoundDataChildrenSelect) StringsX

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

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

type Rent591HomeDetailPositionRoundDataChildrenUpdate

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

Rent591HomeDetailPositionRoundDataChildrenUpdate is the builder for updating Rent591HomeDetailPositionRoundDataChildren entities.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) AddRent591homeDetailPositionRoundDataIDs

func (rdprdcu *Rent591HomeDetailPositionRoundDataChildrenUpdate) AddRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundDataChildrenUpdate

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) AddRent591homeDetailPositionRoundDatas

AddRent591homeDetailPositionRoundDatas adds the "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) ClearRent591homeDetailPositionRoundDatas

ClearRent591homeDetailPositionRoundDatas clears all "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) Mutation

Mutation returns the Rent591HomeDetailPositionRoundDataChildrenMutation object of the builder.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) RemoveRent591homeDetailPositionRoundDataIDs

func (rdprdcu *Rent591HomeDetailPositionRoundDataChildrenUpdate) RemoveRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundDataChildrenUpdate

RemoveRent591homeDetailPositionRoundDataIDs removes the "rent591home_detail_position_round_datas" edge to Rent591HomeDetailPositionRoundData entities by IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) RemoveRent591homeDetailPositionRoundDatas

RemoveRent591homeDetailPositionRoundDatas removes "rent591home_detail_position_round_datas" edges to Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdate) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataChildrenUpdate builder.

type Rent591HomeDetailPositionRoundDataChildrenUpdateOne

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

Rent591HomeDetailPositionRoundDataChildrenUpdateOne is the builder for updating a single Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) AddRent591homeDetailPositionRoundDataIDs

func (rdprdcuo *Rent591HomeDetailPositionRoundDataChildrenUpdateOne) AddRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundDataChildrenUpdateOne

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) AddRent591homeDetailPositionRoundDatas

AddRent591homeDetailPositionRoundDatas adds the "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) ClearRent591homeDetailPositionRoundDatas

ClearRent591homeDetailPositionRoundDatas clears all "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) Mutation

Mutation returns the Rent591HomeDetailPositionRoundDataChildrenMutation object of the builder.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) RemoveRent591homeDetailPositionRoundDataIDs

func (rdprdcuo *Rent591HomeDetailPositionRoundDataChildrenUpdateOne) RemoveRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundDataChildrenUpdateOne

RemoveRent591homeDetailPositionRoundDataIDs removes the "rent591home_detail_position_round_datas" edge to Rent591HomeDetailPositionRoundData entities by IDs.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) RemoveRent591homeDetailPositionRoundDatas

RemoveRent591homeDetailPositionRoundDatas removes "rent591home_detail_position_round_datas" edges to Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataChildrenUpdate builder.

type Rent591HomeDetailPositionRoundDataChildrenUpsert

type Rent591HomeDetailPositionRoundDataChildrenUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailPositionRoundDataChildrenUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsert) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsert) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsert) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsert) UpdateName

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

type Rent591HomeDetailPositionRoundDataChildrenUpsertBulk

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

Rent591HomeDetailPositionRoundDataChildrenUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailPositionRoundDataChildren nodes.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) DoNothing

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundDataChildren.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) Update

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) UpdateName

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundDataChildren.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type Rent591HomeDetailPositionRoundDataChildrenUpsertOne

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

Rent591HomeDetailPositionRoundDataChildrenUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailPositionRoundDataChildren node.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) DoNothing

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) IDX

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundDataChildren.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) Update

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) UpdateName

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

func (*Rent591HomeDetailPositionRoundDataChildrenUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundDataChildren.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type Rent591HomeDetailPositionRoundDataChildrens

type Rent591HomeDetailPositionRoundDataChildrens []*Rent591HomeDetailPositionRoundDataChildren

Rent591HomeDetailPositionRoundDataChildrens is a parsable slice of Rent591HomeDetailPositionRoundDataChildren.

type Rent591HomeDetailPositionRoundDataClient

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

Rent591HomeDetailPositionRoundDataClient is a client for the Rent591HomeDetailPositionRoundData schema.

func NewRent591HomeDetailPositionRoundDataClient

func NewRent591HomeDetailPositionRoundDataClient(c config) *Rent591HomeDetailPositionRoundDataClient

NewRent591HomeDetailPositionRoundDataClient returns a client for the Rent591HomeDetailPositionRoundData from the given config.

func (*Rent591HomeDetailPositionRoundDataClient) Create

Create returns a builder for creating a Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataClient) CreateBulk

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

func (*Rent591HomeDetailPositionRoundDataClient) Delete

Delete returns a delete builder for Rent591HomeDetailPositionRoundData.

func (*Rent591HomeDetailPositionRoundDataClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailPositionRoundDataClient) DeleteOneID

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

func (*Rent591HomeDetailPositionRoundDataClient) Get

Get returns a Rent591HomeDetailPositionRoundData entity by its id.

func (*Rent591HomeDetailPositionRoundDataClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataClient) Hooks

Hooks returns the client hooks.

func (*Rent591HomeDetailPositionRoundDataClient) Intercept

func (c *Rent591HomeDetailPositionRoundDataClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailpositionrounddata.Intercept(f(g(h())))`.

func (*Rent591HomeDetailPositionRoundDataClient) Interceptors

Interceptors returns the client interceptors.

func (*Rent591HomeDetailPositionRoundDataClient) Query

Query returns a query builder for Rent591HomeDetailPositionRoundData.

func (*Rent591HomeDetailPositionRoundDataClient) QueryRent591homeDetailPositionRoundDataChildrens

QueryRent591homeDetailPositionRoundDataChildrens queries the rent591home_detail_position_round_data_childrens edge of a Rent591HomeDetailPositionRoundData.

func (*Rent591HomeDetailPositionRoundDataClient) QueryRent591homeDetailPositionRounds

QueryRent591homeDetailPositionRounds queries the rent591home_detail_position_rounds edge of a Rent591HomeDetailPositionRoundData.

func (*Rent591HomeDetailPositionRoundDataClient) Update

Update returns an update builder for Rent591HomeDetailPositionRoundData.

func (*Rent591HomeDetailPositionRoundDataClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailPositionRoundDataClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailPositionRoundDataClient) Use

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailpositionrounddata.Hooks(f(g(h())))`.

type Rent591HomeDetailPositionRoundDataCreate

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

Rent591HomeDetailPositionRoundDataCreate is the builder for creating a Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataCreate) AddRent591homeDetailPositionRoundDataChildrenIDs

func (rdprdc *Rent591HomeDetailPositionRoundDataCreate) AddRent591homeDetailPositionRoundDataChildrenIDs(ids ...int) *Rent591HomeDetailPositionRoundDataCreate

AddRent591homeDetailPositionRoundDataChildrenIDs adds the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity by IDs.

func (*Rent591HomeDetailPositionRoundDataCreate) AddRent591homeDetailPositionRoundDataChildrens

AddRent591homeDetailPositionRoundDataChildrens adds the "rent591home_detail_position_round_data_childrens" edges to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataCreate) AddRent591homeDetailPositionRoundIDs

func (rdprdc *Rent591HomeDetailPositionRoundDataCreate) AddRent591homeDetailPositionRoundIDs(ids ...int) *Rent591HomeDetailPositionRoundDataCreate

AddRent591homeDetailPositionRoundIDs adds the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by IDs.

func (*Rent591HomeDetailPositionRoundDataCreate) AddRent591homeDetailPositionRounds

AddRent591homeDetailPositionRounds adds the "rent591home_detail_position_rounds" edges to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataCreate) ExecX

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

func (*Rent591HomeDetailPositionRoundDataCreate) Mutation

Mutation returns the Rent591HomeDetailPositionRoundDataMutation object of the builder.

func (*Rent591HomeDetailPositionRoundDataCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPositionRoundData.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.Rent591HomeDetailPositionRoundDataUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataCreate) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundData.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataCreate) Save

Save creates the Rent591HomeDetailPositionRoundData in the database.

func (*Rent591HomeDetailPositionRoundDataCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailPositionRoundDataCreate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataCreate) SetName

SetName sets the "name" field.

type Rent591HomeDetailPositionRoundDataCreateBulk

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

Rent591HomeDetailPositionRoundDataCreateBulk is the builder for creating many Rent591HomeDetailPositionRoundData entities in bulk.

func (*Rent591HomeDetailPositionRoundDataCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataCreateBulk) ExecX

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

func (*Rent591HomeDetailPositionRoundDataCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPositionRoundData.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.Rent591HomeDetailPositionRoundDataUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundData.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataCreateBulk) Save

Save creates the Rent591HomeDetailPositionRoundData entities in the database.

func (*Rent591HomeDetailPositionRoundDataCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailPositionRoundDataDelete

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

Rent591HomeDetailPositionRoundDataDelete is the builder for deleting a Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailPositionRoundDataDelete) ExecX

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

func (*Rent591HomeDetailPositionRoundDataDelete) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataDelete builder.

type Rent591HomeDetailPositionRoundDataDeleteOne

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

Rent591HomeDetailPositionRoundDataDeleteOne is the builder for deleting a single Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailPositionRoundDataDeleteOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDataDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataDelete builder.

type Rent591HomeDetailPositionRoundDataEdges

type Rent591HomeDetailPositionRoundDataEdges struct {
	// Rent591homeDetailPositionRounds holds the value of the rent591home_detail_position_rounds edge.
	Rent591homeDetailPositionRounds []*Rent591HomeDetailPositionRound `json:"rent591home_detail_position_rounds,omitempty"`
	// Rent591homeDetailPositionRoundDataChildrens holds the value of the rent591home_detail_position_round_data_childrens edge.
	Rent591homeDetailPositionRoundDataChildrens []*Rent591HomeDetailPositionRoundDataChildren `json:"rent591home_detail_position_round_data_childrens,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundDataEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailPositionRoundDataEdges) Rent591homeDetailPositionRoundDataChildrensOrErr

func (e Rent591HomeDetailPositionRoundDataEdges) Rent591homeDetailPositionRoundDataChildrensOrErr() ([]*Rent591HomeDetailPositionRoundDataChildren, error)

Rent591homeDetailPositionRoundDataChildrensOrErr returns the Rent591homeDetailPositionRoundDataChildrens value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailPositionRoundDataEdges) Rent591homeDetailPositionRoundsOrErr

func (e Rent591HomeDetailPositionRoundDataEdges) Rent591homeDetailPositionRoundsOrErr() ([]*Rent591HomeDetailPositionRound, error)

Rent591homeDetailPositionRoundsOrErr returns the Rent591homeDetailPositionRounds value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailPositionRoundDataGroupBy

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

Rent591HomeDetailPositionRoundDataGroupBy is the group-by builder for Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundDataGroupBy) Aggregate

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Bool

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) BoolX

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Bools

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) BoolsX

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Float64

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Float64X

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Float64s

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Float64sX

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Int

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) IntX

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Ints

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) IntsX

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Scan

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) ScanX

func (s *Rent591HomeDetailPositionRoundDataGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) String

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) StringX

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) Strings

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

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

func (*Rent591HomeDetailPositionRoundDataGroupBy) StringsX

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

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

type Rent591HomeDetailPositionRoundDataMutation

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

Rent591HomeDetailPositionRoundDataMutation represents an operation that mutates the Rent591HomeDetailPositionRoundData nodes in the graph.

func (*Rent591HomeDetailPositionRoundDataMutation) AddField

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 (*Rent591HomeDetailPositionRoundDataMutation) AddRent591homeDetailPositionRoundDataChildrenIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) AddRent591homeDetailPositionRoundDataChildrenIDs(ids ...int)

AddRent591homeDetailPositionRoundDataChildrenIDs adds the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity by ids.

func (*Rent591HomeDetailPositionRoundDataMutation) AddRent591homeDetailPositionRoundIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) AddRent591homeDetailPositionRoundIDs(ids ...int)

AddRent591homeDetailPositionRoundIDs adds the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ids.

func (*Rent591HomeDetailPositionRoundDataMutation) AddedEdges

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) AddedField

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 (*Rent591HomeDetailPositionRoundDataMutation) AddedFields

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) AddedIDs

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) ClearEdge

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 (*Rent591HomeDetailPositionRoundDataMutation) ClearField

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 (*Rent591HomeDetailPositionRoundDataMutation) ClearRent591homeDetailPositionRoundDataChildrens

func (m *Rent591HomeDetailPositionRoundDataMutation) ClearRent591homeDetailPositionRoundDataChildrens()

ClearRent591homeDetailPositionRoundDataChildrens clears the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataMutation) ClearRent591homeDetailPositionRounds

func (m *Rent591HomeDetailPositionRoundDataMutation) ClearRent591homeDetailPositionRounds()

ClearRent591homeDetailPositionRounds clears the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataMutation) ClearedEdges

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) ClearedFields

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailPositionRoundDataMutation) 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 (*Rent591HomeDetailPositionRoundDataMutation) EdgeCleared

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) Field

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 (*Rent591HomeDetailPositionRoundDataMutation) FieldCleared

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) Fields

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 (*Rent591HomeDetailPositionRoundDataMutation) ID

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 (*Rent591HomeDetailPositionRoundDataMutation) 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 (*Rent591HomeDetailPositionRoundDataMutation) Key

Key returns the value of the "key" field in the mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) Name

Name returns the value of the "name" field in the mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailPositionRoundDataMutation) OldKey

OldKey returns the old "key" field's value of the Rent591HomeDetailPositionRoundData entity. If the Rent591HomeDetailPositionRoundData 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 (*Rent591HomeDetailPositionRoundDataMutation) OldName

OldName returns the old "name" field's value of the Rent591HomeDetailPositionRoundData entity. If the Rent591HomeDetailPositionRoundData 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 (*Rent591HomeDetailPositionRoundDataMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailPositionRoundDataMutation) RemoveRent591homeDetailPositionRoundDataChildrenIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) RemoveRent591homeDetailPositionRoundDataChildrenIDs(ids ...int)

RemoveRent591homeDetailPositionRoundDataChildrenIDs removes the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity by IDs.

func (*Rent591HomeDetailPositionRoundDataMutation) RemoveRent591homeDetailPositionRoundIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) RemoveRent591homeDetailPositionRoundIDs(ids ...int)

RemoveRent591homeDetailPositionRoundIDs removes the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by IDs.

func (*Rent591HomeDetailPositionRoundDataMutation) RemovedEdges

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) RemovedIDs

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) RemovedRent591homeDetailPositionRoundDataChildrensIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) RemovedRent591homeDetailPositionRoundDataChildrensIDs() (ids []int)

RemovedRent591homeDetailPositionRoundDataChildrens returns the removed IDs of the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataMutation) RemovedRent591homeDetailPositionRoundsIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) RemovedRent591homeDetailPositionRoundsIDs() (ids []int)

RemovedRent591homeDetailPositionRounds returns the removed IDs of the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundDataChildrensCleared

func (m *Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundDataChildrensCleared() bool

Rent591homeDetailPositionRoundDataChildrensCleared reports if the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity was cleared.

func (*Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundDataChildrensIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundDataChildrensIDs() (ids []int)

Rent591homeDetailPositionRoundDataChildrensIDs returns the "rent591home_detail_position_round_data_childrens" edge IDs in the mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundsCleared

func (m *Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundsCleared() bool

Rent591homeDetailPositionRoundsCleared reports if the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity was cleared.

func (*Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundsIDs

func (m *Rent591HomeDetailPositionRoundDataMutation) Rent591homeDetailPositionRoundsIDs() (ids []int)

Rent591homeDetailPositionRoundsIDs returns the "rent591home_detail_position_rounds" edge IDs in the mutation.

func (*Rent591HomeDetailPositionRoundDataMutation) ResetEdge

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 (*Rent591HomeDetailPositionRoundDataMutation) ResetField

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 (*Rent591HomeDetailPositionRoundDataMutation) ResetKey

ResetKey resets all changes to the "key" field.

func (*Rent591HomeDetailPositionRoundDataMutation) ResetName

ResetName resets all changes to the "name" field.

func (*Rent591HomeDetailPositionRoundDataMutation) ResetRent591homeDetailPositionRoundDataChildrens

func (m *Rent591HomeDetailPositionRoundDataMutation) ResetRent591homeDetailPositionRoundDataChildrens()

ResetRent591homeDetailPositionRoundDataChildrens resets all changes to the "rent591home_detail_position_round_data_childrens" edge.

func (*Rent591HomeDetailPositionRoundDataMutation) ResetRent591homeDetailPositionRounds

func (m *Rent591HomeDetailPositionRoundDataMutation) ResetRent591homeDetailPositionRounds()

ResetRent591homeDetailPositionRounds resets all changes to the "rent591home_detail_position_rounds" edge.

func (*Rent591HomeDetailPositionRoundDataMutation) SetField

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 (*Rent591HomeDetailPositionRoundDataMutation) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataMutation) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataMutation) SetOp

SetOp allows setting the mutation operation.

func (Rent591HomeDetailPositionRoundDataMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailPositionRoundDataMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailPositionRoundData).

func (*Rent591HomeDetailPositionRoundDataMutation) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataMutation builder.

func (*Rent591HomeDetailPositionRoundDataMutation) WhereP

WhereP appends storage-level predicates to the Rent591HomeDetailPositionRoundDataMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailPositionRoundDataQuery

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

Rent591HomeDetailPositionRoundDataQuery is the builder for querying Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundDataQuery) Aggregate

Aggregate returns a Rent591HomeDetailPositionRoundDataSelect configured with the given aggregations.

func (*Rent591HomeDetailPositionRoundDataQuery) All

All executes the query and returns a list of Rent591HomeDetailPositionRoundDataSlice.

func (*Rent591HomeDetailPositionRoundDataQuery) AllX

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

func (*Rent591HomeDetailPositionRoundDataQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailPositionRoundDataQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailPositionRoundDataQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailPositionRoundDataQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailPositionRoundDataQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataQuery) First

First returns the first Rent591HomeDetailPositionRoundData entity from the query. Returns a *NotFoundError when no Rent591HomeDetailPositionRoundData was found.

func (*Rent591HomeDetailPositionRoundDataQuery) FirstID

func (rdprdq *Rent591HomeDetailPositionRoundDataQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailPositionRoundData ID from the query. Returns a *NotFoundError when no Rent591HomeDetailPositionRoundData ID was found.

func (*Rent591HomeDetailPositionRoundDataQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataQuery) GroupBy

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.Rent591HomeDetailPositionRoundData.Query().
	GroupBy(rent591homedetailpositionrounddata.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailPositionRoundDataQuery) IDs

func (rdprdq *Rent591HomeDetailPositionRoundDataQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailPositionRoundData IDs.

func (*Rent591HomeDetailPositionRoundDataQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailPositionRoundDataQuery) Offset

Offset to start from.

func (*Rent591HomeDetailPositionRoundDataQuery) Only

Only returns a single Rent591HomeDetailPositionRoundData entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailPositionRoundData entity is found. Returns a *NotFoundError when no Rent591HomeDetailPositionRoundData entities are found.

func (*Rent591HomeDetailPositionRoundDataQuery) OnlyID

func (rdprdq *Rent591HomeDetailPositionRoundDataQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailPositionRoundData ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailPositionRoundData ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailPositionRoundDataQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataQuery) OnlyX

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

func (*Rent591HomeDetailPositionRoundDataQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailPositionRoundDataQuery) QueryRent591homeDetailPositionRoundDataChildrens

func (rdprdq *Rent591HomeDetailPositionRoundDataQuery) QueryRent591homeDetailPositionRoundDataChildrens() *Rent591HomeDetailPositionRoundDataChildrenQuery

QueryRent591homeDetailPositionRoundDataChildrens chains the current query on the "rent591home_detail_position_round_data_childrens" edge.

func (*Rent591HomeDetailPositionRoundDataQuery) QueryRent591homeDetailPositionRounds

func (rdprdq *Rent591HomeDetailPositionRoundDataQuery) QueryRent591homeDetailPositionRounds() *Rent591HomeDetailPositionRoundQuery

QueryRent591homeDetailPositionRounds chains the current query on the "rent591home_detail_position_rounds" edge.

func (*Rent591HomeDetailPositionRoundDataQuery) Select

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.Rent591HomeDetailPositionRoundData.Query().
	Select(rent591homedetailpositionrounddata.FieldName).
	Scan(ctx, &v)

func (*Rent591HomeDetailPositionRoundDataQuery) Unique

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 (*Rent591HomeDetailPositionRoundDataQuery) Where

Where adds a new predicate for the Rent591HomeDetailPositionRoundDataQuery builder.

func (*Rent591HomeDetailPositionRoundDataQuery) WithRent591homeDetailPositionRoundDataChildrens

func (rdprdq *Rent591HomeDetailPositionRoundDataQuery) WithRent591homeDetailPositionRoundDataChildrens(opts ...func(*Rent591HomeDetailPositionRoundDataChildrenQuery)) *Rent591HomeDetailPositionRoundDataQuery

WithRent591homeDetailPositionRoundDataChildrens tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_position_round_data_childrens" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailPositionRoundDataQuery) WithRent591homeDetailPositionRounds

WithRent591homeDetailPositionRounds tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_position_rounds" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailPositionRoundDataSelect

type Rent591HomeDetailPositionRoundDataSelect struct {
	*Rent591HomeDetailPositionRoundDataQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundDataSelect is the builder for selecting fields of Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundDataSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailPositionRoundDataSelect) Bool

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) BoolX

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Bools

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) BoolsX

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Float64

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Float64X

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Float64s

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Float64sX

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Int

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) IntX

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Ints

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) IntsX

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Scan

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

func (*Rent591HomeDetailPositionRoundDataSelect) ScanX

func (s *Rent591HomeDetailPositionRoundDataSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailPositionRoundDataSelect) String

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) StringX

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) Strings

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

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

func (*Rent591HomeDetailPositionRoundDataSelect) StringsX

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

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

type Rent591HomeDetailPositionRoundDataSlice

type Rent591HomeDetailPositionRoundDataSlice []*Rent591HomeDetailPositionRoundData

Rent591HomeDetailPositionRoundDataSlice is a parsable slice of Rent591HomeDetailPositionRoundData.

type Rent591HomeDetailPositionRoundDataUpdate

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

Rent591HomeDetailPositionRoundDataUpdate is the builder for updating Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundDataUpdate) AddRent591homeDetailPositionRoundDataChildrenIDs

func (rdprdu *Rent591HomeDetailPositionRoundDataUpdate) AddRent591homeDetailPositionRoundDataChildrenIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdate

AddRent591homeDetailPositionRoundDataChildrenIDs adds the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdate) AddRent591homeDetailPositionRoundDataChildrens

AddRent591homeDetailPositionRoundDataChildrens adds the "rent591home_detail_position_round_data_childrens" edges to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataUpdate) AddRent591homeDetailPositionRoundIDs

func (rdprdu *Rent591HomeDetailPositionRoundDataUpdate) AddRent591homeDetailPositionRoundIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdate

AddRent591homeDetailPositionRoundIDs adds the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdate) AddRent591homeDetailPositionRounds

AddRent591homeDetailPositionRounds adds the "rent591home_detail_position_rounds" edges to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataUpdate) ClearRent591homeDetailPositionRoundDataChildrens

func (rdprdu *Rent591HomeDetailPositionRoundDataUpdate) ClearRent591homeDetailPositionRoundDataChildrens() *Rent591HomeDetailPositionRoundDataUpdate

ClearRent591homeDetailPositionRoundDataChildrens clears all "rent591home_detail_position_round_data_childrens" edges to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataUpdate) ClearRent591homeDetailPositionRounds

func (rdprdu *Rent591HomeDetailPositionRoundDataUpdate) ClearRent591homeDetailPositionRounds() *Rent591HomeDetailPositionRoundDataUpdate

ClearRent591homeDetailPositionRounds clears all "rent591home_detail_position_rounds" edges to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataUpdate) ExecX

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

func (*Rent591HomeDetailPositionRoundDataUpdate) Mutation

Mutation returns the Rent591HomeDetailPositionRoundDataMutation object of the builder.

func (*Rent591HomeDetailPositionRoundDataUpdate) RemoveRent591homeDetailPositionRoundDataChildrenIDs

func (rdprdu *Rent591HomeDetailPositionRoundDataUpdate) RemoveRent591homeDetailPositionRoundDataChildrenIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdate

RemoveRent591homeDetailPositionRoundDataChildrenIDs removes the "rent591home_detail_position_round_data_childrens" edge to Rent591HomeDetailPositionRoundDataChildren entities by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdate) RemoveRent591homeDetailPositionRoundDataChildrens

RemoveRent591homeDetailPositionRoundDataChildrens removes "rent591home_detail_position_round_data_childrens" edges to Rent591HomeDetailPositionRoundDataChildren entities.

func (*Rent591HomeDetailPositionRoundDataUpdate) RemoveRent591homeDetailPositionRoundIDs

func (rdprdu *Rent591HomeDetailPositionRoundDataUpdate) RemoveRent591homeDetailPositionRoundIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdate

RemoveRent591homeDetailPositionRoundIDs removes the "rent591home_detail_position_rounds" edge to Rent591HomeDetailPositionRound entities by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdate) RemoveRent591homeDetailPositionRounds

RemoveRent591homeDetailPositionRounds removes "rent591home_detail_position_rounds" edges to Rent591HomeDetailPositionRound entities.

func (*Rent591HomeDetailPositionRoundDataUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailPositionRoundDataUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataUpdate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataUpdate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataUpdate) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataUpdate builder.

type Rent591HomeDetailPositionRoundDataUpdateOne

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

Rent591HomeDetailPositionRoundDataUpdateOne is the builder for updating a single Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) AddRent591homeDetailPositionRoundDataChildrenIDs

func (rdprduo *Rent591HomeDetailPositionRoundDataUpdateOne) AddRent591homeDetailPositionRoundDataChildrenIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdateOne

AddRent591homeDetailPositionRoundDataChildrenIDs adds the "rent591home_detail_position_round_data_childrens" edge to the Rent591HomeDetailPositionRoundDataChildren entity by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) AddRent591homeDetailPositionRoundDataChildrens

AddRent591homeDetailPositionRoundDataChildrens adds the "rent591home_detail_position_round_data_childrens" edges to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) AddRent591homeDetailPositionRoundIDs

func (rdprduo *Rent591HomeDetailPositionRoundDataUpdateOne) AddRent591homeDetailPositionRoundIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdateOne

AddRent591homeDetailPositionRoundIDs adds the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) AddRent591homeDetailPositionRounds

AddRent591homeDetailPositionRounds adds the "rent591home_detail_position_rounds" edges to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) ClearRent591homeDetailPositionRoundDataChildrens

func (rdprduo *Rent591HomeDetailPositionRoundDataUpdateOne) ClearRent591homeDetailPositionRoundDataChildrens() *Rent591HomeDetailPositionRoundDataUpdateOne

ClearRent591homeDetailPositionRoundDataChildrens clears all "rent591home_detail_position_round_data_childrens" edges to the Rent591HomeDetailPositionRoundDataChildren entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) ClearRent591homeDetailPositionRounds

func (rdprduo *Rent591HomeDetailPositionRoundDataUpdateOne) ClearRent591homeDetailPositionRounds() *Rent591HomeDetailPositionRoundDataUpdateOne

ClearRent591homeDetailPositionRounds clears all "rent591home_detail_position_rounds" edges to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDataUpdateOne) Mutation

Mutation returns the Rent591HomeDetailPositionRoundDataMutation object of the builder.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) RemoveRent591homeDetailPositionRoundDataChildrenIDs

func (rdprduo *Rent591HomeDetailPositionRoundDataUpdateOne) RemoveRent591homeDetailPositionRoundDataChildrenIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdateOne

RemoveRent591homeDetailPositionRoundDataChildrenIDs removes the "rent591home_detail_position_round_data_childrens" edge to Rent591HomeDetailPositionRoundDataChildren entities by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) RemoveRent591homeDetailPositionRoundDataChildrens

RemoveRent591homeDetailPositionRoundDataChildrens removes "rent591home_detail_position_round_data_childrens" edges to Rent591HomeDetailPositionRoundDataChildren entities.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) RemoveRent591homeDetailPositionRoundIDs

func (rdprduo *Rent591HomeDetailPositionRoundDataUpdateOne) RemoveRent591homeDetailPositionRoundIDs(ids ...int) *Rent591HomeDetailPositionRoundDataUpdateOne

RemoveRent591homeDetailPositionRoundIDs removes the "rent591home_detail_position_rounds" edge to Rent591HomeDetailPositionRound entities by IDs.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) RemoveRent591homeDetailPositionRounds

RemoveRent591homeDetailPositionRounds removes "rent591home_detail_position_rounds" edges to Rent591HomeDetailPositionRound entities.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDataUpdate builder.

type Rent591HomeDetailPositionRoundDataUpsert

type Rent591HomeDetailPositionRoundDataUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailPositionRoundDataUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailPositionRoundDataUpsert) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataUpsert) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataUpsert) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundDataUpsert) UpdateName

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

type Rent591HomeDetailPositionRoundDataUpsertBulk

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

Rent591HomeDetailPositionRoundDataUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailPositionRoundData nodes.

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) DoNothing

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

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) ExecX

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

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundData.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) Update

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

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) UpdateName

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

func (*Rent591HomeDetailPositionRoundDataUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundData.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type Rent591HomeDetailPositionRoundDataUpsertOne

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

Rent591HomeDetailPositionRoundDataUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailPositionRoundData node.

func (*Rent591HomeDetailPositionRoundDataUpsertOne) DoNothing

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

func (*Rent591HomeDetailPositionRoundDataUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundDataUpsertOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDataUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailPositionRoundDataUpsertOne) IDX

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

func (*Rent591HomeDetailPositionRoundDataUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundData.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailPositionRoundDataUpsertOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundDataUpsertOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPositionRoundDataUpsertOne) Update

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

func (*Rent591HomeDetailPositionRoundDataUpsertOne) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundDataUpsertOne) UpdateName

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

func (*Rent591HomeDetailPositionRoundDataUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRoundData.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type Rent591HomeDetailPositionRoundDelete

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

Rent591HomeDetailPositionRoundDelete is the builder for deleting a Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailPositionRoundDelete) ExecX

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

func (*Rent591HomeDetailPositionRoundDelete) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDelete builder.

type Rent591HomeDetailPositionRoundDeleteOne

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

Rent591HomeDetailPositionRoundDeleteOne is the builder for deleting a single Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailPositionRoundDeleteOne) ExecX

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

func (*Rent591HomeDetailPositionRoundDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundDelete builder.

type Rent591HomeDetailPositionRoundEdges

type Rent591HomeDetailPositionRoundEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails *Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// Rent591homeDetailPositionRoundDatas holds the value of the rent591home_detail_position_round_datas edge.
	Rent591homeDetailPositionRoundDatas []*Rent591HomeDetailPositionRoundData `json:"rent591home_detail_position_round_datas,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailPositionRoundEdges) Rent591homeDetailPositionRoundDatasOrErr

func (e Rent591HomeDetailPositionRoundEdges) Rent591homeDetailPositionRoundDatasOrErr() ([]*Rent591HomeDetailPositionRoundData, error)

Rent591homeDetailPositionRoundDatasOrErr returns the Rent591homeDetailPositionRoundDatas value or an error if the edge was not loaded in eager-loading.

func (Rent591HomeDetailPositionRoundEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailPositionRoundEdges) Rent591homeDetailsOrErr() (*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type Rent591HomeDetailPositionRoundGroupBy

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

Rent591HomeDetailPositionRoundGroupBy is the group-by builder for Rent591HomeDetailPositionRound entities.

func (*Rent591HomeDetailPositionRoundGroupBy) Aggregate

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

func (*Rent591HomeDetailPositionRoundGroupBy) Bool

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) BoolX

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Bools

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) BoolsX

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Float64

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Float64X

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Float64s

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Float64sX

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Int

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) IntX

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Ints

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) IntsX

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Scan

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

func (*Rent591HomeDetailPositionRoundGroupBy) ScanX

func (s *Rent591HomeDetailPositionRoundGroupBy) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailPositionRoundGroupBy) String

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) StringX

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) Strings

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

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

func (*Rent591HomeDetailPositionRoundGroupBy) StringsX

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

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

type Rent591HomeDetailPositionRoundMutation

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

Rent591HomeDetailPositionRoundMutation represents an operation that mutates the Rent591HomeDetailPositionRound nodes in the graph.

func (*Rent591HomeDetailPositionRoundMutation) Active

func (m *Rent591HomeDetailPositionRoundMutation) Active() (r int, exists bool)

Active returns the value of the "active" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddActive

AddActive adds i to the "active" field.

func (*Rent591HomeDetailPositionRoundMutation) AddCommunityID

func (m *Rent591HomeDetailPositionRoundMutation) AddCommunityID(i int)

AddCommunityID adds i to the "community_id" field.

func (*Rent591HomeDetailPositionRoundMutation) AddField

func (m *Rent591HomeDetailPositionRoundMutation) 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 (*Rent591HomeDetailPositionRoundMutation) AddLat

AddLat adds f to the "lat" field.

func (*Rent591HomeDetailPositionRoundMutation) AddLng

AddLng adds f to the "lng" field.

func (*Rent591HomeDetailPositionRoundMutation) AddRent591homeDetailPositionRoundDataIDs

func (m *Rent591HomeDetailPositionRoundMutation) AddRent591homeDetailPositionRoundDataIDs(ids ...int)

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by ids.

func (*Rent591HomeDetailPositionRoundMutation) AddedActive

func (m *Rent591HomeDetailPositionRoundMutation) AddedActive() (r int, exists bool)

AddedActive returns the value that was added to the "active" field in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddedCommunityID

func (m *Rent591HomeDetailPositionRoundMutation) AddedCommunityID() (r int, exists bool)

AddedCommunityID returns the value that was added to the "community_id" field in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddedEdges

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddedField

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 (*Rent591HomeDetailPositionRoundMutation) AddedFields

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddedIDs

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddedLat

func (m *Rent591HomeDetailPositionRoundMutation) AddedLat() (r float64, exists bool)

AddedLat returns the value that was added to the "lat" field in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) AddedLng

func (m *Rent591HomeDetailPositionRoundMutation) AddedLng() (r float64, exists bool)

AddedLng returns the value that was added to the "lng" field in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) Address

func (m *Rent591HomeDetailPositionRoundMutation) Address() (r string, exists bool)

Address returns the value of the "address" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) ClearEdge

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 (*Rent591HomeDetailPositionRoundMutation) ClearField

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 (*Rent591HomeDetailPositionRoundMutation) ClearRent591homeDetailPositionRoundDatas

func (m *Rent591HomeDetailPositionRoundMutation) ClearRent591homeDetailPositionRoundDatas()

ClearRent591homeDetailPositionRoundDatas clears the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailPositionRoundMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPositionRoundMutation) ClearedEdges

func (m *Rent591HomeDetailPositionRoundMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) ClearedFields

func (m *Rent591HomeDetailPositionRoundMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailPositionRoundMutation) 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 (*Rent591HomeDetailPositionRoundMutation) CommunityID

func (m *Rent591HomeDetailPositionRoundMutation) CommunityID() (r int, exists bool)

CommunityID returns the value of the "community_id" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) CommunityName

func (m *Rent591HomeDetailPositionRoundMutation) CommunityName() (r string, exists bool)

CommunityName returns the value of the "community_name" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) EdgeCleared

func (m *Rent591HomeDetailPositionRoundMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) Field

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 (*Rent591HomeDetailPositionRoundMutation) FieldCleared

func (m *Rent591HomeDetailPositionRoundMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) Fields

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 (*Rent591HomeDetailPositionRoundMutation) ID

func (m *Rent591HomeDetailPositionRoundMutation) 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 (*Rent591HomeDetailPositionRoundMutation) 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 (*Rent591HomeDetailPositionRoundMutation) Key

func (m *Rent591HomeDetailPositionRoundMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) Lat

Lat returns the value of the "lat" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) Lng

Lng returns the value of the "lng" field in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) OldActive

func (m *Rent591HomeDetailPositionRoundMutation) OldActive(ctx context.Context) (v int, err error)

OldActive returns the old "active" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldAddress

OldAddress returns the old "address" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldCommunityID

func (m *Rent591HomeDetailPositionRoundMutation) OldCommunityID(ctx context.Context) (v int, err error)

OldCommunityID returns the old "community_id" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldCommunityName

func (m *Rent591HomeDetailPositionRoundMutation) OldCommunityName(ctx context.Context) (v string, err error)

OldCommunityName returns the old "community_name" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailPositionRoundMutation) OldKey

OldKey returns the old "key" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldLat

OldLat returns the old "lat" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldLng

OldLng returns the old "lng" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) OldTitle

OldTitle returns the old "title" field's value of the Rent591HomeDetailPositionRound entity. If the Rent591HomeDetailPositionRound 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 (*Rent591HomeDetailPositionRoundMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailPositionRoundMutation) RemoveRent591homeDetailPositionRoundDataIDs

func (m *Rent591HomeDetailPositionRoundMutation) RemoveRent591homeDetailPositionRoundDataIDs(ids ...int)

RemoveRent591homeDetailPositionRoundDataIDs removes the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundMutation) RemovedEdges

func (m *Rent591HomeDetailPositionRoundMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) RemovedIDs

RemovedIDs returns all IDs (to other nodes) that were removed for the edge with the given name in this mutation.

func (*Rent591HomeDetailPositionRoundMutation) RemovedRent591homeDetailPositionRoundDatasIDs

func (m *Rent591HomeDetailPositionRoundMutation) RemovedRent591homeDetailPositionRoundDatasIDs() (ids []int)

RemovedRent591homeDetailPositionRoundDatas returns the removed IDs of the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundMutation) Rent591homeDetailPositionRoundDatasCleared

func (m *Rent591HomeDetailPositionRoundMutation) Rent591homeDetailPositionRoundDatasCleared() bool

Rent591homeDetailPositionRoundDatasCleared reports if the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity was cleared.

func (*Rent591HomeDetailPositionRoundMutation) Rent591homeDetailPositionRoundDatasIDs

func (m *Rent591HomeDetailPositionRoundMutation) Rent591homeDetailPositionRoundDatasIDs() (ids []int)

Rent591homeDetailPositionRoundDatasIDs returns the "rent591home_detail_position_round_datas" edge IDs in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailPositionRoundMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailPositionRoundMutation) Rent591homeDetailsID

func (m *Rent591HomeDetailPositionRoundMutation) Rent591homeDetailsID() (id int, exists bool)

Rent591homeDetailsID returns the "rent591home_details" edge ID in the mutation.

func (*Rent591HomeDetailPositionRoundMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailPositionRoundMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use Rent591homeDetailsID instead. It exists only for internal usage by the builders.

func (*Rent591HomeDetailPositionRoundMutation) ResetActive

func (m *Rent591HomeDetailPositionRoundMutation) ResetActive()

ResetActive resets all changes to the "active" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetAddress

func (m *Rent591HomeDetailPositionRoundMutation) ResetAddress()

ResetAddress resets all changes to the "address" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetCommunityID

func (m *Rent591HomeDetailPositionRoundMutation) ResetCommunityID()

ResetCommunityID resets all changes to the "community_id" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetCommunityName

func (m *Rent591HomeDetailPositionRoundMutation) ResetCommunityName()

ResetCommunityName resets all changes to the "community_name" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetEdge

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 (*Rent591HomeDetailPositionRoundMutation) ResetField

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 (*Rent591HomeDetailPositionRoundMutation) ResetKey

ResetKey resets all changes to the "key" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetLat

ResetLat resets all changes to the "lat" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetLng

ResetLng resets all changes to the "lng" field.

func (*Rent591HomeDetailPositionRoundMutation) ResetRent591homeDetailPositionRoundDatas

func (m *Rent591HomeDetailPositionRoundMutation) ResetRent591homeDetailPositionRoundDatas()

ResetRent591homeDetailPositionRoundDatas resets all changes to the "rent591home_detail_position_round_datas" edge.

func (*Rent591HomeDetailPositionRoundMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailPositionRoundMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailPositionRoundMutation) ResetTitle

ResetTitle resets all changes to the "title" field.

func (*Rent591HomeDetailPositionRoundMutation) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundMutation) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundMutation) SetCommunityID

func (m *Rent591HomeDetailPositionRoundMutation) SetCommunityID(i int)

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundMutation) SetCommunityName

func (m *Rent591HomeDetailPositionRoundMutation) SetCommunityName(s string)

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundMutation) SetField

func (m *Rent591HomeDetailPositionRoundMutation) 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 (*Rent591HomeDetailPositionRoundMutation) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundMutation) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundMutation) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundMutation) SetOp

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailPositionRoundMutation) SetRent591homeDetailsID

func (m *Rent591HomeDetailPositionRoundMutation) SetRent591homeDetailsID(id int)

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by id.

func (*Rent591HomeDetailPositionRoundMutation) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailPositionRoundMutation) Title

func (m *Rent591HomeDetailPositionRoundMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (Rent591HomeDetailPositionRoundMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailPositionRoundMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailPositionRound).

func (*Rent591HomeDetailPositionRoundMutation) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundMutation builder.

func (*Rent591HomeDetailPositionRoundMutation) WhereP

func (m *Rent591HomeDetailPositionRoundMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailPositionRoundMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailPositionRoundQuery

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

Rent591HomeDetailPositionRoundQuery is the builder for querying Rent591HomeDetailPositionRound entities.

func (*Rent591HomeDetailPositionRoundQuery) Aggregate

Aggregate returns a Rent591HomeDetailPositionRoundSelect configured with the given aggregations.

func (*Rent591HomeDetailPositionRoundQuery) All

All executes the query and returns a list of Rent591HomeDetailPositionRounds.

func (*Rent591HomeDetailPositionRoundQuery) AllX

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

func (*Rent591HomeDetailPositionRoundQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailPositionRoundQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailPositionRoundQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailPositionRoundQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailPositionRoundQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundQuery) First

First returns the first Rent591HomeDetailPositionRound entity from the query. Returns a *NotFoundError when no Rent591HomeDetailPositionRound was found.

func (*Rent591HomeDetailPositionRoundQuery) FirstID

func (rdprq *Rent591HomeDetailPositionRoundQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailPositionRound ID from the query. Returns a *NotFoundError when no Rent591HomeDetailPositionRound ID was found.

func (*Rent591HomeDetailPositionRoundQuery) FirstIDX

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundQuery) GroupBy

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 {
	Title string `json:"title,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetailPositionRound.Query().
	GroupBy(rent591homedetailpositionround.FieldTitle).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailPositionRoundQuery) IDs

func (rdprq *Rent591HomeDetailPositionRoundQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailPositionRound IDs.

func (*Rent591HomeDetailPositionRoundQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailPositionRoundQuery) Offset

Offset to start from.

func (*Rent591HomeDetailPositionRoundQuery) Only

Only returns a single Rent591HomeDetailPositionRound entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailPositionRound entity is found. Returns a *NotFoundError when no Rent591HomeDetailPositionRound entities are found.

func (*Rent591HomeDetailPositionRoundQuery) OnlyID

func (rdprq *Rent591HomeDetailPositionRoundQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailPositionRound ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailPositionRound ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailPositionRoundQuery) OnlyIDX

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundQuery) OnlyX

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

func (*Rent591HomeDetailPositionRoundQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailPositionRoundQuery) QueryRent591homeDetailPositionRoundDatas

func (rdprq *Rent591HomeDetailPositionRoundQuery) QueryRent591homeDetailPositionRoundDatas() *Rent591HomeDetailPositionRoundDataQuery

QueryRent591homeDetailPositionRoundDatas chains the current query on the "rent591home_detail_position_round_datas" edge.

func (*Rent591HomeDetailPositionRoundQuery) QueryRent591homeDetails

func (rdprq *Rent591HomeDetailPositionRoundQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailPositionRoundQuery) Select

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 {
	Title string `json:"title,omitempty"`
}

client.Rent591HomeDetailPositionRound.Query().
	Select(rent591homedetailpositionround.FieldTitle).
	Scan(ctx, &v)

func (*Rent591HomeDetailPositionRoundQuery) Unique

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 (*Rent591HomeDetailPositionRoundQuery) Where

Where adds a new predicate for the Rent591HomeDetailPositionRoundQuery builder.

func (*Rent591HomeDetailPositionRoundQuery) WithRent591homeDetailPositionRoundDatas

func (rdprq *Rent591HomeDetailPositionRoundQuery) WithRent591homeDetailPositionRoundDatas(opts ...func(*Rent591HomeDetailPositionRoundDataQuery)) *Rent591HomeDetailPositionRoundQuery

WithRent591homeDetailPositionRoundDatas tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_position_round_datas" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailPositionRoundQuery) WithRent591homeDetails

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailPositionRoundSelect

type Rent591HomeDetailPositionRoundSelect struct {
	*Rent591HomeDetailPositionRoundQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailPositionRoundSelect is the builder for selecting fields of Rent591HomeDetailPositionRound entities.

func (*Rent591HomeDetailPositionRoundSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailPositionRoundSelect) Bool

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

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

func (*Rent591HomeDetailPositionRoundSelect) BoolX

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

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

func (*Rent591HomeDetailPositionRoundSelect) Bools

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

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

func (*Rent591HomeDetailPositionRoundSelect) BoolsX

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

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

func (*Rent591HomeDetailPositionRoundSelect) Float64

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

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

func (*Rent591HomeDetailPositionRoundSelect) Float64X

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

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

func (*Rent591HomeDetailPositionRoundSelect) Float64s

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

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

func (*Rent591HomeDetailPositionRoundSelect) Float64sX

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

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

func (*Rent591HomeDetailPositionRoundSelect) Int

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

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

func (*Rent591HomeDetailPositionRoundSelect) IntX

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

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

func (*Rent591HomeDetailPositionRoundSelect) Ints

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

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

func (*Rent591HomeDetailPositionRoundSelect) IntsX

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

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

func (*Rent591HomeDetailPositionRoundSelect) Scan

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

func (*Rent591HomeDetailPositionRoundSelect) ScanX

func (s *Rent591HomeDetailPositionRoundSelect) ScanX(ctx context.Context, v any)

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

func (*Rent591HomeDetailPositionRoundSelect) String

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

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

func (*Rent591HomeDetailPositionRoundSelect) StringX

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

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

func (*Rent591HomeDetailPositionRoundSelect) Strings

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

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

func (*Rent591HomeDetailPositionRoundSelect) StringsX

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

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

type Rent591HomeDetailPositionRoundUpdate

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

Rent591HomeDetailPositionRoundUpdate is the builder for updating Rent591HomeDetailPositionRound entities.

func (*Rent591HomeDetailPositionRoundUpdate) AddActive

AddActive adds i to the "active" field.

func (*Rent591HomeDetailPositionRoundUpdate) AddCommunityID

AddCommunityID adds i to the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpdate) AddLat

AddLat adds f to the "lat" field.

func (*Rent591HomeDetailPositionRoundUpdate) AddLng

AddLng adds f to the "lng" field.

func (*Rent591HomeDetailPositionRoundUpdate) AddRent591homeDetailPositionRoundDataIDs

func (rdpru *Rent591HomeDetailPositionRoundUpdate) AddRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundUpdate

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundUpdate) AddRent591homeDetailPositionRoundDatas

AddRent591homeDetailPositionRoundDatas adds the "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundUpdate) ClearRent591homeDetailPositionRoundDatas

func (rdpru *Rent591HomeDetailPositionRoundUpdate) ClearRent591homeDetailPositionRoundDatas() *Rent591HomeDetailPositionRoundUpdate

ClearRent591homeDetailPositionRoundDatas clears all "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundUpdate) ClearRent591homeDetails

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPositionRoundUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundUpdate) ExecX

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

func (*Rent591HomeDetailPositionRoundUpdate) Mutation

Mutation returns the Rent591HomeDetailPositionRoundMutation object of the builder.

func (*Rent591HomeDetailPositionRoundUpdate) RemoveRent591homeDetailPositionRoundDataIDs

func (rdpru *Rent591HomeDetailPositionRoundUpdate) RemoveRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundUpdate

RemoveRent591homeDetailPositionRoundDataIDs removes the "rent591home_detail_position_round_datas" edge to Rent591HomeDetailPositionRoundData entities by IDs.

func (*Rent591HomeDetailPositionRoundUpdate) RemoveRent591homeDetailPositionRoundDatas

RemoveRent591homeDetailPositionRoundDatas removes "rent591home_detail_position_round_datas" edges to Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailPositionRoundUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundUpdate) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetCommunityID

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetCommunityName

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundUpdate) SetNillableRent591homeDetailsID

func (rdpru *Rent591HomeDetailPositionRoundUpdate) SetNillableRent591homeDetailsID(id *int) *Rent591HomeDetailPositionRoundUpdate

SetNillableRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID if the given value is not nil.

func (*Rent591HomeDetailPositionRoundUpdate) SetRent591homeDetails

SetRent591homeDetails sets the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPositionRoundUpdate) SetRent591homeDetailsID

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID.

func (*Rent591HomeDetailPositionRoundUpdate) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailPositionRoundUpdate) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundUpdate builder.

type Rent591HomeDetailPositionRoundUpdateOne

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

Rent591HomeDetailPositionRoundUpdateOne is the builder for updating a single Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) AddActive

AddActive adds i to the "active" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) AddCommunityID

AddCommunityID adds i to the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) AddLat

AddLat adds f to the "lat" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) AddLng

AddLng adds f to the "lng" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) AddRent591homeDetailPositionRoundDataIDs

func (rdpruo *Rent591HomeDetailPositionRoundUpdateOne) AddRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundUpdateOne

AddRent591homeDetailPositionRoundDataIDs adds the "rent591home_detail_position_round_datas" edge to the Rent591HomeDetailPositionRoundData entity by IDs.

func (*Rent591HomeDetailPositionRoundUpdateOne) AddRent591homeDetailPositionRoundDatas

AddRent591homeDetailPositionRoundDatas adds the "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) ClearRent591homeDetailPositionRoundDatas

func (rdpruo *Rent591HomeDetailPositionRoundUpdateOne) ClearRent591homeDetailPositionRoundDatas() *Rent591HomeDetailPositionRoundUpdateOne

ClearRent591homeDetailPositionRoundDatas clears all "rent591home_detail_position_round_datas" edges to the Rent591HomeDetailPositionRoundData entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) ClearRent591homeDetails

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) ExecX

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

func (*Rent591HomeDetailPositionRoundUpdateOne) Mutation

Mutation returns the Rent591HomeDetailPositionRoundMutation object of the builder.

func (*Rent591HomeDetailPositionRoundUpdateOne) RemoveRent591homeDetailPositionRoundDataIDs

func (rdpruo *Rent591HomeDetailPositionRoundUpdateOne) RemoveRent591homeDetailPositionRoundDataIDs(ids ...int) *Rent591HomeDetailPositionRoundUpdateOne

RemoveRent591homeDetailPositionRoundDataIDs removes the "rent591home_detail_position_round_datas" edge to Rent591HomeDetailPositionRoundData entities by IDs.

func (*Rent591HomeDetailPositionRoundUpdateOne) RemoveRent591homeDetailPositionRoundDatas

RemoveRent591homeDetailPositionRoundDatas removes "rent591home_detail_position_round_datas" edges to Rent591HomeDetailPositionRoundData entities.

func (*Rent591HomeDetailPositionRoundUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPositionRoundUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetCommunityID

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetCommunityName

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetNillableRent591homeDetailsID

func (rdpruo *Rent591HomeDetailPositionRoundUpdateOne) SetNillableRent591homeDetailsID(id *int) *Rent591HomeDetailPositionRoundUpdateOne

SetNillableRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID if the given value is not nil.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetRent591homeDetails

SetRent591homeDetails sets the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetRent591homeDetailsID

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID.

func (*Rent591HomeDetailPositionRoundUpdateOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailPositionRoundUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailPositionRoundUpdate builder.

type Rent591HomeDetailPositionRoundUpsert

type Rent591HomeDetailPositionRoundUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailPositionRoundUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailPositionRoundUpsert) AddActive

AddActive adds v to the "active" field.

func (*Rent591HomeDetailPositionRoundUpsert) AddCommunityID

AddCommunityID adds v to the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpsert) AddLat

AddLat adds v to the "lat" field.

func (*Rent591HomeDetailPositionRoundUpsert) AddLng

AddLng adds v to the "lng" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetCommunityID

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetCommunityName

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundUpsert) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateActive

UpdateActive sets the "active" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateCommunityID

UpdateCommunityID sets the "community_id" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateCommunityName

UpdateCommunityName sets the "community_name" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateLat

UpdateLat sets the "lat" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateLng

UpdateLng sets the "lng" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsert) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

type Rent591HomeDetailPositionRoundUpsertBulk

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

Rent591HomeDetailPositionRoundUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailPositionRound nodes.

func (*Rent591HomeDetailPositionRoundUpsertBulk) AddActive

AddActive adds v to the "active" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) AddCommunityID

AddCommunityID adds v to the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) AddLat

AddLat adds v to the "lat" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) AddLng

AddLng adds v to the "lng" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) DoNothing

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

func (*Rent591HomeDetailPositionRoundUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundUpsertBulk) ExecX

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

func (*Rent591HomeDetailPositionRoundUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRound.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetCommunityID

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetCommunityName

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailPositionRoundUpsertBulk) Update

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

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateActive

UpdateActive sets the "active" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateCommunityID

UpdateCommunityID sets the "community_id" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateCommunityName

UpdateCommunityName sets the "community_name" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateLat

UpdateLat sets the "lat" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateLng

UpdateLng sets the "lng" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRound.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundUpsertBulk) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

type Rent591HomeDetailPositionRoundUpsertOne

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

Rent591HomeDetailPositionRoundUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailPositionRound node.

func (*Rent591HomeDetailPositionRoundUpsertOne) AddActive

AddActive adds v to the "active" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) AddCommunityID

AddCommunityID adds v to the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) AddLat

AddLat adds v to the "lat" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) AddLng

AddLng adds v to the "lng" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) DoNothing

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

func (*Rent591HomeDetailPositionRoundUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailPositionRoundUpsertOne) ExecX

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

func (*Rent591HomeDetailPositionRoundUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailPositionRoundUpsertOne) IDX

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

func (*Rent591HomeDetailPositionRoundUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRound.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailPositionRoundUpsertOne) SetActive

SetActive sets the "active" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetAddress

SetAddress sets the "address" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetCommunityID

SetCommunityID sets the "community_id" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetCommunityName

SetCommunityName sets the "community_name" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetLat

SetLat sets the "lat" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetLng

SetLng sets the "lng" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailPositionRoundUpsertOne) Update

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

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateActive

UpdateActive sets the "active" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateAddress

UpdateAddress sets the "address" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateCommunityID

UpdateCommunityID sets the "community_id" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateCommunityName

UpdateCommunityName sets the "community_name" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateLat

UpdateLat sets the "lat" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateLng

UpdateLng sets the "lng" field to the value that was provided on create.

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPositionRound.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailPositionRoundUpsertOne) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

type Rent591HomeDetailPositionRounds

type Rent591HomeDetailPositionRounds []*Rent591HomeDetailPositionRound

Rent591HomeDetailPositionRounds is a parsable slice of Rent591HomeDetailPositionRound.

type Rent591HomeDetailPublish

type Rent591HomeDetailPublish struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// PostID holds the value of the "post_id" field.
	PostID int `json:"post_id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// Key holds the value of the "key" field.
	Key string `json:"key,omitempty"`
	// PostTime holds the value of the "post_time" field.
	PostTime string `json:"post_time,omitempty"`
	// UpdateTime holds the value of the "update_time" field.
	UpdateTime string `json:"update_time,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailPublishQuery when eager-loading is set.
	Edges Rent591HomeDetailPublishEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPublish is the model entity for the Rent591HomeDetailPublish schema.

func (*Rent591HomeDetailPublish) QueryRent591homeDetails

func (rdp *Rent591HomeDetailPublish) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublish) String

func (rdp *Rent591HomeDetailPublish) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailPublish) Unwrap

Unwrap unwraps the Rent591HomeDetailPublish 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 (*Rent591HomeDetailPublish) Update

Update returns a builder for updating this Rent591HomeDetailPublish. Note that you need to call Rent591HomeDetailPublish.Unwrap() before calling this method if this Rent591HomeDetailPublish was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailPublish) Value

func (rdp *Rent591HomeDetailPublish) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailPublish. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailPublishClient

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

Rent591HomeDetailPublishClient is a client for the Rent591HomeDetailPublish schema.

func NewRent591HomeDetailPublishClient

func NewRent591HomeDetailPublishClient(c config) *Rent591HomeDetailPublishClient

NewRent591HomeDetailPublishClient returns a client for the Rent591HomeDetailPublish from the given config.

func (*Rent591HomeDetailPublishClient) Create

Create returns a builder for creating a Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublishClient) CreateBulk

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

func (*Rent591HomeDetailPublishClient) Delete

Delete returns a delete builder for Rent591HomeDetailPublish.

func (*Rent591HomeDetailPublishClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailPublishClient) DeleteOneID

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

func (*Rent591HomeDetailPublishClient) Get

Get returns a Rent591HomeDetailPublish entity by its id.

func (*Rent591HomeDetailPublishClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailPublishClient) Hooks

func (c *Rent591HomeDetailPublishClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeDetailPublishClient) Intercept

func (c *Rent591HomeDetailPublishClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailpublish.Intercept(f(g(h())))`.

func (*Rent591HomeDetailPublishClient) Interceptors

func (c *Rent591HomeDetailPublishClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailPublishClient) Query

Query returns a query builder for Rent591HomeDetailPublish.

func (*Rent591HomeDetailPublishClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailPublish.

func (*Rent591HomeDetailPublishClient) Update

Update returns an update builder for Rent591HomeDetailPublish.

func (*Rent591HomeDetailPublishClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailPublishClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailPublishClient) Use

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

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailpublish.Hooks(f(g(h())))`.

type Rent591HomeDetailPublishCreate

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

Rent591HomeDetailPublishCreate is the builder for creating a Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublishCreate) AddRent591homeDetailIDs

func (rdpc *Rent591HomeDetailPublishCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailPublishCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailPublishCreate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailPublishCreate) ExecX

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

func (*Rent591HomeDetailPublishCreate) Mutation

Mutation returns the Rent591HomeDetailPublishMutation object of the builder.

func (*Rent591HomeDetailPublishCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPublish.Create().
	SetPostID(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.Rent591HomeDetailPublishUpsert) {
		SetPostID(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPublishCreate) OnConflictColumns

func (rdpc *Rent591HomeDetailPublishCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailPublishUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPublish.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPublishCreate) Save

Save creates the Rent591HomeDetailPublish in the database.

func (*Rent591HomeDetailPublishCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailPublishCreate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishCreate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishCreate) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishCreate) SetPostTime

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishCreate) SetUpdateTime

SetUpdateTime sets the "update_time" field.

type Rent591HomeDetailPublishCreateBulk

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

Rent591HomeDetailPublishCreateBulk is the builder for creating many Rent591HomeDetailPublish entities in bulk.

func (*Rent591HomeDetailPublishCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPublishCreateBulk) ExecX

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

func (*Rent591HomeDetailPublishCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailPublish.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.Rent591HomeDetailPublishUpsert) {
		SetPostID(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailPublishCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailPublish.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailPublishCreateBulk) Save

Save creates the Rent591HomeDetailPublish entities in the database.

func (*Rent591HomeDetailPublishCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailPublishDelete

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

Rent591HomeDetailPublishDelete is the builder for deleting a Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublishDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailPublishDelete) ExecX

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

func (*Rent591HomeDetailPublishDelete) Where

Where appends a list predicates to the Rent591HomeDetailPublishDelete builder.

type Rent591HomeDetailPublishDeleteOne

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

Rent591HomeDetailPublishDeleteOne is the builder for deleting a single Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublishDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailPublishDeleteOne) ExecX

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

func (*Rent591HomeDetailPublishDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailPublishDelete builder.

type Rent591HomeDetailPublishEdges

type Rent591HomeDetailPublishEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailPublishEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailPublishEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailPublishGroupBy

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

Rent591HomeDetailPublishGroupBy is the group-by builder for Rent591HomeDetailPublish entities.

func (*Rent591HomeDetailPublishGroupBy) Aggregate

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

func (*Rent591HomeDetailPublishGroupBy) Bool

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

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

func (*Rent591HomeDetailPublishGroupBy) BoolX

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

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

func (*Rent591HomeDetailPublishGroupBy) Bools

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

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

func (*Rent591HomeDetailPublishGroupBy) BoolsX

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

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

func (*Rent591HomeDetailPublishGroupBy) Float64

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

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

func (*Rent591HomeDetailPublishGroupBy) Float64X

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

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailPublishGroupBy) Float64s

func (s *Rent591HomeDetailPublishGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishGroupBy) Float64sX

func (s *Rent591HomeDetailPublishGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailPublishGroupBy) Int

func (s *Rent591HomeDetailPublishGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishGroupBy) IntX

func (s *Rent591HomeDetailPublishGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailPublishGroupBy) Ints

func (s *Rent591HomeDetailPublishGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishGroupBy) IntsX

func (s *Rent591HomeDetailPublishGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailPublishGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailPublishGroupBy) ScanX

func (s *Rent591HomeDetailPublishGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailPublishGroupBy) String

func (s *Rent591HomeDetailPublishGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishGroupBy) StringX

func (s *Rent591HomeDetailPublishGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailPublishGroupBy) Strings

func (s *Rent591HomeDetailPublishGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishGroupBy) StringsX

func (s *Rent591HomeDetailPublishGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailPublishMutation

type Rent591HomeDetailPublishMutation struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishMutation represents an operation that mutates the Rent591HomeDetailPublish nodes in the graph.

func (*Rent591HomeDetailPublishMutation) AddField

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) AddPostID

func (m *Rent591HomeDetailPublishMutation) AddPostID(i int)

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailPublishMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailPublishMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailPublishMutation) AddedEdges

func (m *Rent591HomeDetailPublishMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailPublishMutation) AddedField

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) AddedFields

func (m *Rent591HomeDetailPublishMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailPublishMutation) AddedIDs

func (m *Rent591HomeDetailPublishMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailPublishMutation) AddedPostID

func (m *Rent591HomeDetailPublishMutation) AddedPostID() (r int, exists bool)

AddedPostID returns the value that was added to the "post_id" field in this mutation.

func (*Rent591HomeDetailPublishMutation) ClearEdge

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) ClearField

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailPublishMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishMutation) ClearedEdges

func (m *Rent591HomeDetailPublishMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailPublishMutation) ClearedFields

func (m *Rent591HomeDetailPublishMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) EdgeCleared

func (m *Rent591HomeDetailPublishMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailPublishMutation) Field

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 (*Rent591HomeDetailPublishMutation) FieldCleared

func (m *Rent591HomeDetailPublishMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailPublishMutation) Fields

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 (*Rent591HomeDetailPublishMutation) ID

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) Key

func (m *Rent591HomeDetailPublishMutation) Key() (r string, exists bool)

Key returns the value of the "key" field in the mutation.

func (*Rent591HomeDetailPublishMutation) Name

func (m *Rent591HomeDetailPublishMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*Rent591HomeDetailPublishMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailPublishMutation) OldKey

OldKey returns the old "key" field's value of the Rent591HomeDetailPublish entity. If the Rent591HomeDetailPublish 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 (*Rent591HomeDetailPublishMutation) OldName

func (m *Rent591HomeDetailPublishMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Rent591HomeDetailPublish entity. If the Rent591HomeDetailPublish 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 (*Rent591HomeDetailPublishMutation) OldPostID

func (m *Rent591HomeDetailPublishMutation) OldPostID(ctx context.Context) (v int, err error)

OldPostID returns the old "post_id" field's value of the Rent591HomeDetailPublish entity. If the Rent591HomeDetailPublish 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 (*Rent591HomeDetailPublishMutation) OldPostTime

func (m *Rent591HomeDetailPublishMutation) OldPostTime(ctx context.Context) (v string, err error)

OldPostTime returns the old "post_time" field's value of the Rent591HomeDetailPublish entity. If the Rent591HomeDetailPublish 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 (*Rent591HomeDetailPublishMutation) OldUpdateTime

func (m *Rent591HomeDetailPublishMutation) OldUpdateTime(ctx context.Context) (v string, err error)

OldUpdateTime returns the old "update_time" field's value of the Rent591HomeDetailPublish entity. If the Rent591HomeDetailPublish 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 (*Rent591HomeDetailPublishMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailPublishMutation) PostID

func (m *Rent591HomeDetailPublishMutation) PostID() (r int, exists bool)

PostID returns the value of the "post_id" field in the mutation.

func (*Rent591HomeDetailPublishMutation) PostTime

func (m *Rent591HomeDetailPublishMutation) PostTime() (r string, exists bool)

PostTime returns the value of the "post_time" field in the mutation.

func (*Rent591HomeDetailPublishMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailPublishMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailPublishMutation) RemovedEdges

func (m *Rent591HomeDetailPublishMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailPublishMutation) RemovedIDs

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailPublishMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailPublishMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailPublishMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailPublishMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailPublishMutation) ResetEdge

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) ResetField

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) ResetKey

func (m *Rent591HomeDetailPublishMutation) ResetKey()

ResetKey resets all changes to the "key" field.

func (*Rent591HomeDetailPublishMutation) ResetName

func (m *Rent591HomeDetailPublishMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*Rent591HomeDetailPublishMutation) ResetPostID

func (m *Rent591HomeDetailPublishMutation) ResetPostID()

ResetPostID resets all changes to the "post_id" field.

func (*Rent591HomeDetailPublishMutation) ResetPostTime

func (m *Rent591HomeDetailPublishMutation) ResetPostTime()

ResetPostTime resets all changes to the "post_time" field.

func (*Rent591HomeDetailPublishMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailPublishMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailPublishMutation) ResetUpdateTime

func (m *Rent591HomeDetailPublishMutation) ResetUpdateTime()

ResetUpdateTime resets all changes to the "update_time" field.

func (*Rent591HomeDetailPublishMutation) SetField

func (m *Rent591HomeDetailPublishMutation) 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 (*Rent591HomeDetailPublishMutation) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishMutation) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishMutation) SetOp

func (m *Rent591HomeDetailPublishMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailPublishMutation) SetPostID

func (m *Rent591HomeDetailPublishMutation) SetPostID(i int)

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishMutation) SetPostTime

func (m *Rent591HomeDetailPublishMutation) SetPostTime(s string)

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishMutation) SetUpdateTime

func (m *Rent591HomeDetailPublishMutation) SetUpdateTime(s string)

SetUpdateTime sets the "update_time" field.

func (Rent591HomeDetailPublishMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailPublishMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailPublish).

func (*Rent591HomeDetailPublishMutation) UpdateTime

func (m *Rent591HomeDetailPublishMutation) UpdateTime() (r string, exists bool)

UpdateTime returns the value of the "update_time" field in the mutation.

func (*Rent591HomeDetailPublishMutation) Where

Where appends a list predicates to the Rent591HomeDetailPublishMutation builder.

func (*Rent591HomeDetailPublishMutation) WhereP

func (m *Rent591HomeDetailPublishMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailPublishMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailPublishQuery

type Rent591HomeDetailPublishQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishQuery is the builder for querying Rent591HomeDetailPublish entities.

func (*Rent591HomeDetailPublishQuery) Aggregate

Aggregate returns a Rent591HomeDetailPublishSelect configured with the given aggregations.

func (*Rent591HomeDetailPublishQuery) All

All executes the query and returns a list of Rent591HomeDetailPublishes.

func (*Rent591HomeDetailPublishQuery) AllX

AllX is like All, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailPublishQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailPublishQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailPublishQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailPublishQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) First

First returns the first Rent591HomeDetailPublish entity from the query. Returns a *NotFoundError when no Rent591HomeDetailPublish was found.

func (*Rent591HomeDetailPublishQuery) FirstID

func (rdpq *Rent591HomeDetailPublishQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailPublish ID from the query. Returns a *NotFoundError when no Rent591HomeDetailPublish ID was found.

func (*Rent591HomeDetailPublishQuery) FirstIDX

func (rdpq *Rent591HomeDetailPublishQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) GroupBy

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 {
	PostID int `json:"post_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetailPublish.Query().
	GroupBy(rent591homedetailpublish.FieldPostID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailPublishQuery) IDs

func (rdpq *Rent591HomeDetailPublishQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailPublish IDs.

func (*Rent591HomeDetailPublishQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailPublishQuery) Offset

Offset to start from.

func (*Rent591HomeDetailPublishQuery) Only

Only returns a single Rent591HomeDetailPublish entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailPublish entity is found. Returns a *NotFoundError when no Rent591HomeDetailPublish entities are found.

func (*Rent591HomeDetailPublishQuery) OnlyID

func (rdpq *Rent591HomeDetailPublishQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailPublish ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailPublish ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailPublishQuery) OnlyIDX

func (rdpq *Rent591HomeDetailPublishQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeDetailPublishQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailPublishQuery) QueryRent591homeDetails

func (rdpq *Rent591HomeDetailPublishQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailPublishQuery) Select

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 {
	PostID int `json:"post_id,omitempty"`
}

client.Rent591HomeDetailPublish.Query().
	Select(rent591homedetailpublish.FieldPostID).
	Scan(ctx, &v)

func (*Rent591HomeDetailPublishQuery) Unique

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 (*Rent591HomeDetailPublishQuery) Where

Where adds a new predicate for the Rent591HomeDetailPublishQuery builder.

func (*Rent591HomeDetailPublishQuery) WithRent591homeDetails

func (rdpq *Rent591HomeDetailPublishQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeDetailPublishQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailPublishSelect

type Rent591HomeDetailPublishSelect struct {
	*Rent591HomeDetailPublishQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishSelect is the builder for selecting fields of Rent591HomeDetailPublish entities.

func (*Rent591HomeDetailPublishSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailPublishSelect) Bool

func (s *Rent591HomeDetailPublishSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) BoolX

func (s *Rent591HomeDetailPublishSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Bools

func (s *Rent591HomeDetailPublishSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) BoolsX

func (s *Rent591HomeDetailPublishSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Float64

func (s *Rent591HomeDetailPublishSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) Float64X

func (s *Rent591HomeDetailPublishSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Float64s

func (s *Rent591HomeDetailPublishSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) Float64sX

func (s *Rent591HomeDetailPublishSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Int

func (s *Rent591HomeDetailPublishSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) IntX

func (s *Rent591HomeDetailPublishSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Ints

func (s *Rent591HomeDetailPublishSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) IntsX

func (s *Rent591HomeDetailPublishSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailPublishSelect) ScanX

func (s *Rent591HomeDetailPublishSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) String

func (s *Rent591HomeDetailPublishSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) StringX

func (s *Rent591HomeDetailPublishSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailPublishSelect) Strings

func (s *Rent591HomeDetailPublishSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailPublishSelect) StringsX

func (s *Rent591HomeDetailPublishSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailPublishUpdate

type Rent591HomeDetailPublishUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishUpdate is the builder for updating Rent591HomeDetailPublish entities.

func (*Rent591HomeDetailPublishUpdate) AddPostID

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailPublishUpdate) AddRent591homeDetailIDs

func (rdpu *Rent591HomeDetailPublishUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailPublishUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailPublishUpdate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishUpdate) ClearRent591homeDetails

func (rdpu *Rent591HomeDetailPublishUpdate) ClearRent591homeDetails() *Rent591HomeDetailPublishUpdate

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailPublishUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpdate) Mutation

Mutation returns the Rent591HomeDetailPublishMutation object of the builder.

func (*Rent591HomeDetailPublishUpdate) RemoveRent591homeDetailIDs

func (rdpu *Rent591HomeDetailPublishUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailPublishUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailPublishUpdate) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailPublishUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailPublishUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpdate) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishUpdate) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishUpdate) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishUpdate) SetPostTime

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishUpdate) SetUpdateTime

SetUpdateTime sets the "update_time" field.

func (*Rent591HomeDetailPublishUpdate) Where

Where appends a list predicates to the Rent591HomeDetailPublishUpdate builder.

type Rent591HomeDetailPublishUpdateOne

type Rent591HomeDetailPublishUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishUpdateOne is the builder for updating a single Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublishUpdateOne) AddPostID

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailPublishUpdateOne) AddRent591homeDetailIDs

func (rdpuo *Rent591HomeDetailPublishUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailPublishUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailPublishUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishUpdateOne) ClearRent591homeDetails

func (rdpuo *Rent591HomeDetailPublishUpdateOne) ClearRent591homeDetails() *Rent591HomeDetailPublishUpdateOne

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailPublishUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailPublishUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpdateOne) Mutation

Mutation returns the Rent591HomeDetailPublishMutation object of the builder.

func (*Rent591HomeDetailPublishUpdateOne) RemoveRent591homeDetailIDs

func (rdpuo *Rent591HomeDetailPublishUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailPublishUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailPublishUpdateOne) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailPublishUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailPublishUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailPublishUpdateOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishUpdateOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishUpdateOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishUpdateOne) SetPostTime

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishUpdateOne) SetUpdateTime

SetUpdateTime sets the "update_time" field.

func (*Rent591HomeDetailPublishUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailPublishUpdate builder.

type Rent591HomeDetailPublishUpsert

type Rent591HomeDetailPublishUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailPublishUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailPublishUpsert) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailPublishUpsert) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishUpsert) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishUpsert) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishUpsert) SetPostTime

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishUpsert) SetUpdateTime

SetUpdateTime sets the "update_time" field.

func (*Rent591HomeDetailPublishUpsert) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsert) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsert) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsert) UpdatePostTime

UpdatePostTime sets the "post_time" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsert) UpdateUpdateTime

UpdateUpdateTime sets the "update_time" field to the value that was provided on create.

type Rent591HomeDetailPublishUpsertBulk

type Rent591HomeDetailPublishUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailPublish nodes.

func (*Rent591HomeDetailPublishUpsertBulk) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailPublishUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailPublishUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailPublishUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPublish.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailPublishUpsertBulk) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishUpsertBulk) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishUpsertBulk) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishUpsertBulk) SetPostTime

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishUpsertBulk) SetUpdateTime

SetUpdateTime sets the "update_time" field.

func (*Rent591HomeDetailPublishUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailPublishCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeDetailPublishUpsertBulk) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPublish.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailPublishUpsertBulk) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertBulk) UpdatePostTime

UpdatePostTime sets the "post_time" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertBulk) UpdateUpdateTime

UpdateUpdateTime sets the "update_time" field to the value that was provided on create.

type Rent591HomeDetailPublishUpsertOne

type Rent591HomeDetailPublishUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailPublishUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailPublish node.

func (*Rent591HomeDetailPublishUpsertOne) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailPublishUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailPublishUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailPublishUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailPublishUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeDetailPublishUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailPublish.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailPublishUpsertOne) SetKey

SetKey sets the "key" field.

func (*Rent591HomeDetailPublishUpsertOne) SetName

SetName sets the "name" field.

func (*Rent591HomeDetailPublishUpsertOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailPublishUpsertOne) SetPostTime

SetPostTime sets the "post_time" field.

func (*Rent591HomeDetailPublishUpsertOne) SetUpdateTime

SetUpdateTime sets the "update_time" field.

func (*Rent591HomeDetailPublishUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailPublishCreate.OnConflict documentation for more info.

func (*Rent591HomeDetailPublishUpsertOne) UpdateKey

UpdateKey sets the "key" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertOne) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailPublish.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailPublishUpsertOne) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertOne) UpdatePostTime

UpdatePostTime sets the "post_time" field to the value that was provided on create.

func (*Rent591HomeDetailPublishUpsertOne) UpdateUpdateTime

UpdateUpdateTime sets the "update_time" field to the value that was provided on create.

type Rent591HomeDetailPublishes

type Rent591HomeDetailPublishes []*Rent591HomeDetailPublish

Rent591HomeDetailPublishes is a parsable slice of Rent591HomeDetailPublish.

type Rent591HomeDetailQuery

type Rent591HomeDetailQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailQuery is the builder for querying Rent591HomeDetail entities.

func (*Rent591HomeDetailQuery) Aggregate

Aggregate returns a Rent591HomeDetailSelect configured with the given aggregations.

func (*Rent591HomeDetailQuery) All

All executes the query and returns a list of Rent591HomeDetails.

func (*Rent591HomeDetailQuery) AllX

AllX is like All, but panics if an error occurs.

func (*Rent591HomeDetailQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailQuery) Count

func (rdq *Rent591HomeDetailQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*Rent591HomeDetailQuery) CountX

func (rdq *Rent591HomeDetailQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailQuery) Exist

func (rdq *Rent591HomeDetailQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailQuery) ExistX

func (rdq *Rent591HomeDetailQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailQuery) First

First returns the first Rent591HomeDetail entity from the query. Returns a *NotFoundError when no Rent591HomeDetail was found.

func (*Rent591HomeDetailQuery) FirstID

func (rdq *Rent591HomeDetailQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetail ID from the query. Returns a *NotFoundError when no Rent591HomeDetail ID was found.

func (*Rent591HomeDetailQuery) FirstIDX

func (rdq *Rent591HomeDetailQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailQuery) GroupBy

func (rdq *Rent591HomeDetailQuery) GroupBy(field string, fields ...string) *Rent591HomeDetailGroupBy

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 {
	Title string `json:"title,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetail.Query().
	GroupBy(rent591homedetail.FieldTitle).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailQuery) IDs

func (rdq *Rent591HomeDetailQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetail IDs.

func (*Rent591HomeDetailQuery) IDsX

func (rdq *Rent591HomeDetailQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailQuery) Offset

func (rdq *Rent591HomeDetailQuery) Offset(offset int) *Rent591HomeDetailQuery

Offset to start from.

func (*Rent591HomeDetailQuery) Only

Only returns a single Rent591HomeDetail entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetail entity is found. Returns a *NotFoundError when no Rent591HomeDetail entities are found.

func (*Rent591HomeDetailQuery) OnlyID

func (rdq *Rent591HomeDetailQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetail ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetail ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailQuery) OnlyIDX

func (rdq *Rent591HomeDetailQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeDetailQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailBreadcrumbs

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailBreadcrumbs() *Rent591HomeDetailBreadcrumbQuery

QueryRent591homeDetailBreadcrumbs chains the current query on the "rent591home_detail_breadcrumbs" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailBrowses

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailBrowses() *Rent591HomeDetailBrowseQuery

QueryRent591homeDetailBrowses chains the current query on the "rent591home_detail_browses" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailInfos

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailInfos() *Rent591HomeDetailInfoQuery

QueryRent591homeDetailInfos chains the current query on the "rent591home_detail_infos" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailNavdatas

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailNavdatas() *Rent591HomeDetailNavDataQuery

QueryRent591homeDetailNavdatas chains the current query on the "rent591home_detail_navdatas" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailPositionRounds

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailPositionRounds() *Rent591HomeDetailPositionRoundQuery

QueryRent591homeDetailPositionRounds chains the current query on the "rent591home_detail_position_rounds" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailPublishs

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailPublishs() *Rent591HomeDetailPublishQuery

QueryRent591homeDetailPublishs chains the current query on the "rent591home_detail_publishs" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailShareinfos

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailShareinfos() *Rent591HomeDetailShareInfoQuery

QueryRent591homeDetailShareinfos chains the current query on the "rent591home_detail_shareinfos" edge.

func (*Rent591HomeDetailQuery) QueryRent591homeDetailTags

func (rdq *Rent591HomeDetailQuery) QueryRent591homeDetailTags() *Rent591HomeDetailTagQuery

QueryRent591homeDetailTags chains the current query on the "rent591home_detail_tags" edge.

func (*Rent591HomeDetailQuery) QueryRent591homes

func (rdq *Rent591HomeDetailQuery) QueryRent591homes() *Rent591HomeQuery

QueryRent591homes chains the current query on the "rent591homes" edge.

func (*Rent591HomeDetailQuery) Select

func (rdq *Rent591HomeDetailQuery) Select(fields ...string) *Rent591HomeDetailSelect

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 {
	Title string `json:"title,omitempty"`
}

client.Rent591HomeDetail.Query().
	Select(rent591homedetail.FieldTitle).
	Scan(ctx, &v)

func (*Rent591HomeDetailQuery) Unique

func (rdq *Rent591HomeDetailQuery) Unique(unique bool) *Rent591HomeDetailQuery

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 (*Rent591HomeDetailQuery) Where

Where adds a new predicate for the Rent591HomeDetailQuery builder.

func (*Rent591HomeDetailQuery) WithRent591homeDetailBreadcrumbs

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailBreadcrumbs(opts ...func(*Rent591HomeDetailBreadcrumbQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailBreadcrumbs tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_breadcrumbs" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailBrowses

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailBrowses(opts ...func(*Rent591HomeDetailBrowseQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailBrowses tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_browses" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailInfos

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailInfos(opts ...func(*Rent591HomeDetailInfoQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailInfos tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_infos" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailNavdatas

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailNavdatas(opts ...func(*Rent591HomeDetailNavDataQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailNavdatas tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_navdatas" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailPositionRounds

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailPositionRounds(opts ...func(*Rent591HomeDetailPositionRoundQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailPositionRounds tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_position_rounds" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailPublishs

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailPublishs(opts ...func(*Rent591HomeDetailPublishQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailPublishs tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_publishs" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailShareinfos

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailShareinfos(opts ...func(*Rent591HomeDetailShareInfoQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailShareinfos tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_shareinfos" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homeDetailTags

func (rdq *Rent591HomeDetailQuery) WithRent591homeDetailTags(opts ...func(*Rent591HomeDetailTagQuery)) *Rent591HomeDetailQuery

WithRent591homeDetailTags tells the query-builder to eager-load the nodes that are connected to the "rent591home_detail_tags" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeDetailQuery) WithRent591homes

func (rdq *Rent591HomeDetailQuery) WithRent591homes(opts ...func(*Rent591HomeQuery)) *Rent591HomeDetailQuery

WithRent591homes tells the query-builder to eager-load the nodes that are connected to the "rent591homes" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailSelect

type Rent591HomeDetailSelect struct {
	*Rent591HomeDetailQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailSelect is the builder for selecting fields of Rent591HomeDetail entities.

func (*Rent591HomeDetailSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailSelect) Bool

func (s *Rent591HomeDetailSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) BoolX

func (s *Rent591HomeDetailSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Bools

func (s *Rent591HomeDetailSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) BoolsX

func (s *Rent591HomeDetailSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Float64

func (s *Rent591HomeDetailSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) Float64X

func (s *Rent591HomeDetailSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Float64s

func (s *Rent591HomeDetailSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) Float64sX

func (s *Rent591HomeDetailSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Int

func (s *Rent591HomeDetailSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) IntX

func (s *Rent591HomeDetailSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Ints

func (s *Rent591HomeDetailSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) IntsX

func (s *Rent591HomeDetailSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Scan

func (rds *Rent591HomeDetailSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailSelect) ScanX

func (s *Rent591HomeDetailSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailSelect) String

func (s *Rent591HomeDetailSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) StringX

func (s *Rent591HomeDetailSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailSelect) Strings

func (s *Rent591HomeDetailSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailSelect) StringsX

func (s *Rent591HomeDetailSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailShareInfo

type Rent591HomeDetailShareInfo struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// URL holds the value of the "url" field.
	URL string `json:"url,omitempty"`
	// From holds the value of the "From" field.
	From string `json:"From,omitempty"`
	// Title holds the value of the "title" field.
	Title string `json:"title,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailShareInfoQuery when eager-loading is set.
	Edges Rent591HomeDetailShareInfoEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfo is the model entity for the Rent591HomeDetailShareInfo schema.

func (*Rent591HomeDetailShareInfo) QueryRent591homeDetails

func (rdsi *Rent591HomeDetailShareInfo) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfo) String

func (rdsi *Rent591HomeDetailShareInfo) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailShareInfo) Unwrap

Unwrap unwraps the Rent591HomeDetailShareInfo 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 (*Rent591HomeDetailShareInfo) Update

Update returns a builder for updating this Rent591HomeDetailShareInfo. Note that you need to call Rent591HomeDetailShareInfo.Unwrap() before calling this method if this Rent591HomeDetailShareInfo was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeDetailShareInfo) Value

func (rdsi *Rent591HomeDetailShareInfo) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailShareInfo. This includes values selected through modifiers, order, etc.

type Rent591HomeDetailShareInfoClient

type Rent591HomeDetailShareInfoClient struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoClient is a client for the Rent591HomeDetailShareInfo schema.

func NewRent591HomeDetailShareInfoClient

func NewRent591HomeDetailShareInfoClient(c config) *Rent591HomeDetailShareInfoClient

NewRent591HomeDetailShareInfoClient returns a client for the Rent591HomeDetailShareInfo from the given config.

func (*Rent591HomeDetailShareInfoClient) Create

Create returns a builder for creating a Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfoClient) CreateBulk

CreateBulk returns a builder for creating a bulk of Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailShareInfoClient) Delete

Delete returns a delete builder for Rent591HomeDetailShareInfo.

func (*Rent591HomeDetailShareInfoClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailShareInfoClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*Rent591HomeDetailShareInfoClient) Get

Get returns a Rent591HomeDetailShareInfo entity by its id.

func (*Rent591HomeDetailShareInfoClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoClient) Hooks

Hooks returns the client hooks.

func (*Rent591HomeDetailShareInfoClient) Intercept

func (c *Rent591HomeDetailShareInfoClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailshareinfo.Intercept(f(g(h())))`.

func (*Rent591HomeDetailShareInfoClient) Interceptors

func (c *Rent591HomeDetailShareInfoClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailShareInfoClient) Query

Query returns a query builder for Rent591HomeDetailShareInfo.

func (*Rent591HomeDetailShareInfoClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailShareInfo.

func (*Rent591HomeDetailShareInfoClient) Update

Update returns an update builder for Rent591HomeDetailShareInfo.

func (*Rent591HomeDetailShareInfoClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailShareInfoClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailShareInfoClient) Use

func (c *Rent591HomeDetailShareInfoClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailshareinfo.Hooks(f(g(h())))`.

type Rent591HomeDetailShareInfoCreate

type Rent591HomeDetailShareInfoCreate struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoCreate is the builder for creating a Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfoCreate) AddRent591homeDetailIDs

func (rdsic *Rent591HomeDetailShareInfoCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailShareInfoCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailShareInfoCreate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailShareInfoCreate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoCreate) Mutation

Mutation returns the Rent591HomeDetailShareInfoMutation object of the builder.

func (*Rent591HomeDetailShareInfoCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailShareInfo.Create().
	SetURL(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.Rent591HomeDetailShareInfoUpsert) {
		SetURL(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoCreate) OnConflictColumns

func (rdsic *Rent591HomeDetailShareInfoCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailShareInfoUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailShareInfo.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoCreate) Save

Save creates the Rent591HomeDetailShareInfo in the database.

func (*Rent591HomeDetailShareInfoCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailShareInfoCreate) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoCreate) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoCreate) SetURL

SetURL sets the "url" field.

type Rent591HomeDetailShareInfoCreateBulk

type Rent591HomeDetailShareInfoCreateBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoCreateBulk is the builder for creating many Rent591HomeDetailShareInfo entities in bulk.

func (*Rent591HomeDetailShareInfoCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailShareInfoCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailShareInfo.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.Rent591HomeDetailShareInfoUpsert) {
		SetURL(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoCreateBulk) OnConflictColumns

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailShareInfo.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoCreateBulk) Save

Save creates the Rent591HomeDetailShareInfo entities in the database.

func (*Rent591HomeDetailShareInfoCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailShareInfoDelete

type Rent591HomeDetailShareInfoDelete struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoDelete is the builder for deleting a Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfoDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailShareInfoDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoDelete) Where

Where appends a list predicates to the Rent591HomeDetailShareInfoDelete builder.

type Rent591HomeDetailShareInfoDeleteOne

type Rent591HomeDetailShareInfoDeleteOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoDeleteOne is the builder for deleting a single Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfoDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailShareInfoDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailShareInfoDelete builder.

type Rent591HomeDetailShareInfoEdges

type Rent591HomeDetailShareInfoEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailShareInfoEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailShareInfoEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailShareInfoGroupBy

type Rent591HomeDetailShareInfoGroupBy struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoGroupBy is the group-by builder for Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailShareInfoGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*Rent591HomeDetailShareInfoGroupBy) Bool

func (s *Rent591HomeDetailShareInfoGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) BoolX

func (s *Rent591HomeDetailShareInfoGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Bools

func (s *Rent591HomeDetailShareInfoGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) BoolsX

func (s *Rent591HomeDetailShareInfoGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Float64

func (s *Rent591HomeDetailShareInfoGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) Float64X

func (s *Rent591HomeDetailShareInfoGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Float64s

func (s *Rent591HomeDetailShareInfoGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) Float64sX

func (s *Rent591HomeDetailShareInfoGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Int

func (s *Rent591HomeDetailShareInfoGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) IntX

func (s *Rent591HomeDetailShareInfoGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Ints

func (s *Rent591HomeDetailShareInfoGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) IntsX

func (s *Rent591HomeDetailShareInfoGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailShareInfoGroupBy) ScanX

func (s *Rent591HomeDetailShareInfoGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) String

func (s *Rent591HomeDetailShareInfoGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) StringX

func (s *Rent591HomeDetailShareInfoGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoGroupBy) Strings

func (s *Rent591HomeDetailShareInfoGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoGroupBy) StringsX

func (s *Rent591HomeDetailShareInfoGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailShareInfoMutation

type Rent591HomeDetailShareInfoMutation struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoMutation represents an operation that mutates the Rent591HomeDetailShareInfo nodes in the graph.

func (*Rent591HomeDetailShareInfoMutation) AddField

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailShareInfoMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailShareInfoMutation) AddedEdges

func (m *Rent591HomeDetailShareInfoMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailShareInfoMutation) AddedField

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) AddedFields

func (m *Rent591HomeDetailShareInfoMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailShareInfoMutation) AddedIDs

func (m *Rent591HomeDetailShareInfoMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailShareInfoMutation) ClearEdge

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) ClearField

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailShareInfoMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoMutation) ClearedEdges

func (m *Rent591HomeDetailShareInfoMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailShareInfoMutation) ClearedFields

func (m *Rent591HomeDetailShareInfoMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) EdgeCleared

func (m *Rent591HomeDetailShareInfoMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailShareInfoMutation) Field

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 (*Rent591HomeDetailShareInfoMutation) FieldCleared

func (m *Rent591HomeDetailShareInfoMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailShareInfoMutation) Fields

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 (*Rent591HomeDetailShareInfoMutation) From

func (m *Rent591HomeDetailShareInfoMutation) From() (r string, exists bool)

From returns the value of the "From" field in the mutation.

func (*Rent591HomeDetailShareInfoMutation) ID

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeDetailShareInfoMutation) OldFrom

OldFrom returns the old "From" field's value of the Rent591HomeDetailShareInfo entity. If the Rent591HomeDetailShareInfo 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 (*Rent591HomeDetailShareInfoMutation) OldTitle

OldTitle returns the old "title" field's value of the Rent591HomeDetailShareInfo entity. If the Rent591HomeDetailShareInfo 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 (*Rent591HomeDetailShareInfoMutation) OldURL

OldURL returns the old "url" field's value of the Rent591HomeDetailShareInfo entity. If the Rent591HomeDetailShareInfo 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 (*Rent591HomeDetailShareInfoMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailShareInfoMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailShareInfoMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailShareInfoMutation) RemovedEdges

func (m *Rent591HomeDetailShareInfoMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailShareInfoMutation) RemovedIDs

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailShareInfoMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailShareInfoMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailShareInfoMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailShareInfoMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailShareInfoMutation) ResetEdge

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) ResetField

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) ResetFrom

func (m *Rent591HomeDetailShareInfoMutation) ResetFrom()

ResetFrom resets all changes to the "From" field.

func (*Rent591HomeDetailShareInfoMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailShareInfoMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailShareInfoMutation) ResetTitle

func (m *Rent591HomeDetailShareInfoMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*Rent591HomeDetailShareInfoMutation) ResetURL

func (m *Rent591HomeDetailShareInfoMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*Rent591HomeDetailShareInfoMutation) SetField

func (m *Rent591HomeDetailShareInfoMutation) 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 (*Rent591HomeDetailShareInfoMutation) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoMutation) SetOp

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailShareInfoMutation) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoMutation) SetURL

SetURL sets the "url" field.

func (*Rent591HomeDetailShareInfoMutation) Title

func (m *Rent591HomeDetailShareInfoMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (Rent591HomeDetailShareInfoMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailShareInfoMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailShareInfo).

func (*Rent591HomeDetailShareInfoMutation) URL

func (m *Rent591HomeDetailShareInfoMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*Rent591HomeDetailShareInfoMutation) Where

Where appends a list predicates to the Rent591HomeDetailShareInfoMutation builder.

func (*Rent591HomeDetailShareInfoMutation) WhereP

func (m *Rent591HomeDetailShareInfoMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailShareInfoMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailShareInfoQuery

type Rent591HomeDetailShareInfoQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoQuery is the builder for querying Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailShareInfoQuery) Aggregate

Aggregate returns a Rent591HomeDetailShareInfoSelect configured with the given aggregations.

func (*Rent591HomeDetailShareInfoQuery) All

All executes the query and returns a list of Rent591HomeDetailShareInfos.

func (*Rent591HomeDetailShareInfoQuery) AllX

AllX is like All, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailShareInfoQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailShareInfoQuery) Count

Count returns the count of the given query.

func (*Rent591HomeDetailShareInfoQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailShareInfoQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) First

First returns the first Rent591HomeDetailShareInfo entity from the query. Returns a *NotFoundError when no Rent591HomeDetailShareInfo was found.

func (*Rent591HomeDetailShareInfoQuery) FirstID

func (rdsiq *Rent591HomeDetailShareInfoQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailShareInfo ID from the query. Returns a *NotFoundError when no Rent591HomeDetailShareInfo ID was found.

func (*Rent591HomeDetailShareInfoQuery) FirstIDX

func (rdsiq *Rent591HomeDetailShareInfoQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) GroupBy

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 {
	URL string `json:"url,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetailShareInfo.Query().
	GroupBy(rent591homedetailshareinfo.FieldURL).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailShareInfoQuery) IDs

func (rdsiq *Rent591HomeDetailShareInfoQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailShareInfo IDs.

func (*Rent591HomeDetailShareInfoQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailShareInfoQuery) Offset

Offset to start from.

func (*Rent591HomeDetailShareInfoQuery) Only

Only returns a single Rent591HomeDetailShareInfo entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailShareInfo entity is found. Returns a *NotFoundError when no Rent591HomeDetailShareInfo entities are found.

func (*Rent591HomeDetailShareInfoQuery) OnlyID

func (rdsiq *Rent591HomeDetailShareInfoQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailShareInfo ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailShareInfo ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailShareInfoQuery) OnlyIDX

func (rdsiq *Rent591HomeDetailShareInfoQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailShareInfoQuery) QueryRent591homeDetails

func (rdsiq *Rent591HomeDetailShareInfoQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailShareInfoQuery) Select

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 {
	URL string `json:"url,omitempty"`
}

client.Rent591HomeDetailShareInfo.Query().
	Select(rent591homedetailshareinfo.FieldURL).
	Scan(ctx, &v)

func (*Rent591HomeDetailShareInfoQuery) Unique

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 (*Rent591HomeDetailShareInfoQuery) Where

Where adds a new predicate for the Rent591HomeDetailShareInfoQuery builder.

func (*Rent591HomeDetailShareInfoQuery) WithRent591homeDetails

func (rdsiq *Rent591HomeDetailShareInfoQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeDetailShareInfoQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailShareInfoSelect

type Rent591HomeDetailShareInfoSelect struct {
	*Rent591HomeDetailShareInfoQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoSelect is the builder for selecting fields of Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailShareInfoSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailShareInfoSelect) Bool

func (s *Rent591HomeDetailShareInfoSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) BoolX

func (s *Rent591HomeDetailShareInfoSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Bools

func (s *Rent591HomeDetailShareInfoSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) BoolsX

func (s *Rent591HomeDetailShareInfoSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Float64

func (s *Rent591HomeDetailShareInfoSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) Float64X

func (s *Rent591HomeDetailShareInfoSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Float64s

func (s *Rent591HomeDetailShareInfoSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) Float64sX

func (s *Rent591HomeDetailShareInfoSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Int

func (s *Rent591HomeDetailShareInfoSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) IntX

func (s *Rent591HomeDetailShareInfoSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Ints

func (s *Rent591HomeDetailShareInfoSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) IntsX

func (s *Rent591HomeDetailShareInfoSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailShareInfoSelect) ScanX

func (s *Rent591HomeDetailShareInfoSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) String

func (s *Rent591HomeDetailShareInfoSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) StringX

func (s *Rent591HomeDetailShareInfoSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoSelect) Strings

func (s *Rent591HomeDetailShareInfoSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailShareInfoSelect) StringsX

func (s *Rent591HomeDetailShareInfoSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailShareInfoUpdate

type Rent591HomeDetailShareInfoUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoUpdate is the builder for updating Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailShareInfoUpdate) AddRent591homeDetailIDs

func (rdsiu *Rent591HomeDetailShareInfoUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailShareInfoUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailShareInfoUpdate) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoUpdate) ClearRent591homeDetails

func (rdsiu *Rent591HomeDetailShareInfoUpdate) ClearRent591homeDetails() *Rent591HomeDetailShareInfoUpdate

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailShareInfoUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpdate) Mutation

Mutation returns the Rent591HomeDetailShareInfoMutation object of the builder.

func (*Rent591HomeDetailShareInfoUpdate) RemoveRent591homeDetailIDs

func (rdsiu *Rent591HomeDetailShareInfoUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailShareInfoUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailShareInfoUpdate) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailShareInfoUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailShareInfoUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpdate) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoUpdate) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoUpdate) SetURL

SetURL sets the "url" field.

func (*Rent591HomeDetailShareInfoUpdate) Where

Where appends a list predicates to the Rent591HomeDetailShareInfoUpdate builder.

type Rent591HomeDetailShareInfoUpdateOne

type Rent591HomeDetailShareInfoUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoUpdateOne is the builder for updating a single Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfoUpdateOne) AddRent591homeDetailIDs

func (rdsiuo *Rent591HomeDetailShareInfoUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailShareInfoUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailShareInfoUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoUpdateOne) ClearRent591homeDetails

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailShareInfoUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailShareInfoUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpdateOne) Mutation

Mutation returns the Rent591HomeDetailShareInfoMutation object of the builder.

func (*Rent591HomeDetailShareInfoUpdateOne) RemoveRent591homeDetailIDs

func (rdsiuo *Rent591HomeDetailShareInfoUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailShareInfoUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailShareInfoUpdateOne) RemoveRent591homeDetails

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailShareInfoUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailShareInfoUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailShareInfoUpdateOne) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoUpdateOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoUpdateOne) SetURL

SetURL sets the "url" field.

func (*Rent591HomeDetailShareInfoUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailShareInfoUpdate builder.

type Rent591HomeDetailShareInfoUpsert

type Rent591HomeDetailShareInfoUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailShareInfoUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailShareInfoUpsert) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoUpsert) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoUpsert) SetURL

SetURL sets the "url" field.

func (*Rent591HomeDetailShareInfoUpsert) UpdateFrom

UpdateFrom sets the "From" field to the value that was provided on create.

func (*Rent591HomeDetailShareInfoUpsert) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeDetailShareInfoUpsert) UpdateURL

UpdateURL sets the "url" field to the value that was provided on create.

type Rent591HomeDetailShareInfoUpsertBulk

type Rent591HomeDetailShareInfoUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailShareInfo nodes.

func (*Rent591HomeDetailShareInfoUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailShareInfoUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailShareInfoUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailShareInfo.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoUpsertBulk) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoUpsertBulk) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoUpsertBulk) SetURL

SetURL sets the "url" field.

func (*Rent591HomeDetailShareInfoUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailShareInfoCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeDetailShareInfoUpsertBulk) UpdateFrom

UpdateFrom sets the "From" field to the value that was provided on create.

func (*Rent591HomeDetailShareInfoUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailShareInfo.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoUpsertBulk) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeDetailShareInfoUpsertBulk) UpdateURL

UpdateURL sets the "url" field to the value that was provided on create.

type Rent591HomeDetailShareInfoUpsertOne

type Rent591HomeDetailShareInfoUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailShareInfoUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailShareInfo node.

func (*Rent591HomeDetailShareInfoUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailShareInfoUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailShareInfoUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailShareInfoUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeDetailShareInfoUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailShareInfo.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailShareInfoUpsertOne) SetFrom

SetFrom sets the "From" field.

func (*Rent591HomeDetailShareInfoUpsertOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailShareInfoUpsertOne) SetURL

SetURL sets the "url" field.

func (*Rent591HomeDetailShareInfoUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailShareInfoCreate.OnConflict documentation for more info.

func (*Rent591HomeDetailShareInfoUpsertOne) UpdateFrom

UpdateFrom sets the "From" field to the value that was provided on create.

func (*Rent591HomeDetailShareInfoUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailShareInfo.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailShareInfoUpsertOne) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeDetailShareInfoUpsertOne) UpdateURL

UpdateURL sets the "url" field to the value that was provided on create.

type Rent591HomeDetailShareInfos

type Rent591HomeDetailShareInfos []*Rent591HomeDetailShareInfo

Rent591HomeDetailShareInfos is a parsable slice of Rent591HomeDetailShareInfo.

type Rent591HomeDetailTag

type Rent591HomeDetailTag struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// PostID holds the value of the "post_id" field.
	PostID int `json:"post_id,omitempty"`
	// Value holds the value of the "value" field.
	Value string `json:"value,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeDetailTagQuery when eager-loading is set.
	Edges Rent591HomeDetailTagEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeDetailTag is the model entity for the Rent591HomeDetailTag schema.

func (*Rent591HomeDetailTag) GetValue

func (rdt *Rent591HomeDetailTag) GetValue(name string) (ent.Value, error)

GetValue returns the ent.Value that was dynamically selected and assigned to the Rent591HomeDetailTag. This includes values selected through modifiers, order, etc.

func (*Rent591HomeDetailTag) QueryRent591homeDetails

func (rdt *Rent591HomeDetailTag) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails queries the "rent591home_details" edge of the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTag) String

func (rdt *Rent591HomeDetailTag) String() string

String implements the fmt.Stringer.

func (*Rent591HomeDetailTag) Unwrap

Unwrap unwraps the Rent591HomeDetailTag 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 (*Rent591HomeDetailTag) Update

Update returns a builder for updating this Rent591HomeDetailTag. Note that you need to call Rent591HomeDetailTag.Unwrap() before calling this method if this Rent591HomeDetailTag was returned from a transaction, and the transaction was committed or rolled back.

type Rent591HomeDetailTagClient

type Rent591HomeDetailTagClient struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagClient is a client for the Rent591HomeDetailTag schema.

func NewRent591HomeDetailTagClient

func NewRent591HomeDetailTagClient(c config) *Rent591HomeDetailTagClient

NewRent591HomeDetailTagClient returns a client for the Rent591HomeDetailTag from the given config.

func (*Rent591HomeDetailTagClient) Create

Create returns a builder for creating a Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTagClient) CreateBulk

CreateBulk returns a builder for creating a bulk of Rent591HomeDetailTag entities.

func (*Rent591HomeDetailTagClient) Delete

Delete returns a delete builder for Rent591HomeDetailTag.

func (*Rent591HomeDetailTagClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeDetailTagClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*Rent591HomeDetailTagClient) Get

Get returns a Rent591HomeDetailTag entity by its id.

func (*Rent591HomeDetailTagClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeDetailTagClient) Hooks

func (c *Rent591HomeDetailTagClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeDetailTagClient) Intercept

func (c *Rent591HomeDetailTagClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homedetailtag.Intercept(f(g(h())))`.

func (*Rent591HomeDetailTagClient) Interceptors

func (c *Rent591HomeDetailTagClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeDetailTagClient) Query

Query returns a query builder for Rent591HomeDetailTag.

func (*Rent591HomeDetailTagClient) QueryRent591homeDetails

QueryRent591homeDetails queries the rent591home_details edge of a Rent591HomeDetailTag.

func (*Rent591HomeDetailTagClient) Update

Update returns an update builder for Rent591HomeDetailTag.

func (*Rent591HomeDetailTagClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeDetailTagClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeDetailTagClient) Use

func (c *Rent591HomeDetailTagClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homedetailtag.Hooks(f(g(h())))`.

type Rent591HomeDetailTagCreate

type Rent591HomeDetailTagCreate struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagCreate is the builder for creating a Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTagCreate) AddRent591homeDetailIDs

func (rdtc *Rent591HomeDetailTagCreate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailTagCreate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailTagCreate) AddRent591homeDetails

func (rdtc *Rent591HomeDetailTagCreate) AddRent591homeDetails(r ...*Rent591HomeDetail) *Rent591HomeDetailTagCreate

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagCreate) Exec

Exec executes the query.

func (*Rent591HomeDetailTagCreate) ExecX

func (rdtc *Rent591HomeDetailTagCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagCreate) Mutation

Mutation returns the Rent591HomeDetailTagMutation object of the builder.

func (*Rent591HomeDetailTagCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailTag.Create().
	SetPostID(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.Rent591HomeDetailTagUpsert) {
		SetPostID(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailTagCreate) OnConflictColumns

func (rdtc *Rent591HomeDetailTagCreate) OnConflictColumns(columns ...string) *Rent591HomeDetailTagUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailTag.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailTagCreate) Save

Save creates the Rent591HomeDetailTag in the database.

func (*Rent591HomeDetailTagCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeDetailTagCreate) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagCreate) SetValue

SetValue sets the "value" field.

type Rent591HomeDetailTagCreateBulk

type Rent591HomeDetailTagCreateBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagCreateBulk is the builder for creating many Rent591HomeDetailTag entities in bulk.

func (*Rent591HomeDetailTagCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailTagCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeDetailTag.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.Rent591HomeDetailTagUpsert) {
		SetPostID(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeDetailTagCreateBulk) OnConflictColumns

func (rdtcb *Rent591HomeDetailTagCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeDetailTagUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeDetailTag.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeDetailTagCreateBulk) Save

Save creates the Rent591HomeDetailTag entities in the database.

func (*Rent591HomeDetailTagCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeDetailTagDelete

type Rent591HomeDetailTagDelete struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagDelete is the builder for deleting a Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTagDelete) Exec

func (rdtd *Rent591HomeDetailTagDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeDetailTagDelete) ExecX

func (rdtd *Rent591HomeDetailTagDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagDelete) Where

Where appends a list predicates to the Rent591HomeDetailTagDelete builder.

type Rent591HomeDetailTagDeleteOne

type Rent591HomeDetailTagDeleteOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagDeleteOne is the builder for deleting a single Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTagDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeDetailTagDeleteOne) ExecX

func (rdtdo *Rent591HomeDetailTagDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagDeleteOne) Where

Where appends a list predicates to the Rent591HomeDetailTagDelete builder.

type Rent591HomeDetailTagEdges

type Rent591HomeDetailTagEdges struct {
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails []*Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeDetailTagEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeDetailTagEdges) Rent591homeDetailsOrErr

func (e Rent591HomeDetailTagEdges) Rent591homeDetailsOrErr() ([]*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading.

type Rent591HomeDetailTagGroupBy

type Rent591HomeDetailTagGroupBy struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagGroupBy is the group-by builder for Rent591HomeDetailTag entities.

func (*Rent591HomeDetailTagGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*Rent591HomeDetailTagGroupBy) Bool

func (s *Rent591HomeDetailTagGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) BoolX

func (s *Rent591HomeDetailTagGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Bools

func (s *Rent591HomeDetailTagGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) BoolsX

func (s *Rent591HomeDetailTagGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Float64

func (s *Rent591HomeDetailTagGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) Float64X

func (s *Rent591HomeDetailTagGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Float64s

func (s *Rent591HomeDetailTagGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) Float64sX

func (s *Rent591HomeDetailTagGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Int

func (s *Rent591HomeDetailTagGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) IntX

func (s *Rent591HomeDetailTagGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Ints

func (s *Rent591HomeDetailTagGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) IntsX

func (s *Rent591HomeDetailTagGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Scan

func (rdtgb *Rent591HomeDetailTagGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailTagGroupBy) ScanX

func (s *Rent591HomeDetailTagGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) String

func (s *Rent591HomeDetailTagGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) StringX

func (s *Rent591HomeDetailTagGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailTagGroupBy) Strings

func (s *Rent591HomeDetailTagGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagGroupBy) StringsX

func (s *Rent591HomeDetailTagGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailTagMutation

type Rent591HomeDetailTagMutation struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagMutation represents an operation that mutates the Rent591HomeDetailTag nodes in the graph.

func (*Rent591HomeDetailTagMutation) AddField

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) AddPostID

func (m *Rent591HomeDetailTagMutation) AddPostID(i int)

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailTagMutation) AddRent591homeDetailIDs

func (m *Rent591HomeDetailTagMutation) AddRent591homeDetailIDs(ids ...int)

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by ids.

func (*Rent591HomeDetailTagMutation) AddedEdges

func (m *Rent591HomeDetailTagMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeDetailTagMutation) AddedField

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) AddedFields

func (m *Rent591HomeDetailTagMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeDetailTagMutation) AddedIDs

func (m *Rent591HomeDetailTagMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeDetailTagMutation) AddedPostID

func (m *Rent591HomeDetailTagMutation) AddedPostID() (r int, exists bool)

AddedPostID returns the value that was added to the "post_id" field in this mutation.

func (*Rent591HomeDetailTagMutation) ClearEdge

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) ClearField

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) ClearRent591homeDetails

func (m *Rent591HomeDetailTagMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagMutation) ClearedEdges

func (m *Rent591HomeDetailTagMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeDetailTagMutation) ClearedFields

func (m *Rent591HomeDetailTagMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) EdgeCleared

func (m *Rent591HomeDetailTagMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeDetailTagMutation) Field

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) FieldCleared

func (m *Rent591HomeDetailTagMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeDetailTagMutation) Fields

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) ID

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) OldField

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) OldPostID

func (m *Rent591HomeDetailTagMutation) OldPostID(ctx context.Context) (v int, err error)

OldPostID returns the old "post_id" field's value of the Rent591HomeDetailTag entity. If the Rent591HomeDetailTag 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 (*Rent591HomeDetailTagMutation) OldValue

func (m *Rent591HomeDetailTagMutation) OldValue(ctx context.Context) (v string, err error)

OldValue returns the old "value" field's value of the Rent591HomeDetailTag entity. If the Rent591HomeDetailTag 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 (*Rent591HomeDetailTagMutation) Op

Op returns the operation name.

func (*Rent591HomeDetailTagMutation) PostID

func (m *Rent591HomeDetailTagMutation) PostID() (r int, exists bool)

PostID returns the value of the "post_id" field in the mutation.

func (*Rent591HomeDetailTagMutation) RemoveRent591homeDetailIDs

func (m *Rent591HomeDetailTagMutation) RemoveRent591homeDetailIDs(ids ...int)

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailTagMutation) RemovedEdges

func (m *Rent591HomeDetailTagMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeDetailTagMutation) RemovedIDs

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) RemovedRent591homeDetailsIDs

func (m *Rent591HomeDetailTagMutation) RemovedRent591homeDetailsIDs() (ids []int)

RemovedRent591homeDetails returns the removed IDs of the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagMutation) Rent591homeDetailsCleared

func (m *Rent591HomeDetailTagMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeDetailTagMutation) Rent591homeDetailsIDs

func (m *Rent591HomeDetailTagMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation.

func (*Rent591HomeDetailTagMutation) ResetEdge

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) ResetField

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) ResetPostID

func (m *Rent591HomeDetailTagMutation) ResetPostID()

ResetPostID resets all changes to the "post_id" field.

func (*Rent591HomeDetailTagMutation) ResetRent591homeDetails

func (m *Rent591HomeDetailTagMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeDetailTagMutation) ResetValue

func (m *Rent591HomeDetailTagMutation) ResetValue()

ResetValue resets all changes to the "value" field.

func (*Rent591HomeDetailTagMutation) SetField

func (m *Rent591HomeDetailTagMutation) 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 (*Rent591HomeDetailTagMutation) SetOp

func (m *Rent591HomeDetailTagMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeDetailTagMutation) SetPostID

func (m *Rent591HomeDetailTagMutation) SetPostID(i int)

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagMutation) SetValue

func (m *Rent591HomeDetailTagMutation) SetValue(s string)

SetValue sets the "value" field.

func (Rent591HomeDetailTagMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeDetailTagMutation) Type

Type returns the node type of this mutation (Rent591HomeDetailTag).

func (*Rent591HomeDetailTagMutation) Value

func (m *Rent591HomeDetailTagMutation) Value() (r string, exists bool)

Value returns the value of the "value" field in the mutation.

func (*Rent591HomeDetailTagMutation) Where

Where appends a list predicates to the Rent591HomeDetailTagMutation builder.

func (*Rent591HomeDetailTagMutation) WhereP

func (m *Rent591HomeDetailTagMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeDetailTagMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeDetailTagQuery

type Rent591HomeDetailTagQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagQuery is the builder for querying Rent591HomeDetailTag entities.

func (*Rent591HomeDetailTagQuery) Aggregate

Aggregate returns a Rent591HomeDetailTagSelect configured with the given aggregations.

func (*Rent591HomeDetailTagQuery) All

All executes the query and returns a list of Rent591HomeDetailTags.

func (*Rent591HomeDetailTagQuery) AllX

AllX is like All, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) Clone

Clone returns a duplicate of the Rent591HomeDetailTagQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeDetailTagQuery) Count

func (rdtq *Rent591HomeDetailTagQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*Rent591HomeDetailTagQuery) CountX

func (rdtq *Rent591HomeDetailTagQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) Exist

func (rdtq *Rent591HomeDetailTagQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*Rent591HomeDetailTagQuery) ExistX

func (rdtq *Rent591HomeDetailTagQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) First

First returns the first Rent591HomeDetailTag entity from the query. Returns a *NotFoundError when no Rent591HomeDetailTag was found.

func (*Rent591HomeDetailTagQuery) FirstID

func (rdtq *Rent591HomeDetailTagQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeDetailTag ID from the query. Returns a *NotFoundError when no Rent591HomeDetailTag ID was found.

func (*Rent591HomeDetailTagQuery) FirstIDX

func (rdtq *Rent591HomeDetailTagQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) GroupBy

func (rdtq *Rent591HomeDetailTagQuery) GroupBy(field string, fields ...string) *Rent591HomeDetailTagGroupBy

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 {
	PostID int `json:"post_id,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeDetailTag.Query().
	GroupBy(rent591homedetailtag.FieldPostID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeDetailTagQuery) IDs

func (rdtq *Rent591HomeDetailTagQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeDetailTag IDs.

func (*Rent591HomeDetailTagQuery) IDsX

func (rdtq *Rent591HomeDetailTagQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeDetailTagQuery) Offset

Offset to start from.

func (*Rent591HomeDetailTagQuery) Only

Only returns a single Rent591HomeDetailTag entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeDetailTag entity is found. Returns a *NotFoundError when no Rent591HomeDetailTag entities are found.

func (*Rent591HomeDetailTagQuery) OnlyID

func (rdtq *Rent591HomeDetailTagQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeDetailTag ID in the query. Returns a *NotSingularError when more than one Rent591HomeDetailTag ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeDetailTagQuery) OnlyIDX

func (rdtq *Rent591HomeDetailTagQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeDetailTagQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeDetailTagQuery) QueryRent591homeDetails

func (rdtq *Rent591HomeDetailTagQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeDetailTagQuery) Select

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 {
	PostID int `json:"post_id,omitempty"`
}

client.Rent591HomeDetailTag.Query().
	Select(rent591homedetailtag.FieldPostID).
	Scan(ctx, &v)

func (*Rent591HomeDetailTagQuery) Unique

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 (*Rent591HomeDetailTagQuery) Where

Where adds a new predicate for the Rent591HomeDetailTagQuery builder.

func (*Rent591HomeDetailTagQuery) WithRent591homeDetails

func (rdtq *Rent591HomeDetailTagQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeDetailTagQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeDetailTagSelect

type Rent591HomeDetailTagSelect struct {
	*Rent591HomeDetailTagQuery
	// contains filtered or unexported fields
}

Rent591HomeDetailTagSelect is the builder for selecting fields of Rent591HomeDetailTag entities.

func (*Rent591HomeDetailTagSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeDetailTagSelect) Bool

func (s *Rent591HomeDetailTagSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) BoolX

func (s *Rent591HomeDetailTagSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Bools

func (s *Rent591HomeDetailTagSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) BoolsX

func (s *Rent591HomeDetailTagSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Float64

func (s *Rent591HomeDetailTagSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) Float64X

func (s *Rent591HomeDetailTagSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Float64s

func (s *Rent591HomeDetailTagSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) Float64sX

func (s *Rent591HomeDetailTagSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Int

func (s *Rent591HomeDetailTagSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) IntX

func (s *Rent591HomeDetailTagSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Ints

func (s *Rent591HomeDetailTagSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) IntsX

func (s *Rent591HomeDetailTagSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Scan

func (rdts *Rent591HomeDetailTagSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeDetailTagSelect) ScanX

func (s *Rent591HomeDetailTagSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) String

func (s *Rent591HomeDetailTagSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) StringX

func (s *Rent591HomeDetailTagSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeDetailTagSelect) Strings

func (s *Rent591HomeDetailTagSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeDetailTagSelect) StringsX

func (s *Rent591HomeDetailTagSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeDetailTagUpdate

type Rent591HomeDetailTagUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagUpdate is the builder for updating Rent591HomeDetailTag entities.

func (*Rent591HomeDetailTagUpdate) AddPostID

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailTagUpdate) AddRent591homeDetailIDs

func (rdtu *Rent591HomeDetailTagUpdate) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailTagUpdate

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailTagUpdate) AddRent591homeDetails

func (rdtu *Rent591HomeDetailTagUpdate) AddRent591homeDetails(r ...*Rent591HomeDetail) *Rent591HomeDetailTagUpdate

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagUpdate) ClearRent591homeDetails

func (rdtu *Rent591HomeDetailTagUpdate) ClearRent591homeDetails() *Rent591HomeDetailTagUpdate

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailTagUpdate) ExecX

func (rdtu *Rent591HomeDetailTagUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagUpdate) Mutation

Mutation returns the Rent591HomeDetailTagMutation object of the builder.

func (*Rent591HomeDetailTagUpdate) RemoveRent591homeDetailIDs

func (rdtu *Rent591HomeDetailTagUpdate) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailTagUpdate

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailTagUpdate) RemoveRent591homeDetails

func (rdtu *Rent591HomeDetailTagUpdate) RemoveRent591homeDetails(r ...*Rent591HomeDetail) *Rent591HomeDetailTagUpdate

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailTagUpdate) Save

func (rdtu *Rent591HomeDetailTagUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailTagUpdate) SaveX

func (rdtu *Rent591HomeDetailTagUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailTagUpdate) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagUpdate) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailTagUpdate) Where

Where appends a list predicates to the Rent591HomeDetailTagUpdate builder.

type Rent591HomeDetailTagUpdateOne

type Rent591HomeDetailTagUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagUpdateOne is the builder for updating a single Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTagUpdateOne) AddPostID

AddPostID adds i to the "post_id" field.

func (*Rent591HomeDetailTagUpdateOne) AddRent591homeDetailIDs

func (rdtuo *Rent591HomeDetailTagUpdateOne) AddRent591homeDetailIDs(ids ...int) *Rent591HomeDetailTagUpdateOne

AddRent591homeDetailIDs adds the "rent591home_details" edge to the Rent591HomeDetail entity by IDs.

func (*Rent591HomeDetailTagUpdateOne) AddRent591homeDetails

AddRent591homeDetails adds the "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagUpdateOne) ClearRent591homeDetails

func (rdtuo *Rent591HomeDetailTagUpdateOne) ClearRent591homeDetails() *Rent591HomeDetailTagUpdateOne

ClearRent591homeDetails clears all "rent591home_details" edges to the Rent591HomeDetail entity.

func (*Rent591HomeDetailTagUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailTagUpdateOne) ExecX

func (rdtuo *Rent591HomeDetailTagUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagUpdateOne) Mutation

Mutation returns the Rent591HomeDetailTagMutation object of the builder.

func (*Rent591HomeDetailTagUpdateOne) RemoveRent591homeDetailIDs

func (rdtuo *Rent591HomeDetailTagUpdateOne) RemoveRent591homeDetailIDs(ids ...int) *Rent591HomeDetailTagUpdateOne

RemoveRent591homeDetailIDs removes the "rent591home_details" edge to Rent591HomeDetail entities by IDs.

func (*Rent591HomeDetailTagUpdateOne) RemoveRent591homeDetails

func (rdtuo *Rent591HomeDetailTagUpdateOne) RemoveRent591homeDetails(r ...*Rent591HomeDetail) *Rent591HomeDetailTagUpdateOne

RemoveRent591homeDetails removes "rent591home_details" edges to Rent591HomeDetail entities.

func (*Rent591HomeDetailTagUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetailTag entity.

func (*Rent591HomeDetailTagUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailTagUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailTagUpdateOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagUpdateOne) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailTagUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailTagUpdate builder.

type Rent591HomeDetailTagUpsert

type Rent591HomeDetailTagUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailTagUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailTagUpsert) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailTagUpsert) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagUpsert) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailTagUpsert) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailTagUpsert) UpdateValue

UpdateValue sets the "value" field to the value that was provided on create.

type Rent591HomeDetailTagUpsertBulk

type Rent591HomeDetailTagUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetailTag nodes.

func (*Rent591HomeDetailTagUpsertBulk) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailTagUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailTagUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailTagUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailTag.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailTagUpsertBulk) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagUpsertBulk) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailTagUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailTagCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeDetailTagUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailTag.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailTagUpsertBulk) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailTagUpsertBulk) UpdateValue

UpdateValue sets the "value" field to the value that was provided on create.

type Rent591HomeDetailTagUpsertOne

type Rent591HomeDetailTagUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailTagUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetailTag node.

func (*Rent591HomeDetailTagUpsertOne) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeDetailTagUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailTagUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailTagUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailTagUpsertOne) ID

func (u *Rent591HomeDetailTagUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailTagUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeDetailTagUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetailTag.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailTagUpsertOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeDetailTagUpsertOne) SetValue

SetValue sets the "value" field.

func (*Rent591HomeDetailTagUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailTagCreate.OnConflict documentation for more info.

func (*Rent591HomeDetailTagUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetailTag.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailTagUpsertOne) UpdatePostID

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeDetailTagUpsertOne) UpdateValue

UpdateValue sets the "value" field to the value that was provided on create.

type Rent591HomeDetailTags

type Rent591HomeDetailTags []*Rent591HomeDetailTag

Rent591HomeDetailTags is a parsable slice of Rent591HomeDetailTag.

type Rent591HomeDetailUpdate

type Rent591HomeDetailUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailUpdate is the builder for updating Rent591HomeDetail entities.

func (*Rent591HomeDetailUpdate) AddDealTime

AddDealTime adds i to the "deal_time" field.

func (*Rent591HomeDetailUpdate) AddKind

AddKind adds i to the "kind" field.

func (*Rent591HomeDetailUpdate) AddPrice

AddPrice adds i to the "price" field.

func (*Rent591HomeDetailUpdate) AddRegionID

AddRegionID adds i to the "region_id" field.

func (*Rent591HomeDetailUpdate) AddRelieved

AddRelieved adds i to the "relieved" field.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailBreadcrumbIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailBreadcrumbIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailBreadcrumbIDs adds the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailBreadcrumbs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailBreadcrumbs(r ...*Rent591HomeDetailBreadcrumb) *Rent591HomeDetailUpdate

AddRent591homeDetailBreadcrumbs adds the "rent591home_detail_breadcrumbs" edges to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailBrowseIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailBrowseIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailBrowseIDs adds the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailBrowses

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailBrowses(r ...*Rent591HomeDetailBrowse) *Rent591HomeDetailUpdate

AddRent591homeDetailBrowses adds the "rent591home_detail_browses" edges to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailInfoIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailInfoIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailInfoIDs adds the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailInfos

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailInfos(r ...*Rent591HomeDetailInfo) *Rent591HomeDetailUpdate

AddRent591homeDetailInfos adds the "rent591home_detail_infos" edges to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailNavdataIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailNavdataIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailNavdataIDs adds the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailNavdatas

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailNavdatas(r ...*Rent591HomeDetailNavData) *Rent591HomeDetailUpdate

AddRent591homeDetailNavdatas adds the "rent591home_detail_navdatas" edges to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailPublishIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailPublishIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailPublishIDs adds the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailPublishs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailPublishs(r ...*Rent591HomeDetailPublish) *Rent591HomeDetailUpdate

AddRent591homeDetailPublishs adds the "rent591home_detail_publishs" edges to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailShareinfoIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailShareinfoIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailShareinfoIDs adds the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailShareinfos

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailShareinfos(r ...*Rent591HomeDetailShareInfo) *Rent591HomeDetailUpdate

AddRent591homeDetailShareinfos adds the "rent591home_detail_shareinfos" edges to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailTagIDs

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailTagIDs(ids ...int) *Rent591HomeDetailUpdate

AddRent591homeDetailTagIDs adds the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity by IDs.

func (*Rent591HomeDetailUpdate) AddRent591homeDetailTags

func (rdu *Rent591HomeDetailUpdate) AddRent591homeDetailTags(r ...*Rent591HomeDetailTag) *Rent591HomeDetailUpdate

AddRent591homeDetailTags adds the "rent591home_detail_tags" edges to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailUpdate) AddSectionID

func (rdu *Rent591HomeDetailUpdate) AddSectionID(i int) *Rent591HomeDetailUpdate

AddSectionID adds i to the "section_id" field.

func (*Rent591HomeDetailUpdate) ClearDealText

func (rdu *Rent591HomeDetailUpdate) ClearDealText() *Rent591HomeDetailUpdate

ClearDealText clears the value of the "deal_text" field.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailBreadcrumbs

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailBreadcrumbs() *Rent591HomeDetailUpdate

ClearRent591homeDetailBreadcrumbs clears all "rent591home_detail_breadcrumbs" edges to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailBrowses

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailBrowses() *Rent591HomeDetailUpdate

ClearRent591homeDetailBrowses clears all "rent591home_detail_browses" edges to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailInfos

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailInfos() *Rent591HomeDetailUpdate

ClearRent591homeDetailInfos clears all "rent591home_detail_infos" edges to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailNavdatas

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailNavdatas() *Rent591HomeDetailUpdate

ClearRent591homeDetailNavdatas clears all "rent591home_detail_navdatas" edges to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailPositionRounds

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailPositionRounds() *Rent591HomeDetailUpdate

ClearRent591homeDetailPositionRounds clears the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailPublishs

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailPublishs() *Rent591HomeDetailUpdate

ClearRent591homeDetailPublishs clears all "rent591home_detail_publishs" edges to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailShareinfos

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailShareinfos() *Rent591HomeDetailUpdate

ClearRent591homeDetailShareinfos clears all "rent591home_detail_shareinfos" edges to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailUpdate) ClearRent591homeDetailTags

func (rdu *Rent591HomeDetailUpdate) ClearRent591homeDetailTags() *Rent591HomeDetailUpdate

ClearRent591homeDetailTags clears all "rent591home_detail_tags" edges to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailUpdate) ClearRent591homes

func (rdu *Rent591HomeDetailUpdate) ClearRent591homes() *Rent591HomeDetailUpdate

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeDetailUpdate) Exec

Exec executes the query.

func (*Rent591HomeDetailUpdate) ExecX

func (rdu *Rent591HomeDetailUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailUpdate) Mutation

Mutation returns the Rent591HomeDetailMutation object of the builder.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailBreadcrumbIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailBreadcrumbIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailBreadcrumbIDs removes the "rent591home_detail_breadcrumbs" edge to Rent591HomeDetailBreadcrumb entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailBreadcrumbs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailBreadcrumbs(r ...*Rent591HomeDetailBreadcrumb) *Rent591HomeDetailUpdate

RemoveRent591homeDetailBreadcrumbs removes "rent591home_detail_breadcrumbs" edges to Rent591HomeDetailBreadcrumb entities.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailBrowseIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailBrowseIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailBrowseIDs removes the "rent591home_detail_browses" edge to Rent591HomeDetailBrowse entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailBrowses

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailBrowses(r ...*Rent591HomeDetailBrowse) *Rent591HomeDetailUpdate

RemoveRent591homeDetailBrowses removes "rent591home_detail_browses" edges to Rent591HomeDetailBrowse entities.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailInfoIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailInfoIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailInfoIDs removes the "rent591home_detail_infos" edge to Rent591HomeDetailInfo entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailInfos

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailInfos(r ...*Rent591HomeDetailInfo) *Rent591HomeDetailUpdate

RemoveRent591homeDetailInfos removes "rent591home_detail_infos" edges to Rent591HomeDetailInfo entities.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailNavdataIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailNavdataIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailNavdataIDs removes the "rent591home_detail_navdatas" edge to Rent591HomeDetailNavData entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailNavdatas

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailNavdatas(r ...*Rent591HomeDetailNavData) *Rent591HomeDetailUpdate

RemoveRent591homeDetailNavdatas removes "rent591home_detail_navdatas" edges to Rent591HomeDetailNavData entities.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailPublishIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailPublishIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailPublishIDs removes the "rent591home_detail_publishs" edge to Rent591HomeDetailPublish entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailPublishs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailPublishs(r ...*Rent591HomeDetailPublish) *Rent591HomeDetailUpdate

RemoveRent591homeDetailPublishs removes "rent591home_detail_publishs" edges to Rent591HomeDetailPublish entities.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailShareinfoIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailShareinfoIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailShareinfoIDs removes the "rent591home_detail_shareinfos" edge to Rent591HomeDetailShareInfo entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailShareinfos

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailShareinfos(r ...*Rent591HomeDetailShareInfo) *Rent591HomeDetailUpdate

RemoveRent591homeDetailShareinfos removes "rent591home_detail_shareinfos" edges to Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailTagIDs

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailTagIDs(ids ...int) *Rent591HomeDetailUpdate

RemoveRent591homeDetailTagIDs removes the "rent591home_detail_tags" edge to Rent591HomeDetailTag entities by IDs.

func (*Rent591HomeDetailUpdate) RemoveRent591homeDetailTags

func (rdu *Rent591HomeDetailUpdate) RemoveRent591homeDetailTags(r ...*Rent591HomeDetailTag) *Rent591HomeDetailUpdate

RemoveRent591homeDetailTags removes "rent591home_detail_tags" edges to Rent591HomeDetailTag entities.

func (*Rent591HomeDetailUpdate) Save

func (rdu *Rent591HomeDetailUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeDetailUpdate) SaveX

func (rdu *Rent591HomeDetailUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailUpdate) SetDealText

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailUpdate) SetDealTime

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailUpdate) SetDeposit

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailUpdate) SetKind

SetKind sets the "kind" field.

func (*Rent591HomeDetailUpdate) SetNillableCreatedAt

func (rdu *Rent591HomeDetailUpdate) SetNillableCreatedAt(t *time.Time) *Rent591HomeDetailUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeDetailUpdate) SetNillableDealText

func (rdu *Rent591HomeDetailUpdate) SetNillableDealText(s *string) *Rent591HomeDetailUpdate

SetNillableDealText sets the "deal_text" field if the given value is not nil.

func (*Rent591HomeDetailUpdate) SetNillableRent591homeDetailPositionRoundsID

func (rdu *Rent591HomeDetailUpdate) SetNillableRent591homeDetailPositionRoundsID(id *int) *Rent591HomeDetailUpdate

SetNillableRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ID if the given value is not nil.

func (*Rent591HomeDetailUpdate) SetNillableRent591homesID

func (rdu *Rent591HomeDetailUpdate) SetNillableRent591homesID(id *int) *Rent591HomeDetailUpdate

SetNillableRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID if the given value is not nil.

func (*Rent591HomeDetailUpdate) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeDetailUpdate) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailUpdate) SetRegionID

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailUpdate) SetRelieved

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailUpdate) SetRent591homeDetailPositionRounds

func (rdu *Rent591HomeDetailUpdate) SetRent591homeDetailPositionRounds(r *Rent591HomeDetailPositionRound) *Rent591HomeDetailUpdate

SetRent591homeDetailPositionRounds sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailUpdate) SetRent591homeDetailPositionRoundsID

func (rdu *Rent591HomeDetailUpdate) SetRent591homeDetailPositionRoundsID(id int) *Rent591HomeDetailUpdate

SetRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ID.

func (*Rent591HomeDetailUpdate) SetRent591homes

SetRent591homes sets the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeDetailUpdate) SetRent591homesID

func (rdu *Rent591HomeDetailUpdate) SetRent591homesID(id int) *Rent591HomeDetailUpdate

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID.

func (*Rent591HomeDetailUpdate) SetSectionID

func (rdu *Rent591HomeDetailUpdate) SetSectionID(i int) *Rent591HomeDetailUpdate

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailUpdate) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailUpdate) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeDetailUpdate) Where

Where appends a list predicates to the Rent591HomeDetailUpdate builder.

type Rent591HomeDetailUpdateOne

type Rent591HomeDetailUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailUpdateOne is the builder for updating a single Rent591HomeDetail entity.

func (*Rent591HomeDetailUpdateOne) AddDealTime

AddDealTime adds i to the "deal_time" field.

func (*Rent591HomeDetailUpdateOne) AddKind

AddKind adds i to the "kind" field.

func (*Rent591HomeDetailUpdateOne) AddPrice

AddPrice adds i to the "price" field.

func (*Rent591HomeDetailUpdateOne) AddRegionID

AddRegionID adds i to the "region_id" field.

func (*Rent591HomeDetailUpdateOne) AddRelieved

AddRelieved adds i to the "relieved" field.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailBreadcrumbIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailBreadcrumbIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailBreadcrumbIDs adds the "rent591home_detail_breadcrumbs" edge to the Rent591HomeDetailBreadcrumb entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailBreadcrumbs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailBreadcrumbs(r ...*Rent591HomeDetailBreadcrumb) *Rent591HomeDetailUpdateOne

AddRent591homeDetailBreadcrumbs adds the "rent591home_detail_breadcrumbs" edges to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailBrowseIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailBrowseIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailBrowseIDs adds the "rent591home_detail_browses" edge to the Rent591HomeDetailBrowse entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailBrowses

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailBrowses(r ...*Rent591HomeDetailBrowse) *Rent591HomeDetailUpdateOne

AddRent591homeDetailBrowses adds the "rent591home_detail_browses" edges to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailInfoIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailInfoIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailInfoIDs adds the "rent591home_detail_infos" edge to the Rent591HomeDetailInfo entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailInfos

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailInfos(r ...*Rent591HomeDetailInfo) *Rent591HomeDetailUpdateOne

AddRent591homeDetailInfos adds the "rent591home_detail_infos" edges to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailNavdataIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailNavdataIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailNavdataIDs adds the "rent591home_detail_navdatas" edge to the Rent591HomeDetailNavData entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailNavdatas

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailNavdatas(r ...*Rent591HomeDetailNavData) *Rent591HomeDetailUpdateOne

AddRent591homeDetailNavdatas adds the "rent591home_detail_navdatas" edges to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailPublishIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailPublishIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailPublishIDs adds the "rent591home_detail_publishs" edge to the Rent591HomeDetailPublish entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailPublishs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailPublishs(r ...*Rent591HomeDetailPublish) *Rent591HomeDetailUpdateOne

AddRent591homeDetailPublishs adds the "rent591home_detail_publishs" edges to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailShareinfoIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailShareinfoIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailShareinfoIDs adds the "rent591home_detail_shareinfos" edge to the Rent591HomeDetailShareInfo entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailShareinfos

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailShareinfos(r ...*Rent591HomeDetailShareInfo) *Rent591HomeDetailUpdateOne

AddRent591homeDetailShareinfos adds the "rent591home_detail_shareinfos" edges to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailTagIDs

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailTagIDs(ids ...int) *Rent591HomeDetailUpdateOne

AddRent591homeDetailTagIDs adds the "rent591home_detail_tags" edge to the Rent591HomeDetailTag entity by IDs.

func (*Rent591HomeDetailUpdateOne) AddRent591homeDetailTags

func (rduo *Rent591HomeDetailUpdateOne) AddRent591homeDetailTags(r ...*Rent591HomeDetailTag) *Rent591HomeDetailUpdateOne

AddRent591homeDetailTags adds the "rent591home_detail_tags" edges to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailUpdateOne) AddSectionID

AddSectionID adds i to the "section_id" field.

func (*Rent591HomeDetailUpdateOne) ClearDealText

ClearDealText clears the value of the "deal_text" field.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailBreadcrumbs

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailBreadcrumbs() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailBreadcrumbs clears all "rent591home_detail_breadcrumbs" edges to the Rent591HomeDetailBreadcrumb entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailBrowses

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailBrowses() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailBrowses clears all "rent591home_detail_browses" edges to the Rent591HomeDetailBrowse entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailInfos

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailInfos() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailInfos clears all "rent591home_detail_infos" edges to the Rent591HomeDetailInfo entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailNavdatas

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailNavdatas() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailNavdatas clears all "rent591home_detail_navdatas" edges to the Rent591HomeDetailNavData entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailPositionRounds

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailPositionRounds() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailPositionRounds clears the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailPublishs

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailPublishs() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailPublishs clears all "rent591home_detail_publishs" edges to the Rent591HomeDetailPublish entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailShareinfos

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailShareinfos() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailShareinfos clears all "rent591home_detail_shareinfos" edges to the Rent591HomeDetailShareInfo entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homeDetailTags

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homeDetailTags() *Rent591HomeDetailUpdateOne

ClearRent591homeDetailTags clears all "rent591home_detail_tags" edges to the Rent591HomeDetailTag entity.

func (*Rent591HomeDetailUpdateOne) ClearRent591homes

func (rduo *Rent591HomeDetailUpdateOne) ClearRent591homes() *Rent591HomeDetailUpdateOne

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeDetailUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeDetailUpdateOne) ExecX

func (rduo *Rent591HomeDetailUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailUpdateOne) Mutation

Mutation returns the Rent591HomeDetailMutation object of the builder.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBreadcrumbIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBreadcrumbIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailBreadcrumbIDs removes the "rent591home_detail_breadcrumbs" edge to Rent591HomeDetailBreadcrumb entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBreadcrumbs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBreadcrumbs(r ...*Rent591HomeDetailBreadcrumb) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailBreadcrumbs removes "rent591home_detail_breadcrumbs" edges to Rent591HomeDetailBreadcrumb entities.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBrowseIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBrowseIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailBrowseIDs removes the "rent591home_detail_browses" edge to Rent591HomeDetailBrowse entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBrowses

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailBrowses(r ...*Rent591HomeDetailBrowse) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailBrowses removes "rent591home_detail_browses" edges to Rent591HomeDetailBrowse entities.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailInfoIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailInfoIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailInfoIDs removes the "rent591home_detail_infos" edge to Rent591HomeDetailInfo entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailInfos

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailInfos(r ...*Rent591HomeDetailInfo) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailInfos removes "rent591home_detail_infos" edges to Rent591HomeDetailInfo entities.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailNavdataIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailNavdataIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailNavdataIDs removes the "rent591home_detail_navdatas" edge to Rent591HomeDetailNavData entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailNavdatas

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailNavdatas(r ...*Rent591HomeDetailNavData) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailNavdatas removes "rent591home_detail_navdatas" edges to Rent591HomeDetailNavData entities.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailPublishIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailPublishIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailPublishIDs removes the "rent591home_detail_publishs" edge to Rent591HomeDetailPublish entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailPublishs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailPublishs(r ...*Rent591HomeDetailPublish) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailPublishs removes "rent591home_detail_publishs" edges to Rent591HomeDetailPublish entities.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailShareinfoIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailShareinfoIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailShareinfoIDs removes the "rent591home_detail_shareinfos" edge to Rent591HomeDetailShareInfo entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailShareinfos

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailShareinfos(r ...*Rent591HomeDetailShareInfo) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailShareinfos removes "rent591home_detail_shareinfos" edges to Rent591HomeDetailShareInfo entities.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailTagIDs

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailTagIDs(ids ...int) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailTagIDs removes the "rent591home_detail_tags" edge to Rent591HomeDetailTag entities by IDs.

func (*Rent591HomeDetailUpdateOne) RemoveRent591homeDetailTags

func (rduo *Rent591HomeDetailUpdateOne) RemoveRent591homeDetailTags(r ...*Rent591HomeDetailTag) *Rent591HomeDetailUpdateOne

RemoveRent591homeDetailTags removes "rent591home_detail_tags" edges to Rent591HomeDetailTag entities.

func (*Rent591HomeDetailUpdateOne) Save

Save executes the query and returns the updated Rent591HomeDetail entity.

func (*Rent591HomeDetailUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeDetailUpdateOne) Select

func (rduo *Rent591HomeDetailUpdateOne) Select(field string, fields ...string) *Rent591HomeDetailUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeDetailUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailUpdateOne) SetDealText

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailUpdateOne) SetDealTime

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailUpdateOne) SetDeposit

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailUpdateOne) SetKind

SetKind sets the "kind" field.

func (*Rent591HomeDetailUpdateOne) SetNillableCreatedAt

func (rduo *Rent591HomeDetailUpdateOne) SetNillableCreatedAt(t *time.Time) *Rent591HomeDetailUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeDetailUpdateOne) SetNillableDealText

func (rduo *Rent591HomeDetailUpdateOne) SetNillableDealText(s *string) *Rent591HomeDetailUpdateOne

SetNillableDealText sets the "deal_text" field if the given value is not nil.

func (*Rent591HomeDetailUpdateOne) SetNillableRent591homeDetailPositionRoundsID

func (rduo *Rent591HomeDetailUpdateOne) SetNillableRent591homeDetailPositionRoundsID(id *int) *Rent591HomeDetailUpdateOne

SetNillableRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ID if the given value is not nil.

func (*Rent591HomeDetailUpdateOne) SetNillableRent591homesID

func (rduo *Rent591HomeDetailUpdateOne) SetNillableRent591homesID(id *int) *Rent591HomeDetailUpdateOne

SetNillableRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID if the given value is not nil.

func (*Rent591HomeDetailUpdateOne) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeDetailUpdateOne) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailUpdateOne) SetRegionID

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailUpdateOne) SetRelieved

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailUpdateOne) SetRent591homeDetailPositionRounds

func (rduo *Rent591HomeDetailUpdateOne) SetRent591homeDetailPositionRounds(r *Rent591HomeDetailPositionRound) *Rent591HomeDetailUpdateOne

SetRent591homeDetailPositionRounds sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity.

func (*Rent591HomeDetailUpdateOne) SetRent591homeDetailPositionRoundsID

func (rduo *Rent591HomeDetailUpdateOne) SetRent591homeDetailPositionRoundsID(id int) *Rent591HomeDetailUpdateOne

SetRent591homeDetailPositionRoundsID sets the "rent591home_detail_position_rounds" edge to the Rent591HomeDetailPositionRound entity by ID.

func (*Rent591HomeDetailUpdateOne) SetRent591homes

SetRent591homes sets the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeDetailUpdateOne) SetRent591homesID

func (rduo *Rent591HomeDetailUpdateOne) SetRent591homesID(id int) *Rent591HomeDetailUpdateOne

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID.

func (*Rent591HomeDetailUpdateOne) SetSectionID

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailUpdateOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailUpdateOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeDetailUpdateOne) Where

Where appends a list predicates to the Rent591HomeDetailUpdate builder.

type Rent591HomeDetailUpsert

type Rent591HomeDetailUpsert struct {
	*sql.UpdateSet
}

Rent591HomeDetailUpsert is the "OnConflict" setter.

func (*Rent591HomeDetailUpsert) AddDealTime

AddDealTime adds v to the "deal_time" field.

func (*Rent591HomeDetailUpsert) AddKind

AddKind adds v to the "kind" field.

func (*Rent591HomeDetailUpsert) AddPrice

AddPrice adds v to the "price" field.

func (*Rent591HomeDetailUpsert) AddRegionID

AddRegionID adds v to the "region_id" field.

func (*Rent591HomeDetailUpsert) AddRelieved

AddRelieved adds v to the "relieved" field.

func (*Rent591HomeDetailUpsert) AddSectionID

AddSectionID adds v to the "section_id" field.

func (*Rent591HomeDetailUpsert) ClearDealText

ClearDealText clears the value of the "deal_text" field.

func (*Rent591HomeDetailUpsert) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailUpsert) SetDealText

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailUpsert) SetDealTime

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailUpsert) SetDeposit

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailUpsert) SetKind

SetKind sets the "kind" field.

func (*Rent591HomeDetailUpsert) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeDetailUpsert) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailUpsert) SetRegionID

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailUpsert) SetRelieved

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailUpsert) SetSectionID

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailUpsert) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailUpsert) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeDetailUpsert) UpdateCreatedAt

func (u *Rent591HomeDetailUpsert) UpdateCreatedAt() *Rent591HomeDetailUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateDealText

func (u *Rent591HomeDetailUpsert) UpdateDealText() *Rent591HomeDetailUpsert

UpdateDealText sets the "deal_text" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateDealTime

func (u *Rent591HomeDetailUpsert) UpdateDealTime() *Rent591HomeDetailUpsert

UpdateDealTime sets the "deal_time" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateDeposit

UpdateDeposit sets the "deposit" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateKind

UpdateKind sets the "kind" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdatePrice

UpdatePrice sets the "price" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdatePriceUnit

func (u *Rent591HomeDetailUpsert) UpdatePriceUnit() *Rent591HomeDetailUpsert

UpdatePriceUnit sets the "price_unit" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateRegionID

func (u *Rent591HomeDetailUpsert) UpdateRegionID() *Rent591HomeDetailUpsert

UpdateRegionID sets the "region_id" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateRelieved

func (u *Rent591HomeDetailUpsert) UpdateRelieved() *Rent591HomeDetailUpsert

UpdateRelieved sets the "relieved" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateSectionID

func (u *Rent591HomeDetailUpsert) UpdateSectionID() *Rent591HomeDetailUpsert

UpdateSectionID sets the "section_id" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeDetailUpsert) UpdateUpdatedAt

func (u *Rent591HomeDetailUpsert) UpdateUpdatedAt() *Rent591HomeDetailUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Rent591HomeDetailUpsertBulk

type Rent591HomeDetailUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeDetail nodes.

func (*Rent591HomeDetailUpsertBulk) AddDealTime

AddDealTime adds v to the "deal_time" field.

func (*Rent591HomeDetailUpsertBulk) AddKind

AddKind adds v to the "kind" field.

func (*Rent591HomeDetailUpsertBulk) AddPrice

AddPrice adds v to the "price" field.

func (*Rent591HomeDetailUpsertBulk) AddRegionID

AddRegionID adds v to the "region_id" field.

func (*Rent591HomeDetailUpsertBulk) AddRelieved

AddRelieved adds v to the "relieved" field.

func (*Rent591HomeDetailUpsertBulk) AddSectionID

AddSectionID adds v to the "section_id" field.

func (*Rent591HomeDetailUpsertBulk) ClearDealText

ClearDealText clears the value of the "deal_text" field.

func (*Rent591HomeDetailUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeDetailUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetail.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeDetailUpsertBulk) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailUpsertBulk) SetDealText

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailUpsertBulk) SetDealTime

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailUpsertBulk) SetDeposit

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailUpsertBulk) SetKind

SetKind sets the "kind" field.

func (*Rent591HomeDetailUpsertBulk) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeDetailUpsertBulk) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailUpsertBulk) SetRegionID

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailUpsertBulk) SetRelieved

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailUpsertBulk) SetSectionID

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailUpsertBulk) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeDetailUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeDetailUpsertBulk) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateDealText

UpdateDealText sets the "deal_text" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateDealTime

UpdateDealTime sets the "deal_time" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateDeposit

UpdateDeposit sets the "deposit" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateKind

UpdateKind sets the "kind" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetail.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailUpsertBulk) UpdatePrice

UpdatePrice sets the "price" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdatePriceUnit

UpdatePriceUnit sets the "price_unit" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateRegionID

UpdateRegionID sets the "region_id" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateRelieved

UpdateRelieved sets the "relieved" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateSectionID

UpdateSectionID sets the "section_id" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertBulk) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Rent591HomeDetailUpsertOne

type Rent591HomeDetailUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeDetailUpsertOne is the builder for "upsert"-ing

one Rent591HomeDetail node.

func (*Rent591HomeDetailUpsertOne) AddDealTime

AddDealTime adds v to the "deal_time" field.

func (*Rent591HomeDetailUpsertOne) AddKind

AddKind adds v to the "kind" field.

func (*Rent591HomeDetailUpsertOne) AddPrice

AddPrice adds v to the "price" field.

func (*Rent591HomeDetailUpsertOne) AddRegionID

AddRegionID adds v to the "region_id" field.

func (*Rent591HomeDetailUpsertOne) AddRelieved

AddRelieved adds v to the "relieved" field.

func (*Rent591HomeDetailUpsertOne) AddSectionID

AddSectionID adds v to the "section_id" field.

func (*Rent591HomeDetailUpsertOne) ClearDealText

ClearDealText clears the value of the "deal_text" field.

func (*Rent591HomeDetailUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeDetailUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeDetailUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeDetailUpsertOne) ID

func (u *Rent591HomeDetailUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeDetailUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeDetailUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeDetail.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeDetailUpsertOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeDetailUpsertOne) SetDealText

SetDealText sets the "deal_text" field.

func (*Rent591HomeDetailUpsertOne) SetDealTime

SetDealTime sets the "deal_time" field.

func (*Rent591HomeDetailUpsertOne) SetDeposit

SetDeposit sets the "deposit" field.

func (*Rent591HomeDetailUpsertOne) SetKind

SetKind sets the "kind" field.

func (*Rent591HomeDetailUpsertOne) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeDetailUpsertOne) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeDetailUpsertOne) SetRegionID

SetRegionID sets the "region_id" field.

func (*Rent591HomeDetailUpsertOne) SetRelieved

SetRelieved sets the "relieved" field.

func (*Rent591HomeDetailUpsertOne) SetSectionID

SetSectionID sets the "section_id" field.

func (*Rent591HomeDetailUpsertOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeDetailUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeDetailUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeDetailCreate.OnConflict documentation for more info.

func (*Rent591HomeDetailUpsertOne) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateDealText

UpdateDealText sets the "deal_text" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateDealTime

UpdateDealTime sets the "deal_time" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateDeposit

UpdateDeposit sets the "deposit" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateKind

UpdateKind sets the "kind" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeDetail.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeDetailUpsertOne) UpdatePrice

UpdatePrice sets the "price" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdatePriceUnit

UpdatePriceUnit sets the "price_unit" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateRegionID

UpdateRegionID sets the "region_id" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateRelieved

UpdateRelieved sets the "relieved" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateSectionID

UpdateSectionID sets the "section_id" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateTitle

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeDetailUpsertOne) UpdateUpdatedAt

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Rent591HomeDetails

type Rent591HomeDetails []*Rent591HomeDetail

Rent591HomeDetails is a parsable slice of Rent591HomeDetail.

type Rent591HomeEdges

type Rent591HomeEdges struct {
	// Rent591homeTags holds the value of the rent591home_tags edge.
	Rent591homeTags []*Rent591HomeTag `json:"rent591home_tags,omitempty"`
	// Rent591homeSurroundings holds the value of the rent591home_surroundings edge.
	Rent591homeSurroundings *Rent591HomeSurrounding `json:"rent591home_surroundings,omitempty"`
	// Rent591homeDetails holds the value of the rent591home_details edge.
	Rent591homeDetails *Rent591HomeDetail `json:"rent591home_details,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeEdges) Rent591homeDetailsOrErr

func (e Rent591HomeEdges) Rent591homeDetailsOrErr() (*Rent591HomeDetail, error)

Rent591homeDetailsOrErr returns the Rent591homeDetails value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (Rent591HomeEdges) Rent591homeSurroundingsOrErr

func (e Rent591HomeEdges) Rent591homeSurroundingsOrErr() (*Rent591HomeSurrounding, error)

Rent591homeSurroundingsOrErr returns the Rent591homeSurroundings value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

func (Rent591HomeEdges) Rent591homeTagsOrErr

func (e Rent591HomeEdges) Rent591homeTagsOrErr() ([]*Rent591HomeTag, error)

Rent591homeTagsOrErr returns the Rent591homeTags value or an error if the edge was not loaded in eager-loading.

type Rent591HomeGroupBy

type Rent591HomeGroupBy struct {
	// contains filtered or unexported fields
}

Rent591HomeGroupBy is the group-by builder for Rent591Home entities.

func (*Rent591HomeGroupBy) Aggregate

func (rgb *Rent591HomeGroupBy) Aggregate(fns ...AggregateFunc) *Rent591HomeGroupBy

Aggregate adds the given aggregation functions to the group-by query.

func (*Rent591HomeGroupBy) Bool

func (s *Rent591HomeGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) BoolX

func (s *Rent591HomeGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeGroupBy) Bools

func (s *Rent591HomeGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) BoolsX

func (s *Rent591HomeGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeGroupBy) Float64

func (s *Rent591HomeGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) Float64X

func (s *Rent591HomeGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeGroupBy) Float64s

func (s *Rent591HomeGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) Float64sX

func (s *Rent591HomeGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeGroupBy) Int

func (s *Rent591HomeGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) IntX

func (s *Rent591HomeGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeGroupBy) Ints

func (s *Rent591HomeGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) IntsX

func (s *Rent591HomeGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeGroupBy) Scan

func (rgb *Rent591HomeGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeGroupBy) ScanX

func (s *Rent591HomeGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeGroupBy) String

func (s *Rent591HomeGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) StringX

func (s *Rent591HomeGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeGroupBy) Strings

func (s *Rent591HomeGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeGroupBy) StringsX

func (s *Rent591HomeGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeMutation

type Rent591HomeMutation struct {
	// contains filtered or unexported fields
}

Rent591HomeMutation represents an operation that mutates the Rent591Home nodes in the graph.

func (*Rent591HomeMutation) AddCasesID

func (m *Rent591HomeMutation) AddCasesID(i int)

AddCasesID adds i to the "cases_id" field.

func (*Rent591HomeMutation) AddCid

func (m *Rent591HomeMutation) AddCid(i int)

AddCid adds i to the "cid" field.

func (*Rent591HomeMutation) AddField

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) AddHurry

func (m *Rent591HomeMutation) AddHurry(i int)

AddHurry adds i to the "hurry" field.

func (*Rent591HomeMutation) AddIsCombine

func (m *Rent591HomeMutation) AddIsCombine(i int)

AddIsCombine adds i to the "is_combine" field.

func (*Rent591HomeMutation) AddIsSocial

func (m *Rent591HomeMutation) AddIsSocial(i int)

AddIsSocial adds i to the "is_social" field.

func (*Rent591HomeMutation) AddIsVideo

func (m *Rent591HomeMutation) AddIsVideo(i int)

AddIsVideo adds i to the "is_video" field.

func (*Rent591HomeMutation) AddIsVip

func (m *Rent591HomeMutation) AddIsVip(i int)

AddIsVip adds i to the "is_vip" field.

func (*Rent591HomeMutation) AddPostID

func (m *Rent591HomeMutation) AddPostID(i int)

AddPostID adds i to the "post_id" field.

func (*Rent591HomeMutation) AddPreferred

func (m *Rent591HomeMutation) AddPreferred(i int)

AddPreferred adds i to the "preferred" field.

func (*Rent591HomeMutation) AddPrice

func (m *Rent591HomeMutation) AddPrice(i int)

AddPrice adds i to the "price" field.

func (*Rent591HomeMutation) AddRent591homeTagIDs

func (m *Rent591HomeMutation) AddRent591homeTagIDs(ids ...int)

AddRent591homeTagIDs adds the "rent591home_tags" edge to the Rent591HomeTag entity by ids.

func (*Rent591HomeMutation) AddType

func (m *Rent591HomeMutation) AddType(i int)

AddType adds i to the "type" field.

func (*Rent591HomeMutation) AddYesterdayHit

func (m *Rent591HomeMutation) AddYesterdayHit(i int)

AddYesterdayHit adds i to the "yesterday_hit" field.

func (*Rent591HomeMutation) AddedCasesID

func (m *Rent591HomeMutation) AddedCasesID() (r int, exists bool)

AddedCasesID returns the value that was added to the "cases_id" field in this mutation.

func (*Rent591HomeMutation) AddedCid

func (m *Rent591HomeMutation) AddedCid() (r int, exists bool)

AddedCid returns the value that was added to the "cid" field in this mutation.

func (*Rent591HomeMutation) AddedEdges

func (m *Rent591HomeMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeMutation) AddedField

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) AddedFields

func (m *Rent591HomeMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeMutation) AddedHurry

func (m *Rent591HomeMutation) AddedHurry() (r int, exists bool)

AddedHurry returns the value that was added to the "hurry" field in this mutation.

func (*Rent591HomeMutation) AddedIDs

func (m *Rent591HomeMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeMutation) AddedIsCombine

func (m *Rent591HomeMutation) AddedIsCombine() (r int, exists bool)

AddedIsCombine returns the value that was added to the "is_combine" field in this mutation.

func (*Rent591HomeMutation) AddedIsSocial

func (m *Rent591HomeMutation) AddedIsSocial() (r int, exists bool)

AddedIsSocial returns the value that was added to the "is_social" field in this mutation.

func (*Rent591HomeMutation) AddedIsVideo

func (m *Rent591HomeMutation) AddedIsVideo() (r int, exists bool)

AddedIsVideo returns the value that was added to the "is_video" field in this mutation.

func (*Rent591HomeMutation) AddedIsVip

func (m *Rent591HomeMutation) AddedIsVip() (r int, exists bool)

AddedIsVip returns the value that was added to the "is_vip" field in this mutation.

func (*Rent591HomeMutation) AddedPostID

func (m *Rent591HomeMutation) AddedPostID() (r int, exists bool)

AddedPostID returns the value that was added to the "post_id" field in this mutation.

func (*Rent591HomeMutation) AddedPreferred

func (m *Rent591HomeMutation) AddedPreferred() (r int, exists bool)

AddedPreferred returns the value that was added to the "preferred" field in this mutation.

func (*Rent591HomeMutation) AddedPrice

func (m *Rent591HomeMutation) AddedPrice() (r int, exists bool)

AddedPrice returns the value that was added to the "price" field in this mutation.

func (*Rent591HomeMutation) AddedType

func (m *Rent591HomeMutation) AddedType() (r int, exists bool)

AddedType returns the value that was added to the "type" field in this mutation.

func (*Rent591HomeMutation) AddedYesterdayHit

func (m *Rent591HomeMutation) AddedYesterdayHit() (r int, exists bool)

AddedYesterdayHit returns the value that was added to the "yesterday_hit" field in this mutation.

func (*Rent591HomeMutation) AppendPhotoList

func (m *Rent591HomeMutation) AppendPhotoList(s []string)

AppendPhotoList adds s to the "photo_list" field.

func (*Rent591HomeMutation) AppendedPhotoList

func (m *Rent591HomeMutation) AppendedPhotoList() ([]string, bool)

AppendedPhotoList returns the list of values that were appended to the "photo_list" field in this mutation.

func (*Rent591HomeMutation) Area

func (m *Rent591HomeMutation) Area() (r string, exists bool)

Area returns the value of the "area" field in the mutation.

func (*Rent591HomeMutation) CasesID

func (m *Rent591HomeMutation) CasesID() (r int, exists bool)

CasesID returns the value of the "cases_id" field in the mutation.

func (*Rent591HomeMutation) Cid

func (m *Rent591HomeMutation) Cid() (r int, exists bool)

Cid returns the value of the "cid" field in the mutation.

func (*Rent591HomeMutation) ClearEdge

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) ClearField

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) ClearPhotoList

func (m *Rent591HomeMutation) ClearPhotoList()

ClearPhotoList clears the value of the "photo_list" field.

func (*Rent591HomeMutation) ClearRegionName

func (m *Rent591HomeMutation) ClearRegionName()

ClearRegionName clears the value of the "region_name" field.

func (*Rent591HomeMutation) ClearRent591homeDetails

func (m *Rent591HomeMutation) ClearRent591homeDetails()

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeMutation) ClearRent591homeSurroundings

func (m *Rent591HomeMutation) ClearRent591homeSurroundings()

ClearRent591homeSurroundings clears the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity.

func (*Rent591HomeMutation) ClearRent591homeTags

func (m *Rent591HomeMutation) ClearRent591homeTags()

ClearRent591homeTags clears the "rent591home_tags" edge to the Rent591HomeTag entity.

func (*Rent591HomeMutation) ClearedEdges

func (m *Rent591HomeMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeMutation) ClearedFields

func (m *Rent591HomeMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeMutation) Client

func (m Rent591HomeMutation) 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 (*Rent591HomeMutation) Community

func (m *Rent591HomeMutation) Community() (r string, exists bool)

Community returns the value of the "community" field in the mutation.

func (*Rent591HomeMutation) Contact

func (m *Rent591HomeMutation) Contact() (r string, exists bool)

Contact returns the value of the "contact" field in the mutation.

func (*Rent591HomeMutation) CreatedAt

func (m *Rent591HomeMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*Rent591HomeMutation) DiscountPriceStr

func (m *Rent591HomeMutation) DiscountPriceStr() (r string, exists bool)

DiscountPriceStr returns the value of the "discount_price_str" field in the mutation.

func (*Rent591HomeMutation) EdgeCleared

func (m *Rent591HomeMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeMutation) Field

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) FieldCleared

func (m *Rent591HomeMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeMutation) Fields

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) FloorStr

func (m *Rent591HomeMutation) FloorStr() (r string, exists bool)

FloorStr returns the value of the "floor_str" field in the mutation.

func (*Rent591HomeMutation) GetType

func (m *Rent591HomeMutation) GetType() (r int, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*Rent591HomeMutation) Hurry

func (m *Rent591HomeMutation) Hurry() (r int, exists bool)

Hurry returns the value of the "hurry" field in the mutation.

func (*Rent591HomeMutation) ID

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) IDs

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) IsCombine

func (m *Rent591HomeMutation) IsCombine() (r int, exists bool)

IsCombine returns the value of the "is_combine" field in the mutation.

func (*Rent591HomeMutation) IsSocial

func (m *Rent591HomeMutation) IsSocial() (r int, exists bool)

IsSocial returns the value of the "is_social" field in the mutation.

func (*Rent591HomeMutation) IsVideo

func (m *Rent591HomeMutation) IsVideo() (r int, exists bool)

IsVideo returns the value of the "is_video" field in the mutation.

func (*Rent591HomeMutation) IsVip

func (m *Rent591HomeMutation) IsVip() (r int, exists bool)

IsVip returns the value of the "is_vip" field in the mutation.

func (*Rent591HomeMutation) KindName

func (m *Rent591HomeMutation) KindName() (r string, exists bool)

KindName returns the value of the "kind_name" field in the mutation.

func (*Rent591HomeMutation) Location

func (m *Rent591HomeMutation) Location() (r string, exists bool)

Location returns the value of the "location" field in the mutation.

func (*Rent591HomeMutation) OldArea

func (m *Rent591HomeMutation) OldArea(ctx context.Context) (v string, err error)

OldArea returns the old "area" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldCasesID

func (m *Rent591HomeMutation) OldCasesID(ctx context.Context) (v int, err error)

OldCasesID returns the old "cases_id" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldCid

func (m *Rent591HomeMutation) OldCid(ctx context.Context) (v int, err error)

OldCid returns the old "cid" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldCommunity

func (m *Rent591HomeMutation) OldCommunity(ctx context.Context) (v string, err error)

OldCommunity returns the old "community" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldContact

func (m *Rent591HomeMutation) OldContact(ctx context.Context) (v string, err error)

OldContact returns the old "contact" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldCreatedAt

func (m *Rent591HomeMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldDiscountPriceStr

func (m *Rent591HomeMutation) OldDiscountPriceStr(ctx context.Context) (v string, err error)

OldDiscountPriceStr returns the old "discount_price_str" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldField

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) OldFloorStr

func (m *Rent591HomeMutation) OldFloorStr(ctx context.Context) (v string, err error)

OldFloorStr returns the old "floor_str" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldHurry

func (m *Rent591HomeMutation) OldHurry(ctx context.Context) (v int, err error)

OldHurry returns the old "hurry" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldIsCombine

func (m *Rent591HomeMutation) OldIsCombine(ctx context.Context) (v int, err error)

OldIsCombine returns the old "is_combine" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldIsSocial

func (m *Rent591HomeMutation) OldIsSocial(ctx context.Context) (v int, err error)

OldIsSocial returns the old "is_social" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldIsVideo

func (m *Rent591HomeMutation) OldIsVideo(ctx context.Context) (v int, err error)

OldIsVideo returns the old "is_video" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldIsVip

func (m *Rent591HomeMutation) OldIsVip(ctx context.Context) (v int, err error)

OldIsVip returns the old "is_vip" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldKindName

func (m *Rent591HomeMutation) OldKindName(ctx context.Context) (v string, err error)

OldKindName returns the old "kind_name" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldLocation

func (m *Rent591HomeMutation) OldLocation(ctx context.Context) (v string, err error)

OldLocation returns the old "location" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldPhotoList

func (m *Rent591HomeMutation) OldPhotoList(ctx context.Context) (v []string, err error)

OldPhotoList returns the old "photo_list" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldPostID

func (m *Rent591HomeMutation) OldPostID(ctx context.Context) (v int, err error)

OldPostID returns the old "post_id" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldPreferred

func (m *Rent591HomeMutation) OldPreferred(ctx context.Context) (v int, err error)

OldPreferred returns the old "preferred" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldPrice

func (m *Rent591HomeMutation) OldPrice(ctx context.Context) (v int, err error)

OldPrice returns the old "price" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldPriceUnit

func (m *Rent591HomeMutation) OldPriceUnit(ctx context.Context) (v string, err error)

OldPriceUnit returns the old "price_unit" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldRefreshTime

func (m *Rent591HomeMutation) OldRefreshTime(ctx context.Context) (v string, err error)

OldRefreshTime returns the old "refresh_time" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldRegionName

func (m *Rent591HomeMutation) OldRegionName(ctx context.Context) (v string, err error)

OldRegionName returns the old "region_name" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldRoleName

func (m *Rent591HomeMutation) OldRoleName(ctx context.Context) (v string, err error)

OldRoleName returns the old "role_name" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldRoomStr

func (m *Rent591HomeMutation) OldRoomStr(ctx context.Context) (v string, err error)

OldRoomStr returns the old "room_str" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldSectionName

func (m *Rent591HomeMutation) OldSectionName(ctx context.Context) (v string, err error)

OldSectionName returns the old "section_name" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldStreetName

func (m *Rent591HomeMutation) OldStreetName(ctx context.Context) (v string, err error)

OldStreetName returns the old "street_name" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldTitle

func (m *Rent591HomeMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldType

func (m *Rent591HomeMutation) OldType(ctx context.Context) (v int, err error)

OldType returns the old "type" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldUpdatedAt

func (m *Rent591HomeMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) OldYesterdayHit

func (m *Rent591HomeMutation) OldYesterdayHit(ctx context.Context) (v int, err error)

OldYesterdayHit returns the old "yesterday_hit" field's value of the Rent591Home entity. If the Rent591Home 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 (*Rent591HomeMutation) Op

func (m *Rent591HomeMutation) Op() Op

Op returns the operation name.

func (*Rent591HomeMutation) PhotoList

func (m *Rent591HomeMutation) PhotoList() (r []string, exists bool)

PhotoList returns the value of the "photo_list" field in the mutation.

func (*Rent591HomeMutation) PhotoListCleared

func (m *Rent591HomeMutation) PhotoListCleared() bool

PhotoListCleared returns if the "photo_list" field was cleared in this mutation.

func (*Rent591HomeMutation) PostID

func (m *Rent591HomeMutation) PostID() (r int, exists bool)

PostID returns the value of the "post_id" field in the mutation.

func (*Rent591HomeMutation) Preferred

func (m *Rent591HomeMutation) Preferred() (r int, exists bool)

Preferred returns the value of the "preferred" field in the mutation.

func (*Rent591HomeMutation) Price

func (m *Rent591HomeMutation) Price() (r int, exists bool)

Price returns the value of the "price" field in the mutation.

func (*Rent591HomeMutation) PriceUnit

func (m *Rent591HomeMutation) PriceUnit() (r string, exists bool)

PriceUnit returns the value of the "price_unit" field in the mutation.

func (*Rent591HomeMutation) RefreshTime

func (m *Rent591HomeMutation) RefreshTime() (r string, exists bool)

RefreshTime returns the value of the "refresh_time" field in the mutation.

func (*Rent591HomeMutation) RegionName

func (m *Rent591HomeMutation) RegionName() (r string, exists bool)

RegionName returns the value of the "region_name" field in the mutation.

func (*Rent591HomeMutation) RegionNameCleared

func (m *Rent591HomeMutation) RegionNameCleared() bool

RegionNameCleared returns if the "region_name" field was cleared in this mutation.

func (*Rent591HomeMutation) RemoveRent591homeTagIDs

func (m *Rent591HomeMutation) RemoveRent591homeTagIDs(ids ...int)

RemoveRent591homeTagIDs removes the "rent591home_tags" edge to the Rent591HomeTag entity by IDs.

func (*Rent591HomeMutation) RemovedEdges

func (m *Rent591HomeMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeMutation) RemovedIDs

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) RemovedRent591homeTagsIDs

func (m *Rent591HomeMutation) RemovedRent591homeTagsIDs() (ids []int)

RemovedRent591homeTags returns the removed IDs of the "rent591home_tags" edge to the Rent591HomeTag entity.

func (*Rent591HomeMutation) Rent591homeDetailsCleared

func (m *Rent591HomeMutation) Rent591homeDetailsCleared() bool

Rent591homeDetailsCleared reports if the "rent591home_details" edge to the Rent591HomeDetail entity was cleared.

func (*Rent591HomeMutation) Rent591homeDetailsID

func (m *Rent591HomeMutation) Rent591homeDetailsID() (id int, exists bool)

Rent591homeDetailsID returns the "rent591home_details" edge ID in the mutation.

func (*Rent591HomeMutation) Rent591homeDetailsIDs

func (m *Rent591HomeMutation) Rent591homeDetailsIDs() (ids []int)

Rent591homeDetailsIDs returns the "rent591home_details" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use Rent591homeDetailsID instead. It exists only for internal usage by the builders.

func (*Rent591HomeMutation) Rent591homeSurroundingsCleared

func (m *Rent591HomeMutation) Rent591homeSurroundingsCleared() bool

Rent591homeSurroundingsCleared reports if the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity was cleared.

func (*Rent591HomeMutation) Rent591homeSurroundingsID

func (m *Rent591HomeMutation) Rent591homeSurroundingsID() (id int, exists bool)

Rent591homeSurroundingsID returns the "rent591home_surroundings" edge ID in the mutation.

func (*Rent591HomeMutation) Rent591homeSurroundingsIDs

func (m *Rent591HomeMutation) Rent591homeSurroundingsIDs() (ids []int)

Rent591homeSurroundingsIDs returns the "rent591home_surroundings" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use Rent591homeSurroundingsID instead. It exists only for internal usage by the builders.

func (*Rent591HomeMutation) Rent591homeTagsCleared

func (m *Rent591HomeMutation) Rent591homeTagsCleared() bool

Rent591homeTagsCleared reports if the "rent591home_tags" edge to the Rent591HomeTag entity was cleared.

func (*Rent591HomeMutation) Rent591homeTagsIDs

func (m *Rent591HomeMutation) Rent591homeTagsIDs() (ids []int)

Rent591homeTagsIDs returns the "rent591home_tags" edge IDs in the mutation.

func (*Rent591HomeMutation) ResetArea

func (m *Rent591HomeMutation) ResetArea()

ResetArea resets all changes to the "area" field.

func (*Rent591HomeMutation) ResetCasesID

func (m *Rent591HomeMutation) ResetCasesID()

ResetCasesID resets all changes to the "cases_id" field.

func (*Rent591HomeMutation) ResetCid

func (m *Rent591HomeMutation) ResetCid()

ResetCid resets all changes to the "cid" field.

func (*Rent591HomeMutation) ResetCommunity

func (m *Rent591HomeMutation) ResetCommunity()

ResetCommunity resets all changes to the "community" field.

func (*Rent591HomeMutation) ResetContact

func (m *Rent591HomeMutation) ResetContact()

ResetContact resets all changes to the "contact" field.

func (*Rent591HomeMutation) ResetCreatedAt

func (m *Rent591HomeMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*Rent591HomeMutation) ResetDiscountPriceStr

func (m *Rent591HomeMutation) ResetDiscountPriceStr()

ResetDiscountPriceStr resets all changes to the "discount_price_str" field.

func (*Rent591HomeMutation) ResetEdge

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) ResetField

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) ResetFloorStr

func (m *Rent591HomeMutation) ResetFloorStr()

ResetFloorStr resets all changes to the "floor_str" field.

func (*Rent591HomeMutation) ResetHurry

func (m *Rent591HomeMutation) ResetHurry()

ResetHurry resets all changes to the "hurry" field.

func (*Rent591HomeMutation) ResetIsCombine

func (m *Rent591HomeMutation) ResetIsCombine()

ResetIsCombine resets all changes to the "is_combine" field.

func (*Rent591HomeMutation) ResetIsSocial

func (m *Rent591HomeMutation) ResetIsSocial()

ResetIsSocial resets all changes to the "is_social" field.

func (*Rent591HomeMutation) ResetIsVideo

func (m *Rent591HomeMutation) ResetIsVideo()

ResetIsVideo resets all changes to the "is_video" field.

func (*Rent591HomeMutation) ResetIsVip

func (m *Rent591HomeMutation) ResetIsVip()

ResetIsVip resets all changes to the "is_vip" field.

func (*Rent591HomeMutation) ResetKindName

func (m *Rent591HomeMutation) ResetKindName()

ResetKindName resets all changes to the "kind_name" field.

func (*Rent591HomeMutation) ResetLocation

func (m *Rent591HomeMutation) ResetLocation()

ResetLocation resets all changes to the "location" field.

func (*Rent591HomeMutation) ResetPhotoList

func (m *Rent591HomeMutation) ResetPhotoList()

ResetPhotoList resets all changes to the "photo_list" field.

func (*Rent591HomeMutation) ResetPostID

func (m *Rent591HomeMutation) ResetPostID()

ResetPostID resets all changes to the "post_id" field.

func (*Rent591HomeMutation) ResetPreferred

func (m *Rent591HomeMutation) ResetPreferred()

ResetPreferred resets all changes to the "preferred" field.

func (*Rent591HomeMutation) ResetPrice

func (m *Rent591HomeMutation) ResetPrice()

ResetPrice resets all changes to the "price" field.

func (*Rent591HomeMutation) ResetPriceUnit

func (m *Rent591HomeMutation) ResetPriceUnit()

ResetPriceUnit resets all changes to the "price_unit" field.

func (*Rent591HomeMutation) ResetRefreshTime

func (m *Rent591HomeMutation) ResetRefreshTime()

ResetRefreshTime resets all changes to the "refresh_time" field.

func (*Rent591HomeMutation) ResetRegionName

func (m *Rent591HomeMutation) ResetRegionName()

ResetRegionName resets all changes to the "region_name" field.

func (*Rent591HomeMutation) ResetRent591homeDetails

func (m *Rent591HomeMutation) ResetRent591homeDetails()

ResetRent591homeDetails resets all changes to the "rent591home_details" edge.

func (*Rent591HomeMutation) ResetRent591homeSurroundings

func (m *Rent591HomeMutation) ResetRent591homeSurroundings()

ResetRent591homeSurroundings resets all changes to the "rent591home_surroundings" edge.

func (*Rent591HomeMutation) ResetRent591homeTags

func (m *Rent591HomeMutation) ResetRent591homeTags()

ResetRent591homeTags resets all changes to the "rent591home_tags" edge.

func (*Rent591HomeMutation) ResetRoleName

func (m *Rent591HomeMutation) ResetRoleName()

ResetRoleName resets all changes to the "role_name" field.

func (*Rent591HomeMutation) ResetRoomStr

func (m *Rent591HomeMutation) ResetRoomStr()

ResetRoomStr resets all changes to the "room_str" field.

func (*Rent591HomeMutation) ResetSectionName

func (m *Rent591HomeMutation) ResetSectionName()

ResetSectionName resets all changes to the "section_name" field.

func (*Rent591HomeMutation) ResetStreetName

func (m *Rent591HomeMutation) ResetStreetName()

ResetStreetName resets all changes to the "street_name" field.

func (*Rent591HomeMutation) ResetTitle

func (m *Rent591HomeMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*Rent591HomeMutation) ResetType

func (m *Rent591HomeMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*Rent591HomeMutation) ResetUpdatedAt

func (m *Rent591HomeMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*Rent591HomeMutation) ResetYesterdayHit

func (m *Rent591HomeMutation) ResetYesterdayHit()

ResetYesterdayHit resets all changes to the "yesterday_hit" field.

func (*Rent591HomeMutation) RoleName

func (m *Rent591HomeMutation) RoleName() (r string, exists bool)

RoleName returns the value of the "role_name" field in the mutation.

func (*Rent591HomeMutation) RoomStr

func (m *Rent591HomeMutation) RoomStr() (r string, exists bool)

RoomStr returns the value of the "room_str" field in the mutation.

func (*Rent591HomeMutation) SectionName

func (m *Rent591HomeMutation) SectionName() (r string, exists bool)

SectionName returns the value of the "section_name" field in the mutation.

func (*Rent591HomeMutation) SetArea

func (m *Rent591HomeMutation) SetArea(s string)

SetArea sets the "area" field.

func (*Rent591HomeMutation) SetCasesID

func (m *Rent591HomeMutation) SetCasesID(i int)

SetCasesID sets the "cases_id" field.

func (*Rent591HomeMutation) SetCid

func (m *Rent591HomeMutation) SetCid(i int)

SetCid sets the "cid" field.

func (*Rent591HomeMutation) SetCommunity

func (m *Rent591HomeMutation) SetCommunity(s string)

SetCommunity sets the "community" field.

func (*Rent591HomeMutation) SetContact

func (m *Rent591HomeMutation) SetContact(s string)

SetContact sets the "contact" field.

func (*Rent591HomeMutation) SetCreatedAt

func (m *Rent591HomeMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeMutation) SetDiscountPriceStr

func (m *Rent591HomeMutation) SetDiscountPriceStr(s string)

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeMutation) SetField

func (m *Rent591HomeMutation) 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 (*Rent591HomeMutation) SetFloorStr

func (m *Rent591HomeMutation) SetFloorStr(s string)

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeMutation) SetHurry

func (m *Rent591HomeMutation) SetHurry(i int)

SetHurry sets the "hurry" field.

func (*Rent591HomeMutation) SetIsCombine

func (m *Rent591HomeMutation) SetIsCombine(i int)

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeMutation) SetIsSocial

func (m *Rent591HomeMutation) SetIsSocial(i int)

SetIsSocial sets the "is_social" field.

func (*Rent591HomeMutation) SetIsVideo

func (m *Rent591HomeMutation) SetIsVideo(i int)

SetIsVideo sets the "is_video" field.

func (*Rent591HomeMutation) SetIsVip

func (m *Rent591HomeMutation) SetIsVip(i int)

SetIsVip sets the "is_vip" field.

func (*Rent591HomeMutation) SetKindName

func (m *Rent591HomeMutation) SetKindName(s string)

SetKindName sets the "kind_name" field.

func (*Rent591HomeMutation) SetLocation

func (m *Rent591HomeMutation) SetLocation(s string)

SetLocation sets the "location" field.

func (*Rent591HomeMutation) SetOp

func (m *Rent591HomeMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeMutation) SetPhotoList

func (m *Rent591HomeMutation) SetPhotoList(s []string)

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeMutation) SetPostID

func (m *Rent591HomeMutation) SetPostID(i int)

SetPostID sets the "post_id" field.

func (*Rent591HomeMutation) SetPreferred

func (m *Rent591HomeMutation) SetPreferred(i int)

SetPreferred sets the "preferred" field.

func (*Rent591HomeMutation) SetPrice

func (m *Rent591HomeMutation) SetPrice(i int)

SetPrice sets the "price" field.

func (*Rent591HomeMutation) SetPriceUnit

func (m *Rent591HomeMutation) SetPriceUnit(s string)

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeMutation) SetRefreshTime

func (m *Rent591HomeMutation) SetRefreshTime(s string)

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeMutation) SetRegionName

func (m *Rent591HomeMutation) SetRegionName(s string)

SetRegionName sets the "region_name" field.

func (*Rent591HomeMutation) SetRent591homeDetailsID

func (m *Rent591HomeMutation) SetRent591homeDetailsID(id int)

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by id.

func (*Rent591HomeMutation) SetRent591homeSurroundingsID

func (m *Rent591HomeMutation) SetRent591homeSurroundingsID(id int)

SetRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by id.

func (*Rent591HomeMutation) SetRoleName

func (m *Rent591HomeMutation) SetRoleName(s string)

SetRoleName sets the "role_name" field.

func (*Rent591HomeMutation) SetRoomStr

func (m *Rent591HomeMutation) SetRoomStr(s string)

SetRoomStr sets the "room_str" field.

func (*Rent591HomeMutation) SetSectionName

func (m *Rent591HomeMutation) SetSectionName(s string)

SetSectionName sets the "section_name" field.

func (*Rent591HomeMutation) SetStreetName

func (m *Rent591HomeMutation) SetStreetName(s string)

SetStreetName sets the "street_name" field.

func (*Rent591HomeMutation) SetTitle

func (m *Rent591HomeMutation) SetTitle(s string)

SetTitle sets the "title" field.

func (*Rent591HomeMutation) SetType

func (m *Rent591HomeMutation) SetType(i int)

SetType sets the "type" field.

func (*Rent591HomeMutation) SetUpdatedAt

func (m *Rent591HomeMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeMutation) SetYesterdayHit

func (m *Rent591HomeMutation) SetYesterdayHit(i int)

SetYesterdayHit sets the "yesterday_hit" field.

func (*Rent591HomeMutation) StreetName

func (m *Rent591HomeMutation) StreetName() (r string, exists bool)

StreetName returns the value of the "street_name" field in the mutation.

func (*Rent591HomeMutation) Title

func (m *Rent591HomeMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (Rent591HomeMutation) Tx

func (m Rent591HomeMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeMutation) Type

func (m *Rent591HomeMutation) Type() string

Type returns the node type of this mutation (Rent591Home).

func (*Rent591HomeMutation) UpdatedAt

func (m *Rent591HomeMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*Rent591HomeMutation) Where

func (m *Rent591HomeMutation) Where(ps ...predicate.Rent591Home)

Where appends a list predicates to the Rent591HomeMutation builder.

func (*Rent591HomeMutation) WhereP

func (m *Rent591HomeMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

func (*Rent591HomeMutation) YesterdayHit

func (m *Rent591HomeMutation) YesterdayHit() (r int, exists bool)

YesterdayHit returns the value of the "yesterday_hit" field in the mutation.

type Rent591HomeQuery

type Rent591HomeQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeQuery is the builder for querying Rent591Home entities.

func (*Rent591HomeQuery) Aggregate

func (rq *Rent591HomeQuery) Aggregate(fns ...AggregateFunc) *Rent591HomeSelect

Aggregate returns a Rent591HomeSelect configured with the given aggregations.

func (*Rent591HomeQuery) All

func (rq *Rent591HomeQuery) All(ctx context.Context) ([]*Rent591Home, error)

All executes the query and returns a list of Rent591Homes.

func (*Rent591HomeQuery) AllX

func (rq *Rent591HomeQuery) AllX(ctx context.Context) []*Rent591Home

AllX is like All, but panics if an error occurs.

func (*Rent591HomeQuery) Clone

func (rq *Rent591HomeQuery) Clone() *Rent591HomeQuery

Clone returns a duplicate of the Rent591HomeQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeQuery) Count

func (rq *Rent591HomeQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*Rent591HomeQuery) CountX

func (rq *Rent591HomeQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeQuery) Exist

func (rq *Rent591HomeQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*Rent591HomeQuery) ExistX

func (rq *Rent591HomeQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeQuery) First

func (rq *Rent591HomeQuery) First(ctx context.Context) (*Rent591Home, error)

First returns the first Rent591Home entity from the query. Returns a *NotFoundError when no Rent591Home was found.

func (*Rent591HomeQuery) FirstID

func (rq *Rent591HomeQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591Home ID from the query. Returns a *NotFoundError when no Rent591Home ID was found.

func (*Rent591HomeQuery) FirstIDX

func (rq *Rent591HomeQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeQuery) FirstX

func (rq *Rent591HomeQuery) FirstX(ctx context.Context) *Rent591Home

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeQuery) GroupBy

func (rq *Rent591HomeQuery) GroupBy(field string, fields ...string) *Rent591HomeGroupBy

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 {
	Title string `json:"title,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591Home.Query().
	GroupBy(rent591home.FieldTitle).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeQuery) IDs

func (rq *Rent591HomeQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591Home IDs.

func (*Rent591HomeQuery) IDsX

func (rq *Rent591HomeQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeQuery) Limit

func (rq *Rent591HomeQuery) Limit(limit int) *Rent591HomeQuery

Limit the number of records to be returned by this query.

func (*Rent591HomeQuery) Offset

func (rq *Rent591HomeQuery) Offset(offset int) *Rent591HomeQuery

Offset to start from.

func (*Rent591HomeQuery) Only

func (rq *Rent591HomeQuery) Only(ctx context.Context) (*Rent591Home, error)

Only returns a single Rent591Home entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591Home entity is found. Returns a *NotFoundError when no Rent591Home entities are found.

func (*Rent591HomeQuery) OnlyID

func (rq *Rent591HomeQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591Home ID in the query. Returns a *NotSingularError when more than one Rent591Home ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeQuery) OnlyIDX

func (rq *Rent591HomeQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeQuery) OnlyX

func (rq *Rent591HomeQuery) OnlyX(ctx context.Context) *Rent591Home

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeQuery) QueryRent591homeDetails

func (rq *Rent591HomeQuery) QueryRent591homeDetails() *Rent591HomeDetailQuery

QueryRent591homeDetails chains the current query on the "rent591home_details" edge.

func (*Rent591HomeQuery) QueryRent591homeSurroundings

func (rq *Rent591HomeQuery) QueryRent591homeSurroundings() *Rent591HomeSurroundingQuery

QueryRent591homeSurroundings chains the current query on the "rent591home_surroundings" edge.

func (*Rent591HomeQuery) QueryRent591homeTags

func (rq *Rent591HomeQuery) QueryRent591homeTags() *Rent591HomeTagQuery

QueryRent591homeTags chains the current query on the "rent591home_tags" edge.

func (*Rent591HomeQuery) Select

func (rq *Rent591HomeQuery) Select(fields ...string) *Rent591HomeSelect

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 {
	Title string `json:"title,omitempty"`
}

client.Rent591Home.Query().
	Select(rent591home.FieldTitle).
	Scan(ctx, &v)

func (*Rent591HomeQuery) Unique

func (rq *Rent591HomeQuery) Unique(unique bool) *Rent591HomeQuery

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 (*Rent591HomeQuery) Where

Where adds a new predicate for the Rent591HomeQuery builder.

func (*Rent591HomeQuery) WithRent591homeDetails

func (rq *Rent591HomeQuery) WithRent591homeDetails(opts ...func(*Rent591HomeDetailQuery)) *Rent591HomeQuery

WithRent591homeDetails tells the query-builder to eager-load the nodes that are connected to the "rent591home_details" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeQuery) WithRent591homeSurroundings

func (rq *Rent591HomeQuery) WithRent591homeSurroundings(opts ...func(*Rent591HomeSurroundingQuery)) *Rent591HomeQuery

WithRent591homeSurroundings tells the query-builder to eager-load the nodes that are connected to the "rent591home_surroundings" edge. The optional arguments are used to configure the query builder of the edge.

func (*Rent591HomeQuery) WithRent591homeTags

func (rq *Rent591HomeQuery) WithRent591homeTags(opts ...func(*Rent591HomeTagQuery)) *Rent591HomeQuery

WithRent591homeTags tells the query-builder to eager-load the nodes that are connected to the "rent591home_tags" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeSelect

type Rent591HomeSelect struct {
	*Rent591HomeQuery
	// contains filtered or unexported fields
}

Rent591HomeSelect is the builder for selecting fields of Rent591Home entities.

func (*Rent591HomeSelect) Aggregate

func (rs *Rent591HomeSelect) Aggregate(fns ...AggregateFunc) *Rent591HomeSelect

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeSelect) Bool

func (s *Rent591HomeSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) BoolX

func (s *Rent591HomeSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeSelect) Bools

func (s *Rent591HomeSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) BoolsX

func (s *Rent591HomeSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeSelect) Float64

func (s *Rent591HomeSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) Float64X

func (s *Rent591HomeSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeSelect) Float64s

func (s *Rent591HomeSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) Float64sX

func (s *Rent591HomeSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeSelect) Int

func (s *Rent591HomeSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) IntX

func (s *Rent591HomeSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeSelect) Ints

func (s *Rent591HomeSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) IntsX

func (s *Rent591HomeSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeSelect) Scan

func (rs *Rent591HomeSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeSelect) ScanX

func (s *Rent591HomeSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeSelect) String

func (s *Rent591HomeSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) StringX

func (s *Rent591HomeSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeSelect) Strings

func (s *Rent591HomeSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSelect) StringsX

func (s *Rent591HomeSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeSurrounding

type Rent591HomeSurrounding struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Type holds the value of the "type" field.
	Type string `json:"type,omitempty"`
	// Desc holds the value of the "desc" field.
	Desc string `json:"desc,omitempty"`
	// Distance holds the value of the "distance" field.
	Distance string `json:"distance,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeSurroundingQuery when eager-loading is set.
	Edges Rent591HomeSurroundingEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeSurrounding is the model entity for the Rent591HomeSurrounding schema.

func (*Rent591HomeSurrounding) QueryRent591homes

func (rs *Rent591HomeSurrounding) QueryRent591homes() *Rent591HomeQuery

QueryRent591homes queries the "rent591homes" edge of the Rent591HomeSurrounding entity.

func (*Rent591HomeSurrounding) String

func (rs *Rent591HomeSurrounding) String() string

String implements the fmt.Stringer.

func (*Rent591HomeSurrounding) Unwrap

Unwrap unwraps the Rent591HomeSurrounding 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 (*Rent591HomeSurrounding) Update

Update returns a builder for updating this Rent591HomeSurrounding. Note that you need to call Rent591HomeSurrounding.Unwrap() before calling this method if this Rent591HomeSurrounding was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeSurrounding) Value

func (rs *Rent591HomeSurrounding) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeSurrounding. This includes values selected through modifiers, order, etc.

type Rent591HomeSurroundingClient

type Rent591HomeSurroundingClient struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingClient is a client for the Rent591HomeSurrounding schema.

func NewRent591HomeSurroundingClient

func NewRent591HomeSurroundingClient(c config) *Rent591HomeSurroundingClient

NewRent591HomeSurroundingClient returns a client for the Rent591HomeSurrounding from the given config.

func (*Rent591HomeSurroundingClient) Create

Create returns a builder for creating a Rent591HomeSurrounding entity.

func (*Rent591HomeSurroundingClient) CreateBulk

CreateBulk returns a builder for creating a bulk of Rent591HomeSurrounding entities.

func (*Rent591HomeSurroundingClient) Delete

Delete returns a delete builder for Rent591HomeSurrounding.

func (*Rent591HomeSurroundingClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeSurroundingClient) DeleteOneID

DeleteOneID returns a builder for deleting the given entity by its id.

func (*Rent591HomeSurroundingClient) Get

Get returns a Rent591HomeSurrounding entity by its id.

func (*Rent591HomeSurroundingClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeSurroundingClient) Hooks

func (c *Rent591HomeSurroundingClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeSurroundingClient) Intercept

func (c *Rent591HomeSurroundingClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591homesurrounding.Intercept(f(g(h())))`.

func (*Rent591HomeSurroundingClient) Interceptors

func (c *Rent591HomeSurroundingClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeSurroundingClient) Query

Query returns a query builder for Rent591HomeSurrounding.

func (*Rent591HomeSurroundingClient) QueryRent591homes

QueryRent591homes queries the rent591homes edge of a Rent591HomeSurrounding.

func (*Rent591HomeSurroundingClient) Update

Update returns an update builder for Rent591HomeSurrounding.

func (*Rent591HomeSurroundingClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeSurroundingClient) UpdateOneID

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeSurroundingClient) Use

func (c *Rent591HomeSurroundingClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591homesurrounding.Hooks(f(g(h())))`.

type Rent591HomeSurroundingCreate

type Rent591HomeSurroundingCreate struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingCreate is the builder for creating a Rent591HomeSurrounding entity.

func (*Rent591HomeSurroundingCreate) Exec

Exec executes the query.

func (*Rent591HomeSurroundingCreate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingCreate) Mutation

Mutation returns the Rent591HomeSurroundingMutation object of the builder.

func (*Rent591HomeSurroundingCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeSurrounding.Create().
	SetType(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.Rent591HomeSurroundingUpsert) {
		SetType(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeSurroundingCreate) OnConflictColumns

func (rsc *Rent591HomeSurroundingCreate) OnConflictColumns(columns ...string) *Rent591HomeSurroundingUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeSurrounding.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeSurroundingCreate) Save

Save creates the Rent591HomeSurrounding in the database.

func (*Rent591HomeSurroundingCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeSurroundingCreate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingCreate) SetDesc

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingCreate) SetDistance

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingCreate) SetNillableCreatedAt

func (rsc *Rent591HomeSurroundingCreate) SetNillableCreatedAt(t *time.Time) *Rent591HomeSurroundingCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeSurroundingCreate) SetNillableRent591homesID

func (rsc *Rent591HomeSurroundingCreate) SetNillableRent591homesID(id *int) *Rent591HomeSurroundingCreate

SetNillableRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID if the given value is not nil.

func (*Rent591HomeSurroundingCreate) SetRent591homes

SetRent591homes sets the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeSurroundingCreate) SetRent591homesID

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID.

func (*Rent591HomeSurroundingCreate) SetType

SetType sets the "type" field.

type Rent591HomeSurroundingCreateBulk

type Rent591HomeSurroundingCreateBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingCreateBulk is the builder for creating many Rent591HomeSurrounding entities in bulk.

func (*Rent591HomeSurroundingCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeSurroundingCreateBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeSurrounding.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.Rent591HomeSurroundingUpsert) {
		SetType(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeSurroundingCreateBulk) OnConflictColumns

func (rscb *Rent591HomeSurroundingCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeSurroundingUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeSurrounding.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeSurroundingCreateBulk) Save

Save creates the Rent591HomeSurrounding entities in the database.

func (*Rent591HomeSurroundingCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeSurroundingDelete

type Rent591HomeSurroundingDelete struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingDelete is the builder for deleting a Rent591HomeSurrounding entity.

func (*Rent591HomeSurroundingDelete) Exec

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeSurroundingDelete) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingDelete) Where

Where appends a list predicates to the Rent591HomeSurroundingDelete builder.

type Rent591HomeSurroundingDeleteOne

type Rent591HomeSurroundingDeleteOne struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingDeleteOne is the builder for deleting a single Rent591HomeSurrounding entity.

func (*Rent591HomeSurroundingDeleteOne) Exec

Exec executes the deletion query.

func (*Rent591HomeSurroundingDeleteOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingDeleteOne) Where

Where appends a list predicates to the Rent591HomeSurroundingDelete builder.

type Rent591HomeSurroundingEdges

type Rent591HomeSurroundingEdges struct {
	// Rent591homes holds the value of the rent591homes edge.
	Rent591homes *Rent591Home `json:"rent591homes,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeSurroundingEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeSurroundingEdges) Rent591homesOrErr

func (e Rent591HomeSurroundingEdges) Rent591homesOrErr() (*Rent591Home, error)

Rent591homesOrErr returns the Rent591homes value or an error if the edge was not loaded in eager-loading, or loaded but was not found.

type Rent591HomeSurroundingGroupBy

type Rent591HomeSurroundingGroupBy struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingGroupBy is the group-by builder for Rent591HomeSurrounding entities.

func (*Rent591HomeSurroundingGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*Rent591HomeSurroundingGroupBy) Bool

func (s *Rent591HomeSurroundingGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) BoolX

func (s *Rent591HomeSurroundingGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Bools

func (s *Rent591HomeSurroundingGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) BoolsX

func (s *Rent591HomeSurroundingGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Float64

func (s *Rent591HomeSurroundingGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) Float64X

func (s *Rent591HomeSurroundingGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Float64s

func (s *Rent591HomeSurroundingGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) Float64sX

func (s *Rent591HomeSurroundingGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Int

func (s *Rent591HomeSurroundingGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) IntX

func (s *Rent591HomeSurroundingGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Ints

func (s *Rent591HomeSurroundingGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) IntsX

func (s *Rent591HomeSurroundingGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Scan

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeSurroundingGroupBy) ScanX

func (s *Rent591HomeSurroundingGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) String

func (s *Rent591HomeSurroundingGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) StringX

func (s *Rent591HomeSurroundingGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeSurroundingGroupBy) Strings

func (s *Rent591HomeSurroundingGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingGroupBy) StringsX

func (s *Rent591HomeSurroundingGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeSurroundingMutation

type Rent591HomeSurroundingMutation struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingMutation represents an operation that mutates the Rent591HomeSurrounding nodes in the graph.

func (*Rent591HomeSurroundingMutation) AddField

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) AddedEdges

func (m *Rent591HomeSurroundingMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeSurroundingMutation) AddedField

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) AddedFields

func (m *Rent591HomeSurroundingMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeSurroundingMutation) AddedIDs

func (m *Rent591HomeSurroundingMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeSurroundingMutation) ClearEdge

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) ClearField

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) ClearRent591homes

func (m *Rent591HomeSurroundingMutation) ClearRent591homes()

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeSurroundingMutation) ClearedEdges

func (m *Rent591HomeSurroundingMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeSurroundingMutation) ClearedFields

func (m *Rent591HomeSurroundingMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) CreatedAt

func (m *Rent591HomeSurroundingMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*Rent591HomeSurroundingMutation) Desc

func (m *Rent591HomeSurroundingMutation) Desc() (r string, exists bool)

Desc returns the value of the "desc" field in the mutation.

func (*Rent591HomeSurroundingMutation) Distance

func (m *Rent591HomeSurroundingMutation) Distance() (r string, exists bool)

Distance returns the value of the "distance" field in the mutation.

func (*Rent591HomeSurroundingMutation) EdgeCleared

func (m *Rent591HomeSurroundingMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeSurroundingMutation) Field

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 (*Rent591HomeSurroundingMutation) FieldCleared

func (m *Rent591HomeSurroundingMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeSurroundingMutation) Fields

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) GetType

func (m *Rent591HomeSurroundingMutation) GetType() (r string, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*Rent591HomeSurroundingMutation) ID

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) OldCreatedAt

func (m *Rent591HomeSurroundingMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Rent591HomeSurrounding entity. If the Rent591HomeSurrounding 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 (*Rent591HomeSurroundingMutation) OldDesc

func (m *Rent591HomeSurroundingMutation) OldDesc(ctx context.Context) (v string, err error)

OldDesc returns the old "desc" field's value of the Rent591HomeSurrounding entity. If the Rent591HomeSurrounding 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 (*Rent591HomeSurroundingMutation) OldDistance

func (m *Rent591HomeSurroundingMutation) OldDistance(ctx context.Context) (v string, err error)

OldDistance returns the old "distance" field's value of the Rent591HomeSurrounding entity. If the Rent591HomeSurrounding 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 (*Rent591HomeSurroundingMutation) OldField

OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.

func (*Rent591HomeSurroundingMutation) OldType

func (m *Rent591HomeSurroundingMutation) OldType(ctx context.Context) (v string, err error)

OldType returns the old "type" field's value of the Rent591HomeSurrounding entity. If the Rent591HomeSurrounding 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 (*Rent591HomeSurroundingMutation) Op

Op returns the operation name.

func (*Rent591HomeSurroundingMutation) RemovedEdges

func (m *Rent591HomeSurroundingMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeSurroundingMutation) RemovedIDs

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) Rent591homesCleared

func (m *Rent591HomeSurroundingMutation) Rent591homesCleared() bool

Rent591homesCleared reports if the "rent591homes" edge to the Rent591Home entity was cleared.

func (*Rent591HomeSurroundingMutation) Rent591homesID

func (m *Rent591HomeSurroundingMutation) Rent591homesID() (id int, exists bool)

Rent591homesID returns the "rent591homes" edge ID in the mutation.

func (*Rent591HomeSurroundingMutation) Rent591homesIDs

func (m *Rent591HomeSurroundingMutation) Rent591homesIDs() (ids []int)

Rent591homesIDs returns the "rent591homes" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use Rent591homesID instead. It exists only for internal usage by the builders.

func (*Rent591HomeSurroundingMutation) ResetCreatedAt

func (m *Rent591HomeSurroundingMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*Rent591HomeSurroundingMutation) ResetDesc

func (m *Rent591HomeSurroundingMutation) ResetDesc()

ResetDesc resets all changes to the "desc" field.

func (*Rent591HomeSurroundingMutation) ResetDistance

func (m *Rent591HomeSurroundingMutation) ResetDistance()

ResetDistance resets all changes to the "distance" field.

func (*Rent591HomeSurroundingMutation) ResetEdge

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) ResetField

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) ResetRent591homes

func (m *Rent591HomeSurroundingMutation) ResetRent591homes()

ResetRent591homes resets all changes to the "rent591homes" edge.

func (*Rent591HomeSurroundingMutation) ResetType

func (m *Rent591HomeSurroundingMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*Rent591HomeSurroundingMutation) SetCreatedAt

func (m *Rent591HomeSurroundingMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingMutation) SetDesc

func (m *Rent591HomeSurroundingMutation) SetDesc(s string)

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingMutation) SetDistance

func (m *Rent591HomeSurroundingMutation) SetDistance(s string)

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingMutation) SetField

func (m *Rent591HomeSurroundingMutation) 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 (*Rent591HomeSurroundingMutation) SetOp

func (m *Rent591HomeSurroundingMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*Rent591HomeSurroundingMutation) SetRent591homesID

func (m *Rent591HomeSurroundingMutation) SetRent591homesID(id int)

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by id.

func (*Rent591HomeSurroundingMutation) SetType

func (m *Rent591HomeSurroundingMutation) SetType(s string)

SetType sets the "type" field.

func (Rent591HomeSurroundingMutation) Tx

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeSurroundingMutation) Type

Type returns the node type of this mutation (Rent591HomeSurrounding).

func (*Rent591HomeSurroundingMutation) Where

Where appends a list predicates to the Rent591HomeSurroundingMutation builder.

func (*Rent591HomeSurroundingMutation) WhereP

func (m *Rent591HomeSurroundingMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeSurroundingMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeSurroundingQuery

type Rent591HomeSurroundingQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingQuery is the builder for querying Rent591HomeSurrounding entities.

func (*Rent591HomeSurroundingQuery) Aggregate

Aggregate returns a Rent591HomeSurroundingSelect configured with the given aggregations.

func (*Rent591HomeSurroundingQuery) All

All executes the query and returns a list of Rent591HomeSurroundings.

func (*Rent591HomeSurroundingQuery) AllX

AllX is like All, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) Clone

Clone returns a duplicate of the Rent591HomeSurroundingQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeSurroundingQuery) Count

Count returns the count of the given query.

func (*Rent591HomeSurroundingQuery) CountX

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) Exist

Exist returns true if the query has elements in the graph.

func (*Rent591HomeSurroundingQuery) ExistX

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) First

First returns the first Rent591HomeSurrounding entity from the query. Returns a *NotFoundError when no Rent591HomeSurrounding was found.

func (*Rent591HomeSurroundingQuery) FirstID

func (rsq *Rent591HomeSurroundingQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeSurrounding ID from the query. Returns a *NotFoundError when no Rent591HomeSurrounding ID was found.

func (*Rent591HomeSurroundingQuery) FirstIDX

func (rsq *Rent591HomeSurroundingQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) GroupBy

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 {
	Type string `json:"type,omitempty"`
	Count int `json:"count,omitempty"`
}

client.Rent591HomeSurrounding.Query().
	GroupBy(rent591homesurrounding.FieldType).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeSurroundingQuery) IDs

func (rsq *Rent591HomeSurroundingQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeSurrounding IDs.

func (*Rent591HomeSurroundingQuery) IDsX

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) Limit

Limit the number of records to be returned by this query.

func (*Rent591HomeSurroundingQuery) Offset

Offset to start from.

func (*Rent591HomeSurroundingQuery) Only

Only returns a single Rent591HomeSurrounding entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeSurrounding entity is found. Returns a *NotFoundError when no Rent591HomeSurrounding entities are found.

func (*Rent591HomeSurroundingQuery) OnlyID

func (rsq *Rent591HomeSurroundingQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeSurrounding ID in the query. Returns a *NotSingularError when more than one Rent591HomeSurrounding ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeSurroundingQuery) OnlyIDX

func (rsq *Rent591HomeSurroundingQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeSurroundingQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeSurroundingQuery) QueryRent591homes

func (rsq *Rent591HomeSurroundingQuery) QueryRent591homes() *Rent591HomeQuery

QueryRent591homes chains the current query on the "rent591homes" edge.

func (*Rent591HomeSurroundingQuery) Select

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 {
	Type string `json:"type,omitempty"`
}

client.Rent591HomeSurrounding.Query().
	Select(rent591homesurrounding.FieldType).
	Scan(ctx, &v)

func (*Rent591HomeSurroundingQuery) Unique

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 (*Rent591HomeSurroundingQuery) Where

Where adds a new predicate for the Rent591HomeSurroundingQuery builder.

func (*Rent591HomeSurroundingQuery) WithRent591homes

func (rsq *Rent591HomeSurroundingQuery) WithRent591homes(opts ...func(*Rent591HomeQuery)) *Rent591HomeSurroundingQuery

WithRent591homes tells the query-builder to eager-load the nodes that are connected to the "rent591homes" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeSurroundingSelect

type Rent591HomeSurroundingSelect struct {
	*Rent591HomeSurroundingQuery
	// contains filtered or unexported fields
}

Rent591HomeSurroundingSelect is the builder for selecting fields of Rent591HomeSurrounding entities.

func (*Rent591HomeSurroundingSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeSurroundingSelect) Bool

func (s *Rent591HomeSurroundingSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) BoolX

func (s *Rent591HomeSurroundingSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Bools

func (s *Rent591HomeSurroundingSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) BoolsX

func (s *Rent591HomeSurroundingSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Float64

func (s *Rent591HomeSurroundingSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) Float64X

func (s *Rent591HomeSurroundingSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Float64s

func (s *Rent591HomeSurroundingSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) Float64sX

func (s *Rent591HomeSurroundingSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Int

func (s *Rent591HomeSurroundingSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) IntX

func (s *Rent591HomeSurroundingSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Ints

func (s *Rent591HomeSurroundingSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) IntsX

func (s *Rent591HomeSurroundingSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Scan

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeSurroundingSelect) ScanX

func (s *Rent591HomeSurroundingSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) String

func (s *Rent591HomeSurroundingSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) StringX

func (s *Rent591HomeSurroundingSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeSurroundingSelect) Strings

func (s *Rent591HomeSurroundingSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeSurroundingSelect) StringsX

func (s *Rent591HomeSurroundingSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeSurroundingUpdate

type Rent591HomeSurroundingUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingUpdate is the builder for updating Rent591HomeSurrounding entities.

func (*Rent591HomeSurroundingUpdate) ClearRent591homes

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeSurroundingUpdate) Exec

Exec executes the query.

func (*Rent591HomeSurroundingUpdate) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingUpdate) Mutation

Mutation returns the Rent591HomeSurroundingMutation object of the builder.

func (*Rent591HomeSurroundingUpdate) Save

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeSurroundingUpdate) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeSurroundingUpdate) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingUpdate) SetDesc

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingUpdate) SetDistance

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingUpdate) SetNillableCreatedAt

func (rsu *Rent591HomeSurroundingUpdate) SetNillableCreatedAt(t *time.Time) *Rent591HomeSurroundingUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeSurroundingUpdate) SetNillableRent591homesID

func (rsu *Rent591HomeSurroundingUpdate) SetNillableRent591homesID(id *int) *Rent591HomeSurroundingUpdate

SetNillableRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID if the given value is not nil.

func (*Rent591HomeSurroundingUpdate) SetRent591homes

SetRent591homes sets the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeSurroundingUpdate) SetRent591homesID

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID.

func (*Rent591HomeSurroundingUpdate) SetType

SetType sets the "type" field.

func (*Rent591HomeSurroundingUpdate) Where

Where appends a list predicates to the Rent591HomeSurroundingUpdate builder.

type Rent591HomeSurroundingUpdateOne

type Rent591HomeSurroundingUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingUpdateOne is the builder for updating a single Rent591HomeSurrounding entity.

func (*Rent591HomeSurroundingUpdateOne) ClearRent591homes

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeSurroundingUpdateOne) Exec

Exec executes the query on the entity.

func (*Rent591HomeSurroundingUpdateOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingUpdateOne) Mutation

Mutation returns the Rent591HomeSurroundingMutation object of the builder.

func (*Rent591HomeSurroundingUpdateOne) Save

Save executes the query and returns the updated Rent591HomeSurrounding entity.

func (*Rent591HomeSurroundingUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeSurroundingUpdateOne) Select

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeSurroundingUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingUpdateOne) SetDesc

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingUpdateOne) SetDistance

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingUpdateOne) SetNillableCreatedAt

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeSurroundingUpdateOne) SetNillableRent591homesID

func (rsuo *Rent591HomeSurroundingUpdateOne) SetNillableRent591homesID(id *int) *Rent591HomeSurroundingUpdateOne

SetNillableRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID if the given value is not nil.

func (*Rent591HomeSurroundingUpdateOne) SetRent591homes

SetRent591homes sets the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeSurroundingUpdateOne) SetRent591homesID

SetRent591homesID sets the "rent591homes" edge to the Rent591Home entity by ID.

func (*Rent591HomeSurroundingUpdateOne) SetType

SetType sets the "type" field.

func (*Rent591HomeSurroundingUpdateOne) Where

Where appends a list predicates to the Rent591HomeSurroundingUpdate builder.

type Rent591HomeSurroundingUpsert

type Rent591HomeSurroundingUpsert struct {
	*sql.UpdateSet
}

Rent591HomeSurroundingUpsert is the "OnConflict" setter.

func (*Rent591HomeSurroundingUpsert) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingUpsert) SetDesc

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingUpsert) SetDistance

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingUpsert) SetType

SetType sets the "type" field.

func (*Rent591HomeSurroundingUpsert) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsert) UpdateDesc

UpdateDesc sets the "desc" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsert) UpdateDistance

UpdateDistance sets the "distance" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsert) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

type Rent591HomeSurroundingUpsertBulk

type Rent591HomeSurroundingUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeSurrounding nodes.

func (*Rent591HomeSurroundingUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeSurroundingUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeSurroundingUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeSurrounding.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeSurroundingUpsertBulk) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingUpsertBulk) SetDesc

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingUpsertBulk) SetDistance

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingUpsertBulk) SetType

SetType sets the "type" field.

func (*Rent591HomeSurroundingUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeSurroundingCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeSurroundingUpsertBulk) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsertBulk) UpdateDesc

UpdateDesc sets the "desc" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsertBulk) UpdateDistance

UpdateDistance sets the "distance" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsertBulk) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeSurrounding.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeSurroundingUpsertBulk) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

type Rent591HomeSurroundingUpsertOne

type Rent591HomeSurroundingUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeSurroundingUpsertOne is the builder for "upsert"-ing

one Rent591HomeSurrounding node.

func (*Rent591HomeSurroundingUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeSurroundingUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeSurroundingUpsertOne) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeSurroundingUpsertOne) ID

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeSurroundingUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeSurroundingUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeSurrounding.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeSurroundingUpsertOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeSurroundingUpsertOne) SetDesc

SetDesc sets the "desc" field.

func (*Rent591HomeSurroundingUpsertOne) SetDistance

SetDistance sets the "distance" field.

func (*Rent591HomeSurroundingUpsertOne) SetType

SetType sets the "type" field.

func (*Rent591HomeSurroundingUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeSurroundingCreate.OnConflict documentation for more info.

func (*Rent591HomeSurroundingUpsertOne) UpdateCreatedAt

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsertOne) UpdateDesc

UpdateDesc sets the "desc" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsertOne) UpdateDistance

UpdateDistance sets the "distance" field to the value that was provided on create.

func (*Rent591HomeSurroundingUpsertOne) UpdateNewValues

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeSurrounding.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeSurroundingUpsertOne) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

type Rent591HomeSurroundings

type Rent591HomeSurroundings []*Rent591HomeSurrounding

Rent591HomeSurroundings is a parsable slice of Rent591HomeSurrounding.

type Rent591HomeTag

type Rent591HomeTag struct {

	// ID of the ent.
	ID int `json:"id,omitempty"`
	// Name holds the value of the "name" field.
	Name string `json:"name,omitempty"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at,omitempty"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the Rent591HomeTagQuery when eager-loading is set.
	Edges Rent591HomeTagEdges `json:"edges"`
	// contains filtered or unexported fields
}

Rent591HomeTag is the model entity for the Rent591HomeTag schema.

func (*Rent591HomeTag) QueryRent591homes

func (rt *Rent591HomeTag) QueryRent591homes() *Rent591HomeQuery

QueryRent591homes queries the "rent591homes" edge of the Rent591HomeTag entity.

func (*Rent591HomeTag) String

func (rt *Rent591HomeTag) String() string

String implements the fmt.Stringer.

func (*Rent591HomeTag) Unwrap

func (rt *Rent591HomeTag) Unwrap() *Rent591HomeTag

Unwrap unwraps the Rent591HomeTag 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 (*Rent591HomeTag) Update

Update returns a builder for updating this Rent591HomeTag. Note that you need to call Rent591HomeTag.Unwrap() before calling this method if this Rent591HomeTag was returned from a transaction, and the transaction was committed or rolled back.

func (*Rent591HomeTag) Value

func (rt *Rent591HomeTag) Value(name string) (ent.Value, error)

Value returns the ent.Value that was dynamically selected and assigned to the Rent591HomeTag. This includes values selected through modifiers, order, etc.

type Rent591HomeTagClient

type Rent591HomeTagClient struct {
	// contains filtered or unexported fields
}

Rent591HomeTagClient is a client for the Rent591HomeTag schema.

func NewRent591HomeTagClient

func NewRent591HomeTagClient(c config) *Rent591HomeTagClient

NewRent591HomeTagClient returns a client for the Rent591HomeTag from the given config.

func (*Rent591HomeTagClient) Create

Create returns a builder for creating a Rent591HomeTag entity.

func (*Rent591HomeTagClient) CreateBulk

CreateBulk returns a builder for creating a bulk of Rent591HomeTag entities.

func (*Rent591HomeTagClient) Delete

Delete returns a delete builder for Rent591HomeTag.

func (*Rent591HomeTagClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*Rent591HomeTagClient) DeleteOneID

func (c *Rent591HomeTagClient) DeleteOneID(id int) *Rent591HomeTagDeleteOne

DeleteOneID returns a builder for deleting the given entity by its id.

func (*Rent591HomeTagClient) Get

Get returns a Rent591HomeTag entity by its id.

func (*Rent591HomeTagClient) GetX

GetX is like Get, but panics if an error occurs.

func (*Rent591HomeTagClient) Hooks

func (c *Rent591HomeTagClient) Hooks() []Hook

Hooks returns the client hooks.

func (*Rent591HomeTagClient) Intercept

func (c *Rent591HomeTagClient) Intercept(interceptors ...Interceptor)

Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `rent591hometag.Intercept(f(g(h())))`.

func (*Rent591HomeTagClient) Interceptors

func (c *Rent591HomeTagClient) Interceptors() []Interceptor

Interceptors returns the client interceptors.

func (*Rent591HomeTagClient) Query

Query returns a query builder for Rent591HomeTag.

func (*Rent591HomeTagClient) QueryRent591homes

func (c *Rent591HomeTagClient) QueryRent591homes(rt *Rent591HomeTag) *Rent591HomeQuery

QueryRent591homes queries the rent591homes edge of a Rent591HomeTag.

func (*Rent591HomeTagClient) Update

Update returns an update builder for Rent591HomeTag.

func (*Rent591HomeTagClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*Rent591HomeTagClient) UpdateOneID

func (c *Rent591HomeTagClient) UpdateOneID(id int) *Rent591HomeTagUpdateOne

UpdateOneID returns an update builder for the given id.

func (*Rent591HomeTagClient) Use

func (c *Rent591HomeTagClient) Use(hooks ...Hook)

Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `rent591hometag.Hooks(f(g(h())))`.

type Rent591HomeTagCreate

type Rent591HomeTagCreate struct {
	// contains filtered or unexported fields
}

Rent591HomeTagCreate is the builder for creating a Rent591HomeTag entity.

func (*Rent591HomeTagCreate) AddRent591homeIDs

func (rtc *Rent591HomeTagCreate) AddRent591homeIDs(ids ...int) *Rent591HomeTagCreate

AddRent591homeIDs adds the "rent591homes" edge to the Rent591Home entity by IDs.

func (*Rent591HomeTagCreate) AddRent591homes

func (rtc *Rent591HomeTagCreate) AddRent591homes(r ...*Rent591Home) *Rent591HomeTagCreate

AddRent591homes adds the "rent591homes" edges to the Rent591Home entity.

func (*Rent591HomeTagCreate) Exec

func (rtc *Rent591HomeTagCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*Rent591HomeTagCreate) ExecX

func (rtc *Rent591HomeTagCreate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagCreate) Mutation

Mutation returns the Rent591HomeTagMutation object of the builder.

func (*Rent591HomeTagCreate) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeTag.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.Rent591HomeTagUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeTagCreate) OnConflictColumns

func (rtc *Rent591HomeTagCreate) OnConflictColumns(columns ...string) *Rent591HomeTagUpsertOne

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeTag.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeTagCreate) Save

Save creates the Rent591HomeTag in the database.

func (*Rent591HomeTagCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*Rent591HomeTagCreate) SetCreatedAt

func (rtc *Rent591HomeTagCreate) SetCreatedAt(t time.Time) *Rent591HomeTagCreate

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagCreate) SetName

SetName sets the "name" field.

func (*Rent591HomeTagCreate) SetNillableCreatedAt

func (rtc *Rent591HomeTagCreate) SetNillableCreatedAt(t *time.Time) *Rent591HomeTagCreate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

type Rent591HomeTagCreateBulk

type Rent591HomeTagCreateBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeTagCreateBulk is the builder for creating many Rent591HomeTag entities in bulk.

func (*Rent591HomeTagCreateBulk) Exec

Exec executes the query.

func (*Rent591HomeTagCreateBulk) ExecX

func (rtcb *Rent591HomeTagCreateBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagCreateBulk) OnConflict

OnConflict allows configuring the `ON CONFLICT` / `ON DUPLICATE KEY` clause of the `INSERT` statement. For example:

client.Rent591HomeTag.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.Rent591HomeTagUpsert) {
		SetName(v+v).
	}).
	Exec(ctx)

func (*Rent591HomeTagCreateBulk) OnConflictColumns

func (rtcb *Rent591HomeTagCreateBulk) OnConflictColumns(columns ...string) *Rent591HomeTagUpsertBulk

OnConflictColumns calls `OnConflict` and configures the columns as conflict target. Using this option is equivalent to using:

client.Rent591HomeTag.Create().
	OnConflict(sql.ConflictColumns(columns...)).
	Exec(ctx)

func (*Rent591HomeTagCreateBulk) Save

Save creates the Rent591HomeTag entities in the database.

func (*Rent591HomeTagCreateBulk) SaveX

SaveX is like Save, but panics if an error occurs.

type Rent591HomeTagDelete

type Rent591HomeTagDelete struct {
	// contains filtered or unexported fields
}

Rent591HomeTagDelete is the builder for deleting a Rent591HomeTag entity.

func (*Rent591HomeTagDelete) Exec

func (rtd *Rent591HomeTagDelete) Exec(ctx context.Context) (int, error)

Exec executes the deletion query and returns how many vertices were deleted.

func (*Rent591HomeTagDelete) ExecX

func (rtd *Rent591HomeTagDelete) ExecX(ctx context.Context) int

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagDelete) Where

Where appends a list predicates to the Rent591HomeTagDelete builder.

type Rent591HomeTagDeleteOne

type Rent591HomeTagDeleteOne struct {
	// contains filtered or unexported fields
}

Rent591HomeTagDeleteOne is the builder for deleting a single Rent591HomeTag entity.

func (*Rent591HomeTagDeleteOne) Exec

func (rtdo *Rent591HomeTagDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*Rent591HomeTagDeleteOne) ExecX

func (rtdo *Rent591HomeTagDeleteOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagDeleteOne) Where

Where appends a list predicates to the Rent591HomeTagDelete builder.

type Rent591HomeTagEdges

type Rent591HomeTagEdges struct {
	// Rent591homes holds the value of the rent591homes edge.
	Rent591homes []*Rent591Home `json:"rent591homes,omitempty"`
	// contains filtered or unexported fields
}

Rent591HomeTagEdges holds the relations/edges for other nodes in the graph.

func (Rent591HomeTagEdges) Rent591homesOrErr

func (e Rent591HomeTagEdges) Rent591homesOrErr() ([]*Rent591Home, error)

Rent591homesOrErr returns the Rent591homes value or an error if the edge was not loaded in eager-loading.

type Rent591HomeTagGroupBy

type Rent591HomeTagGroupBy struct {
	// contains filtered or unexported fields
}

Rent591HomeTagGroupBy is the group-by builder for Rent591HomeTag entities.

func (*Rent591HomeTagGroupBy) Aggregate

Aggregate adds the given aggregation functions to the group-by query.

func (*Rent591HomeTagGroupBy) Bool

func (s *Rent591HomeTagGroupBy) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) BoolX

func (s *Rent591HomeTagGroupBy) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Bools

func (s *Rent591HomeTagGroupBy) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) BoolsX

func (s *Rent591HomeTagGroupBy) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Float64

func (s *Rent591HomeTagGroupBy) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) Float64X

func (s *Rent591HomeTagGroupBy) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Float64s

func (s *Rent591HomeTagGroupBy) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) Float64sX

func (s *Rent591HomeTagGroupBy) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Int

func (s *Rent591HomeTagGroupBy) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) IntX

func (s *Rent591HomeTagGroupBy) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Ints

func (s *Rent591HomeTagGroupBy) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) IntsX

func (s *Rent591HomeTagGroupBy) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Scan

func (rtgb *Rent591HomeTagGroupBy) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeTagGroupBy) ScanX

func (s *Rent591HomeTagGroupBy) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) String

func (s *Rent591HomeTagGroupBy) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) StringX

func (s *Rent591HomeTagGroupBy) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeTagGroupBy) Strings

func (s *Rent591HomeTagGroupBy) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagGroupBy) StringsX

func (s *Rent591HomeTagGroupBy) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeTagMutation

type Rent591HomeTagMutation struct {
	// contains filtered or unexported fields
}

Rent591HomeTagMutation represents an operation that mutates the Rent591HomeTag nodes in the graph.

func (*Rent591HomeTagMutation) AddField

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) AddRent591homeIDs

func (m *Rent591HomeTagMutation) AddRent591homeIDs(ids ...int)

AddRent591homeIDs adds the "rent591homes" edge to the Rent591Home entity by ids.

func (*Rent591HomeTagMutation) AddedEdges

func (m *Rent591HomeTagMutation) AddedEdges() []string

AddedEdges returns all edge names that were set/added in this mutation.

func (*Rent591HomeTagMutation) AddedField

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) AddedFields

func (m *Rent591HomeTagMutation) AddedFields() []string

AddedFields returns all numeric fields that were incremented/decremented during this mutation.

func (*Rent591HomeTagMutation) AddedIDs

func (m *Rent591HomeTagMutation) AddedIDs(name string) []ent.Value

AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.

func (*Rent591HomeTagMutation) ClearEdge

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) ClearField

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) ClearRent591homes

func (m *Rent591HomeTagMutation) ClearRent591homes()

ClearRent591homes clears the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeTagMutation) ClearedEdges

func (m *Rent591HomeTagMutation) ClearedEdges() []string

ClearedEdges returns all edge names that were cleared in this mutation.

func (*Rent591HomeTagMutation) ClearedFields

func (m *Rent591HomeTagMutation) ClearedFields() []string

ClearedFields returns all nullable fields that were cleared during this mutation.

func (Rent591HomeTagMutation) Client

func (m Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) CreatedAt

func (m *Rent591HomeTagMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*Rent591HomeTagMutation) EdgeCleared

func (m *Rent591HomeTagMutation) EdgeCleared(name string) bool

EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.

func (*Rent591HomeTagMutation) Field

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) FieldCleared

func (m *Rent591HomeTagMutation) FieldCleared(name string) bool

FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.

func (*Rent591HomeTagMutation) Fields

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) ID

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) IDs

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) Name

func (m *Rent591HomeTagMutation) Name() (r string, exists bool)

Name returns the value of the "name" field in the mutation.

func (*Rent591HomeTagMutation) OldCreatedAt

func (m *Rent591HomeTagMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Rent591HomeTag entity. If the Rent591HomeTag 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 (*Rent591HomeTagMutation) OldField

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) OldName

func (m *Rent591HomeTagMutation) OldName(ctx context.Context) (v string, err error)

OldName returns the old "name" field's value of the Rent591HomeTag entity. If the Rent591HomeTag 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 (*Rent591HomeTagMutation) Op

func (m *Rent591HomeTagMutation) Op() Op

Op returns the operation name.

func (*Rent591HomeTagMutation) RemoveRent591homeIDs

func (m *Rent591HomeTagMutation) RemoveRent591homeIDs(ids ...int)

RemoveRent591homeIDs removes the "rent591homes" edge to the Rent591Home entity by IDs.

func (*Rent591HomeTagMutation) RemovedEdges

func (m *Rent591HomeTagMutation) RemovedEdges() []string

RemovedEdges returns all edge names that were removed in this mutation.

func (*Rent591HomeTagMutation) RemovedIDs

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) RemovedRent591homesIDs

func (m *Rent591HomeTagMutation) RemovedRent591homesIDs() (ids []int)

RemovedRent591homes returns the removed IDs of the "rent591homes" edge to the Rent591Home entity.

func (*Rent591HomeTagMutation) Rent591homesCleared

func (m *Rent591HomeTagMutation) Rent591homesCleared() bool

Rent591homesCleared reports if the "rent591homes" edge to the Rent591Home entity was cleared.

func (*Rent591HomeTagMutation) Rent591homesIDs

func (m *Rent591HomeTagMutation) Rent591homesIDs() (ids []int)

Rent591homesIDs returns the "rent591homes" edge IDs in the mutation.

func (*Rent591HomeTagMutation) ResetCreatedAt

func (m *Rent591HomeTagMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*Rent591HomeTagMutation) ResetEdge

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) ResetField

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) ResetName

func (m *Rent591HomeTagMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*Rent591HomeTagMutation) ResetRent591homes

func (m *Rent591HomeTagMutation) ResetRent591homes()

ResetRent591homes resets all changes to the "rent591homes" edge.

func (*Rent591HomeTagMutation) SetCreatedAt

func (m *Rent591HomeTagMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagMutation) SetField

func (m *Rent591HomeTagMutation) 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 (*Rent591HomeTagMutation) SetName

func (m *Rent591HomeTagMutation) SetName(s string)

SetName sets the "name" field.

func (*Rent591HomeTagMutation) SetOp

func (m *Rent591HomeTagMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (Rent591HomeTagMutation) Tx

func (m Rent591HomeTagMutation) Tx() (*Tx, error)

Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.

func (*Rent591HomeTagMutation) Type

func (m *Rent591HomeTagMutation) Type() string

Type returns the node type of this mutation (Rent591HomeTag).

func (*Rent591HomeTagMutation) Where

Where appends a list predicates to the Rent591HomeTagMutation builder.

func (*Rent591HomeTagMutation) WhereP

func (m *Rent591HomeTagMutation) WhereP(ps ...func(*sql.Selector))

WhereP appends storage-level predicates to the Rent591HomeTagMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.

type Rent591HomeTagQuery

type Rent591HomeTagQuery struct {
	// contains filtered or unexported fields
}

Rent591HomeTagQuery is the builder for querying Rent591HomeTag entities.

func (*Rent591HomeTagQuery) Aggregate

func (rtq *Rent591HomeTagQuery) Aggregate(fns ...AggregateFunc) *Rent591HomeTagSelect

Aggregate returns a Rent591HomeTagSelect configured with the given aggregations.

func (*Rent591HomeTagQuery) All

All executes the query and returns a list of Rent591HomeTags.

func (*Rent591HomeTagQuery) AllX

AllX is like All, but panics if an error occurs.

func (*Rent591HomeTagQuery) Clone

Clone returns a duplicate of the Rent591HomeTagQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.

func (*Rent591HomeTagQuery) Count

func (rtq *Rent591HomeTagQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*Rent591HomeTagQuery) CountX

func (rtq *Rent591HomeTagQuery) CountX(ctx context.Context) int

CountX is like Count, but panics if an error occurs.

func (*Rent591HomeTagQuery) Exist

func (rtq *Rent591HomeTagQuery) Exist(ctx context.Context) (bool, error)

Exist returns true if the query has elements in the graph.

func (*Rent591HomeTagQuery) ExistX

func (rtq *Rent591HomeTagQuery) ExistX(ctx context.Context) bool

ExistX is like Exist, but panics if an error occurs.

func (*Rent591HomeTagQuery) First

First returns the first Rent591HomeTag entity from the query. Returns a *NotFoundError when no Rent591HomeTag was found.

func (*Rent591HomeTagQuery) FirstID

func (rtq *Rent591HomeTagQuery) FirstID(ctx context.Context) (id int, err error)

FirstID returns the first Rent591HomeTag ID from the query. Returns a *NotFoundError when no Rent591HomeTag ID was found.

func (*Rent591HomeTagQuery) FirstIDX

func (rtq *Rent591HomeTagQuery) FirstIDX(ctx context.Context) int

FirstIDX is like FirstID, but panics if an error occurs.

func (*Rent591HomeTagQuery) FirstX

FirstX is like First, but panics if an error occurs.

func (*Rent591HomeTagQuery) GroupBy

func (rtq *Rent591HomeTagQuery) GroupBy(field string, fields ...string) *Rent591HomeTagGroupBy

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.Rent591HomeTag.Query().
	GroupBy(rent591hometag.FieldName).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*Rent591HomeTagQuery) IDs

func (rtq *Rent591HomeTagQuery) IDs(ctx context.Context) (ids []int, err error)

IDs executes the query and returns a list of Rent591HomeTag IDs.

func (*Rent591HomeTagQuery) IDsX

func (rtq *Rent591HomeTagQuery) IDsX(ctx context.Context) []int

IDsX is like IDs, but panics if an error occurs.

func (*Rent591HomeTagQuery) Limit

func (rtq *Rent591HomeTagQuery) Limit(limit int) *Rent591HomeTagQuery

Limit the number of records to be returned by this query.

func (*Rent591HomeTagQuery) Offset

func (rtq *Rent591HomeTagQuery) Offset(offset int) *Rent591HomeTagQuery

Offset to start from.

func (*Rent591HomeTagQuery) Only

Only returns a single Rent591HomeTag entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Rent591HomeTag entity is found. Returns a *NotFoundError when no Rent591HomeTag entities are found.

func (*Rent591HomeTagQuery) OnlyID

func (rtq *Rent591HomeTagQuery) OnlyID(ctx context.Context) (id int, err error)

OnlyID is like Only, but returns the only Rent591HomeTag ID in the query. Returns a *NotSingularError when more than one Rent591HomeTag ID is found. Returns a *NotFoundError when no entities are found.

func (*Rent591HomeTagQuery) OnlyIDX

func (rtq *Rent591HomeTagQuery) OnlyIDX(ctx context.Context) int

OnlyIDX is like OnlyID, but panics if an error occurs.

func (*Rent591HomeTagQuery) OnlyX

OnlyX is like Only, but panics if an error occurs.

func (*Rent591HomeTagQuery) Order

Order specifies how the records should be ordered.

func (*Rent591HomeTagQuery) QueryRent591homes

func (rtq *Rent591HomeTagQuery) QueryRent591homes() *Rent591HomeQuery

QueryRent591homes chains the current query on the "rent591homes" edge.

func (*Rent591HomeTagQuery) Select

func (rtq *Rent591HomeTagQuery) Select(fields ...string) *Rent591HomeTagSelect

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.Rent591HomeTag.Query().
	Select(rent591hometag.FieldName).
	Scan(ctx, &v)

func (*Rent591HomeTagQuery) Unique

func (rtq *Rent591HomeTagQuery) Unique(unique bool) *Rent591HomeTagQuery

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 (*Rent591HomeTagQuery) Where

Where adds a new predicate for the Rent591HomeTagQuery builder.

func (*Rent591HomeTagQuery) WithRent591homes

func (rtq *Rent591HomeTagQuery) WithRent591homes(opts ...func(*Rent591HomeQuery)) *Rent591HomeTagQuery

WithRent591homes tells the query-builder to eager-load the nodes that are connected to the "rent591homes" edge. The optional arguments are used to configure the query builder of the edge.

type Rent591HomeTagSelect

type Rent591HomeTagSelect struct {
	*Rent591HomeTagQuery
	// contains filtered or unexported fields
}

Rent591HomeTagSelect is the builder for selecting fields of Rent591HomeTag entities.

func (*Rent591HomeTagSelect) Aggregate

Aggregate adds the given aggregation functions to the selector query.

func (*Rent591HomeTagSelect) Bool

func (s *Rent591HomeTagSelect) Bool(ctx context.Context) (_ bool, err error)

Bool returns a single bool from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) BoolX

func (s *Rent591HomeTagSelect) BoolX(ctx context.Context) bool

BoolX is like Bool, but panics if an error occurs.

func (*Rent591HomeTagSelect) Bools

func (s *Rent591HomeTagSelect) Bools(ctx context.Context) ([]bool, error)

Bools returns list of bools from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) BoolsX

func (s *Rent591HomeTagSelect) BoolsX(ctx context.Context) []bool

BoolsX is like Bools, but panics if an error occurs.

func (*Rent591HomeTagSelect) Float64

func (s *Rent591HomeTagSelect) Float64(ctx context.Context) (_ float64, err error)

Float64 returns a single float64 from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) Float64X

func (s *Rent591HomeTagSelect) Float64X(ctx context.Context) float64

Float64X is like Float64, but panics if an error occurs.

func (*Rent591HomeTagSelect) Float64s

func (s *Rent591HomeTagSelect) Float64s(ctx context.Context) ([]float64, error)

Float64s returns list of float64s from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) Float64sX

func (s *Rent591HomeTagSelect) Float64sX(ctx context.Context) []float64

Float64sX is like Float64s, but panics if an error occurs.

func (*Rent591HomeTagSelect) Int

func (s *Rent591HomeTagSelect) Int(ctx context.Context) (_ int, err error)

Int returns a single int from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) IntX

func (s *Rent591HomeTagSelect) IntX(ctx context.Context) int

IntX is like Int, but panics if an error occurs.

func (*Rent591HomeTagSelect) Ints

func (s *Rent591HomeTagSelect) Ints(ctx context.Context) ([]int, error)

Ints returns list of ints from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) IntsX

func (s *Rent591HomeTagSelect) IntsX(ctx context.Context) []int

IntsX is like Ints, but panics if an error occurs.

func (*Rent591HomeTagSelect) Scan

func (rts *Rent591HomeTagSelect) Scan(ctx context.Context, v any) error

Scan applies the selector query and scans the result into the given value.

func (*Rent591HomeTagSelect) ScanX

func (s *Rent591HomeTagSelect) ScanX(ctx context.Context, v any)

ScanX is like Scan, but panics if an error occurs.

func (*Rent591HomeTagSelect) String

func (s *Rent591HomeTagSelect) String(ctx context.Context) (_ string, err error)

String returns a single string from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) StringX

func (s *Rent591HomeTagSelect) StringX(ctx context.Context) string

StringX is like String, but panics if an error occurs.

func (*Rent591HomeTagSelect) Strings

func (s *Rent591HomeTagSelect) Strings(ctx context.Context) ([]string, error)

Strings returns list of strings from a selector. It is only allowed when selecting one field.

func (*Rent591HomeTagSelect) StringsX

func (s *Rent591HomeTagSelect) StringsX(ctx context.Context) []string

StringsX is like Strings, but panics if an error occurs.

type Rent591HomeTagUpdate

type Rent591HomeTagUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeTagUpdate is the builder for updating Rent591HomeTag entities.

func (*Rent591HomeTagUpdate) AddRent591homeIDs

func (rtu *Rent591HomeTagUpdate) AddRent591homeIDs(ids ...int) *Rent591HomeTagUpdate

AddRent591homeIDs adds the "rent591homes" edge to the Rent591Home entity by IDs.

func (*Rent591HomeTagUpdate) AddRent591homes

func (rtu *Rent591HomeTagUpdate) AddRent591homes(r ...*Rent591Home) *Rent591HomeTagUpdate

AddRent591homes adds the "rent591homes" edges to the Rent591Home entity.

func (*Rent591HomeTagUpdate) ClearRent591homes

func (rtu *Rent591HomeTagUpdate) ClearRent591homes() *Rent591HomeTagUpdate

ClearRent591homes clears all "rent591homes" edges to the Rent591Home entity.

func (*Rent591HomeTagUpdate) Exec

func (rtu *Rent591HomeTagUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*Rent591HomeTagUpdate) ExecX

func (rtu *Rent591HomeTagUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagUpdate) Mutation

Mutation returns the Rent591HomeTagMutation object of the builder.

func (*Rent591HomeTagUpdate) RemoveRent591homeIDs

func (rtu *Rent591HomeTagUpdate) RemoveRent591homeIDs(ids ...int) *Rent591HomeTagUpdate

RemoveRent591homeIDs removes the "rent591homes" edge to Rent591Home entities by IDs.

func (*Rent591HomeTagUpdate) RemoveRent591homes

func (rtu *Rent591HomeTagUpdate) RemoveRent591homes(r ...*Rent591Home) *Rent591HomeTagUpdate

RemoveRent591homes removes "rent591homes" edges to Rent591Home entities.

func (*Rent591HomeTagUpdate) Save

func (rtu *Rent591HomeTagUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeTagUpdate) SaveX

func (rtu *Rent591HomeTagUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeTagUpdate) SetCreatedAt

func (rtu *Rent591HomeTagUpdate) SetCreatedAt(t time.Time) *Rent591HomeTagUpdate

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagUpdate) SetName

SetName sets the "name" field.

func (*Rent591HomeTagUpdate) SetNillableCreatedAt

func (rtu *Rent591HomeTagUpdate) SetNillableCreatedAt(t *time.Time) *Rent591HomeTagUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeTagUpdate) Where

Where appends a list predicates to the Rent591HomeTagUpdate builder.

type Rent591HomeTagUpdateOne

type Rent591HomeTagUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeTagUpdateOne is the builder for updating a single Rent591HomeTag entity.

func (*Rent591HomeTagUpdateOne) AddRent591homeIDs

func (rtuo *Rent591HomeTagUpdateOne) AddRent591homeIDs(ids ...int) *Rent591HomeTagUpdateOne

AddRent591homeIDs adds the "rent591homes" edge to the Rent591Home entity by IDs.

func (*Rent591HomeTagUpdateOne) AddRent591homes

func (rtuo *Rent591HomeTagUpdateOne) AddRent591homes(r ...*Rent591Home) *Rent591HomeTagUpdateOne

AddRent591homes adds the "rent591homes" edges to the Rent591Home entity.

func (*Rent591HomeTagUpdateOne) ClearRent591homes

func (rtuo *Rent591HomeTagUpdateOne) ClearRent591homes() *Rent591HomeTagUpdateOne

ClearRent591homes clears all "rent591homes" edges to the Rent591Home entity.

func (*Rent591HomeTagUpdateOne) Exec

func (rtuo *Rent591HomeTagUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*Rent591HomeTagUpdateOne) ExecX

func (rtuo *Rent591HomeTagUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagUpdateOne) Mutation

Mutation returns the Rent591HomeTagMutation object of the builder.

func (*Rent591HomeTagUpdateOne) RemoveRent591homeIDs

func (rtuo *Rent591HomeTagUpdateOne) RemoveRent591homeIDs(ids ...int) *Rent591HomeTagUpdateOne

RemoveRent591homeIDs removes the "rent591homes" edge to Rent591Home entities by IDs.

func (*Rent591HomeTagUpdateOne) RemoveRent591homes

func (rtuo *Rent591HomeTagUpdateOne) RemoveRent591homes(r ...*Rent591Home) *Rent591HomeTagUpdateOne

RemoveRent591homes removes "rent591homes" edges to Rent591Home entities.

func (*Rent591HomeTagUpdateOne) Save

Save executes the query and returns the updated Rent591HomeTag entity.

func (*Rent591HomeTagUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeTagUpdateOne) Select

func (rtuo *Rent591HomeTagUpdateOne) Select(field string, fields ...string) *Rent591HomeTagUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeTagUpdateOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagUpdateOne) SetName

SetName sets the "name" field.

func (*Rent591HomeTagUpdateOne) SetNillableCreatedAt

func (rtuo *Rent591HomeTagUpdateOne) SetNillableCreatedAt(t *time.Time) *Rent591HomeTagUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeTagUpdateOne) Where

Where appends a list predicates to the Rent591HomeTagUpdate builder.

type Rent591HomeTagUpsert

type Rent591HomeTagUpsert struct {
	*sql.UpdateSet
}

Rent591HomeTagUpsert is the "OnConflict" setter.

func (*Rent591HomeTagUpsert) SetCreatedAt

func (u *Rent591HomeTagUpsert) SetCreatedAt(v time.Time) *Rent591HomeTagUpsert

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagUpsert) SetName

SetName sets the "name" field.

func (*Rent591HomeTagUpsert) UpdateCreatedAt

func (u *Rent591HomeTagUpsert) UpdateCreatedAt() *Rent591HomeTagUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeTagUpsert) UpdateName

func (u *Rent591HomeTagUpsert) UpdateName() *Rent591HomeTagUpsert

UpdateName sets the "name" field to the value that was provided on create.

type Rent591HomeTagUpsertBulk

type Rent591HomeTagUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeTagUpsertBulk is the builder for "upsert"-ing a bulk of Rent591HomeTag nodes.

func (*Rent591HomeTagUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeTagUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeTagUpsertBulk) ExecX

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeTag.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeTagUpsertBulk) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagUpsertBulk) SetName

SetName sets the "name" field.

func (*Rent591HomeTagUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeTagCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeTagUpsertBulk) UpdateCreatedAt

func (u *Rent591HomeTagUpsertBulk) UpdateCreatedAt() *Rent591HomeTagUpsertBulk

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeTagUpsertBulk) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*Rent591HomeTagUpsertBulk) UpdateNewValues

func (u *Rent591HomeTagUpsertBulk) UpdateNewValues() *Rent591HomeTagUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeTag.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type Rent591HomeTagUpsertOne

type Rent591HomeTagUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeTagUpsertOne is the builder for "upsert"-ing

one Rent591HomeTag node.

func (*Rent591HomeTagUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeTagUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeTagUpsertOne) ExecX

func (u *Rent591HomeTagUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeTagUpsertOne) ID

func (u *Rent591HomeTagUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeTagUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeTagUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591HomeTag.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeTagUpsertOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeTagUpsertOne) SetName

SetName sets the "name" field.

func (*Rent591HomeTagUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeTagCreate.OnConflict documentation for more info.

func (*Rent591HomeTagUpsertOne) UpdateCreatedAt

func (u *Rent591HomeTagUpsertOne) UpdateCreatedAt() *Rent591HomeTagUpsertOne

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeTagUpsertOne) UpdateName

UpdateName sets the "name" field to the value that was provided on create.

func (*Rent591HomeTagUpsertOne) UpdateNewValues

func (u *Rent591HomeTagUpsertOne) UpdateNewValues() *Rent591HomeTagUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591HomeTag.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

type Rent591HomeTags

type Rent591HomeTags []*Rent591HomeTag

Rent591HomeTags is a parsable slice of Rent591HomeTag.

type Rent591HomeUpdate

type Rent591HomeUpdate struct {
	// contains filtered or unexported fields
}

Rent591HomeUpdate is the builder for updating Rent591Home entities.

func (*Rent591HomeUpdate) AddCasesID

func (ru *Rent591HomeUpdate) AddCasesID(i int) *Rent591HomeUpdate

AddCasesID adds i to the "cases_id" field.

func (*Rent591HomeUpdate) AddCid

func (ru *Rent591HomeUpdate) AddCid(i int) *Rent591HomeUpdate

AddCid adds i to the "cid" field.

func (*Rent591HomeUpdate) AddHurry

func (ru *Rent591HomeUpdate) AddHurry(i int) *Rent591HomeUpdate

AddHurry adds i to the "hurry" field.

func (*Rent591HomeUpdate) AddIsCombine

func (ru *Rent591HomeUpdate) AddIsCombine(i int) *Rent591HomeUpdate

AddIsCombine adds i to the "is_combine" field.

func (*Rent591HomeUpdate) AddIsSocial

func (ru *Rent591HomeUpdate) AddIsSocial(i int) *Rent591HomeUpdate

AddIsSocial adds i to the "is_social" field.

func (*Rent591HomeUpdate) AddIsVideo

func (ru *Rent591HomeUpdate) AddIsVideo(i int) *Rent591HomeUpdate

AddIsVideo adds i to the "is_video" field.

func (*Rent591HomeUpdate) AddIsVip

func (ru *Rent591HomeUpdate) AddIsVip(i int) *Rent591HomeUpdate

AddIsVip adds i to the "is_vip" field.

func (*Rent591HomeUpdate) AddPostID

func (ru *Rent591HomeUpdate) AddPostID(i int) *Rent591HomeUpdate

AddPostID adds i to the "post_id" field.

func (*Rent591HomeUpdate) AddPreferred

func (ru *Rent591HomeUpdate) AddPreferred(i int) *Rent591HomeUpdate

AddPreferred adds i to the "preferred" field.

func (*Rent591HomeUpdate) AddPrice

func (ru *Rent591HomeUpdate) AddPrice(i int) *Rent591HomeUpdate

AddPrice adds i to the "price" field.

func (*Rent591HomeUpdate) AddRent591homeTagIDs

func (ru *Rent591HomeUpdate) AddRent591homeTagIDs(ids ...int) *Rent591HomeUpdate

AddRent591homeTagIDs adds the "rent591home_tags" edge to the Rent591HomeTag entity by IDs.

func (*Rent591HomeUpdate) AddRent591homeTags

func (ru *Rent591HomeUpdate) AddRent591homeTags(r ...*Rent591HomeTag) *Rent591HomeUpdate

AddRent591homeTags adds the "rent591home_tags" edges to the Rent591HomeTag entity.

func (*Rent591HomeUpdate) AddType

func (ru *Rent591HomeUpdate) AddType(i int) *Rent591HomeUpdate

AddType adds i to the "type" field.

func (*Rent591HomeUpdate) AddYesterdayHit

func (ru *Rent591HomeUpdate) AddYesterdayHit(i int) *Rent591HomeUpdate

AddYesterdayHit adds i to the "yesterday_hit" field.

func (*Rent591HomeUpdate) AppendPhotoList

func (ru *Rent591HomeUpdate) AppendPhotoList(s []string) *Rent591HomeUpdate

AppendPhotoList appends s to the "photo_list" field.

func (*Rent591HomeUpdate) ClearPhotoList

func (ru *Rent591HomeUpdate) ClearPhotoList() *Rent591HomeUpdate

ClearPhotoList clears the value of the "photo_list" field.

func (*Rent591HomeUpdate) ClearRegionName

func (ru *Rent591HomeUpdate) ClearRegionName() *Rent591HomeUpdate

ClearRegionName clears the value of the "region_name" field.

func (*Rent591HomeUpdate) ClearRent591homeDetails

func (ru *Rent591HomeUpdate) ClearRent591homeDetails() *Rent591HomeUpdate

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeUpdate) ClearRent591homeSurroundings

func (ru *Rent591HomeUpdate) ClearRent591homeSurroundings() *Rent591HomeUpdate

ClearRent591homeSurroundings clears the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity.

func (*Rent591HomeUpdate) ClearRent591homeTags

func (ru *Rent591HomeUpdate) ClearRent591homeTags() *Rent591HomeUpdate

ClearRent591homeTags clears all "rent591home_tags" edges to the Rent591HomeTag entity.

func (*Rent591HomeUpdate) Exec

func (ru *Rent591HomeUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*Rent591HomeUpdate) ExecX

func (ru *Rent591HomeUpdate) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeUpdate) Mutation

func (ru *Rent591HomeUpdate) Mutation() *Rent591HomeMutation

Mutation returns the Rent591HomeMutation object of the builder.

func (*Rent591HomeUpdate) RemoveRent591homeTagIDs

func (ru *Rent591HomeUpdate) RemoveRent591homeTagIDs(ids ...int) *Rent591HomeUpdate

RemoveRent591homeTagIDs removes the "rent591home_tags" edge to Rent591HomeTag entities by IDs.

func (*Rent591HomeUpdate) RemoveRent591homeTags

func (ru *Rent591HomeUpdate) RemoveRent591homeTags(r ...*Rent591HomeTag) *Rent591HomeUpdate

RemoveRent591homeTags removes "rent591home_tags" edges to Rent591HomeTag entities.

func (*Rent591HomeUpdate) Save

func (ru *Rent591HomeUpdate) Save(ctx context.Context) (int, error)

Save executes the query and returns the number of nodes affected by the update operation.

func (*Rent591HomeUpdate) SaveX

func (ru *Rent591HomeUpdate) SaveX(ctx context.Context) int

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeUpdate) SetArea

func (ru *Rent591HomeUpdate) SetArea(s string) *Rent591HomeUpdate

SetArea sets the "area" field.

func (*Rent591HomeUpdate) SetCasesID

func (ru *Rent591HomeUpdate) SetCasesID(i int) *Rent591HomeUpdate

SetCasesID sets the "cases_id" field.

func (*Rent591HomeUpdate) SetCid

func (ru *Rent591HomeUpdate) SetCid(i int) *Rent591HomeUpdate

SetCid sets the "cid" field.

func (*Rent591HomeUpdate) SetCommunity

func (ru *Rent591HomeUpdate) SetCommunity(s string) *Rent591HomeUpdate

SetCommunity sets the "community" field.

func (*Rent591HomeUpdate) SetContact

func (ru *Rent591HomeUpdate) SetContact(s string) *Rent591HomeUpdate

SetContact sets the "contact" field.

func (*Rent591HomeUpdate) SetCreatedAt

func (ru *Rent591HomeUpdate) SetCreatedAt(t time.Time) *Rent591HomeUpdate

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeUpdate) SetDiscountPriceStr

func (ru *Rent591HomeUpdate) SetDiscountPriceStr(s string) *Rent591HomeUpdate

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeUpdate) SetFloorStr

func (ru *Rent591HomeUpdate) SetFloorStr(s string) *Rent591HomeUpdate

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeUpdate) SetHurry

func (ru *Rent591HomeUpdate) SetHurry(i int) *Rent591HomeUpdate

SetHurry sets the "hurry" field.

func (*Rent591HomeUpdate) SetIsCombine

func (ru *Rent591HomeUpdate) SetIsCombine(i int) *Rent591HomeUpdate

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeUpdate) SetIsSocial

func (ru *Rent591HomeUpdate) SetIsSocial(i int) *Rent591HomeUpdate

SetIsSocial sets the "is_social" field.

func (*Rent591HomeUpdate) SetIsVideo

func (ru *Rent591HomeUpdate) SetIsVideo(i int) *Rent591HomeUpdate

SetIsVideo sets the "is_video" field.

func (*Rent591HomeUpdate) SetIsVip

func (ru *Rent591HomeUpdate) SetIsVip(i int) *Rent591HomeUpdate

SetIsVip sets the "is_vip" field.

func (*Rent591HomeUpdate) SetKindName

func (ru *Rent591HomeUpdate) SetKindName(s string) *Rent591HomeUpdate

SetKindName sets the "kind_name" field.

func (*Rent591HomeUpdate) SetLocation

func (ru *Rent591HomeUpdate) SetLocation(s string) *Rent591HomeUpdate

SetLocation sets the "location" field.

func (*Rent591HomeUpdate) SetNillableCreatedAt

func (ru *Rent591HomeUpdate) SetNillableCreatedAt(t *time.Time) *Rent591HomeUpdate

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeUpdate) SetNillableRegionName

func (ru *Rent591HomeUpdate) SetNillableRegionName(s *string) *Rent591HomeUpdate

SetNillableRegionName sets the "region_name" field if the given value is not nil.

func (*Rent591HomeUpdate) SetNillableRent591homeDetailsID

func (ru *Rent591HomeUpdate) SetNillableRent591homeDetailsID(id *int) *Rent591HomeUpdate

SetNillableRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID if the given value is not nil.

func (*Rent591HomeUpdate) SetNillableRent591homeSurroundingsID

func (ru *Rent591HomeUpdate) SetNillableRent591homeSurroundingsID(id *int) *Rent591HomeUpdate

SetNillableRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by ID if the given value is not nil.

func (*Rent591HomeUpdate) SetPhotoList

func (ru *Rent591HomeUpdate) SetPhotoList(s []string) *Rent591HomeUpdate

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeUpdate) SetPostID

func (ru *Rent591HomeUpdate) SetPostID(i int) *Rent591HomeUpdate

SetPostID sets the "post_id" field.

func (*Rent591HomeUpdate) SetPreferred

func (ru *Rent591HomeUpdate) SetPreferred(i int) *Rent591HomeUpdate

SetPreferred sets the "preferred" field.

func (*Rent591HomeUpdate) SetPrice

func (ru *Rent591HomeUpdate) SetPrice(i int) *Rent591HomeUpdate

SetPrice sets the "price" field.

func (*Rent591HomeUpdate) SetPriceUnit

func (ru *Rent591HomeUpdate) SetPriceUnit(s string) *Rent591HomeUpdate

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeUpdate) SetRefreshTime

func (ru *Rent591HomeUpdate) SetRefreshTime(s string) *Rent591HomeUpdate

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeUpdate) SetRegionName

func (ru *Rent591HomeUpdate) SetRegionName(s string) *Rent591HomeUpdate

SetRegionName sets the "region_name" field.

func (*Rent591HomeUpdate) SetRent591homeDetails

func (ru *Rent591HomeUpdate) SetRent591homeDetails(r *Rent591HomeDetail) *Rent591HomeUpdate

SetRent591homeDetails sets the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeUpdate) SetRent591homeDetailsID

func (ru *Rent591HomeUpdate) SetRent591homeDetailsID(id int) *Rent591HomeUpdate

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID.

func (*Rent591HomeUpdate) SetRent591homeSurroundings

func (ru *Rent591HomeUpdate) SetRent591homeSurroundings(r *Rent591HomeSurrounding) *Rent591HomeUpdate

SetRent591homeSurroundings sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity.

func (*Rent591HomeUpdate) SetRent591homeSurroundingsID

func (ru *Rent591HomeUpdate) SetRent591homeSurroundingsID(id int) *Rent591HomeUpdate

SetRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by ID.

func (*Rent591HomeUpdate) SetRoleName

func (ru *Rent591HomeUpdate) SetRoleName(s string) *Rent591HomeUpdate

SetRoleName sets the "role_name" field.

func (*Rent591HomeUpdate) SetRoomStr

func (ru *Rent591HomeUpdate) SetRoomStr(s string) *Rent591HomeUpdate

SetRoomStr sets the "room_str" field.

func (*Rent591HomeUpdate) SetSectionName

func (ru *Rent591HomeUpdate) SetSectionName(s string) *Rent591HomeUpdate

SetSectionName sets the "section_name" field.

func (*Rent591HomeUpdate) SetStreetName

func (ru *Rent591HomeUpdate) SetStreetName(s string) *Rent591HomeUpdate

SetStreetName sets the "street_name" field.

func (*Rent591HomeUpdate) SetTitle

func (ru *Rent591HomeUpdate) SetTitle(s string) *Rent591HomeUpdate

SetTitle sets the "title" field.

func (*Rent591HomeUpdate) SetType

func (ru *Rent591HomeUpdate) SetType(i int) *Rent591HomeUpdate

SetType sets the "type" field.

func (*Rent591HomeUpdate) SetUpdatedAt

func (ru *Rent591HomeUpdate) SetUpdatedAt(t time.Time) *Rent591HomeUpdate

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeUpdate) SetYesterdayHit

func (ru *Rent591HomeUpdate) SetYesterdayHit(i int) *Rent591HomeUpdate

SetYesterdayHit sets the "yesterday_hit" field.

func (*Rent591HomeUpdate) Where

Where appends a list predicates to the Rent591HomeUpdate builder.

type Rent591HomeUpdateOne

type Rent591HomeUpdateOne struct {
	// contains filtered or unexported fields
}

Rent591HomeUpdateOne is the builder for updating a single Rent591Home entity.

func (*Rent591HomeUpdateOne) AddCasesID

func (ruo *Rent591HomeUpdateOne) AddCasesID(i int) *Rent591HomeUpdateOne

AddCasesID adds i to the "cases_id" field.

func (*Rent591HomeUpdateOne) AddCid

AddCid adds i to the "cid" field.

func (*Rent591HomeUpdateOne) AddHurry

func (ruo *Rent591HomeUpdateOne) AddHurry(i int) *Rent591HomeUpdateOne

AddHurry adds i to the "hurry" field.

func (*Rent591HomeUpdateOne) AddIsCombine

func (ruo *Rent591HomeUpdateOne) AddIsCombine(i int) *Rent591HomeUpdateOne

AddIsCombine adds i to the "is_combine" field.

func (*Rent591HomeUpdateOne) AddIsSocial

func (ruo *Rent591HomeUpdateOne) AddIsSocial(i int) *Rent591HomeUpdateOne

AddIsSocial adds i to the "is_social" field.

func (*Rent591HomeUpdateOne) AddIsVideo

func (ruo *Rent591HomeUpdateOne) AddIsVideo(i int) *Rent591HomeUpdateOne

AddIsVideo adds i to the "is_video" field.

func (*Rent591HomeUpdateOne) AddIsVip

func (ruo *Rent591HomeUpdateOne) AddIsVip(i int) *Rent591HomeUpdateOne

AddIsVip adds i to the "is_vip" field.

func (*Rent591HomeUpdateOne) AddPostID

func (ruo *Rent591HomeUpdateOne) AddPostID(i int) *Rent591HomeUpdateOne

AddPostID adds i to the "post_id" field.

func (*Rent591HomeUpdateOne) AddPreferred

func (ruo *Rent591HomeUpdateOne) AddPreferred(i int) *Rent591HomeUpdateOne

AddPreferred adds i to the "preferred" field.

func (*Rent591HomeUpdateOne) AddPrice

func (ruo *Rent591HomeUpdateOne) AddPrice(i int) *Rent591HomeUpdateOne

AddPrice adds i to the "price" field.

func (*Rent591HomeUpdateOne) AddRent591homeTagIDs

func (ruo *Rent591HomeUpdateOne) AddRent591homeTagIDs(ids ...int) *Rent591HomeUpdateOne

AddRent591homeTagIDs adds the "rent591home_tags" edge to the Rent591HomeTag entity by IDs.

func (*Rent591HomeUpdateOne) AddRent591homeTags

func (ruo *Rent591HomeUpdateOne) AddRent591homeTags(r ...*Rent591HomeTag) *Rent591HomeUpdateOne

AddRent591homeTags adds the "rent591home_tags" edges to the Rent591HomeTag entity.

func (*Rent591HomeUpdateOne) AddType

AddType adds i to the "type" field.

func (*Rent591HomeUpdateOne) AddYesterdayHit

func (ruo *Rent591HomeUpdateOne) AddYesterdayHit(i int) *Rent591HomeUpdateOne

AddYesterdayHit adds i to the "yesterday_hit" field.

func (*Rent591HomeUpdateOne) AppendPhotoList

func (ruo *Rent591HomeUpdateOne) AppendPhotoList(s []string) *Rent591HomeUpdateOne

AppendPhotoList appends s to the "photo_list" field.

func (*Rent591HomeUpdateOne) ClearPhotoList

func (ruo *Rent591HomeUpdateOne) ClearPhotoList() *Rent591HomeUpdateOne

ClearPhotoList clears the value of the "photo_list" field.

func (*Rent591HomeUpdateOne) ClearRegionName

func (ruo *Rent591HomeUpdateOne) ClearRegionName() *Rent591HomeUpdateOne

ClearRegionName clears the value of the "region_name" field.

func (*Rent591HomeUpdateOne) ClearRent591homeDetails

func (ruo *Rent591HomeUpdateOne) ClearRent591homeDetails() *Rent591HomeUpdateOne

ClearRent591homeDetails clears the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeUpdateOne) ClearRent591homeSurroundings

func (ruo *Rent591HomeUpdateOne) ClearRent591homeSurroundings() *Rent591HomeUpdateOne

ClearRent591homeSurroundings clears the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity.

func (*Rent591HomeUpdateOne) ClearRent591homeTags

func (ruo *Rent591HomeUpdateOne) ClearRent591homeTags() *Rent591HomeUpdateOne

ClearRent591homeTags clears all "rent591home_tags" edges to the Rent591HomeTag entity.

func (*Rent591HomeUpdateOne) Exec

func (ruo *Rent591HomeUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*Rent591HomeUpdateOne) ExecX

func (ruo *Rent591HomeUpdateOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeUpdateOne) Mutation

func (ruo *Rent591HomeUpdateOne) Mutation() *Rent591HomeMutation

Mutation returns the Rent591HomeMutation object of the builder.

func (*Rent591HomeUpdateOne) RemoveRent591homeTagIDs

func (ruo *Rent591HomeUpdateOne) RemoveRent591homeTagIDs(ids ...int) *Rent591HomeUpdateOne

RemoveRent591homeTagIDs removes the "rent591home_tags" edge to Rent591HomeTag entities by IDs.

func (*Rent591HomeUpdateOne) RemoveRent591homeTags

func (ruo *Rent591HomeUpdateOne) RemoveRent591homeTags(r ...*Rent591HomeTag) *Rent591HomeUpdateOne

RemoveRent591homeTags removes "rent591home_tags" edges to Rent591HomeTag entities.

func (*Rent591HomeUpdateOne) Save

Save executes the query and returns the updated Rent591Home entity.

func (*Rent591HomeUpdateOne) SaveX

SaveX is like Save, but panics if an error occurs.

func (*Rent591HomeUpdateOne) Select

func (ruo *Rent591HomeUpdateOne) Select(field string, fields ...string) *Rent591HomeUpdateOne

Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.

func (*Rent591HomeUpdateOne) SetArea

SetArea sets the "area" field.

func (*Rent591HomeUpdateOne) SetCasesID

func (ruo *Rent591HomeUpdateOne) SetCasesID(i int) *Rent591HomeUpdateOne

SetCasesID sets the "cases_id" field.

func (*Rent591HomeUpdateOne) SetCid

SetCid sets the "cid" field.

func (*Rent591HomeUpdateOne) SetCommunity

func (ruo *Rent591HomeUpdateOne) SetCommunity(s string) *Rent591HomeUpdateOne

SetCommunity sets the "community" field.

func (*Rent591HomeUpdateOne) SetContact

func (ruo *Rent591HomeUpdateOne) SetContact(s string) *Rent591HomeUpdateOne

SetContact sets the "contact" field.

func (*Rent591HomeUpdateOne) SetCreatedAt

func (ruo *Rent591HomeUpdateOne) SetCreatedAt(t time.Time) *Rent591HomeUpdateOne

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeUpdateOne) SetDiscountPriceStr

func (ruo *Rent591HomeUpdateOne) SetDiscountPriceStr(s string) *Rent591HomeUpdateOne

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeUpdateOne) SetFloorStr

func (ruo *Rent591HomeUpdateOne) SetFloorStr(s string) *Rent591HomeUpdateOne

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeUpdateOne) SetHurry

func (ruo *Rent591HomeUpdateOne) SetHurry(i int) *Rent591HomeUpdateOne

SetHurry sets the "hurry" field.

func (*Rent591HomeUpdateOne) SetIsCombine

func (ruo *Rent591HomeUpdateOne) SetIsCombine(i int) *Rent591HomeUpdateOne

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeUpdateOne) SetIsSocial

func (ruo *Rent591HomeUpdateOne) SetIsSocial(i int) *Rent591HomeUpdateOne

SetIsSocial sets the "is_social" field.

func (*Rent591HomeUpdateOne) SetIsVideo

func (ruo *Rent591HomeUpdateOne) SetIsVideo(i int) *Rent591HomeUpdateOne

SetIsVideo sets the "is_video" field.

func (*Rent591HomeUpdateOne) SetIsVip

func (ruo *Rent591HomeUpdateOne) SetIsVip(i int) *Rent591HomeUpdateOne

SetIsVip sets the "is_vip" field.

func (*Rent591HomeUpdateOne) SetKindName

func (ruo *Rent591HomeUpdateOne) SetKindName(s string) *Rent591HomeUpdateOne

SetKindName sets the "kind_name" field.

func (*Rent591HomeUpdateOne) SetLocation

func (ruo *Rent591HomeUpdateOne) SetLocation(s string) *Rent591HomeUpdateOne

SetLocation sets the "location" field.

func (*Rent591HomeUpdateOne) SetNillableCreatedAt

func (ruo *Rent591HomeUpdateOne) SetNillableCreatedAt(t *time.Time) *Rent591HomeUpdateOne

SetNillableCreatedAt sets the "created_at" field if the given value is not nil.

func (*Rent591HomeUpdateOne) SetNillableRegionName

func (ruo *Rent591HomeUpdateOne) SetNillableRegionName(s *string) *Rent591HomeUpdateOne

SetNillableRegionName sets the "region_name" field if the given value is not nil.

func (*Rent591HomeUpdateOne) SetNillableRent591homeDetailsID

func (ruo *Rent591HomeUpdateOne) SetNillableRent591homeDetailsID(id *int) *Rent591HomeUpdateOne

SetNillableRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID if the given value is not nil.

func (*Rent591HomeUpdateOne) SetNillableRent591homeSurroundingsID

func (ruo *Rent591HomeUpdateOne) SetNillableRent591homeSurroundingsID(id *int) *Rent591HomeUpdateOne

SetNillableRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by ID if the given value is not nil.

func (*Rent591HomeUpdateOne) SetPhotoList

func (ruo *Rent591HomeUpdateOne) SetPhotoList(s []string) *Rent591HomeUpdateOne

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeUpdateOne) SetPostID

func (ruo *Rent591HomeUpdateOne) SetPostID(i int) *Rent591HomeUpdateOne

SetPostID sets the "post_id" field.

func (*Rent591HomeUpdateOne) SetPreferred

func (ruo *Rent591HomeUpdateOne) SetPreferred(i int) *Rent591HomeUpdateOne

SetPreferred sets the "preferred" field.

func (*Rent591HomeUpdateOne) SetPrice

func (ruo *Rent591HomeUpdateOne) SetPrice(i int) *Rent591HomeUpdateOne

SetPrice sets the "price" field.

func (*Rent591HomeUpdateOne) SetPriceUnit

func (ruo *Rent591HomeUpdateOne) SetPriceUnit(s string) *Rent591HomeUpdateOne

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeUpdateOne) SetRefreshTime

func (ruo *Rent591HomeUpdateOne) SetRefreshTime(s string) *Rent591HomeUpdateOne

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeUpdateOne) SetRegionName

func (ruo *Rent591HomeUpdateOne) SetRegionName(s string) *Rent591HomeUpdateOne

SetRegionName sets the "region_name" field.

func (*Rent591HomeUpdateOne) SetRent591homeDetails

func (ruo *Rent591HomeUpdateOne) SetRent591homeDetails(r *Rent591HomeDetail) *Rent591HomeUpdateOne

SetRent591homeDetails sets the "rent591home_details" edge to the Rent591HomeDetail entity.

func (*Rent591HomeUpdateOne) SetRent591homeDetailsID

func (ruo *Rent591HomeUpdateOne) SetRent591homeDetailsID(id int) *Rent591HomeUpdateOne

SetRent591homeDetailsID sets the "rent591home_details" edge to the Rent591HomeDetail entity by ID.

func (*Rent591HomeUpdateOne) SetRent591homeSurroundings

func (ruo *Rent591HomeUpdateOne) SetRent591homeSurroundings(r *Rent591HomeSurrounding) *Rent591HomeUpdateOne

SetRent591homeSurroundings sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity.

func (*Rent591HomeUpdateOne) SetRent591homeSurroundingsID

func (ruo *Rent591HomeUpdateOne) SetRent591homeSurroundingsID(id int) *Rent591HomeUpdateOne

SetRent591homeSurroundingsID sets the "rent591home_surroundings" edge to the Rent591HomeSurrounding entity by ID.

func (*Rent591HomeUpdateOne) SetRoleName

func (ruo *Rent591HomeUpdateOne) SetRoleName(s string) *Rent591HomeUpdateOne

SetRoleName sets the "role_name" field.

func (*Rent591HomeUpdateOne) SetRoomStr

func (ruo *Rent591HomeUpdateOne) SetRoomStr(s string) *Rent591HomeUpdateOne

SetRoomStr sets the "room_str" field.

func (*Rent591HomeUpdateOne) SetSectionName

func (ruo *Rent591HomeUpdateOne) SetSectionName(s string) *Rent591HomeUpdateOne

SetSectionName sets the "section_name" field.

func (*Rent591HomeUpdateOne) SetStreetName

func (ruo *Rent591HomeUpdateOne) SetStreetName(s string) *Rent591HomeUpdateOne

SetStreetName sets the "street_name" field.

func (*Rent591HomeUpdateOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeUpdateOne) SetType

SetType sets the "type" field.

func (*Rent591HomeUpdateOne) SetUpdatedAt

func (ruo *Rent591HomeUpdateOne) SetUpdatedAt(t time.Time) *Rent591HomeUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeUpdateOne) SetYesterdayHit

func (ruo *Rent591HomeUpdateOne) SetYesterdayHit(i int) *Rent591HomeUpdateOne

SetYesterdayHit sets the "yesterday_hit" field.

func (*Rent591HomeUpdateOne) Where

Where appends a list predicates to the Rent591HomeUpdate builder.

type Rent591HomeUpsert

type Rent591HomeUpsert struct {
	*sql.UpdateSet
}

Rent591HomeUpsert is the "OnConflict" setter.

func (*Rent591HomeUpsert) AddCasesID

func (u *Rent591HomeUpsert) AddCasesID(v int) *Rent591HomeUpsert

AddCasesID adds v to the "cases_id" field.

func (*Rent591HomeUpsert) AddCid

func (u *Rent591HomeUpsert) AddCid(v int) *Rent591HomeUpsert

AddCid adds v to the "cid" field.

func (*Rent591HomeUpsert) AddHurry

func (u *Rent591HomeUpsert) AddHurry(v int) *Rent591HomeUpsert

AddHurry adds v to the "hurry" field.

func (*Rent591HomeUpsert) AddIsCombine

func (u *Rent591HomeUpsert) AddIsCombine(v int) *Rent591HomeUpsert

AddIsCombine adds v to the "is_combine" field.

func (*Rent591HomeUpsert) AddIsSocial

func (u *Rent591HomeUpsert) AddIsSocial(v int) *Rent591HomeUpsert

AddIsSocial adds v to the "is_social" field.

func (*Rent591HomeUpsert) AddIsVideo

func (u *Rent591HomeUpsert) AddIsVideo(v int) *Rent591HomeUpsert

AddIsVideo adds v to the "is_video" field.

func (*Rent591HomeUpsert) AddIsVip

func (u *Rent591HomeUpsert) AddIsVip(v int) *Rent591HomeUpsert

AddIsVip adds v to the "is_vip" field.

func (*Rent591HomeUpsert) AddPostID

func (u *Rent591HomeUpsert) AddPostID(v int) *Rent591HomeUpsert

AddPostID adds v to the "post_id" field.

func (*Rent591HomeUpsert) AddPreferred

func (u *Rent591HomeUpsert) AddPreferred(v int) *Rent591HomeUpsert

AddPreferred adds v to the "preferred" field.

func (*Rent591HomeUpsert) AddPrice

func (u *Rent591HomeUpsert) AddPrice(v int) *Rent591HomeUpsert

AddPrice adds v to the "price" field.

func (*Rent591HomeUpsert) AddType

func (u *Rent591HomeUpsert) AddType(v int) *Rent591HomeUpsert

AddType adds v to the "type" field.

func (*Rent591HomeUpsert) AddYesterdayHit

func (u *Rent591HomeUpsert) AddYesterdayHit(v int) *Rent591HomeUpsert

AddYesterdayHit adds v to the "yesterday_hit" field.

func (*Rent591HomeUpsert) ClearPhotoList

func (u *Rent591HomeUpsert) ClearPhotoList() *Rent591HomeUpsert

ClearPhotoList clears the value of the "photo_list" field.

func (*Rent591HomeUpsert) ClearRegionName

func (u *Rent591HomeUpsert) ClearRegionName() *Rent591HomeUpsert

ClearRegionName clears the value of the "region_name" field.

func (*Rent591HomeUpsert) SetArea

SetArea sets the "area" field.

func (*Rent591HomeUpsert) SetCasesID

func (u *Rent591HomeUpsert) SetCasesID(v int) *Rent591HomeUpsert

SetCasesID sets the "cases_id" field.

func (*Rent591HomeUpsert) SetCid

func (u *Rent591HomeUpsert) SetCid(v int) *Rent591HomeUpsert

SetCid sets the "cid" field.

func (*Rent591HomeUpsert) SetCommunity

func (u *Rent591HomeUpsert) SetCommunity(v string) *Rent591HomeUpsert

SetCommunity sets the "community" field.

func (*Rent591HomeUpsert) SetContact

func (u *Rent591HomeUpsert) SetContact(v string) *Rent591HomeUpsert

SetContact sets the "contact" field.

func (*Rent591HomeUpsert) SetCreatedAt

func (u *Rent591HomeUpsert) SetCreatedAt(v time.Time) *Rent591HomeUpsert

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeUpsert) SetDiscountPriceStr

func (u *Rent591HomeUpsert) SetDiscountPriceStr(v string) *Rent591HomeUpsert

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeUpsert) SetFloorStr

func (u *Rent591HomeUpsert) SetFloorStr(v string) *Rent591HomeUpsert

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeUpsert) SetHurry

func (u *Rent591HomeUpsert) SetHurry(v int) *Rent591HomeUpsert

SetHurry sets the "hurry" field.

func (*Rent591HomeUpsert) SetIsCombine

func (u *Rent591HomeUpsert) SetIsCombine(v int) *Rent591HomeUpsert

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeUpsert) SetIsSocial

func (u *Rent591HomeUpsert) SetIsSocial(v int) *Rent591HomeUpsert

SetIsSocial sets the "is_social" field.

func (*Rent591HomeUpsert) SetIsVideo

func (u *Rent591HomeUpsert) SetIsVideo(v int) *Rent591HomeUpsert

SetIsVideo sets the "is_video" field.

func (*Rent591HomeUpsert) SetIsVip

func (u *Rent591HomeUpsert) SetIsVip(v int) *Rent591HomeUpsert

SetIsVip sets the "is_vip" field.

func (*Rent591HomeUpsert) SetKindName

func (u *Rent591HomeUpsert) SetKindName(v string) *Rent591HomeUpsert

SetKindName sets the "kind_name" field.

func (*Rent591HomeUpsert) SetLocation

func (u *Rent591HomeUpsert) SetLocation(v string) *Rent591HomeUpsert

SetLocation sets the "location" field.

func (*Rent591HomeUpsert) SetPhotoList

func (u *Rent591HomeUpsert) SetPhotoList(v []string) *Rent591HomeUpsert

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeUpsert) SetPostID

func (u *Rent591HomeUpsert) SetPostID(v int) *Rent591HomeUpsert

SetPostID sets the "post_id" field.

func (*Rent591HomeUpsert) SetPreferred

func (u *Rent591HomeUpsert) SetPreferred(v int) *Rent591HomeUpsert

SetPreferred sets the "preferred" field.

func (*Rent591HomeUpsert) SetPrice

func (u *Rent591HomeUpsert) SetPrice(v int) *Rent591HomeUpsert

SetPrice sets the "price" field.

func (*Rent591HomeUpsert) SetPriceUnit

func (u *Rent591HomeUpsert) SetPriceUnit(v string) *Rent591HomeUpsert

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeUpsert) SetRefreshTime

func (u *Rent591HomeUpsert) SetRefreshTime(v string) *Rent591HomeUpsert

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeUpsert) SetRegionName

func (u *Rent591HomeUpsert) SetRegionName(v string) *Rent591HomeUpsert

SetRegionName sets the "region_name" field.

func (*Rent591HomeUpsert) SetRoleName

func (u *Rent591HomeUpsert) SetRoleName(v string) *Rent591HomeUpsert

SetRoleName sets the "role_name" field.

func (*Rent591HomeUpsert) SetRoomStr

func (u *Rent591HomeUpsert) SetRoomStr(v string) *Rent591HomeUpsert

SetRoomStr sets the "room_str" field.

func (*Rent591HomeUpsert) SetSectionName

func (u *Rent591HomeUpsert) SetSectionName(v string) *Rent591HomeUpsert

SetSectionName sets the "section_name" field.

func (*Rent591HomeUpsert) SetStreetName

func (u *Rent591HomeUpsert) SetStreetName(v string) *Rent591HomeUpsert

SetStreetName sets the "street_name" field.

func (*Rent591HomeUpsert) SetTitle

func (u *Rent591HomeUpsert) SetTitle(v string) *Rent591HomeUpsert

SetTitle sets the "title" field.

func (*Rent591HomeUpsert) SetType

func (u *Rent591HomeUpsert) SetType(v int) *Rent591HomeUpsert

SetType sets the "type" field.

func (*Rent591HomeUpsert) SetUpdatedAt

func (u *Rent591HomeUpsert) SetUpdatedAt(v time.Time) *Rent591HomeUpsert

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeUpsert) SetYesterdayHit

func (u *Rent591HomeUpsert) SetYesterdayHit(v int) *Rent591HomeUpsert

SetYesterdayHit sets the "yesterday_hit" field.

func (*Rent591HomeUpsert) UpdateArea

func (u *Rent591HomeUpsert) UpdateArea() *Rent591HomeUpsert

UpdateArea sets the "area" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateCasesID

func (u *Rent591HomeUpsert) UpdateCasesID() *Rent591HomeUpsert

UpdateCasesID sets the "cases_id" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateCid

func (u *Rent591HomeUpsert) UpdateCid() *Rent591HomeUpsert

UpdateCid sets the "cid" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateCommunity

func (u *Rent591HomeUpsert) UpdateCommunity() *Rent591HomeUpsert

UpdateCommunity sets the "community" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateContact

func (u *Rent591HomeUpsert) UpdateContact() *Rent591HomeUpsert

UpdateContact sets the "contact" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateCreatedAt

func (u *Rent591HomeUpsert) UpdateCreatedAt() *Rent591HomeUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateDiscountPriceStr

func (u *Rent591HomeUpsert) UpdateDiscountPriceStr() *Rent591HomeUpsert

UpdateDiscountPriceStr sets the "discount_price_str" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateFloorStr

func (u *Rent591HomeUpsert) UpdateFloorStr() *Rent591HomeUpsert

UpdateFloorStr sets the "floor_str" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateHurry

func (u *Rent591HomeUpsert) UpdateHurry() *Rent591HomeUpsert

UpdateHurry sets the "hurry" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateIsCombine

func (u *Rent591HomeUpsert) UpdateIsCombine() *Rent591HomeUpsert

UpdateIsCombine sets the "is_combine" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateIsSocial

func (u *Rent591HomeUpsert) UpdateIsSocial() *Rent591HomeUpsert

UpdateIsSocial sets the "is_social" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateIsVideo

func (u *Rent591HomeUpsert) UpdateIsVideo() *Rent591HomeUpsert

UpdateIsVideo sets the "is_video" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateIsVip

func (u *Rent591HomeUpsert) UpdateIsVip() *Rent591HomeUpsert

UpdateIsVip sets the "is_vip" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateKindName

func (u *Rent591HomeUpsert) UpdateKindName() *Rent591HomeUpsert

UpdateKindName sets the "kind_name" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateLocation

func (u *Rent591HomeUpsert) UpdateLocation() *Rent591HomeUpsert

UpdateLocation sets the "location" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdatePhotoList

func (u *Rent591HomeUpsert) UpdatePhotoList() *Rent591HomeUpsert

UpdatePhotoList sets the "photo_list" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdatePostID

func (u *Rent591HomeUpsert) UpdatePostID() *Rent591HomeUpsert

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdatePreferred

func (u *Rent591HomeUpsert) UpdatePreferred() *Rent591HomeUpsert

UpdatePreferred sets the "preferred" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdatePrice

func (u *Rent591HomeUpsert) UpdatePrice() *Rent591HomeUpsert

UpdatePrice sets the "price" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdatePriceUnit

func (u *Rent591HomeUpsert) UpdatePriceUnit() *Rent591HomeUpsert

UpdatePriceUnit sets the "price_unit" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateRefreshTime

func (u *Rent591HomeUpsert) UpdateRefreshTime() *Rent591HomeUpsert

UpdateRefreshTime sets the "refresh_time" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateRegionName

func (u *Rent591HomeUpsert) UpdateRegionName() *Rent591HomeUpsert

UpdateRegionName sets the "region_name" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateRoleName

func (u *Rent591HomeUpsert) UpdateRoleName() *Rent591HomeUpsert

UpdateRoleName sets the "role_name" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateRoomStr

func (u *Rent591HomeUpsert) UpdateRoomStr() *Rent591HomeUpsert

UpdateRoomStr sets the "room_str" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateSectionName

func (u *Rent591HomeUpsert) UpdateSectionName() *Rent591HomeUpsert

UpdateSectionName sets the "section_name" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateStreetName

func (u *Rent591HomeUpsert) UpdateStreetName() *Rent591HomeUpsert

UpdateStreetName sets the "street_name" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateTitle

func (u *Rent591HomeUpsert) UpdateTitle() *Rent591HomeUpsert

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateType

func (u *Rent591HomeUpsert) UpdateType() *Rent591HomeUpsert

UpdateType sets the "type" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateUpdatedAt

func (u *Rent591HomeUpsert) UpdateUpdatedAt() *Rent591HomeUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*Rent591HomeUpsert) UpdateYesterdayHit

func (u *Rent591HomeUpsert) UpdateYesterdayHit() *Rent591HomeUpsert

UpdateYesterdayHit sets the "yesterday_hit" field to the value that was provided on create.

type Rent591HomeUpsertBulk

type Rent591HomeUpsertBulk struct {
	// contains filtered or unexported fields
}

Rent591HomeUpsertBulk is the builder for "upsert"-ing a bulk of Rent591Home nodes.

func (*Rent591HomeUpsertBulk) AddCasesID

AddCasesID adds v to the "cases_id" field.

func (*Rent591HomeUpsertBulk) AddCid

AddCid adds v to the "cid" field.

func (*Rent591HomeUpsertBulk) AddHurry

AddHurry adds v to the "hurry" field.

func (*Rent591HomeUpsertBulk) AddIsCombine

func (u *Rent591HomeUpsertBulk) AddIsCombine(v int) *Rent591HomeUpsertBulk

AddIsCombine adds v to the "is_combine" field.

func (*Rent591HomeUpsertBulk) AddIsSocial

func (u *Rent591HomeUpsertBulk) AddIsSocial(v int) *Rent591HomeUpsertBulk

AddIsSocial adds v to the "is_social" field.

func (*Rent591HomeUpsertBulk) AddIsVideo

AddIsVideo adds v to the "is_video" field.

func (*Rent591HomeUpsertBulk) AddIsVip

AddIsVip adds v to the "is_vip" field.

func (*Rent591HomeUpsertBulk) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeUpsertBulk) AddPreferred

func (u *Rent591HomeUpsertBulk) AddPreferred(v int) *Rent591HomeUpsertBulk

AddPreferred adds v to the "preferred" field.

func (*Rent591HomeUpsertBulk) AddPrice

AddPrice adds v to the "price" field.

func (*Rent591HomeUpsertBulk) AddType

AddType adds v to the "type" field.

func (*Rent591HomeUpsertBulk) AddYesterdayHit

func (u *Rent591HomeUpsertBulk) AddYesterdayHit(v int) *Rent591HomeUpsertBulk

AddYesterdayHit adds v to the "yesterday_hit" field.

func (*Rent591HomeUpsertBulk) ClearPhotoList

func (u *Rent591HomeUpsertBulk) ClearPhotoList() *Rent591HomeUpsertBulk

ClearPhotoList clears the value of the "photo_list" field.

func (*Rent591HomeUpsertBulk) ClearRegionName

func (u *Rent591HomeUpsertBulk) ClearRegionName() *Rent591HomeUpsertBulk

ClearRegionName clears the value of the "region_name" field.

func (*Rent591HomeUpsertBulk) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeUpsertBulk) Exec

Exec executes the query.

func (*Rent591HomeUpsertBulk) ExecX

func (u *Rent591HomeUpsertBulk) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeUpsertBulk) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591Home.Create().
	OnConflict(sql.ResolveWithIgnore()).
	Exec(ctx)

func (*Rent591HomeUpsertBulk) SetArea

SetArea sets the "area" field.

func (*Rent591HomeUpsertBulk) SetCasesID

SetCasesID sets the "cases_id" field.

func (*Rent591HomeUpsertBulk) SetCid

SetCid sets the "cid" field.

func (*Rent591HomeUpsertBulk) SetCommunity

SetCommunity sets the "community" field.

func (*Rent591HomeUpsertBulk) SetContact

SetContact sets the "contact" field.

func (*Rent591HomeUpsertBulk) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeUpsertBulk) SetDiscountPriceStr

func (u *Rent591HomeUpsertBulk) SetDiscountPriceStr(v string) *Rent591HomeUpsertBulk

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeUpsertBulk) SetFloorStr

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeUpsertBulk) SetHurry

SetHurry sets the "hurry" field.

func (*Rent591HomeUpsertBulk) SetIsCombine

func (u *Rent591HomeUpsertBulk) SetIsCombine(v int) *Rent591HomeUpsertBulk

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeUpsertBulk) SetIsSocial

func (u *Rent591HomeUpsertBulk) SetIsSocial(v int) *Rent591HomeUpsertBulk

SetIsSocial sets the "is_social" field.

func (*Rent591HomeUpsertBulk) SetIsVideo

SetIsVideo sets the "is_video" field.

func (*Rent591HomeUpsertBulk) SetIsVip

SetIsVip sets the "is_vip" field.

func (*Rent591HomeUpsertBulk) SetKindName

SetKindName sets the "kind_name" field.

func (*Rent591HomeUpsertBulk) SetLocation

SetLocation sets the "location" field.

func (*Rent591HomeUpsertBulk) SetPhotoList

func (u *Rent591HomeUpsertBulk) SetPhotoList(v []string) *Rent591HomeUpsertBulk

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeUpsertBulk) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeUpsertBulk) SetPreferred

func (u *Rent591HomeUpsertBulk) SetPreferred(v int) *Rent591HomeUpsertBulk

SetPreferred sets the "preferred" field.

func (*Rent591HomeUpsertBulk) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeUpsertBulk) SetPriceUnit

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeUpsertBulk) SetRefreshTime

func (u *Rent591HomeUpsertBulk) SetRefreshTime(v string) *Rent591HomeUpsertBulk

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeUpsertBulk) SetRegionName

func (u *Rent591HomeUpsertBulk) SetRegionName(v string) *Rent591HomeUpsertBulk

SetRegionName sets the "region_name" field.

func (*Rent591HomeUpsertBulk) SetRoleName

SetRoleName sets the "role_name" field.

func (*Rent591HomeUpsertBulk) SetRoomStr

SetRoomStr sets the "room_str" field.

func (*Rent591HomeUpsertBulk) SetSectionName

func (u *Rent591HomeUpsertBulk) SetSectionName(v string) *Rent591HomeUpsertBulk

SetSectionName sets the "section_name" field.

func (*Rent591HomeUpsertBulk) SetStreetName

func (u *Rent591HomeUpsertBulk) SetStreetName(v string) *Rent591HomeUpsertBulk

SetStreetName sets the "street_name" field.

func (*Rent591HomeUpsertBulk) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeUpsertBulk) SetType

SetType sets the "type" field.

func (*Rent591HomeUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeUpsertBulk) SetYesterdayHit

func (u *Rent591HomeUpsertBulk) SetYesterdayHit(v int) *Rent591HomeUpsertBulk

SetYesterdayHit sets the "yesterday_hit" field.

func (*Rent591HomeUpsertBulk) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeCreateBulk.OnConflict documentation for more info.

func (*Rent591HomeUpsertBulk) UpdateArea

UpdateArea sets the "area" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateCasesID

func (u *Rent591HomeUpsertBulk) UpdateCasesID() *Rent591HomeUpsertBulk

UpdateCasesID sets the "cases_id" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateCid

UpdateCid sets the "cid" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateCommunity

func (u *Rent591HomeUpsertBulk) UpdateCommunity() *Rent591HomeUpsertBulk

UpdateCommunity sets the "community" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateContact

func (u *Rent591HomeUpsertBulk) UpdateContact() *Rent591HomeUpsertBulk

UpdateContact sets the "contact" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateCreatedAt

func (u *Rent591HomeUpsertBulk) UpdateCreatedAt() *Rent591HomeUpsertBulk

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateDiscountPriceStr

func (u *Rent591HomeUpsertBulk) UpdateDiscountPriceStr() *Rent591HomeUpsertBulk

UpdateDiscountPriceStr sets the "discount_price_str" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateFloorStr

func (u *Rent591HomeUpsertBulk) UpdateFloorStr() *Rent591HomeUpsertBulk

UpdateFloorStr sets the "floor_str" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateHurry

func (u *Rent591HomeUpsertBulk) UpdateHurry() *Rent591HomeUpsertBulk

UpdateHurry sets the "hurry" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateIsCombine

func (u *Rent591HomeUpsertBulk) UpdateIsCombine() *Rent591HomeUpsertBulk

UpdateIsCombine sets the "is_combine" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateIsSocial

func (u *Rent591HomeUpsertBulk) UpdateIsSocial() *Rent591HomeUpsertBulk

UpdateIsSocial sets the "is_social" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateIsVideo

func (u *Rent591HomeUpsertBulk) UpdateIsVideo() *Rent591HomeUpsertBulk

UpdateIsVideo sets the "is_video" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateIsVip

func (u *Rent591HomeUpsertBulk) UpdateIsVip() *Rent591HomeUpsertBulk

UpdateIsVip sets the "is_vip" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateKindName

func (u *Rent591HomeUpsertBulk) UpdateKindName() *Rent591HomeUpsertBulk

UpdateKindName sets the "kind_name" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateLocation

func (u *Rent591HomeUpsertBulk) UpdateLocation() *Rent591HomeUpsertBulk

UpdateLocation sets the "location" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateNewValues

func (u *Rent591HomeUpsertBulk) UpdateNewValues() *Rent591HomeUpsertBulk

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591Home.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeUpsertBulk) UpdatePhotoList

func (u *Rent591HomeUpsertBulk) UpdatePhotoList() *Rent591HomeUpsertBulk

UpdatePhotoList sets the "photo_list" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdatePostID

func (u *Rent591HomeUpsertBulk) UpdatePostID() *Rent591HomeUpsertBulk

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdatePreferred

func (u *Rent591HomeUpsertBulk) UpdatePreferred() *Rent591HomeUpsertBulk

UpdatePreferred sets the "preferred" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdatePrice

func (u *Rent591HomeUpsertBulk) UpdatePrice() *Rent591HomeUpsertBulk

UpdatePrice sets the "price" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdatePriceUnit

func (u *Rent591HomeUpsertBulk) UpdatePriceUnit() *Rent591HomeUpsertBulk

UpdatePriceUnit sets the "price_unit" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateRefreshTime

func (u *Rent591HomeUpsertBulk) UpdateRefreshTime() *Rent591HomeUpsertBulk

UpdateRefreshTime sets the "refresh_time" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateRegionName

func (u *Rent591HomeUpsertBulk) UpdateRegionName() *Rent591HomeUpsertBulk

UpdateRegionName sets the "region_name" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateRoleName

func (u *Rent591HomeUpsertBulk) UpdateRoleName() *Rent591HomeUpsertBulk

UpdateRoleName sets the "role_name" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateRoomStr

func (u *Rent591HomeUpsertBulk) UpdateRoomStr() *Rent591HomeUpsertBulk

UpdateRoomStr sets the "room_str" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateSectionName

func (u *Rent591HomeUpsertBulk) UpdateSectionName() *Rent591HomeUpsertBulk

UpdateSectionName sets the "section_name" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateStreetName

func (u *Rent591HomeUpsertBulk) UpdateStreetName() *Rent591HomeUpsertBulk

UpdateStreetName sets the "street_name" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateTitle

func (u *Rent591HomeUpsertBulk) UpdateTitle() *Rent591HomeUpsertBulk

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateType

UpdateType sets the "type" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateUpdatedAt

func (u *Rent591HomeUpsertBulk) UpdateUpdatedAt() *Rent591HomeUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*Rent591HomeUpsertBulk) UpdateYesterdayHit

func (u *Rent591HomeUpsertBulk) UpdateYesterdayHit() *Rent591HomeUpsertBulk

UpdateYesterdayHit sets the "yesterday_hit" field to the value that was provided on create.

type Rent591HomeUpsertOne

type Rent591HomeUpsertOne struct {
	// contains filtered or unexported fields
}

Rent591HomeUpsertOne is the builder for "upsert"-ing

one Rent591Home node.

func (*Rent591HomeUpsertOne) AddCasesID

func (u *Rent591HomeUpsertOne) AddCasesID(v int) *Rent591HomeUpsertOne

AddCasesID adds v to the "cases_id" field.

func (*Rent591HomeUpsertOne) AddCid

AddCid adds v to the "cid" field.

func (*Rent591HomeUpsertOne) AddHurry

AddHurry adds v to the "hurry" field.

func (*Rent591HomeUpsertOne) AddIsCombine

func (u *Rent591HomeUpsertOne) AddIsCombine(v int) *Rent591HomeUpsertOne

AddIsCombine adds v to the "is_combine" field.

func (*Rent591HomeUpsertOne) AddIsSocial

func (u *Rent591HomeUpsertOne) AddIsSocial(v int) *Rent591HomeUpsertOne

AddIsSocial adds v to the "is_social" field.

func (*Rent591HomeUpsertOne) AddIsVideo

func (u *Rent591HomeUpsertOne) AddIsVideo(v int) *Rent591HomeUpsertOne

AddIsVideo adds v to the "is_video" field.

func (*Rent591HomeUpsertOne) AddIsVip

AddIsVip adds v to the "is_vip" field.

func (*Rent591HomeUpsertOne) AddPostID

AddPostID adds v to the "post_id" field.

func (*Rent591HomeUpsertOne) AddPreferred

func (u *Rent591HomeUpsertOne) AddPreferred(v int) *Rent591HomeUpsertOne

AddPreferred adds v to the "preferred" field.

func (*Rent591HomeUpsertOne) AddPrice

AddPrice adds v to the "price" field.

func (*Rent591HomeUpsertOne) AddType

AddType adds v to the "type" field.

func (*Rent591HomeUpsertOne) AddYesterdayHit

func (u *Rent591HomeUpsertOne) AddYesterdayHit(v int) *Rent591HomeUpsertOne

AddYesterdayHit adds v to the "yesterday_hit" field.

func (*Rent591HomeUpsertOne) ClearPhotoList

func (u *Rent591HomeUpsertOne) ClearPhotoList() *Rent591HomeUpsertOne

ClearPhotoList clears the value of the "photo_list" field.

func (*Rent591HomeUpsertOne) ClearRegionName

func (u *Rent591HomeUpsertOne) ClearRegionName() *Rent591HomeUpsertOne

ClearRegionName clears the value of the "region_name" field.

func (*Rent591HomeUpsertOne) DoNothing

DoNothing configures the conflict_action to `DO NOTHING`. Supported only by SQLite and PostgreSQL.

func (*Rent591HomeUpsertOne) Exec

Exec executes the query.

func (*Rent591HomeUpsertOne) ExecX

func (u *Rent591HomeUpsertOne) ExecX(ctx context.Context)

ExecX is like Exec, but panics if an error occurs.

func (*Rent591HomeUpsertOne) ID

func (u *Rent591HomeUpsertOne) ID(ctx context.Context) (id int, err error)

Exec executes the UPSERT query and returns the inserted/updated ID.

func (*Rent591HomeUpsertOne) IDX

IDX is like ID, but panics if an error occurs.

func (*Rent591HomeUpsertOne) Ignore

Ignore sets each column to itself in case of conflict. Using this option is equivalent to using:

client.Rent591Home.Create().
    OnConflict(sql.ResolveWithIgnore()).
    Exec(ctx)

func (*Rent591HomeUpsertOne) SetArea

SetArea sets the "area" field.

func (*Rent591HomeUpsertOne) SetCasesID

func (u *Rent591HomeUpsertOne) SetCasesID(v int) *Rent591HomeUpsertOne

SetCasesID sets the "cases_id" field.

func (*Rent591HomeUpsertOne) SetCid

SetCid sets the "cid" field.

func (*Rent591HomeUpsertOne) SetCommunity

func (u *Rent591HomeUpsertOne) SetCommunity(v string) *Rent591HomeUpsertOne

SetCommunity sets the "community" field.

func (*Rent591HomeUpsertOne) SetContact

SetContact sets the "contact" field.

func (*Rent591HomeUpsertOne) SetCreatedAt

func (u *Rent591HomeUpsertOne) SetCreatedAt(v time.Time) *Rent591HomeUpsertOne

SetCreatedAt sets the "created_at" field.

func (*Rent591HomeUpsertOne) SetDiscountPriceStr

func (u *Rent591HomeUpsertOne) SetDiscountPriceStr(v string) *Rent591HomeUpsertOne

SetDiscountPriceStr sets the "discount_price_str" field.

func (*Rent591HomeUpsertOne) SetFloorStr

SetFloorStr sets the "floor_str" field.

func (*Rent591HomeUpsertOne) SetHurry

SetHurry sets the "hurry" field.

func (*Rent591HomeUpsertOne) SetIsCombine

func (u *Rent591HomeUpsertOne) SetIsCombine(v int) *Rent591HomeUpsertOne

SetIsCombine sets the "is_combine" field.

func (*Rent591HomeUpsertOne) SetIsSocial

func (u *Rent591HomeUpsertOne) SetIsSocial(v int) *Rent591HomeUpsertOne

SetIsSocial sets the "is_social" field.

func (*Rent591HomeUpsertOne) SetIsVideo

func (u *Rent591HomeUpsertOne) SetIsVideo(v int) *Rent591HomeUpsertOne

SetIsVideo sets the "is_video" field.

func (*Rent591HomeUpsertOne) SetIsVip

SetIsVip sets the "is_vip" field.

func (*Rent591HomeUpsertOne) SetKindName

SetKindName sets the "kind_name" field.

func (*Rent591HomeUpsertOne) SetLocation

SetLocation sets the "location" field.

func (*Rent591HomeUpsertOne) SetPhotoList

func (u *Rent591HomeUpsertOne) SetPhotoList(v []string) *Rent591HomeUpsertOne

SetPhotoList sets the "photo_list" field.

func (*Rent591HomeUpsertOne) SetPostID

SetPostID sets the "post_id" field.

func (*Rent591HomeUpsertOne) SetPreferred

func (u *Rent591HomeUpsertOne) SetPreferred(v int) *Rent591HomeUpsertOne

SetPreferred sets the "preferred" field.

func (*Rent591HomeUpsertOne) SetPrice

SetPrice sets the "price" field.

func (*Rent591HomeUpsertOne) SetPriceUnit

func (u *Rent591HomeUpsertOne) SetPriceUnit(v string) *Rent591HomeUpsertOne

SetPriceUnit sets the "price_unit" field.

func (*Rent591HomeUpsertOne) SetRefreshTime

func (u *Rent591HomeUpsertOne) SetRefreshTime(v string) *Rent591HomeUpsertOne

SetRefreshTime sets the "refresh_time" field.

func (*Rent591HomeUpsertOne) SetRegionName

func (u *Rent591HomeUpsertOne) SetRegionName(v string) *Rent591HomeUpsertOne

SetRegionName sets the "region_name" field.

func (*Rent591HomeUpsertOne) SetRoleName

SetRoleName sets the "role_name" field.

func (*Rent591HomeUpsertOne) SetRoomStr

SetRoomStr sets the "room_str" field.

func (*Rent591HomeUpsertOne) SetSectionName

func (u *Rent591HomeUpsertOne) SetSectionName(v string) *Rent591HomeUpsertOne

SetSectionName sets the "section_name" field.

func (*Rent591HomeUpsertOne) SetStreetName

func (u *Rent591HomeUpsertOne) SetStreetName(v string) *Rent591HomeUpsertOne

SetStreetName sets the "street_name" field.

func (*Rent591HomeUpsertOne) SetTitle

SetTitle sets the "title" field.

func (*Rent591HomeUpsertOne) SetType

SetType sets the "type" field.

func (*Rent591HomeUpsertOne) SetUpdatedAt

func (u *Rent591HomeUpsertOne) SetUpdatedAt(v time.Time) *Rent591HomeUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*Rent591HomeUpsertOne) SetYesterdayHit

func (u *Rent591HomeUpsertOne) SetYesterdayHit(v int) *Rent591HomeUpsertOne

SetYesterdayHit sets the "yesterday_hit" field.

func (*Rent591HomeUpsertOne) Update

Update allows overriding fields `UPDATE` values. See the Rent591HomeCreate.OnConflict documentation for more info.

func (*Rent591HomeUpsertOne) UpdateArea

func (u *Rent591HomeUpsertOne) UpdateArea() *Rent591HomeUpsertOne

UpdateArea sets the "area" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateCasesID

func (u *Rent591HomeUpsertOne) UpdateCasesID() *Rent591HomeUpsertOne

UpdateCasesID sets the "cases_id" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateCid

UpdateCid sets the "cid" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateCommunity

func (u *Rent591HomeUpsertOne) UpdateCommunity() *Rent591HomeUpsertOne

UpdateCommunity sets the "community" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateContact

func (u *Rent591HomeUpsertOne) UpdateContact() *Rent591HomeUpsertOne

UpdateContact sets the "contact" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateCreatedAt

func (u *Rent591HomeUpsertOne) UpdateCreatedAt() *Rent591HomeUpsertOne

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateDiscountPriceStr

func (u *Rent591HomeUpsertOne) UpdateDiscountPriceStr() *Rent591HomeUpsertOne

UpdateDiscountPriceStr sets the "discount_price_str" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateFloorStr

func (u *Rent591HomeUpsertOne) UpdateFloorStr() *Rent591HomeUpsertOne

UpdateFloorStr sets the "floor_str" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateHurry

func (u *Rent591HomeUpsertOne) UpdateHurry() *Rent591HomeUpsertOne

UpdateHurry sets the "hurry" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateIsCombine

func (u *Rent591HomeUpsertOne) UpdateIsCombine() *Rent591HomeUpsertOne

UpdateIsCombine sets the "is_combine" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateIsSocial

func (u *Rent591HomeUpsertOne) UpdateIsSocial() *Rent591HomeUpsertOne

UpdateIsSocial sets the "is_social" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateIsVideo

func (u *Rent591HomeUpsertOne) UpdateIsVideo() *Rent591HomeUpsertOne

UpdateIsVideo sets the "is_video" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateIsVip

func (u *Rent591HomeUpsertOne) UpdateIsVip() *Rent591HomeUpsertOne

UpdateIsVip sets the "is_vip" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateKindName

func (u *Rent591HomeUpsertOne) UpdateKindName() *Rent591HomeUpsertOne

UpdateKindName sets the "kind_name" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateLocation

func (u *Rent591HomeUpsertOne) UpdateLocation() *Rent591HomeUpsertOne

UpdateLocation sets the "location" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateNewValues

func (u *Rent591HomeUpsertOne) UpdateNewValues() *Rent591HomeUpsertOne

UpdateNewValues updates the mutable fields using the new values that were set on create. Using this option is equivalent to using:

client.Rent591Home.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
	).
	Exec(ctx)

func (*Rent591HomeUpsertOne) UpdatePhotoList

func (u *Rent591HomeUpsertOne) UpdatePhotoList() *Rent591HomeUpsertOne

UpdatePhotoList sets the "photo_list" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdatePostID

func (u *Rent591HomeUpsertOne) UpdatePostID() *Rent591HomeUpsertOne

UpdatePostID sets the "post_id" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdatePreferred

func (u *Rent591HomeUpsertOne) UpdatePreferred() *Rent591HomeUpsertOne

UpdatePreferred sets the "preferred" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdatePrice

func (u *Rent591HomeUpsertOne) UpdatePrice() *Rent591HomeUpsertOne

UpdatePrice sets the "price" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdatePriceUnit

func (u *Rent591HomeUpsertOne) UpdatePriceUnit() *Rent591HomeUpsertOne

UpdatePriceUnit sets the "price_unit" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateRefreshTime

func (u *Rent591HomeUpsertOne) UpdateRefreshTime() *Rent591HomeUpsertOne

UpdateRefreshTime sets the "refresh_time" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateRegionName

func (u *Rent591HomeUpsertOne) UpdateRegionName() *Rent591HomeUpsertOne

UpdateRegionName sets the "region_name" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateRoleName

func (u *Rent591HomeUpsertOne) UpdateRoleName() *Rent591HomeUpsertOne

UpdateRoleName sets the "role_name" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateRoomStr

func (u *Rent591HomeUpsertOne) UpdateRoomStr() *Rent591HomeUpsertOne

UpdateRoomStr sets the "room_str" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateSectionName

func (u *Rent591HomeUpsertOne) UpdateSectionName() *Rent591HomeUpsertOne

UpdateSectionName sets the "section_name" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateStreetName

func (u *Rent591HomeUpsertOne) UpdateStreetName() *Rent591HomeUpsertOne

UpdateStreetName sets the "street_name" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateTitle

func (u *Rent591HomeUpsertOne) UpdateTitle() *Rent591HomeUpsertOne

UpdateTitle sets the "title" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateType

func (u *Rent591HomeUpsertOne) UpdateType() *Rent591HomeUpsertOne

UpdateType sets the "type" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateUpdatedAt

func (u *Rent591HomeUpsertOne) UpdateUpdatedAt() *Rent591HomeUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*Rent591HomeUpsertOne) UpdateYesterdayHit

func (u *Rent591HomeUpsertOne) UpdateYesterdayHit() *Rent591HomeUpsertOne

UpdateYesterdayHit sets the "yesterday_hit" field to the value that was provided on create.

type Rent591Homes

type Rent591Homes []*Rent591Home

Rent591Homes is a parsable slice of Rent591Home.

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 TraverseFunc

type TraverseFunc = ent.TraverseFunc

ent aliases to avoid import conflicts in user's code.

type Traverser

type Traverser = ent.Traverser

ent aliases to avoid import conflicts in user's code.

type Tx

type Tx struct {

	// Rent591Home is the client for interacting with the Rent591Home builders.
	Rent591Home *Rent591HomeClient
	// Rent591HomeDetail is the client for interacting with the Rent591HomeDetail builders.
	Rent591HomeDetail *Rent591HomeDetailClient
	// Rent591HomeDetailBreadcrumb is the client for interacting with the Rent591HomeDetailBreadcrumb builders.
	Rent591HomeDetailBreadcrumb *Rent591HomeDetailBreadcrumbClient
	// Rent591HomeDetailBrowse is the client for interacting with the Rent591HomeDetailBrowse builders.
	Rent591HomeDetailBrowse *Rent591HomeDetailBrowseClient
	// Rent591HomeDetailInfo is the client for interacting with the Rent591HomeDetailInfo builders.
	Rent591HomeDetailInfo *Rent591HomeDetailInfoClient
	// Rent591HomeDetailNavData is the client for interacting with the Rent591HomeDetailNavData builders.
	Rent591HomeDetailNavData *Rent591HomeDetailNavDataClient
	// Rent591HomeDetailPositionRound is the client for interacting with the Rent591HomeDetailPositionRound builders.
	Rent591HomeDetailPositionRound *Rent591HomeDetailPositionRoundClient
	// Rent591HomeDetailPositionRoundData is the client for interacting with the Rent591HomeDetailPositionRoundData builders.
	Rent591HomeDetailPositionRoundData *Rent591HomeDetailPositionRoundDataClient
	// Rent591HomeDetailPositionRoundDataChildren is the client for interacting with the Rent591HomeDetailPositionRoundDataChildren builders.
	Rent591HomeDetailPositionRoundDataChildren *Rent591HomeDetailPositionRoundDataChildrenClient
	// Rent591HomeDetailPublish is the client for interacting with the Rent591HomeDetailPublish builders.
	Rent591HomeDetailPublish *Rent591HomeDetailPublishClient
	// Rent591HomeDetailShareInfo is the client for interacting with the Rent591HomeDetailShareInfo builders.
	Rent591HomeDetailShareInfo *Rent591HomeDetailShareInfoClient
	// Rent591HomeDetailTag is the client for interacting with the Rent591HomeDetailTag builders.
	Rent591HomeDetailTag *Rent591HomeDetailTagClient
	// Rent591HomeSurrounding is the client for interacting with the Rent591HomeSurrounding builders.
	Rent591HomeSurrounding *Rent591HomeSurroundingClient
	// Rent591HomeTag is the client for interacting with the Rent591HomeTag builders.
	Rent591HomeTag *Rent591HomeTagClient
	// 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.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL