ent

package
v0.0.0-...-914df79 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 24 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.
	TypeIssue        = "Issue"
	TypeIssueComment = "IssueComment"
	TypeRepository   = "Repository"
	TypeUser         = "User"
)

Variables

View Source
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")

ErrTxStarted is returned when trying to start a new transaction from a transactional client.

Functions

func 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
	// Issue is the client for interacting with the Issue builders.
	Issue *IssueClient
	// IssueComment is the client for interacting with the IssueComment builders.
	IssueComment *IssueCommentClient
	// Repository is the client for interacting with the Repository builders.
	Repository *RepositoryClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// 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().
	Issue.
	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 Issue

type Issue struct {

	// ID of the ent.
	ID int64 `json:"id,omitempty"`
	// NodeID holds the value of the "node_id" field.
	NodeID string `json:"node_id"`
	// URL for the issue
	URL string `json:"url"`
	// RepositoryURL holds the value of the "repository_url" field.
	RepositoryURL string `json:"repository_url"`
	// LabelsURL holds the value of the "labels_url" field.
	LabelsURL string `json:"labels_url"`
	// CommentsURL holds the value of the "comments_url" field.
	CommentsURL string `json:"comments_url"`
	// EventsURL holds the value of the "events_url" field.
	EventsURL string `json:"events_url"`
	// HTMLURL holds the value of the "html_url" field.
	HTMLURL string `json:"html_url"`
	// Number uniquely identifying the issue within its repository
	Number int64 `json:"number"`
	// State of the issue; either 'open' or 'closed'
	State string `json:"state"`
	// StateReason holds the value of the "state_reason" field.
	StateReason *issue.StateReason `json:"state_reason"`
	// Title of the issue
	Title string `json:"title"`
	// Body holds the value of the "body" field.
	Body *string `json:"body"`
	// Locked holds the value of the "locked" field.
	Locked bool `json:"locked"`
	// ActiveLockReason holds the value of the "active_lock_reason" field.
	ActiveLockReason *string `json:"active_lock_reason"`
	// ClosedAt holds the value of the "closed_at" field.
	ClosedAt *time.Time `json:"closed_at"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at"`
	// Draft holds the value of the "draft" field.
	Draft bool `json:"draft"`
	// AuthorAssociation holds the value of the "author_association" field.
	AuthorAssociation issue.AuthorAssociation `json:"author_association"`
	// Reactions holds the value of the "reactions" field.
	Reactions map[string]interface{} `json:"reactions"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the IssueQuery when eager-loading is set.
	Edges IssueEdges `json:"-"`
	// contains filtered or unexported fields
}

Issue is the model entity for the Issue schema.

func (*Issue) MarshalJSON

func (i *Issue) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Issue) QueryAssignees

func (i *Issue) QueryAssignees() *UserQuery

QueryAssignees queries the "assignees" edge of the Issue entity.

func (*Issue) QueryClosedBy

func (i *Issue) QueryClosedBy() *UserQuery

QueryClosedBy queries the "closed_by" edge of the Issue entity.

func (*Issue) QueryComments

func (i *Issue) QueryComments() *IssueCommentQuery

QueryComments queries the "comments" edge of the Issue entity.

func (*Issue) QueryRepository

func (i *Issue) QueryRepository() *RepositoryQuery

QueryRepository queries the "repository" edge of the Issue entity.

func (*Issue) QueryUser

func (i *Issue) QueryUser() *UserQuery

QueryUser queries the "user" edge of the Issue entity.

func (*Issue) String

func (i *Issue) String() string

String implements the fmt.Stringer.

func (*Issue) Unwrap

func (i *Issue) Unwrap() *Issue

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

func (i *Issue) Update() *IssueUpdateOne

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

func (*Issue) Value

func (i *Issue) Value(name string) (ent.Value, error)

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

type IssueClient

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

IssueClient is a client for the Issue schema.

func NewIssueClient

func NewIssueClient(c config) *IssueClient

NewIssueClient returns a client for the Issue from the given config.

func (*IssueClient) Create

func (c *IssueClient) Create() *IssueCreate

Create returns a builder for creating a Issue entity.

func (*IssueClient) CreateBulk

func (c *IssueClient) CreateBulk(builders ...*IssueCreate) *IssueCreateBulk

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

func (*IssueClient) Delete

func (c *IssueClient) Delete() *IssueDelete

Delete returns a delete builder for Issue.

func (*IssueClient) DeleteOne

func (c *IssueClient) DeleteOne(i *Issue) *IssueDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*IssueClient) DeleteOneID

func (c *IssueClient) DeleteOneID(id int64) *IssueDeleteOne

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

func (*IssueClient) Get

func (c *IssueClient) Get(ctx context.Context, id int64) (*Issue, error)

Get returns a Issue entity by its id.

func (*IssueClient) GetX

func (c *IssueClient) GetX(ctx context.Context, id int64) *Issue

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

func (*IssueClient) Hooks

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

Hooks returns the client hooks.

func (*IssueClient) Intercept

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

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

func (*IssueClient) Interceptors

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

Interceptors returns the client interceptors.

func (*IssueClient) MapCreateBulk

func (c *IssueClient) MapCreateBulk(slice any, setFunc func(*IssueCreate, int)) *IssueCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*IssueClient) Query

func (c *IssueClient) Query() *IssueQuery

Query returns a query builder for Issue.

func (*IssueClient) QueryAssignees

func (c *IssueClient) QueryAssignees(i *Issue) *UserQuery

QueryAssignees queries the assignees edge of a Issue.

func (*IssueClient) QueryClosedBy

func (c *IssueClient) QueryClosedBy(i *Issue) *UserQuery

QueryClosedBy queries the closed_by edge of a Issue.

func (*IssueClient) QueryComments

func (c *IssueClient) QueryComments(i *Issue) *IssueCommentQuery

QueryComments queries the comments edge of a Issue.

func (*IssueClient) QueryRepository

func (c *IssueClient) QueryRepository(i *Issue) *RepositoryQuery

QueryRepository queries the repository edge of a Issue.

func (*IssueClient) QueryUser

func (c *IssueClient) QueryUser(i *Issue) *UserQuery

QueryUser queries the user edge of a Issue.

func (*IssueClient) Update

func (c *IssueClient) Update() *IssueUpdate

Update returns an update builder for Issue.

func (*IssueClient) UpdateOne

func (c *IssueClient) UpdateOne(i *Issue) *IssueUpdateOne

UpdateOne returns an update builder for the given entity.

func (*IssueClient) UpdateOneID

func (c *IssueClient) UpdateOneID(id int64) *IssueUpdateOne

UpdateOneID returns an update builder for the given id.

func (*IssueClient) Use

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

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

type IssueComment

type IssueComment struct {

	// ID of the ent.
	// Unique identifier of the issue comment
	ID int64 `json:"id,omitempty"`
	// NodeID holds the value of the "node_id" field.
	NodeID string `json:"node_id"`
	// URL for the issue comment
	URL string `json:"url"`
	// Body holds the value of the "body" field.
	Body string `json:"body"`
	// HTMLURL holds the value of the "html_url" field.
	HTMLURL string `json:"html_url"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt string `json:"created_at"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt string `json:"updated_at"`
	// IssueURL holds the value of the "issue_url" field.
	IssueURL string `json:"issue_url"`
	// AuthorAssociation holds the value of the "author_association" field.
	AuthorAssociation issuecomment.AuthorAssociation `json:"author_association"`
	// Reactions holds the value of the "reactions" field.
	Reactions map[string]interface{} `json:"reactions"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the IssueCommentQuery when eager-loading is set.
	Edges IssueCommentEdges `json:"-"`
	// contains filtered or unexported fields
}

IssueComment is the model entity for the IssueComment schema.

func (*IssueComment) MarshalJSON

func (ic *IssueComment) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*IssueComment) QueryIssue

func (ic *IssueComment) QueryIssue() *IssueQuery

QueryIssue queries the "issue" edge of the IssueComment entity.

func (*IssueComment) QueryUser

func (ic *IssueComment) QueryUser() *UserQuery

QueryUser queries the "user" edge of the IssueComment entity.

func (*IssueComment) String

func (ic *IssueComment) String() string

String implements the fmt.Stringer.

func (*IssueComment) Unwrap

func (ic *IssueComment) Unwrap() *IssueComment

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

func (ic *IssueComment) Update() *IssueCommentUpdateOne

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

func (*IssueComment) Value

func (ic *IssueComment) Value(name string) (ent.Value, error)

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

type IssueCommentClient

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

IssueCommentClient is a client for the IssueComment schema.

func NewIssueCommentClient

func NewIssueCommentClient(c config) *IssueCommentClient

NewIssueCommentClient returns a client for the IssueComment from the given config.

func (*IssueCommentClient) Create

Create returns a builder for creating a IssueComment entity.

func (*IssueCommentClient) CreateBulk

func (c *IssueCommentClient) CreateBulk(builders ...*IssueCommentCreate) *IssueCommentCreateBulk

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

func (*IssueCommentClient) Delete

Delete returns a delete builder for IssueComment.

func (*IssueCommentClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*IssueCommentClient) DeleteOneID

func (c *IssueCommentClient) DeleteOneID(id int64) *IssueCommentDeleteOne

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

func (*IssueCommentClient) Get

Get returns a IssueComment entity by its id.

func (*IssueCommentClient) GetX

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

func (*IssueCommentClient) Hooks

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

Hooks returns the client hooks.

func (*IssueCommentClient) Intercept

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

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

func (*IssueCommentClient) Interceptors

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

Interceptors returns the client interceptors.

func (*IssueCommentClient) MapCreateBulk

func (c *IssueCommentClient) MapCreateBulk(slice any, setFunc func(*IssueCommentCreate, int)) *IssueCommentCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*IssueCommentClient) Query

Query returns a query builder for IssueComment.

func (*IssueCommentClient) QueryIssue

func (c *IssueCommentClient) QueryIssue(ic *IssueComment) *IssueQuery

QueryIssue queries the issue edge of a IssueComment.

func (*IssueCommentClient) QueryUser

func (c *IssueCommentClient) QueryUser(ic *IssueComment) *UserQuery

QueryUser queries the user edge of a IssueComment.

func (*IssueCommentClient) Update

Update returns an update builder for IssueComment.

func (*IssueCommentClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*IssueCommentClient) UpdateOneID

func (c *IssueCommentClient) UpdateOneID(id int64) *IssueCommentUpdateOne

UpdateOneID returns an update builder for the given id.

func (*IssueCommentClient) Use

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

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

type IssueCommentCreate

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

IssueCommentCreate is the builder for creating a IssueComment entity.

func (*IssueCommentCreate) CopyIssueComment

func (icc *IssueCommentCreate) CopyIssueComment(input *IssueComment) *IssueCommentCreate

CopyIssueComment allows to create a new IssueComment copying the existing values of input.

func (*IssueCommentCreate) Exec

func (icc *IssueCommentCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueCommentCreate) ExecX

func (icc *IssueCommentCreate) ExecX(ctx context.Context)

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

func (*IssueCommentCreate) Mutation

func (icc *IssueCommentCreate) Mutation() *IssueCommentMutation

Mutation returns the IssueCommentMutation object of the builder.

func (*IssueCommentCreate) OnConflict

func (icc *IssueCommentCreate) OnConflict(opts ...sql.ConflictOption) *IssueCommentUpsertOne

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

client.IssueComment.Create().
	SetNodeID(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.IssueCommentUpsert) {
		SetNodeID(v+v).
	}).
	Exec(ctx)

func (*IssueCommentCreate) OnConflictColumns

func (icc *IssueCommentCreate) OnConflictColumns(columns ...string) *IssueCommentUpsertOne

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

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

func (*IssueCommentCreate) Save

Save creates the IssueComment in the database.

func (*IssueCommentCreate) SaveX

SaveX calls Save and panics if Save returns an error.

func (*IssueCommentCreate) SetAuthorAssociation

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentCreate) SetBody

func (icc *IssueCommentCreate) SetBody(s string) *IssueCommentCreate

SetBody sets the "body" field.

func (*IssueCommentCreate) SetCreatedAt

func (icc *IssueCommentCreate) SetCreatedAt(s string) *IssueCommentCreate

SetCreatedAt sets the "created_at" field.

func (*IssueCommentCreate) SetHTMLURL

func (icc *IssueCommentCreate) SetHTMLURL(s string) *IssueCommentCreate

SetHTMLURL sets the "html_url" field.

func (*IssueCommentCreate) SetID

SetID sets the "id" field.

func (*IssueCommentCreate) SetIssue

func (icc *IssueCommentCreate) SetIssue(i *Issue) *IssueCommentCreate

SetIssue sets the "issue" edge to the Issue entity.

func (*IssueCommentCreate) SetIssueID

func (icc *IssueCommentCreate) SetIssueID(id int64) *IssueCommentCreate

SetIssueID sets the "issue" edge to the Issue entity by ID.

func (*IssueCommentCreate) SetIssueURL

func (icc *IssueCommentCreate) SetIssueURL(s string) *IssueCommentCreate

SetIssueURL sets the "issue_url" field.

func (*IssueCommentCreate) SetNillableIssueID

func (icc *IssueCommentCreate) SetNillableIssueID(id *int64) *IssueCommentCreate

SetNillableIssueID sets the "issue" edge to the Issue entity by ID if the given value is not nil.

func (*IssueCommentCreate) SetNillableUserID

func (icc *IssueCommentCreate) SetNillableUserID(id *int64) *IssueCommentCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*IssueCommentCreate) SetNodeID

func (icc *IssueCommentCreate) SetNodeID(s string) *IssueCommentCreate

SetNodeID sets the "node_id" field.

func (*IssueCommentCreate) SetReactions

func (icc *IssueCommentCreate) SetReactions(m map[string]interface{}) *IssueCommentCreate

SetReactions sets the "reactions" field.

func (*IssueCommentCreate) SetURL

SetURL sets the "url" field.

func (*IssueCommentCreate) SetUpdatedAt

func (icc *IssueCommentCreate) SetUpdatedAt(s string) *IssueCommentCreate

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentCreate) SetUser

func (icc *IssueCommentCreate) SetUser(u *User) *IssueCommentCreate

SetUser sets the "user" edge to the User entity.

func (*IssueCommentCreate) SetUserID

func (icc *IssueCommentCreate) SetUserID(id int64) *IssueCommentCreate

SetUserID sets the "user" edge to the User entity by ID.

type IssueCommentCreateBulk

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

IssueCommentCreateBulk is the builder for creating many IssueComment entities in bulk.

func (*IssueCommentCreateBulk) Exec

func (iccb *IssueCommentCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueCommentCreateBulk) ExecX

func (iccb *IssueCommentCreateBulk) ExecX(ctx context.Context)

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

func (*IssueCommentCreateBulk) OnConflict

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

client.IssueComment.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.IssueCommentUpsert) {
		SetNodeID(v+v).
	}).
	Exec(ctx)

func (*IssueCommentCreateBulk) OnConflictColumns

func (iccb *IssueCommentCreateBulk) OnConflictColumns(columns ...string) *IssueCommentUpsertBulk

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

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

func (*IssueCommentCreateBulk) Save

Save creates the IssueComment entities in the database.

func (*IssueCommentCreateBulk) SaveX

func (iccb *IssueCommentCreateBulk) SaveX(ctx context.Context) []*IssueComment

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

type IssueCommentDelete

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

IssueCommentDelete is the builder for deleting a IssueComment entity.

func (*IssueCommentDelete) Exec

func (icd *IssueCommentDelete) Exec(ctx context.Context) (int, error)

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

func (*IssueCommentDelete) ExecX

func (icd *IssueCommentDelete) ExecX(ctx context.Context) int

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

func (*IssueCommentDelete) Where

Where appends a list predicates to the IssueCommentDelete builder.

type IssueCommentDeleteOne

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

IssueCommentDeleteOne is the builder for deleting a single IssueComment entity.

func (*IssueCommentDeleteOne) Exec

func (icdo *IssueCommentDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*IssueCommentDeleteOne) ExecX

func (icdo *IssueCommentDeleteOne) ExecX(ctx context.Context)

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

func (*IssueCommentDeleteOne) Where

Where appends a list predicates to the IssueCommentDelete builder.

type IssueCommentEdges

type IssueCommentEdges struct {
	// Issue holds the value of the issue edge.
	Issue *Issue `json:"issue,omitempty"`
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// contains filtered or unexported fields
}

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

func (IssueCommentEdges) IssueOrErr

func (e IssueCommentEdges) IssueOrErr() (*Issue, error)

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

func (IssueCommentEdges) UserOrErr

func (e IssueCommentEdges) UserOrErr() (*User, error)

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

type IssueCommentGroupBy

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

IssueCommentGroupBy is the group-by builder for IssueComment entities.

func (*IssueCommentGroupBy) Aggregate

func (icgb *IssueCommentGroupBy) Aggregate(fns ...AggregateFunc) *IssueCommentGroupBy

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

func (*IssueCommentGroupBy) Bool

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

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

func (*IssueCommentGroupBy) BoolX

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

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

func (*IssueCommentGroupBy) Bools

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

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

func (*IssueCommentGroupBy) BoolsX

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

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

func (*IssueCommentGroupBy) Float64

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

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

func (*IssueCommentGroupBy) Float64X

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

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

func (*IssueCommentGroupBy) Float64s

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

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

func (*IssueCommentGroupBy) Float64sX

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

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

func (*IssueCommentGroupBy) Int

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

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

func (*IssueCommentGroupBy) IntX

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

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

func (*IssueCommentGroupBy) Ints

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

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

func (*IssueCommentGroupBy) IntsX

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

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

func (*IssueCommentGroupBy) Scan

func (icgb *IssueCommentGroupBy) Scan(ctx context.Context, v any) error

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

func (*IssueCommentGroupBy) ScanX

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

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

func (*IssueCommentGroupBy) String

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

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

func (*IssueCommentGroupBy) StringX

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

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

func (*IssueCommentGroupBy) Strings

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

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

func (*IssueCommentGroupBy) StringsX

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

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

type IssueCommentMutation

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

IssueCommentMutation represents an operation that mutates the IssueComment nodes in the graph.

func (*IssueCommentMutation) AddField

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) AddedEdges

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

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

func (*IssueCommentMutation) AddedField

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

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

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

func (*IssueCommentMutation) AddedIDs

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

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

func (*IssueCommentMutation) AuthorAssociation

func (m *IssueCommentMutation) AuthorAssociation() (r issuecomment.AuthorAssociation, exists bool)

AuthorAssociation returns the value of the "author_association" field in the mutation.

func (*IssueCommentMutation) Body

func (m *IssueCommentMutation) Body() (r string, exists bool)

Body returns the value of the "body" field in the mutation.

func (*IssueCommentMutation) ClearEdge

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

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) ClearIssue

func (m *IssueCommentMutation) ClearIssue()

ClearIssue clears the "issue" edge to the Issue entity.

func (*IssueCommentMutation) ClearUser

func (m *IssueCommentMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*IssueCommentMutation) ClearedEdges

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

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

func (*IssueCommentMutation) ClearedFields

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

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

func (IssueCommentMutation) Client

func (m IssueCommentMutation) 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 (*IssueCommentMutation) CreatedAt

func (m *IssueCommentMutation) CreatedAt() (r string, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*IssueCommentMutation) EdgeCleared

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

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

func (*IssueCommentMutation) Field

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) FieldCleared

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

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

func (*IssueCommentMutation) Fields

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) HTMLURL

func (m *IssueCommentMutation) HTMLURL() (r string, exists bool)

HTMLURL returns the value of the "html_url" field in the mutation.

func (*IssueCommentMutation) ID

func (m *IssueCommentMutation) ID() (id int64, 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 (*IssueCommentMutation) IDs

func (m *IssueCommentMutation) IDs(ctx context.Context) ([]int64, 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 (*IssueCommentMutation) IssueCleared

func (m *IssueCommentMutation) IssueCleared() bool

IssueCleared reports if the "issue" edge to the Issue entity was cleared.

func (*IssueCommentMutation) IssueID

func (m *IssueCommentMutation) IssueID() (id int64, exists bool)

IssueID returns the "issue" edge ID in the mutation.

func (*IssueCommentMutation) IssueIDs

func (m *IssueCommentMutation) IssueIDs() (ids []int64)

IssueIDs returns the "issue" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use IssueID instead. It exists only for internal usage by the builders.

func (*IssueCommentMutation) IssueURL

func (m *IssueCommentMutation) IssueURL() (r string, exists bool)

IssueURL returns the value of the "issue_url" field in the mutation.

func (*IssueCommentMutation) NodeID

func (m *IssueCommentMutation) NodeID() (r string, exists bool)

NodeID returns the value of the "node_id" field in the mutation.

func (*IssueCommentMutation) OldAuthorAssociation

func (m *IssueCommentMutation) OldAuthorAssociation(ctx context.Context) (v issuecomment.AuthorAssociation, err error)

OldAuthorAssociation returns the old "author_association" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldBody

func (m *IssueCommentMutation) OldBody(ctx context.Context) (v string, err error)

OldBody returns the old "body" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldCreatedAt

func (m *IssueCommentMutation) OldCreatedAt(ctx context.Context) (v string, err error)

OldCreatedAt returns the old "created_at" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldField

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) OldHTMLURL

func (m *IssueCommentMutation) OldHTMLURL(ctx context.Context) (v string, err error)

OldHTMLURL returns the old "html_url" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldIssueURL

func (m *IssueCommentMutation) OldIssueURL(ctx context.Context) (v string, err error)

OldIssueURL returns the old "issue_url" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldNodeID

func (m *IssueCommentMutation) OldNodeID(ctx context.Context) (v string, err error)

OldNodeID returns the old "node_id" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldReactions

func (m *IssueCommentMutation) OldReactions(ctx context.Context) (v map[string]interface{}, err error)

OldReactions returns the old "reactions" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldURL

func (m *IssueCommentMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) OldUpdatedAt

func (m *IssueCommentMutation) OldUpdatedAt(ctx context.Context) (v string, err error)

OldUpdatedAt returns the old "updated_at" field's value of the IssueComment entity. If the IssueComment 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 (*IssueCommentMutation) Op

func (m *IssueCommentMutation) Op() Op

Op returns the operation name.

func (*IssueCommentMutation) Reactions

func (m *IssueCommentMutation) Reactions() (r map[string]interface{}, exists bool)

Reactions returns the value of the "reactions" field in the mutation.

func (*IssueCommentMutation) RemovedEdges

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

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

func (*IssueCommentMutation) RemovedIDs

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) ResetAuthorAssociation

func (m *IssueCommentMutation) ResetAuthorAssociation()

ResetAuthorAssociation resets all changes to the "author_association" field.

func (*IssueCommentMutation) ResetBody

func (m *IssueCommentMutation) ResetBody()

ResetBody resets all changes to the "body" field.

func (*IssueCommentMutation) ResetCreatedAt

func (m *IssueCommentMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*IssueCommentMutation) ResetEdge

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

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) ResetHTMLURL

func (m *IssueCommentMutation) ResetHTMLURL()

ResetHTMLURL resets all changes to the "html_url" field.

func (*IssueCommentMutation) ResetIssue

func (m *IssueCommentMutation) ResetIssue()

ResetIssue resets all changes to the "issue" edge.

func (*IssueCommentMutation) ResetIssueURL

func (m *IssueCommentMutation) ResetIssueURL()

ResetIssueURL resets all changes to the "issue_url" field.

func (*IssueCommentMutation) ResetNodeID

func (m *IssueCommentMutation) ResetNodeID()

ResetNodeID resets all changes to the "node_id" field.

func (*IssueCommentMutation) ResetReactions

func (m *IssueCommentMutation) ResetReactions()

ResetReactions resets all changes to the "reactions" field.

func (*IssueCommentMutation) ResetURL

func (m *IssueCommentMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*IssueCommentMutation) ResetUpdatedAt

func (m *IssueCommentMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*IssueCommentMutation) ResetUser

func (m *IssueCommentMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*IssueCommentMutation) SetAuthorAssociation

func (m *IssueCommentMutation) SetAuthorAssociation(ia issuecomment.AuthorAssociation)

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentMutation) SetBody

func (m *IssueCommentMutation) SetBody(s string)

SetBody sets the "body" field.

func (*IssueCommentMutation) SetCreatedAt

func (m *IssueCommentMutation) SetCreatedAt(s string)

SetCreatedAt sets the "created_at" field.

func (*IssueCommentMutation) SetField

func (m *IssueCommentMutation) 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 (*IssueCommentMutation) SetHTMLURL

func (m *IssueCommentMutation) SetHTMLURL(s string)

SetHTMLURL sets the "html_url" field.

func (*IssueCommentMutation) SetID

func (m *IssueCommentMutation) SetID(id int64)

SetID sets the value of the id field. Note that this operation is only accepted on creation of IssueComment entities.

func (*IssueCommentMutation) SetIssueID

func (m *IssueCommentMutation) SetIssueID(id int64)

SetIssueID sets the "issue" edge to the Issue entity by id.

func (*IssueCommentMutation) SetIssueURL

func (m *IssueCommentMutation) SetIssueURL(s string)

SetIssueURL sets the "issue_url" field.

func (*IssueCommentMutation) SetNodeID

func (m *IssueCommentMutation) SetNodeID(s string)

SetNodeID sets the "node_id" field.

func (*IssueCommentMutation) SetOp

func (m *IssueCommentMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*IssueCommentMutation) SetReactions

func (m *IssueCommentMutation) SetReactions(value map[string]interface{})

SetReactions sets the "reactions" field.

func (*IssueCommentMutation) SetURL

func (m *IssueCommentMutation) SetURL(s string)

SetURL sets the "url" field.

func (*IssueCommentMutation) SetUpdatedAt

func (m *IssueCommentMutation) SetUpdatedAt(s string)

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentMutation) SetUserID

func (m *IssueCommentMutation) SetUserID(id int64)

SetUserID sets the "user" edge to the User entity by id.

func (IssueCommentMutation) Tx

func (m IssueCommentMutation) Tx() (*Tx, error)

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

func (*IssueCommentMutation) Type

func (m *IssueCommentMutation) Type() string

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

func (*IssueCommentMutation) URL

func (m *IssueCommentMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*IssueCommentMutation) UpdatedAt

func (m *IssueCommentMutation) UpdatedAt() (r string, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*IssueCommentMutation) UserCleared

func (m *IssueCommentMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*IssueCommentMutation) UserID

func (m *IssueCommentMutation) UserID() (id int64, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*IssueCommentMutation) UserIDs

func (m *IssueCommentMutation) UserIDs() (ids []int64)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*IssueCommentMutation) Where

Where appends a list predicates to the IssueCommentMutation builder.

func (*IssueCommentMutation) WhereP

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

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

type IssueCommentQuery

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

IssueCommentQuery is the builder for querying IssueComment entities.

func (*IssueCommentQuery) Aggregate

func (icq *IssueCommentQuery) Aggregate(fns ...AggregateFunc) *IssueCommentSelect

Aggregate returns a IssueCommentSelect configured with the given aggregations.

func (*IssueCommentQuery) All

func (icq *IssueCommentQuery) All(ctx context.Context) ([]*IssueComment, error)

All executes the query and returns a list of IssueComments.

func (*IssueCommentQuery) AllX

func (icq *IssueCommentQuery) AllX(ctx context.Context) []*IssueComment

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

func (*IssueCommentQuery) Clone

func (icq *IssueCommentQuery) Clone() *IssueCommentQuery

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

func (*IssueCommentQuery) Count

func (icq *IssueCommentQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*IssueCommentQuery) CountX

func (icq *IssueCommentQuery) CountX(ctx context.Context) int

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

func (*IssueCommentQuery) Exist

func (icq *IssueCommentQuery) Exist(ctx context.Context) (bool, error)

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

func (*IssueCommentQuery) ExistX

func (icq *IssueCommentQuery) ExistX(ctx context.Context) bool

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

func (*IssueCommentQuery) First

func (icq *IssueCommentQuery) First(ctx context.Context) (*IssueComment, error)

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

func (*IssueCommentQuery) FirstID

func (icq *IssueCommentQuery) FirstID(ctx context.Context) (id int64, err error)

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

func (*IssueCommentQuery) FirstIDX

func (icq *IssueCommentQuery) FirstIDX(ctx context.Context) int64

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

func (*IssueCommentQuery) FirstX

func (icq *IssueCommentQuery) FirstX(ctx context.Context) *IssueComment

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

func (*IssueCommentQuery) GroupBy

func (icq *IssueCommentQuery) GroupBy(field string, fields ...string) *IssueCommentGroupBy

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 {
	NodeID string `json:"node_id"`
	Count int `json:"count,omitempty"`
}

client.IssueComment.Query().
	GroupBy(issuecomment.FieldNodeID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*IssueCommentQuery) IDs

func (icq *IssueCommentQuery) IDs(ctx context.Context) (ids []int64, err error)

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

func (*IssueCommentQuery) IDsX

func (icq *IssueCommentQuery) IDsX(ctx context.Context) []int64

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

func (*IssueCommentQuery) Limit

func (icq *IssueCommentQuery) Limit(limit int) *IssueCommentQuery

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

func (*IssueCommentQuery) Offset

func (icq *IssueCommentQuery) Offset(offset int) *IssueCommentQuery

Offset to start from.

func (*IssueCommentQuery) Only

func (icq *IssueCommentQuery) Only(ctx context.Context) (*IssueComment, error)

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

func (*IssueCommentQuery) OnlyID

func (icq *IssueCommentQuery) OnlyID(ctx context.Context) (id int64, err error)

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

func (*IssueCommentQuery) OnlyIDX

func (icq *IssueCommentQuery) OnlyIDX(ctx context.Context) int64

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

func (*IssueCommentQuery) OnlyX

func (icq *IssueCommentQuery) OnlyX(ctx context.Context) *IssueComment

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

func (*IssueCommentQuery) Order

Order specifies how the records should be ordered.

func (*IssueCommentQuery) QueryIssue

func (icq *IssueCommentQuery) QueryIssue() *IssueQuery

QueryIssue chains the current query on the "issue" edge.

func (*IssueCommentQuery) QueryUser

func (icq *IssueCommentQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*IssueCommentQuery) Select

func (icq *IssueCommentQuery) Select(fields ...string) *IssueCommentSelect

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 {
	NodeID string `json:"node_id"`
}

client.IssueComment.Query().
	Select(issuecomment.FieldNodeID).
	Scan(ctx, &v)

func (*IssueCommentQuery) Unique

func (icq *IssueCommentQuery) Unique(unique bool) *IssueCommentQuery

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

Where adds a new predicate for the IssueCommentQuery builder.

func (*IssueCommentQuery) WithIssue

func (icq *IssueCommentQuery) WithIssue(opts ...func(*IssueQuery)) *IssueCommentQuery

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

func (*IssueCommentQuery) WithUser

func (icq *IssueCommentQuery) WithUser(opts ...func(*UserQuery)) *IssueCommentQuery

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

type IssueCommentSelect

type IssueCommentSelect struct {
	*IssueCommentQuery
	// contains filtered or unexported fields
}

IssueCommentSelect is the builder for selecting fields of IssueComment entities.

func (*IssueCommentSelect) Aggregate

func (ics *IssueCommentSelect) Aggregate(fns ...AggregateFunc) *IssueCommentSelect

Aggregate adds the given aggregation functions to the selector query.

func (*IssueCommentSelect) Bool

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

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

func (*IssueCommentSelect) BoolX

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

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

func (*IssueCommentSelect) Bools

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

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

func (*IssueCommentSelect) BoolsX

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

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

func (*IssueCommentSelect) Float64

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

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

func (*IssueCommentSelect) Float64X

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

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

func (*IssueCommentSelect) Float64s

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

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

func (*IssueCommentSelect) Float64sX

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

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

func (*IssueCommentSelect) Int

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

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

func (*IssueCommentSelect) IntX

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

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

func (*IssueCommentSelect) Ints

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

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

func (*IssueCommentSelect) IntsX

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

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

func (*IssueCommentSelect) Scan

func (ics *IssueCommentSelect) Scan(ctx context.Context, v any) error

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

func (*IssueCommentSelect) ScanX

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

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

func (*IssueCommentSelect) String

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

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

func (*IssueCommentSelect) StringX

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

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

func (*IssueCommentSelect) Strings

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

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

func (*IssueCommentSelect) StringsX

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

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

type IssueCommentUpdate

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

IssueCommentUpdate is the builder for updating IssueComment entities.

func (*IssueCommentUpdate) ClearIssue

func (icu *IssueCommentUpdate) ClearIssue() *IssueCommentUpdate

ClearIssue clears the "issue" edge to the Issue entity.

func (*IssueCommentUpdate) ClearUser

func (icu *IssueCommentUpdate) ClearUser() *IssueCommentUpdate

ClearUser clears the "user" edge to the User entity.

func (*IssueCommentUpdate) Exec

func (icu *IssueCommentUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueCommentUpdate) ExecX

func (icu *IssueCommentUpdate) ExecX(ctx context.Context)

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

func (*IssueCommentUpdate) Mutation

func (icu *IssueCommentUpdate) Mutation() *IssueCommentMutation

Mutation returns the IssueCommentMutation object of the builder.

func (*IssueCommentUpdate) Save

func (icu *IssueCommentUpdate) Save(ctx context.Context) (int, error)

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

func (*IssueCommentUpdate) SaveX

func (icu *IssueCommentUpdate) SaveX(ctx context.Context) int

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

func (*IssueCommentUpdate) SetAuthorAssociation

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentUpdate) SetBody

func (icu *IssueCommentUpdate) SetBody(s string) *IssueCommentUpdate

SetBody sets the "body" field.

func (*IssueCommentUpdate) SetCreatedAt

func (icu *IssueCommentUpdate) SetCreatedAt(s string) *IssueCommentUpdate

SetCreatedAt sets the "created_at" field.

func (*IssueCommentUpdate) SetHTMLURL

func (icu *IssueCommentUpdate) SetHTMLURL(s string) *IssueCommentUpdate

SetHTMLURL sets the "html_url" field.

func (*IssueCommentUpdate) SetIssue

func (icu *IssueCommentUpdate) SetIssue(i *Issue) *IssueCommentUpdate

SetIssue sets the "issue" edge to the Issue entity.

func (*IssueCommentUpdate) SetIssueID

func (icu *IssueCommentUpdate) SetIssueID(id int64) *IssueCommentUpdate

SetIssueID sets the "issue" edge to the Issue entity by ID.

func (*IssueCommentUpdate) SetIssueURL

func (icu *IssueCommentUpdate) SetIssueURL(s string) *IssueCommentUpdate

SetIssueURL sets the "issue_url" field.

func (*IssueCommentUpdate) SetNillableAuthorAssociation

func (icu *IssueCommentUpdate) SetNillableAuthorAssociation(ia *issuecomment.AuthorAssociation) *IssueCommentUpdate

SetNillableAuthorAssociation sets the "author_association" field if the given value is not nil.

func (*IssueCommentUpdate) SetNillableBody

func (icu *IssueCommentUpdate) SetNillableBody(s *string) *IssueCommentUpdate

SetNillableBody sets the "body" field if the given value is not nil.

func (*IssueCommentUpdate) SetNillableCreatedAt

func (icu *IssueCommentUpdate) SetNillableCreatedAt(s *string) *IssueCommentUpdate

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

func (*IssueCommentUpdate) SetNillableHTMLURL

func (icu *IssueCommentUpdate) SetNillableHTMLURL(s *string) *IssueCommentUpdate

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*IssueCommentUpdate) SetNillableIssueID

func (icu *IssueCommentUpdate) SetNillableIssueID(id *int64) *IssueCommentUpdate

SetNillableIssueID sets the "issue" edge to the Issue entity by ID if the given value is not nil.

func (*IssueCommentUpdate) SetNillableIssueURL

func (icu *IssueCommentUpdate) SetNillableIssueURL(s *string) *IssueCommentUpdate

SetNillableIssueURL sets the "issue_url" field if the given value is not nil.

func (*IssueCommentUpdate) SetNillableNodeID

func (icu *IssueCommentUpdate) SetNillableNodeID(s *string) *IssueCommentUpdate

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*IssueCommentUpdate) SetNillableURL

func (icu *IssueCommentUpdate) SetNillableURL(s *string) *IssueCommentUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*IssueCommentUpdate) SetNillableUpdatedAt

func (icu *IssueCommentUpdate) SetNillableUpdatedAt(s *string) *IssueCommentUpdate

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

func (*IssueCommentUpdate) SetNillableUserID

func (icu *IssueCommentUpdate) SetNillableUserID(id *int64) *IssueCommentUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*IssueCommentUpdate) SetNodeID

func (icu *IssueCommentUpdate) SetNodeID(s string) *IssueCommentUpdate

SetNodeID sets the "node_id" field.

func (*IssueCommentUpdate) SetReactions

func (icu *IssueCommentUpdate) SetReactions(m map[string]interface{}) *IssueCommentUpdate

SetReactions sets the "reactions" field.

func (*IssueCommentUpdate) SetURL

SetURL sets the "url" field.

func (*IssueCommentUpdate) SetUpdatedAt

func (icu *IssueCommentUpdate) SetUpdatedAt(s string) *IssueCommentUpdate

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentUpdate) SetUser

func (icu *IssueCommentUpdate) SetUser(u *User) *IssueCommentUpdate

SetUser sets the "user" edge to the User entity.

func (*IssueCommentUpdate) SetUserID

func (icu *IssueCommentUpdate) SetUserID(id int64) *IssueCommentUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*IssueCommentUpdate) Where

Where appends a list predicates to the IssueCommentUpdate builder.

type IssueCommentUpdateOne

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

IssueCommentUpdateOne is the builder for updating a single IssueComment entity.

func (*IssueCommentUpdateOne) ClearIssue

func (icuo *IssueCommentUpdateOne) ClearIssue() *IssueCommentUpdateOne

ClearIssue clears the "issue" edge to the Issue entity.

func (*IssueCommentUpdateOne) ClearUser

func (icuo *IssueCommentUpdateOne) ClearUser() *IssueCommentUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*IssueCommentUpdateOne) CopyIssueComment

func (icuo *IssueCommentUpdateOne) CopyIssueComment(input *IssueComment) *IssueCommentUpdateOne

CopyIssueComment allows to update a IssueComment copying the existing values of input.

func (*IssueCommentUpdateOne) Exec

func (icuo *IssueCommentUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*IssueCommentUpdateOne) ExecX

func (icuo *IssueCommentUpdateOne) ExecX(ctx context.Context)

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

func (*IssueCommentUpdateOne) Mutation

func (icuo *IssueCommentUpdateOne) Mutation() *IssueCommentMutation

Mutation returns the IssueCommentMutation object of the builder.

func (*IssueCommentUpdateOne) Save

Save executes the query and returns the updated IssueComment entity.

func (*IssueCommentUpdateOne) SaveX

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

func (*IssueCommentUpdateOne) Select

func (icuo *IssueCommentUpdateOne) Select(field string, fields ...string) *IssueCommentUpdateOne

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

func (*IssueCommentUpdateOne) SetAuthorAssociation

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentUpdateOne) SetBody

SetBody sets the "body" field.

func (*IssueCommentUpdateOne) SetCreatedAt

func (icuo *IssueCommentUpdateOne) SetCreatedAt(s string) *IssueCommentUpdateOne

SetCreatedAt sets the "created_at" field.

func (*IssueCommentUpdateOne) SetHTMLURL

func (icuo *IssueCommentUpdateOne) SetHTMLURL(s string) *IssueCommentUpdateOne

SetHTMLURL sets the "html_url" field.

func (*IssueCommentUpdateOne) SetIssue

SetIssue sets the "issue" edge to the Issue entity.

func (*IssueCommentUpdateOne) SetIssueID

func (icuo *IssueCommentUpdateOne) SetIssueID(id int64) *IssueCommentUpdateOne

SetIssueID sets the "issue" edge to the Issue entity by ID.

func (*IssueCommentUpdateOne) SetIssueURL

func (icuo *IssueCommentUpdateOne) SetIssueURL(s string) *IssueCommentUpdateOne

SetIssueURL sets the "issue_url" field.

func (*IssueCommentUpdateOne) SetNillableAuthorAssociation

func (icuo *IssueCommentUpdateOne) SetNillableAuthorAssociation(ia *issuecomment.AuthorAssociation) *IssueCommentUpdateOne

SetNillableAuthorAssociation sets the "author_association" field if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableBody

func (icuo *IssueCommentUpdateOne) SetNillableBody(s *string) *IssueCommentUpdateOne

SetNillableBody sets the "body" field if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableCreatedAt

func (icuo *IssueCommentUpdateOne) SetNillableCreatedAt(s *string) *IssueCommentUpdateOne

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

func (*IssueCommentUpdateOne) SetNillableHTMLURL

func (icuo *IssueCommentUpdateOne) SetNillableHTMLURL(s *string) *IssueCommentUpdateOne

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableIssueID

func (icuo *IssueCommentUpdateOne) SetNillableIssueID(id *int64) *IssueCommentUpdateOne

SetNillableIssueID sets the "issue" edge to the Issue entity by ID if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableIssueURL

func (icuo *IssueCommentUpdateOne) SetNillableIssueURL(s *string) *IssueCommentUpdateOne

SetNillableIssueURL sets the "issue_url" field if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableNodeID

func (icuo *IssueCommentUpdateOne) SetNillableNodeID(s *string) *IssueCommentUpdateOne

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableURL

func (icuo *IssueCommentUpdateOne) SetNillableURL(s *string) *IssueCommentUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*IssueCommentUpdateOne) SetNillableUpdatedAt

func (icuo *IssueCommentUpdateOne) SetNillableUpdatedAt(s *string) *IssueCommentUpdateOne

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

func (*IssueCommentUpdateOne) SetNillableUserID

func (icuo *IssueCommentUpdateOne) SetNillableUserID(id *int64) *IssueCommentUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*IssueCommentUpdateOne) SetNodeID

SetNodeID sets the "node_id" field.

func (*IssueCommentUpdateOne) SetReactions

func (icuo *IssueCommentUpdateOne) SetReactions(m map[string]interface{}) *IssueCommentUpdateOne

SetReactions sets the "reactions" field.

func (*IssueCommentUpdateOne) SetURL

SetURL sets the "url" field.

func (*IssueCommentUpdateOne) SetUpdatedAt

func (icuo *IssueCommentUpdateOne) SetUpdatedAt(s string) *IssueCommentUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentUpdateOne) SetUser

SetUser sets the "user" edge to the User entity.

func (*IssueCommentUpdateOne) SetUserID

func (icuo *IssueCommentUpdateOne) SetUserID(id int64) *IssueCommentUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*IssueCommentUpdateOne) Where

Where appends a list predicates to the IssueCommentUpdate builder.

type IssueCommentUpsert

type IssueCommentUpsert struct {
	*sql.UpdateSet
}

IssueCommentUpsert is the "OnConflict" setter.

func (*IssueCommentUpsert) SetAuthorAssociation

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentUpsert) SetBody

SetBody sets the "body" field.

func (*IssueCommentUpsert) SetCreatedAt

func (u *IssueCommentUpsert) SetCreatedAt(v string) *IssueCommentUpsert

SetCreatedAt sets the "created_at" field.

func (*IssueCommentUpsert) SetHTMLURL

func (u *IssueCommentUpsert) SetHTMLURL(v string) *IssueCommentUpsert

SetHTMLURL sets the "html_url" field.

func (*IssueCommentUpsert) SetIssueURL

func (u *IssueCommentUpsert) SetIssueURL(v string) *IssueCommentUpsert

SetIssueURL sets the "issue_url" field.

func (*IssueCommentUpsert) SetNodeID

func (u *IssueCommentUpsert) SetNodeID(v string) *IssueCommentUpsert

SetNodeID sets the "node_id" field.

func (*IssueCommentUpsert) SetReactions

func (u *IssueCommentUpsert) SetReactions(v map[string]interface{}) *IssueCommentUpsert

SetReactions sets the "reactions" field.

func (*IssueCommentUpsert) SetURL

SetURL sets the "url" field.

func (*IssueCommentUpsert) SetUpdatedAt

func (u *IssueCommentUpsert) SetUpdatedAt(v string) *IssueCommentUpsert

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentUpsert) UpdateAuthorAssociation

func (u *IssueCommentUpsert) UpdateAuthorAssociation() *IssueCommentUpsert

UpdateAuthorAssociation sets the "author_association" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateBody

func (u *IssueCommentUpsert) UpdateBody() *IssueCommentUpsert

UpdateBody sets the "body" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateCreatedAt

func (u *IssueCommentUpsert) UpdateCreatedAt() *IssueCommentUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateHTMLURL

func (u *IssueCommentUpsert) UpdateHTMLURL() *IssueCommentUpsert

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateIssueURL

func (u *IssueCommentUpsert) UpdateIssueURL() *IssueCommentUpsert

UpdateIssueURL sets the "issue_url" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateNodeID

func (u *IssueCommentUpsert) UpdateNodeID() *IssueCommentUpsert

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateReactions

func (u *IssueCommentUpsert) UpdateReactions() *IssueCommentUpsert

UpdateReactions sets the "reactions" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateURL

func (u *IssueCommentUpsert) UpdateURL() *IssueCommentUpsert

UpdateURL sets the "url" field to the value that was provided on create.

func (*IssueCommentUpsert) UpdateUpdatedAt

func (u *IssueCommentUpsert) UpdateUpdatedAt() *IssueCommentUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type IssueCommentUpsertBulk

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

IssueCommentUpsertBulk is the builder for "upsert"-ing a bulk of IssueComment nodes.

func (*IssueCommentUpsertBulk) DoNothing

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

func (*IssueCommentUpsertBulk) Exec

Exec executes the query.

func (*IssueCommentUpsertBulk) ExecX

func (u *IssueCommentUpsertBulk) ExecX(ctx context.Context)

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

func (*IssueCommentUpsertBulk) Ignore

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

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

func (*IssueCommentUpsertBulk) SetAuthorAssociation

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentUpsertBulk) SetBody

SetBody sets the "body" field.

func (*IssueCommentUpsertBulk) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*IssueCommentUpsertBulk) SetHTMLURL

SetHTMLURL sets the "html_url" field.

func (*IssueCommentUpsertBulk) SetIssueURL

SetIssueURL sets the "issue_url" field.

func (*IssueCommentUpsertBulk) SetNodeID

SetNodeID sets the "node_id" field.

func (*IssueCommentUpsertBulk) SetReactions

func (u *IssueCommentUpsertBulk) SetReactions(v map[string]interface{}) *IssueCommentUpsertBulk

SetReactions sets the "reactions" field.

func (*IssueCommentUpsertBulk) SetURL

SetURL sets the "url" field.

func (*IssueCommentUpsertBulk) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentUpsertBulk) Update

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

func (*IssueCommentUpsertBulk) UpdateAuthorAssociation

func (u *IssueCommentUpsertBulk) UpdateAuthorAssociation() *IssueCommentUpsertBulk

UpdateAuthorAssociation sets the "author_association" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateBody

UpdateBody sets the "body" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateCreatedAt

func (u *IssueCommentUpsertBulk) UpdateCreatedAt() *IssueCommentUpsertBulk

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateHTMLURL

func (u *IssueCommentUpsertBulk) UpdateHTMLURL() *IssueCommentUpsertBulk

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateIssueURL

func (u *IssueCommentUpsertBulk) UpdateIssueURL() *IssueCommentUpsertBulk

UpdateIssueURL sets the "issue_url" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateNewValues

func (u *IssueCommentUpsertBulk) UpdateNewValues() *IssueCommentUpsertBulk

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

client.IssueComment.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(issuecomment.FieldID)
		}),
	).
	Exec(ctx)

func (*IssueCommentUpsertBulk) UpdateNodeID

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateReactions

func (u *IssueCommentUpsertBulk) UpdateReactions() *IssueCommentUpsertBulk

UpdateReactions sets the "reactions" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateURL

UpdateURL sets the "url" field to the value that was provided on create.

func (*IssueCommentUpsertBulk) UpdateUpdatedAt

func (u *IssueCommentUpsertBulk) UpdateUpdatedAt() *IssueCommentUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type IssueCommentUpsertOne

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

IssueCommentUpsertOne is the builder for "upsert"-ing

one IssueComment node.

func (*IssueCommentUpsertOne) DoNothing

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

func (*IssueCommentUpsertOne) Exec

Exec executes the query.

func (*IssueCommentUpsertOne) ExecX

func (u *IssueCommentUpsertOne) ExecX(ctx context.Context)

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

func (*IssueCommentUpsertOne) ID

func (u *IssueCommentUpsertOne) ID(ctx context.Context) (id int64, err error)

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

func (*IssueCommentUpsertOne) IDX

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

func (*IssueCommentUpsertOne) Ignore

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

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

func (*IssueCommentUpsertOne) SetAuthorAssociation

SetAuthorAssociation sets the "author_association" field.

func (*IssueCommentUpsertOne) SetBody

SetBody sets the "body" field.

func (*IssueCommentUpsertOne) SetCreatedAt

SetCreatedAt sets the "created_at" field.

func (*IssueCommentUpsertOne) SetHTMLURL

SetHTMLURL sets the "html_url" field.

func (*IssueCommentUpsertOne) SetIssueURL

SetIssueURL sets the "issue_url" field.

func (*IssueCommentUpsertOne) SetNodeID

SetNodeID sets the "node_id" field.

func (*IssueCommentUpsertOne) SetReactions

func (u *IssueCommentUpsertOne) SetReactions(v map[string]interface{}) *IssueCommentUpsertOne

SetReactions sets the "reactions" field.

func (*IssueCommentUpsertOne) SetURL

SetURL sets the "url" field.

func (*IssueCommentUpsertOne) SetUpdatedAt

SetUpdatedAt sets the "updated_at" field.

func (*IssueCommentUpsertOne) Update

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

func (*IssueCommentUpsertOne) UpdateAuthorAssociation

func (u *IssueCommentUpsertOne) UpdateAuthorAssociation() *IssueCommentUpsertOne

UpdateAuthorAssociation sets the "author_association" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateBody

UpdateBody sets the "body" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateCreatedAt

func (u *IssueCommentUpsertOne) UpdateCreatedAt() *IssueCommentUpsertOne

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateHTMLURL

func (u *IssueCommentUpsertOne) UpdateHTMLURL() *IssueCommentUpsertOne

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateIssueURL

func (u *IssueCommentUpsertOne) UpdateIssueURL() *IssueCommentUpsertOne

UpdateIssueURL sets the "issue_url" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateNewValues

func (u *IssueCommentUpsertOne) UpdateNewValues() *IssueCommentUpsertOne

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

client.IssueComment.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(issuecomment.FieldID)
		}),
	).
	Exec(ctx)

func (*IssueCommentUpsertOne) UpdateNodeID

func (u *IssueCommentUpsertOne) UpdateNodeID() *IssueCommentUpsertOne

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateReactions

func (u *IssueCommentUpsertOne) UpdateReactions() *IssueCommentUpsertOne

UpdateReactions sets the "reactions" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateURL

UpdateURL sets the "url" field to the value that was provided on create.

func (*IssueCommentUpsertOne) UpdateUpdatedAt

func (u *IssueCommentUpsertOne) UpdateUpdatedAt() *IssueCommentUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type IssueComments

type IssueComments []*IssueComment

IssueComments is a parsable slice of IssueComment.

type IssueCreate

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

IssueCreate is the builder for creating a Issue entity.

func (*IssueCreate) AddAssigneeIDs

func (ic *IssueCreate) AddAssigneeIDs(ids ...int64) *IssueCreate

AddAssigneeIDs adds the "assignees" edge to the User entity by IDs.

func (*IssueCreate) AddAssignees

func (ic *IssueCreate) AddAssignees(u ...*User) *IssueCreate

AddAssignees adds the "assignees" edges to the User entity.

func (*IssueCreate) AddCommentIDs

func (ic *IssueCreate) AddCommentIDs(ids ...int64) *IssueCreate

AddCommentIDs adds the "comments" edge to the IssueComment entity by IDs.

func (*IssueCreate) AddComments

func (ic *IssueCreate) AddComments(i ...*IssueComment) *IssueCreate

AddComments adds the "comments" edges to the IssueComment entity.

func (*IssueCreate) CopyIssue

func (ic *IssueCreate) CopyIssue(input *Issue) *IssueCreate

CopyIssue allows to create a new Issue copying the existing values of input.

func (*IssueCreate) Exec

func (ic *IssueCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueCreate) ExecX

func (ic *IssueCreate) ExecX(ctx context.Context)

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

func (*IssueCreate) Mutation

func (ic *IssueCreate) Mutation() *IssueMutation

Mutation returns the IssueMutation object of the builder.

func (*IssueCreate) OnConflict

func (ic *IssueCreate) OnConflict(opts ...sql.ConflictOption) *IssueUpsertOne

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

client.Issue.Create().
	SetNodeID(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.IssueUpsert) {
		SetNodeID(v+v).
	}).
	Exec(ctx)

func (*IssueCreate) OnConflictColumns

func (ic *IssueCreate) OnConflictColumns(columns ...string) *IssueUpsertOne

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

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

func (*IssueCreate) Save

func (ic *IssueCreate) Save(ctx context.Context) (*Issue, error)

Save creates the Issue in the database.

func (*IssueCreate) SaveX

func (ic *IssueCreate) SaveX(ctx context.Context) *Issue

SaveX calls Save and panics if Save returns an error.

func (*IssueCreate) SetActiveLockReason

func (ic *IssueCreate) SetActiveLockReason(s string) *IssueCreate

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueCreate) SetAuthorAssociation

func (ic *IssueCreate) SetAuthorAssociation(ia issue.AuthorAssociation) *IssueCreate

SetAuthorAssociation sets the "author_association" field.

func (*IssueCreate) SetBody

func (ic *IssueCreate) SetBody(s string) *IssueCreate

SetBody sets the "body" field.

func (*IssueCreate) SetClosedAt

func (ic *IssueCreate) SetClosedAt(t time.Time) *IssueCreate

SetClosedAt sets the "closed_at" field.

func (*IssueCreate) SetClosedBy

func (ic *IssueCreate) SetClosedBy(u *User) *IssueCreate

SetClosedBy sets the "closed_by" edge to the User entity.

func (*IssueCreate) SetClosedByID

func (ic *IssueCreate) SetClosedByID(id int64) *IssueCreate

SetClosedByID sets the "closed_by" edge to the User entity by ID.

func (*IssueCreate) SetCommentsURL

func (ic *IssueCreate) SetCommentsURL(s string) *IssueCreate

SetCommentsURL sets the "comments_url" field.

func (*IssueCreate) SetCreatedAt

func (ic *IssueCreate) SetCreatedAt(t time.Time) *IssueCreate

SetCreatedAt sets the "created_at" field.

func (*IssueCreate) SetDraft

func (ic *IssueCreate) SetDraft(b bool) *IssueCreate

SetDraft sets the "draft" field.

func (*IssueCreate) SetEventsURL

func (ic *IssueCreate) SetEventsURL(s string) *IssueCreate

SetEventsURL sets the "events_url" field.

func (*IssueCreate) SetHTMLURL

func (ic *IssueCreate) SetHTMLURL(s string) *IssueCreate

SetHTMLURL sets the "html_url" field.

func (*IssueCreate) SetID

func (ic *IssueCreate) SetID(i int64) *IssueCreate

SetID sets the "id" field.

func (*IssueCreate) SetLabelsURL

func (ic *IssueCreate) SetLabelsURL(s string) *IssueCreate

SetLabelsURL sets the "labels_url" field.

func (*IssueCreate) SetLocked

func (ic *IssueCreate) SetLocked(b bool) *IssueCreate

SetLocked sets the "locked" field.

func (*IssueCreate) SetNillableActiveLockReason

func (ic *IssueCreate) SetNillableActiveLockReason(s *string) *IssueCreate

SetNillableActiveLockReason sets the "active_lock_reason" field if the given value is not nil.

func (*IssueCreate) SetNillableBody

func (ic *IssueCreate) SetNillableBody(s *string) *IssueCreate

SetNillableBody sets the "body" field if the given value is not nil.

func (*IssueCreate) SetNillableClosedAt

func (ic *IssueCreate) SetNillableClosedAt(t *time.Time) *IssueCreate

SetNillableClosedAt sets the "closed_at" field if the given value is not nil.

func (*IssueCreate) SetNillableClosedByID

func (ic *IssueCreate) SetNillableClosedByID(id *int64) *IssueCreate

SetNillableClosedByID sets the "closed_by" edge to the User entity by ID if the given value is not nil.

func (*IssueCreate) SetNillableStateReason

func (ic *IssueCreate) SetNillableStateReason(ir *issue.StateReason) *IssueCreate

SetNillableStateReason sets the "state_reason" field if the given value is not nil.

func (*IssueCreate) SetNillableUserID

func (ic *IssueCreate) SetNillableUserID(id *int64) *IssueCreate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*IssueCreate) SetNodeID

func (ic *IssueCreate) SetNodeID(s string) *IssueCreate

SetNodeID sets the "node_id" field.

func (*IssueCreate) SetNumber

func (ic *IssueCreate) SetNumber(i int64) *IssueCreate

SetNumber sets the "number" field.

func (*IssueCreate) SetReactions

func (ic *IssueCreate) SetReactions(m map[string]interface{}) *IssueCreate

SetReactions sets the "reactions" field.

func (*IssueCreate) SetRepository

func (ic *IssueCreate) SetRepository(r *Repository) *IssueCreate

SetRepository sets the "repository" edge to the Repository entity.

func (*IssueCreate) SetRepositoryID

func (ic *IssueCreate) SetRepositoryID(id int64) *IssueCreate

SetRepositoryID sets the "repository" edge to the Repository entity by ID.

func (*IssueCreate) SetRepositoryURL

func (ic *IssueCreate) SetRepositoryURL(s string) *IssueCreate

SetRepositoryURL sets the "repository_url" field.

func (*IssueCreate) SetState

func (ic *IssueCreate) SetState(s string) *IssueCreate

SetState sets the "state" field.

func (*IssueCreate) SetStateReason

func (ic *IssueCreate) SetStateReason(ir issue.StateReason) *IssueCreate

SetStateReason sets the "state_reason" field.

func (*IssueCreate) SetTitle

func (ic *IssueCreate) SetTitle(s string) *IssueCreate

SetTitle sets the "title" field.

func (*IssueCreate) SetURL

func (ic *IssueCreate) SetURL(s string) *IssueCreate

SetURL sets the "url" field.

func (*IssueCreate) SetUpdatedAt

func (ic *IssueCreate) SetUpdatedAt(t time.Time) *IssueCreate

SetUpdatedAt sets the "updated_at" field.

func (*IssueCreate) SetUser

func (ic *IssueCreate) SetUser(u *User) *IssueCreate

SetUser sets the "user" edge to the User entity.

func (*IssueCreate) SetUserID

func (ic *IssueCreate) SetUserID(id int64) *IssueCreate

SetUserID sets the "user" edge to the User entity by ID.

type IssueCreateBulk

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

IssueCreateBulk is the builder for creating many Issue entities in bulk.

func (*IssueCreateBulk) Exec

func (icb *IssueCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueCreateBulk) ExecX

func (icb *IssueCreateBulk) ExecX(ctx context.Context)

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

func (*IssueCreateBulk) OnConflict

func (icb *IssueCreateBulk) OnConflict(opts ...sql.ConflictOption) *IssueUpsertBulk

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

client.Issue.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.IssueUpsert) {
		SetNodeID(v+v).
	}).
	Exec(ctx)

func (*IssueCreateBulk) OnConflictColumns

func (icb *IssueCreateBulk) OnConflictColumns(columns ...string) *IssueUpsertBulk

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

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

func (*IssueCreateBulk) Save

func (icb *IssueCreateBulk) Save(ctx context.Context) ([]*Issue, error)

Save creates the Issue entities in the database.

func (*IssueCreateBulk) SaveX

func (icb *IssueCreateBulk) SaveX(ctx context.Context) []*Issue

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

type IssueDelete

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

IssueDelete is the builder for deleting a Issue entity.

func (*IssueDelete) Exec

func (id *IssueDelete) Exec(ctx context.Context) (int, error)

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

func (*IssueDelete) ExecX

func (id *IssueDelete) ExecX(ctx context.Context) int

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

func (*IssueDelete) Where

func (id *IssueDelete) Where(ps ...predicate.Issue) *IssueDelete

Where appends a list predicates to the IssueDelete builder.

type IssueDeleteOne

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

IssueDeleteOne is the builder for deleting a single Issue entity.

func (*IssueDeleteOne) Exec

func (ido *IssueDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*IssueDeleteOne) ExecX

func (ido *IssueDeleteOne) ExecX(ctx context.Context)

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

func (*IssueDeleteOne) Where

func (ido *IssueDeleteOne) Where(ps ...predicate.Issue) *IssueDeleteOne

Where appends a list predicates to the IssueDelete builder.

type IssueEdges

type IssueEdges struct {
	// Repository holds the value of the repository edge.
	Repository *Repository `json:"repository,omitempty"`
	// User holds the value of the user edge.
	User *User `json:"user,omitempty"`
	// Assignees holds the value of the assignees edge.
	Assignees []*User `json:"assignees,omitempty"`
	// ClosedBy holds the value of the closed_by edge.
	ClosedBy *User `json:"closed_by,omitempty"`
	// Comments holds the value of the comments edge.
	Comments []*IssueComment `json:"comments,omitempty"`
	// contains filtered or unexported fields
}

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

func (IssueEdges) AssigneesOrErr

func (e IssueEdges) AssigneesOrErr() ([]*User, error)

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

func (IssueEdges) ClosedByOrErr

func (e IssueEdges) ClosedByOrErr() (*User, error)

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

func (IssueEdges) CommentsOrErr

func (e IssueEdges) CommentsOrErr() ([]*IssueComment, error)

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

func (IssueEdges) RepositoryOrErr

func (e IssueEdges) RepositoryOrErr() (*Repository, error)

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

func (IssueEdges) UserOrErr

func (e IssueEdges) UserOrErr() (*User, error)

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

type IssueGroupBy

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

IssueGroupBy is the group-by builder for Issue entities.

func (*IssueGroupBy) Aggregate

func (igb *IssueGroupBy) Aggregate(fns ...AggregateFunc) *IssueGroupBy

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

func (*IssueGroupBy) Bool

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

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

func (*IssueGroupBy) BoolX

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

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

func (*IssueGroupBy) Bools

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

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

func (*IssueGroupBy) BoolsX

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

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

func (*IssueGroupBy) Float64

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

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

func (*IssueGroupBy) Float64X

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

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

func (*IssueGroupBy) Float64s

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

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

func (*IssueGroupBy) Float64sX

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

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

func (*IssueGroupBy) Int

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

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

func (*IssueGroupBy) IntX

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

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

func (*IssueGroupBy) Ints

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

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

func (*IssueGroupBy) IntsX

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

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

func (*IssueGroupBy) Scan

func (igb *IssueGroupBy) Scan(ctx context.Context, v any) error

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

func (*IssueGroupBy) ScanX

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

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

func (*IssueGroupBy) String

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

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

func (*IssueGroupBy) StringX

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

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

func (*IssueGroupBy) Strings

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

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

func (*IssueGroupBy) StringsX

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

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

type IssueMutation

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

IssueMutation represents an operation that mutates the Issue nodes in the graph.

func (*IssueMutation) ActiveLockReason

func (m *IssueMutation) ActiveLockReason() (r string, exists bool)

ActiveLockReason returns the value of the "active_lock_reason" field in the mutation.

func (*IssueMutation) ActiveLockReasonCleared

func (m *IssueMutation) ActiveLockReasonCleared() bool

ActiveLockReasonCleared returns if the "active_lock_reason" field was cleared in this mutation.

func (*IssueMutation) AddAssigneeIDs

func (m *IssueMutation) AddAssigneeIDs(ids ...int64)

AddAssigneeIDs adds the "assignees" edge to the User entity by ids.

func (*IssueMutation) AddCommentIDs

func (m *IssueMutation) AddCommentIDs(ids ...int64)

AddCommentIDs adds the "comments" edge to the IssueComment entity by ids.

func (*IssueMutation) AddField

func (m *IssueMutation) 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 (*IssueMutation) AddNumber

func (m *IssueMutation) AddNumber(i int64)

AddNumber adds i to the "number" field.

func (*IssueMutation) AddedEdges

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

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

func (*IssueMutation) AddedField

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

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

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

func (*IssueMutation) AddedIDs

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

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

func (*IssueMutation) AddedNumber

func (m *IssueMutation) AddedNumber() (r int64, exists bool)

AddedNumber returns the value that was added to the "number" field in this mutation.

func (*IssueMutation) AssigneesCleared

func (m *IssueMutation) AssigneesCleared() bool

AssigneesCleared reports if the "assignees" edge to the User entity was cleared.

func (*IssueMutation) AssigneesIDs

func (m *IssueMutation) AssigneesIDs() (ids []int64)

AssigneesIDs returns the "assignees" edge IDs in the mutation.

func (*IssueMutation) AuthorAssociation

func (m *IssueMutation) AuthorAssociation() (r issue.AuthorAssociation, exists bool)

AuthorAssociation returns the value of the "author_association" field in the mutation.

func (*IssueMutation) Body

func (m *IssueMutation) Body() (r string, exists bool)

Body returns the value of the "body" field in the mutation.

func (*IssueMutation) BodyCleared

func (m *IssueMutation) BodyCleared() bool

BodyCleared returns if the "body" field was cleared in this mutation.

func (*IssueMutation) ClearActiveLockReason

func (m *IssueMutation) ClearActiveLockReason()

ClearActiveLockReason clears the value of the "active_lock_reason" field.

func (*IssueMutation) ClearAssignees

func (m *IssueMutation) ClearAssignees()

ClearAssignees clears the "assignees" edge to the User entity.

func (*IssueMutation) ClearBody

func (m *IssueMutation) ClearBody()

ClearBody clears the value of the "body" field.

func (*IssueMutation) ClearClosedAt

func (m *IssueMutation) ClearClosedAt()

ClearClosedAt clears the value of the "closed_at" field.

func (*IssueMutation) ClearClosedBy

func (m *IssueMutation) ClearClosedBy()

ClearClosedBy clears the "closed_by" edge to the User entity.

func (*IssueMutation) ClearComments

func (m *IssueMutation) ClearComments()

ClearComments clears the "comments" edge to the IssueComment entity.

func (*IssueMutation) ClearEdge

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

func (m *IssueMutation) 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 (*IssueMutation) ClearRepository

func (m *IssueMutation) ClearRepository()

ClearRepository clears the "repository" edge to the Repository entity.

func (*IssueMutation) ClearStateReason

func (m *IssueMutation) ClearStateReason()

ClearStateReason clears the value of the "state_reason" field.

func (*IssueMutation) ClearUser

func (m *IssueMutation) ClearUser()

ClearUser clears the "user" edge to the User entity.

func (*IssueMutation) ClearedEdges

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

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

func (*IssueMutation) ClearedFields

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

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

func (IssueMutation) Client

func (m IssueMutation) 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 (*IssueMutation) ClosedAt

func (m *IssueMutation) ClosedAt() (r time.Time, exists bool)

ClosedAt returns the value of the "closed_at" field in the mutation.

func (*IssueMutation) ClosedAtCleared

func (m *IssueMutation) ClosedAtCleared() bool

ClosedAtCleared returns if the "closed_at" field was cleared in this mutation.

func (*IssueMutation) ClosedByCleared

func (m *IssueMutation) ClosedByCleared() bool

ClosedByCleared reports if the "closed_by" edge to the User entity was cleared.

func (*IssueMutation) ClosedByID

func (m *IssueMutation) ClosedByID() (id int64, exists bool)

ClosedByID returns the "closed_by" edge ID in the mutation.

func (*IssueMutation) ClosedByIDs

func (m *IssueMutation) ClosedByIDs() (ids []int64)

ClosedByIDs returns the "closed_by" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ClosedByID instead. It exists only for internal usage by the builders.

func (*IssueMutation) CommentsCleared

func (m *IssueMutation) CommentsCleared() bool

CommentsCleared reports if the "comments" edge to the IssueComment entity was cleared.

func (*IssueMutation) CommentsIDs

func (m *IssueMutation) CommentsIDs() (ids []int64)

CommentsIDs returns the "comments" edge IDs in the mutation.

func (*IssueMutation) CommentsURL

func (m *IssueMutation) CommentsURL() (r string, exists bool)

CommentsURL returns the value of the "comments_url" field in the mutation.

func (*IssueMutation) CreatedAt

func (m *IssueMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*IssueMutation) Draft

func (m *IssueMutation) Draft() (r bool, exists bool)

Draft returns the value of the "draft" field in the mutation.

func (*IssueMutation) EdgeCleared

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

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

func (*IssueMutation) EventsURL

func (m *IssueMutation) EventsURL() (r string, exists bool)

EventsURL returns the value of the "events_url" field in the mutation.

func (*IssueMutation) Field

func (m *IssueMutation) 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 (*IssueMutation) FieldCleared

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

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

func (*IssueMutation) Fields

func (m *IssueMutation) 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 (*IssueMutation) HTMLURL

func (m *IssueMutation) HTMLURL() (r string, exists bool)

HTMLURL returns the value of the "html_url" field in the mutation.

func (*IssueMutation) ID

func (m *IssueMutation) ID() (id int64, 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 (*IssueMutation) IDs

func (m *IssueMutation) IDs(ctx context.Context) ([]int64, 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 (*IssueMutation) LabelsURL

func (m *IssueMutation) LabelsURL() (r string, exists bool)

LabelsURL returns the value of the "labels_url" field in the mutation.

func (*IssueMutation) Locked

func (m *IssueMutation) Locked() (r bool, exists bool)

Locked returns the value of the "locked" field in the mutation.

func (*IssueMutation) NodeID

func (m *IssueMutation) NodeID() (r string, exists bool)

NodeID returns the value of the "node_id" field in the mutation.

func (*IssueMutation) Number

func (m *IssueMutation) Number() (r int64, exists bool)

Number returns the value of the "number" field in the mutation.

func (*IssueMutation) OldActiveLockReason

func (m *IssueMutation) OldActiveLockReason(ctx context.Context) (v *string, err error)

OldActiveLockReason returns the old "active_lock_reason" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldAuthorAssociation

func (m *IssueMutation) OldAuthorAssociation(ctx context.Context) (v issue.AuthorAssociation, err error)

OldAuthorAssociation returns the old "author_association" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldBody

func (m *IssueMutation) OldBody(ctx context.Context) (v *string, err error)

OldBody returns the old "body" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldClosedAt

func (m *IssueMutation) OldClosedAt(ctx context.Context) (v *time.Time, err error)

OldClosedAt returns the old "closed_at" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldCommentsURL

func (m *IssueMutation) OldCommentsURL(ctx context.Context) (v string, err error)

OldCommentsURL returns the old "comments_url" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldCreatedAt

func (m *IssueMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldDraft

func (m *IssueMutation) OldDraft(ctx context.Context) (v bool, err error)

OldDraft returns the old "draft" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldEventsURL

func (m *IssueMutation) OldEventsURL(ctx context.Context) (v string, err error)

OldEventsURL returns the old "events_url" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldField

func (m *IssueMutation) 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 (*IssueMutation) OldHTMLURL

func (m *IssueMutation) OldHTMLURL(ctx context.Context) (v string, err error)

OldHTMLURL returns the old "html_url" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldLabelsURL

func (m *IssueMutation) OldLabelsURL(ctx context.Context) (v string, err error)

OldLabelsURL returns the old "labels_url" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldLocked

func (m *IssueMutation) OldLocked(ctx context.Context) (v bool, err error)

OldLocked returns the old "locked" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldNodeID

func (m *IssueMutation) OldNodeID(ctx context.Context) (v string, err error)

OldNodeID returns the old "node_id" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldNumber

func (m *IssueMutation) OldNumber(ctx context.Context) (v int64, err error)

OldNumber returns the old "number" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldReactions

func (m *IssueMutation) OldReactions(ctx context.Context) (v map[string]interface{}, err error)

OldReactions returns the old "reactions" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldRepositoryURL

func (m *IssueMutation) OldRepositoryURL(ctx context.Context) (v string, err error)

OldRepositoryURL returns the old "repository_url" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldState

func (m *IssueMutation) OldState(ctx context.Context) (v string, err error)

OldState returns the old "state" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldStateReason

func (m *IssueMutation) OldStateReason(ctx context.Context) (v *issue.StateReason, err error)

OldStateReason returns the old "state_reason" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldTitle

func (m *IssueMutation) OldTitle(ctx context.Context) (v string, err error)

OldTitle returns the old "title" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldURL

func (m *IssueMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the Issue entity. If the Issue 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 (*IssueMutation) OldUpdatedAt

func (m *IssueMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Issue entity. If the Issue 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 (*IssueMutation) Op

func (m *IssueMutation) Op() Op

Op returns the operation name.

func (*IssueMutation) Reactions

func (m *IssueMutation) Reactions() (r map[string]interface{}, exists bool)

Reactions returns the value of the "reactions" field in the mutation.

func (*IssueMutation) RemoveAssigneeIDs

func (m *IssueMutation) RemoveAssigneeIDs(ids ...int64)

RemoveAssigneeIDs removes the "assignees" edge to the User entity by IDs.

func (*IssueMutation) RemoveCommentIDs

func (m *IssueMutation) RemoveCommentIDs(ids ...int64)

RemoveCommentIDs removes the "comments" edge to the IssueComment entity by IDs.

func (*IssueMutation) RemovedAssigneesIDs

func (m *IssueMutation) RemovedAssigneesIDs() (ids []int64)

RemovedAssignees returns the removed IDs of the "assignees" edge to the User entity.

func (*IssueMutation) RemovedCommentsIDs

func (m *IssueMutation) RemovedCommentsIDs() (ids []int64)

RemovedComments returns the removed IDs of the "comments" edge to the IssueComment entity.

func (*IssueMutation) RemovedEdges

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

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

func (*IssueMutation) RemovedIDs

func (m *IssueMutation) 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 (*IssueMutation) RepositoryCleared

func (m *IssueMutation) RepositoryCleared() bool

RepositoryCleared reports if the "repository" edge to the Repository entity was cleared.

func (*IssueMutation) RepositoryID

func (m *IssueMutation) RepositoryID() (id int64, exists bool)

RepositoryID returns the "repository" edge ID in the mutation.

func (*IssueMutation) RepositoryIDs

func (m *IssueMutation) RepositoryIDs() (ids []int64)

RepositoryIDs returns the "repository" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use RepositoryID instead. It exists only for internal usage by the builders.

func (*IssueMutation) RepositoryURL

func (m *IssueMutation) RepositoryURL() (r string, exists bool)

RepositoryURL returns the value of the "repository_url" field in the mutation.

func (*IssueMutation) ResetActiveLockReason

func (m *IssueMutation) ResetActiveLockReason()

ResetActiveLockReason resets all changes to the "active_lock_reason" field.

func (*IssueMutation) ResetAssignees

func (m *IssueMutation) ResetAssignees()

ResetAssignees resets all changes to the "assignees" edge.

func (*IssueMutation) ResetAuthorAssociation

func (m *IssueMutation) ResetAuthorAssociation()

ResetAuthorAssociation resets all changes to the "author_association" field.

func (*IssueMutation) ResetBody

func (m *IssueMutation) ResetBody()

ResetBody resets all changes to the "body" field.

func (*IssueMutation) ResetClosedAt

func (m *IssueMutation) ResetClosedAt()

ResetClosedAt resets all changes to the "closed_at" field.

func (*IssueMutation) ResetClosedBy

func (m *IssueMutation) ResetClosedBy()

ResetClosedBy resets all changes to the "closed_by" edge.

func (*IssueMutation) ResetComments

func (m *IssueMutation) ResetComments()

ResetComments resets all changes to the "comments" edge.

func (*IssueMutation) ResetCommentsURL

func (m *IssueMutation) ResetCommentsURL()

ResetCommentsURL resets all changes to the "comments_url" field.

func (*IssueMutation) ResetCreatedAt

func (m *IssueMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*IssueMutation) ResetDraft

func (m *IssueMutation) ResetDraft()

ResetDraft resets all changes to the "draft" field.

func (*IssueMutation) ResetEdge

func (m *IssueMutation) 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 (*IssueMutation) ResetEventsURL

func (m *IssueMutation) ResetEventsURL()

ResetEventsURL resets all changes to the "events_url" field.

func (*IssueMutation) ResetField

func (m *IssueMutation) 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 (*IssueMutation) ResetHTMLURL

func (m *IssueMutation) ResetHTMLURL()

ResetHTMLURL resets all changes to the "html_url" field.

func (*IssueMutation) ResetLabelsURL

func (m *IssueMutation) ResetLabelsURL()

ResetLabelsURL resets all changes to the "labels_url" field.

func (*IssueMutation) ResetLocked

func (m *IssueMutation) ResetLocked()

ResetLocked resets all changes to the "locked" field.

func (*IssueMutation) ResetNodeID

func (m *IssueMutation) ResetNodeID()

ResetNodeID resets all changes to the "node_id" field.

func (*IssueMutation) ResetNumber

func (m *IssueMutation) ResetNumber()

ResetNumber resets all changes to the "number" field.

func (*IssueMutation) ResetReactions

func (m *IssueMutation) ResetReactions()

ResetReactions resets all changes to the "reactions" field.

func (*IssueMutation) ResetRepository

func (m *IssueMutation) ResetRepository()

ResetRepository resets all changes to the "repository" edge.

func (*IssueMutation) ResetRepositoryURL

func (m *IssueMutation) ResetRepositoryURL()

ResetRepositoryURL resets all changes to the "repository_url" field.

func (*IssueMutation) ResetState

func (m *IssueMutation) ResetState()

ResetState resets all changes to the "state" field.

func (*IssueMutation) ResetStateReason

func (m *IssueMutation) ResetStateReason()

ResetStateReason resets all changes to the "state_reason" field.

func (*IssueMutation) ResetTitle

func (m *IssueMutation) ResetTitle()

ResetTitle resets all changes to the "title" field.

func (*IssueMutation) ResetURL

func (m *IssueMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*IssueMutation) ResetUpdatedAt

func (m *IssueMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*IssueMutation) ResetUser

func (m *IssueMutation) ResetUser()

ResetUser resets all changes to the "user" edge.

func (*IssueMutation) SetActiveLockReason

func (m *IssueMutation) SetActiveLockReason(s string)

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueMutation) SetAuthorAssociation

func (m *IssueMutation) SetAuthorAssociation(ia issue.AuthorAssociation)

SetAuthorAssociation sets the "author_association" field.

func (*IssueMutation) SetBody

func (m *IssueMutation) SetBody(s string)

SetBody sets the "body" field.

func (*IssueMutation) SetClosedAt

func (m *IssueMutation) SetClosedAt(t time.Time)

SetClosedAt sets the "closed_at" field.

func (*IssueMutation) SetClosedByID

func (m *IssueMutation) SetClosedByID(id int64)

SetClosedByID sets the "closed_by" edge to the User entity by id.

func (*IssueMutation) SetCommentsURL

func (m *IssueMutation) SetCommentsURL(s string)

SetCommentsURL sets the "comments_url" field.

func (*IssueMutation) SetCreatedAt

func (m *IssueMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*IssueMutation) SetDraft

func (m *IssueMutation) SetDraft(b bool)

SetDraft sets the "draft" field.

func (*IssueMutation) SetEventsURL

func (m *IssueMutation) SetEventsURL(s string)

SetEventsURL sets the "events_url" field.

func (*IssueMutation) SetField

func (m *IssueMutation) 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 (*IssueMutation) SetHTMLURL

func (m *IssueMutation) SetHTMLURL(s string)

SetHTMLURL sets the "html_url" field.

func (*IssueMutation) SetID

func (m *IssueMutation) SetID(id int64)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Issue entities.

func (*IssueMutation) SetLabelsURL

func (m *IssueMutation) SetLabelsURL(s string)

SetLabelsURL sets the "labels_url" field.

func (*IssueMutation) SetLocked

func (m *IssueMutation) SetLocked(b bool)

SetLocked sets the "locked" field.

func (*IssueMutation) SetNodeID

func (m *IssueMutation) SetNodeID(s string)

SetNodeID sets the "node_id" field.

func (*IssueMutation) SetNumber

func (m *IssueMutation) SetNumber(i int64)

SetNumber sets the "number" field.

func (*IssueMutation) SetOp

func (m *IssueMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*IssueMutation) SetReactions

func (m *IssueMutation) SetReactions(value map[string]interface{})

SetReactions sets the "reactions" field.

func (*IssueMutation) SetRepositoryID

func (m *IssueMutation) SetRepositoryID(id int64)

SetRepositoryID sets the "repository" edge to the Repository entity by id.

func (*IssueMutation) SetRepositoryURL

func (m *IssueMutation) SetRepositoryURL(s string)

SetRepositoryURL sets the "repository_url" field.

func (*IssueMutation) SetState

func (m *IssueMutation) SetState(s string)

SetState sets the "state" field.

func (*IssueMutation) SetStateReason

func (m *IssueMutation) SetStateReason(ir issue.StateReason)

SetStateReason sets the "state_reason" field.

func (*IssueMutation) SetTitle

func (m *IssueMutation) SetTitle(s string)

SetTitle sets the "title" field.

func (*IssueMutation) SetURL

func (m *IssueMutation) SetURL(s string)

SetURL sets the "url" field.

func (*IssueMutation) SetUpdatedAt

func (m *IssueMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*IssueMutation) SetUserID

func (m *IssueMutation) SetUserID(id int64)

SetUserID sets the "user" edge to the User entity by id.

func (*IssueMutation) State

func (m *IssueMutation) State() (r string, exists bool)

State returns the value of the "state" field in the mutation.

func (*IssueMutation) StateReason

func (m *IssueMutation) StateReason() (r issue.StateReason, exists bool)

StateReason returns the value of the "state_reason" field in the mutation.

func (*IssueMutation) StateReasonCleared

func (m *IssueMutation) StateReasonCleared() bool

StateReasonCleared returns if the "state_reason" field was cleared in this mutation.

func (*IssueMutation) Title

func (m *IssueMutation) Title() (r string, exists bool)

Title returns the value of the "title" field in the mutation.

func (IssueMutation) Tx

func (m IssueMutation) Tx() (*Tx, error)

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

func (*IssueMutation) Type

func (m *IssueMutation) Type() string

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

func (*IssueMutation) URL

func (m *IssueMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*IssueMutation) UpdatedAt

func (m *IssueMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*IssueMutation) UserCleared

func (m *IssueMutation) UserCleared() bool

UserCleared reports if the "user" edge to the User entity was cleared.

func (*IssueMutation) UserID

func (m *IssueMutation) UserID() (id int64, exists bool)

UserID returns the "user" edge ID in the mutation.

func (*IssueMutation) UserIDs

func (m *IssueMutation) UserIDs() (ids []int64)

UserIDs returns the "user" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use UserID instead. It exists only for internal usage by the builders.

func (*IssueMutation) Where

func (m *IssueMutation) Where(ps ...predicate.Issue)

Where appends a list predicates to the IssueMutation builder.

func (*IssueMutation) WhereP

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

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

type IssueQuery

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

IssueQuery is the builder for querying Issue entities.

func (*IssueQuery) Aggregate

func (iq *IssueQuery) Aggregate(fns ...AggregateFunc) *IssueSelect

Aggregate returns a IssueSelect configured with the given aggregations.

func (*IssueQuery) All

func (iq *IssueQuery) All(ctx context.Context) ([]*Issue, error)

All executes the query and returns a list of Issues.

func (*IssueQuery) AllX

func (iq *IssueQuery) AllX(ctx context.Context) []*Issue

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

func (*IssueQuery) Clone

func (iq *IssueQuery) Clone() *IssueQuery

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

func (*IssueQuery) Count

func (iq *IssueQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*IssueQuery) CountX

func (iq *IssueQuery) CountX(ctx context.Context) int

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

func (*IssueQuery) Exist

func (iq *IssueQuery) Exist(ctx context.Context) (bool, error)

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

func (*IssueQuery) ExistX

func (iq *IssueQuery) ExistX(ctx context.Context) bool

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

func (*IssueQuery) First

func (iq *IssueQuery) First(ctx context.Context) (*Issue, error)

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

func (*IssueQuery) FirstID

func (iq *IssueQuery) FirstID(ctx context.Context) (id int64, err error)

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

func (*IssueQuery) FirstIDX

func (iq *IssueQuery) FirstIDX(ctx context.Context) int64

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

func (*IssueQuery) FirstX

func (iq *IssueQuery) FirstX(ctx context.Context) *Issue

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

func (*IssueQuery) GroupBy

func (iq *IssueQuery) GroupBy(field string, fields ...string) *IssueGroupBy

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 {
	NodeID string `json:"node_id"`
	Count int `json:"count,omitempty"`
}

client.Issue.Query().
	GroupBy(issue.FieldNodeID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*IssueQuery) IDs

func (iq *IssueQuery) IDs(ctx context.Context) (ids []int64, err error)

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

func (*IssueQuery) IDsX

func (iq *IssueQuery) IDsX(ctx context.Context) []int64

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

func (*IssueQuery) Limit

func (iq *IssueQuery) Limit(limit int) *IssueQuery

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

func (*IssueQuery) Offset

func (iq *IssueQuery) Offset(offset int) *IssueQuery

Offset to start from.

func (*IssueQuery) Only

func (iq *IssueQuery) Only(ctx context.Context) (*Issue, error)

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

func (*IssueQuery) OnlyID

func (iq *IssueQuery) OnlyID(ctx context.Context) (id int64, err error)

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

func (*IssueQuery) OnlyIDX

func (iq *IssueQuery) OnlyIDX(ctx context.Context) int64

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

func (*IssueQuery) OnlyX

func (iq *IssueQuery) OnlyX(ctx context.Context) *Issue

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

func (*IssueQuery) Order

func (iq *IssueQuery) Order(o ...issue.OrderOption) *IssueQuery

Order specifies how the records should be ordered.

func (*IssueQuery) QueryAssignees

func (iq *IssueQuery) QueryAssignees() *UserQuery

QueryAssignees chains the current query on the "assignees" edge.

func (*IssueQuery) QueryClosedBy

func (iq *IssueQuery) QueryClosedBy() *UserQuery

QueryClosedBy chains the current query on the "closed_by" edge.

func (*IssueQuery) QueryComments

func (iq *IssueQuery) QueryComments() *IssueCommentQuery

QueryComments chains the current query on the "comments" edge.

func (*IssueQuery) QueryRepository

func (iq *IssueQuery) QueryRepository() *RepositoryQuery

QueryRepository chains the current query on the "repository" edge.

func (*IssueQuery) QueryUser

func (iq *IssueQuery) QueryUser() *UserQuery

QueryUser chains the current query on the "user" edge.

func (*IssueQuery) Select

func (iq *IssueQuery) Select(fields ...string) *IssueSelect

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 {
	NodeID string `json:"node_id"`
}

client.Issue.Query().
	Select(issue.FieldNodeID).
	Scan(ctx, &v)

func (*IssueQuery) Unique

func (iq *IssueQuery) Unique(unique bool) *IssueQuery

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

func (iq *IssueQuery) Where(ps ...predicate.Issue) *IssueQuery

Where adds a new predicate for the IssueQuery builder.

func (*IssueQuery) WithAssignees

func (iq *IssueQuery) WithAssignees(opts ...func(*UserQuery)) *IssueQuery

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

func (*IssueQuery) WithClosedBy

func (iq *IssueQuery) WithClosedBy(opts ...func(*UserQuery)) *IssueQuery

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

func (*IssueQuery) WithComments

func (iq *IssueQuery) WithComments(opts ...func(*IssueCommentQuery)) *IssueQuery

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

func (*IssueQuery) WithRepository

func (iq *IssueQuery) WithRepository(opts ...func(*RepositoryQuery)) *IssueQuery

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

func (*IssueQuery) WithUser

func (iq *IssueQuery) WithUser(opts ...func(*UserQuery)) *IssueQuery

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

type IssueSelect

type IssueSelect struct {
	*IssueQuery
	// contains filtered or unexported fields
}

IssueSelect is the builder for selecting fields of Issue entities.

func (*IssueSelect) Aggregate

func (is *IssueSelect) Aggregate(fns ...AggregateFunc) *IssueSelect

Aggregate adds the given aggregation functions to the selector query.

func (*IssueSelect) Bool

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

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

func (*IssueSelect) BoolX

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

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

func (*IssueSelect) Bools

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

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

func (*IssueSelect) BoolsX

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

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

func (*IssueSelect) Float64

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

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

func (*IssueSelect) Float64X

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

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

func (*IssueSelect) Float64s

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

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

func (*IssueSelect) Float64sX

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

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

func (*IssueSelect) Int

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

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

func (*IssueSelect) IntX

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

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

func (*IssueSelect) Ints

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

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

func (*IssueSelect) IntsX

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

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

func (*IssueSelect) Scan

func (is *IssueSelect) Scan(ctx context.Context, v any) error

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

func (*IssueSelect) ScanX

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

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

func (*IssueSelect) String

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

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

func (*IssueSelect) StringX

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

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

func (*IssueSelect) Strings

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

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

func (*IssueSelect) StringsX

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

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

type IssueUpdate

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

IssueUpdate is the builder for updating Issue entities.

func (*IssueUpdate) AddAssigneeIDs

func (iu *IssueUpdate) AddAssigneeIDs(ids ...int64) *IssueUpdate

AddAssigneeIDs adds the "assignees" edge to the User entity by IDs.

func (*IssueUpdate) AddAssignees

func (iu *IssueUpdate) AddAssignees(u ...*User) *IssueUpdate

AddAssignees adds the "assignees" edges to the User entity.

func (*IssueUpdate) AddCommentIDs

func (iu *IssueUpdate) AddCommentIDs(ids ...int64) *IssueUpdate

AddCommentIDs adds the "comments" edge to the IssueComment entity by IDs.

func (*IssueUpdate) AddComments

func (iu *IssueUpdate) AddComments(i ...*IssueComment) *IssueUpdate

AddComments adds the "comments" edges to the IssueComment entity.

func (*IssueUpdate) AddNumber

func (iu *IssueUpdate) AddNumber(i int64) *IssueUpdate

AddNumber adds i to the "number" field.

func (*IssueUpdate) ClearActiveLockReason

func (iu *IssueUpdate) ClearActiveLockReason() *IssueUpdate

ClearActiveLockReason clears the value of the "active_lock_reason" field.

func (*IssueUpdate) ClearAssignees

func (iu *IssueUpdate) ClearAssignees() *IssueUpdate

ClearAssignees clears all "assignees" edges to the User entity.

func (*IssueUpdate) ClearBody

func (iu *IssueUpdate) ClearBody() *IssueUpdate

ClearBody clears the value of the "body" field.

func (*IssueUpdate) ClearClosedAt

func (iu *IssueUpdate) ClearClosedAt() *IssueUpdate

ClearClosedAt clears the value of the "closed_at" field.

func (*IssueUpdate) ClearClosedBy

func (iu *IssueUpdate) ClearClosedBy() *IssueUpdate

ClearClosedBy clears the "closed_by" edge to the User entity.

func (*IssueUpdate) ClearComments

func (iu *IssueUpdate) ClearComments() *IssueUpdate

ClearComments clears all "comments" edges to the IssueComment entity.

func (*IssueUpdate) ClearRepository

func (iu *IssueUpdate) ClearRepository() *IssueUpdate

ClearRepository clears the "repository" edge to the Repository entity.

func (*IssueUpdate) ClearStateReason

func (iu *IssueUpdate) ClearStateReason() *IssueUpdate

ClearStateReason clears the value of the "state_reason" field.

func (*IssueUpdate) ClearUser

func (iu *IssueUpdate) ClearUser() *IssueUpdate

ClearUser clears the "user" edge to the User entity.

func (*IssueUpdate) Exec

func (iu *IssueUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueUpdate) ExecX

func (iu *IssueUpdate) ExecX(ctx context.Context)

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

func (*IssueUpdate) Mutation

func (iu *IssueUpdate) Mutation() *IssueMutation

Mutation returns the IssueMutation object of the builder.

func (*IssueUpdate) RemoveAssigneeIDs

func (iu *IssueUpdate) RemoveAssigneeIDs(ids ...int64) *IssueUpdate

RemoveAssigneeIDs removes the "assignees" edge to User entities by IDs.

func (*IssueUpdate) RemoveAssignees

func (iu *IssueUpdate) RemoveAssignees(u ...*User) *IssueUpdate

RemoveAssignees removes "assignees" edges to User entities.

func (*IssueUpdate) RemoveCommentIDs

func (iu *IssueUpdate) RemoveCommentIDs(ids ...int64) *IssueUpdate

RemoveCommentIDs removes the "comments" edge to IssueComment entities by IDs.

func (*IssueUpdate) RemoveComments

func (iu *IssueUpdate) RemoveComments(i ...*IssueComment) *IssueUpdate

RemoveComments removes "comments" edges to IssueComment entities.

func (*IssueUpdate) Save

func (iu *IssueUpdate) Save(ctx context.Context) (int, error)

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

func (*IssueUpdate) SaveX

func (iu *IssueUpdate) SaveX(ctx context.Context) int

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

func (*IssueUpdate) SetActiveLockReason

func (iu *IssueUpdate) SetActiveLockReason(s string) *IssueUpdate

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueUpdate) SetAuthorAssociation

func (iu *IssueUpdate) SetAuthorAssociation(ia issue.AuthorAssociation) *IssueUpdate

SetAuthorAssociation sets the "author_association" field.

func (*IssueUpdate) SetBody

func (iu *IssueUpdate) SetBody(s string) *IssueUpdate

SetBody sets the "body" field.

func (*IssueUpdate) SetClosedAt

func (iu *IssueUpdate) SetClosedAt(t time.Time) *IssueUpdate

SetClosedAt sets the "closed_at" field.

func (*IssueUpdate) SetClosedBy

func (iu *IssueUpdate) SetClosedBy(u *User) *IssueUpdate

SetClosedBy sets the "closed_by" edge to the User entity.

func (*IssueUpdate) SetClosedByID

func (iu *IssueUpdate) SetClosedByID(id int64) *IssueUpdate

SetClosedByID sets the "closed_by" edge to the User entity by ID.

func (*IssueUpdate) SetCommentsURL

func (iu *IssueUpdate) SetCommentsURL(s string) *IssueUpdate

SetCommentsURL sets the "comments_url" field.

func (*IssueUpdate) SetCreatedAt

func (iu *IssueUpdate) SetCreatedAt(t time.Time) *IssueUpdate

SetCreatedAt sets the "created_at" field.

func (*IssueUpdate) SetDraft

func (iu *IssueUpdate) SetDraft(b bool) *IssueUpdate

SetDraft sets the "draft" field.

func (*IssueUpdate) SetEventsURL

func (iu *IssueUpdate) SetEventsURL(s string) *IssueUpdate

SetEventsURL sets the "events_url" field.

func (*IssueUpdate) SetHTMLURL

func (iu *IssueUpdate) SetHTMLURL(s string) *IssueUpdate

SetHTMLURL sets the "html_url" field.

func (*IssueUpdate) SetLabelsURL

func (iu *IssueUpdate) SetLabelsURL(s string) *IssueUpdate

SetLabelsURL sets the "labels_url" field.

func (*IssueUpdate) SetLocked

func (iu *IssueUpdate) SetLocked(b bool) *IssueUpdate

SetLocked sets the "locked" field.

func (*IssueUpdate) SetNillableActiveLockReason

func (iu *IssueUpdate) SetNillableActiveLockReason(s *string) *IssueUpdate

SetNillableActiveLockReason sets the "active_lock_reason" field if the given value is not nil.

func (*IssueUpdate) SetNillableAuthorAssociation

func (iu *IssueUpdate) SetNillableAuthorAssociation(ia *issue.AuthorAssociation) *IssueUpdate

SetNillableAuthorAssociation sets the "author_association" field if the given value is not nil.

func (*IssueUpdate) SetNillableBody

func (iu *IssueUpdate) SetNillableBody(s *string) *IssueUpdate

SetNillableBody sets the "body" field if the given value is not nil.

func (*IssueUpdate) SetNillableClosedAt

func (iu *IssueUpdate) SetNillableClosedAt(t *time.Time) *IssueUpdate

SetNillableClosedAt sets the "closed_at" field if the given value is not nil.

func (*IssueUpdate) SetNillableClosedByID

func (iu *IssueUpdate) SetNillableClosedByID(id *int64) *IssueUpdate

SetNillableClosedByID sets the "closed_by" edge to the User entity by ID if the given value is not nil.

func (*IssueUpdate) SetNillableCommentsURL

func (iu *IssueUpdate) SetNillableCommentsURL(s *string) *IssueUpdate

SetNillableCommentsURL sets the "comments_url" field if the given value is not nil.

func (*IssueUpdate) SetNillableCreatedAt

func (iu *IssueUpdate) SetNillableCreatedAt(t *time.Time) *IssueUpdate

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

func (*IssueUpdate) SetNillableDraft

func (iu *IssueUpdate) SetNillableDraft(b *bool) *IssueUpdate

SetNillableDraft sets the "draft" field if the given value is not nil.

func (*IssueUpdate) SetNillableEventsURL

func (iu *IssueUpdate) SetNillableEventsURL(s *string) *IssueUpdate

SetNillableEventsURL sets the "events_url" field if the given value is not nil.

func (*IssueUpdate) SetNillableHTMLURL

func (iu *IssueUpdate) SetNillableHTMLURL(s *string) *IssueUpdate

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*IssueUpdate) SetNillableLabelsURL

func (iu *IssueUpdate) SetNillableLabelsURL(s *string) *IssueUpdate

SetNillableLabelsURL sets the "labels_url" field if the given value is not nil.

func (*IssueUpdate) SetNillableLocked

func (iu *IssueUpdate) SetNillableLocked(b *bool) *IssueUpdate

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*IssueUpdate) SetNillableNodeID

func (iu *IssueUpdate) SetNillableNodeID(s *string) *IssueUpdate

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*IssueUpdate) SetNillableNumber

func (iu *IssueUpdate) SetNillableNumber(i *int64) *IssueUpdate

SetNillableNumber sets the "number" field if the given value is not nil.

func (*IssueUpdate) SetNillableRepositoryURL

func (iu *IssueUpdate) SetNillableRepositoryURL(s *string) *IssueUpdate

SetNillableRepositoryURL sets the "repository_url" field if the given value is not nil.

func (*IssueUpdate) SetNillableState

func (iu *IssueUpdate) SetNillableState(s *string) *IssueUpdate

SetNillableState sets the "state" field if the given value is not nil.

func (*IssueUpdate) SetNillableStateReason

func (iu *IssueUpdate) SetNillableStateReason(ir *issue.StateReason) *IssueUpdate

SetNillableStateReason sets the "state_reason" field if the given value is not nil.

func (*IssueUpdate) SetNillableTitle

func (iu *IssueUpdate) SetNillableTitle(s *string) *IssueUpdate

SetNillableTitle sets the "title" field if the given value is not nil.

func (*IssueUpdate) SetNillableURL

func (iu *IssueUpdate) SetNillableURL(s *string) *IssueUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*IssueUpdate) SetNillableUpdatedAt

func (iu *IssueUpdate) SetNillableUpdatedAt(t *time.Time) *IssueUpdate

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

func (*IssueUpdate) SetNillableUserID

func (iu *IssueUpdate) SetNillableUserID(id *int64) *IssueUpdate

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*IssueUpdate) SetNodeID

func (iu *IssueUpdate) SetNodeID(s string) *IssueUpdate

SetNodeID sets the "node_id" field.

func (*IssueUpdate) SetNumber

func (iu *IssueUpdate) SetNumber(i int64) *IssueUpdate

SetNumber sets the "number" field.

func (*IssueUpdate) SetReactions

func (iu *IssueUpdate) SetReactions(m map[string]interface{}) *IssueUpdate

SetReactions sets the "reactions" field.

func (*IssueUpdate) SetRepository

func (iu *IssueUpdate) SetRepository(r *Repository) *IssueUpdate

SetRepository sets the "repository" edge to the Repository entity.

func (*IssueUpdate) SetRepositoryID

func (iu *IssueUpdate) SetRepositoryID(id int64) *IssueUpdate

SetRepositoryID sets the "repository" edge to the Repository entity by ID.

func (*IssueUpdate) SetRepositoryURL

func (iu *IssueUpdate) SetRepositoryURL(s string) *IssueUpdate

SetRepositoryURL sets the "repository_url" field.

func (*IssueUpdate) SetState

func (iu *IssueUpdate) SetState(s string) *IssueUpdate

SetState sets the "state" field.

func (*IssueUpdate) SetStateReason

func (iu *IssueUpdate) SetStateReason(ir issue.StateReason) *IssueUpdate

SetStateReason sets the "state_reason" field.

func (*IssueUpdate) SetTitle

func (iu *IssueUpdate) SetTitle(s string) *IssueUpdate

SetTitle sets the "title" field.

func (*IssueUpdate) SetURL

func (iu *IssueUpdate) SetURL(s string) *IssueUpdate

SetURL sets the "url" field.

func (*IssueUpdate) SetUpdatedAt

func (iu *IssueUpdate) SetUpdatedAt(t time.Time) *IssueUpdate

SetUpdatedAt sets the "updated_at" field.

func (*IssueUpdate) SetUser

func (iu *IssueUpdate) SetUser(u *User) *IssueUpdate

SetUser sets the "user" edge to the User entity.

func (*IssueUpdate) SetUserID

func (iu *IssueUpdate) SetUserID(id int64) *IssueUpdate

SetUserID sets the "user" edge to the User entity by ID.

func (*IssueUpdate) Where

func (iu *IssueUpdate) Where(ps ...predicate.Issue) *IssueUpdate

Where appends a list predicates to the IssueUpdate builder.

type IssueUpdateOne

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

IssueUpdateOne is the builder for updating a single Issue entity.

func (*IssueUpdateOne) AddAssigneeIDs

func (iuo *IssueUpdateOne) AddAssigneeIDs(ids ...int64) *IssueUpdateOne

AddAssigneeIDs adds the "assignees" edge to the User entity by IDs.

func (*IssueUpdateOne) AddAssignees

func (iuo *IssueUpdateOne) AddAssignees(u ...*User) *IssueUpdateOne

AddAssignees adds the "assignees" edges to the User entity.

func (*IssueUpdateOne) AddCommentIDs

func (iuo *IssueUpdateOne) AddCommentIDs(ids ...int64) *IssueUpdateOne

AddCommentIDs adds the "comments" edge to the IssueComment entity by IDs.

func (*IssueUpdateOne) AddComments

func (iuo *IssueUpdateOne) AddComments(i ...*IssueComment) *IssueUpdateOne

AddComments adds the "comments" edges to the IssueComment entity.

func (*IssueUpdateOne) AddNumber

func (iuo *IssueUpdateOne) AddNumber(i int64) *IssueUpdateOne

AddNumber adds i to the "number" field.

func (*IssueUpdateOne) ClearActiveLockReason

func (iuo *IssueUpdateOne) ClearActiveLockReason() *IssueUpdateOne

ClearActiveLockReason clears the value of the "active_lock_reason" field.

func (*IssueUpdateOne) ClearAssignees

func (iuo *IssueUpdateOne) ClearAssignees() *IssueUpdateOne

ClearAssignees clears all "assignees" edges to the User entity.

func (*IssueUpdateOne) ClearBody

func (iuo *IssueUpdateOne) ClearBody() *IssueUpdateOne

ClearBody clears the value of the "body" field.

func (*IssueUpdateOne) ClearClosedAt

func (iuo *IssueUpdateOne) ClearClosedAt() *IssueUpdateOne

ClearClosedAt clears the value of the "closed_at" field.

func (*IssueUpdateOne) ClearClosedBy

func (iuo *IssueUpdateOne) ClearClosedBy() *IssueUpdateOne

ClearClosedBy clears the "closed_by" edge to the User entity.

func (*IssueUpdateOne) ClearComments

func (iuo *IssueUpdateOne) ClearComments() *IssueUpdateOne

ClearComments clears all "comments" edges to the IssueComment entity.

func (*IssueUpdateOne) ClearRepository

func (iuo *IssueUpdateOne) ClearRepository() *IssueUpdateOne

ClearRepository clears the "repository" edge to the Repository entity.

func (*IssueUpdateOne) ClearStateReason

func (iuo *IssueUpdateOne) ClearStateReason() *IssueUpdateOne

ClearStateReason clears the value of the "state_reason" field.

func (*IssueUpdateOne) ClearUser

func (iuo *IssueUpdateOne) ClearUser() *IssueUpdateOne

ClearUser clears the "user" edge to the User entity.

func (*IssueUpdateOne) CopyIssue

func (iuo *IssueUpdateOne) CopyIssue(input *Issue) *IssueUpdateOne

CopyIssue allows to update a Issue copying the existing values of input.

func (*IssueUpdateOne) Exec

func (iuo *IssueUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*IssueUpdateOne) ExecX

func (iuo *IssueUpdateOne) ExecX(ctx context.Context)

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

func (*IssueUpdateOne) Mutation

func (iuo *IssueUpdateOne) Mutation() *IssueMutation

Mutation returns the IssueMutation object of the builder.

func (*IssueUpdateOne) RemoveAssigneeIDs

func (iuo *IssueUpdateOne) RemoveAssigneeIDs(ids ...int64) *IssueUpdateOne

RemoveAssigneeIDs removes the "assignees" edge to User entities by IDs.

func (*IssueUpdateOne) RemoveAssignees

func (iuo *IssueUpdateOne) RemoveAssignees(u ...*User) *IssueUpdateOne

RemoveAssignees removes "assignees" edges to User entities.

func (*IssueUpdateOne) RemoveCommentIDs

func (iuo *IssueUpdateOne) RemoveCommentIDs(ids ...int64) *IssueUpdateOne

RemoveCommentIDs removes the "comments" edge to IssueComment entities by IDs.

func (*IssueUpdateOne) RemoveComments

func (iuo *IssueUpdateOne) RemoveComments(i ...*IssueComment) *IssueUpdateOne

RemoveComments removes "comments" edges to IssueComment entities.

func (*IssueUpdateOne) Save

func (iuo *IssueUpdateOne) Save(ctx context.Context) (*Issue, error)

Save executes the query and returns the updated Issue entity.

func (*IssueUpdateOne) SaveX

func (iuo *IssueUpdateOne) SaveX(ctx context.Context) *Issue

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

func (*IssueUpdateOne) Select

func (iuo *IssueUpdateOne) Select(field string, fields ...string) *IssueUpdateOne

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

func (*IssueUpdateOne) SetActiveLockReason

func (iuo *IssueUpdateOne) SetActiveLockReason(s string) *IssueUpdateOne

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueUpdateOne) SetAuthorAssociation

func (iuo *IssueUpdateOne) SetAuthorAssociation(ia issue.AuthorAssociation) *IssueUpdateOne

SetAuthorAssociation sets the "author_association" field.

func (*IssueUpdateOne) SetBody

func (iuo *IssueUpdateOne) SetBody(s string) *IssueUpdateOne

SetBody sets the "body" field.

func (*IssueUpdateOne) SetClosedAt

func (iuo *IssueUpdateOne) SetClosedAt(t time.Time) *IssueUpdateOne

SetClosedAt sets the "closed_at" field.

func (*IssueUpdateOne) SetClosedBy

func (iuo *IssueUpdateOne) SetClosedBy(u *User) *IssueUpdateOne

SetClosedBy sets the "closed_by" edge to the User entity.

func (*IssueUpdateOne) SetClosedByID

func (iuo *IssueUpdateOne) SetClosedByID(id int64) *IssueUpdateOne

SetClosedByID sets the "closed_by" edge to the User entity by ID.

func (*IssueUpdateOne) SetCommentsURL

func (iuo *IssueUpdateOne) SetCommentsURL(s string) *IssueUpdateOne

SetCommentsURL sets the "comments_url" field.

func (*IssueUpdateOne) SetCreatedAt

func (iuo *IssueUpdateOne) SetCreatedAt(t time.Time) *IssueUpdateOne

SetCreatedAt sets the "created_at" field.

func (*IssueUpdateOne) SetDraft

func (iuo *IssueUpdateOne) SetDraft(b bool) *IssueUpdateOne

SetDraft sets the "draft" field.

func (*IssueUpdateOne) SetEventsURL

func (iuo *IssueUpdateOne) SetEventsURL(s string) *IssueUpdateOne

SetEventsURL sets the "events_url" field.

func (*IssueUpdateOne) SetHTMLURL

func (iuo *IssueUpdateOne) SetHTMLURL(s string) *IssueUpdateOne

SetHTMLURL sets the "html_url" field.

func (*IssueUpdateOne) SetLabelsURL

func (iuo *IssueUpdateOne) SetLabelsURL(s string) *IssueUpdateOne

SetLabelsURL sets the "labels_url" field.

func (*IssueUpdateOne) SetLocked

func (iuo *IssueUpdateOne) SetLocked(b bool) *IssueUpdateOne

SetLocked sets the "locked" field.

func (*IssueUpdateOne) SetNillableActiveLockReason

func (iuo *IssueUpdateOne) SetNillableActiveLockReason(s *string) *IssueUpdateOne

SetNillableActiveLockReason sets the "active_lock_reason" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableAuthorAssociation

func (iuo *IssueUpdateOne) SetNillableAuthorAssociation(ia *issue.AuthorAssociation) *IssueUpdateOne

SetNillableAuthorAssociation sets the "author_association" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableBody

func (iuo *IssueUpdateOne) SetNillableBody(s *string) *IssueUpdateOne

SetNillableBody sets the "body" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableClosedAt

func (iuo *IssueUpdateOne) SetNillableClosedAt(t *time.Time) *IssueUpdateOne

SetNillableClosedAt sets the "closed_at" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableClosedByID

func (iuo *IssueUpdateOne) SetNillableClosedByID(id *int64) *IssueUpdateOne

SetNillableClosedByID sets the "closed_by" edge to the User entity by ID if the given value is not nil.

func (*IssueUpdateOne) SetNillableCommentsURL

func (iuo *IssueUpdateOne) SetNillableCommentsURL(s *string) *IssueUpdateOne

SetNillableCommentsURL sets the "comments_url" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableCreatedAt

func (iuo *IssueUpdateOne) SetNillableCreatedAt(t *time.Time) *IssueUpdateOne

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

func (*IssueUpdateOne) SetNillableDraft

func (iuo *IssueUpdateOne) SetNillableDraft(b *bool) *IssueUpdateOne

SetNillableDraft sets the "draft" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableEventsURL

func (iuo *IssueUpdateOne) SetNillableEventsURL(s *string) *IssueUpdateOne

SetNillableEventsURL sets the "events_url" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableHTMLURL

func (iuo *IssueUpdateOne) SetNillableHTMLURL(s *string) *IssueUpdateOne

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableLabelsURL

func (iuo *IssueUpdateOne) SetNillableLabelsURL(s *string) *IssueUpdateOne

SetNillableLabelsURL sets the "labels_url" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableLocked

func (iuo *IssueUpdateOne) SetNillableLocked(b *bool) *IssueUpdateOne

SetNillableLocked sets the "locked" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableNodeID

func (iuo *IssueUpdateOne) SetNillableNodeID(s *string) *IssueUpdateOne

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableNumber

func (iuo *IssueUpdateOne) SetNillableNumber(i *int64) *IssueUpdateOne

SetNillableNumber sets the "number" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableRepositoryURL

func (iuo *IssueUpdateOne) SetNillableRepositoryURL(s *string) *IssueUpdateOne

SetNillableRepositoryURL sets the "repository_url" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableState

func (iuo *IssueUpdateOne) SetNillableState(s *string) *IssueUpdateOne

SetNillableState sets the "state" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableStateReason

func (iuo *IssueUpdateOne) SetNillableStateReason(ir *issue.StateReason) *IssueUpdateOne

SetNillableStateReason sets the "state_reason" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableTitle

func (iuo *IssueUpdateOne) SetNillableTitle(s *string) *IssueUpdateOne

SetNillableTitle sets the "title" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableURL

func (iuo *IssueUpdateOne) SetNillableURL(s *string) *IssueUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*IssueUpdateOne) SetNillableUpdatedAt

func (iuo *IssueUpdateOne) SetNillableUpdatedAt(t *time.Time) *IssueUpdateOne

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

func (*IssueUpdateOne) SetNillableUserID

func (iuo *IssueUpdateOne) SetNillableUserID(id *int64) *IssueUpdateOne

SetNillableUserID sets the "user" edge to the User entity by ID if the given value is not nil.

func (*IssueUpdateOne) SetNodeID

func (iuo *IssueUpdateOne) SetNodeID(s string) *IssueUpdateOne

SetNodeID sets the "node_id" field.

func (*IssueUpdateOne) SetNumber

func (iuo *IssueUpdateOne) SetNumber(i int64) *IssueUpdateOne

SetNumber sets the "number" field.

func (*IssueUpdateOne) SetReactions

func (iuo *IssueUpdateOne) SetReactions(m map[string]interface{}) *IssueUpdateOne

SetReactions sets the "reactions" field.

func (*IssueUpdateOne) SetRepository

func (iuo *IssueUpdateOne) SetRepository(r *Repository) *IssueUpdateOne

SetRepository sets the "repository" edge to the Repository entity.

func (*IssueUpdateOne) SetRepositoryID

func (iuo *IssueUpdateOne) SetRepositoryID(id int64) *IssueUpdateOne

SetRepositoryID sets the "repository" edge to the Repository entity by ID.

func (*IssueUpdateOne) SetRepositoryURL

func (iuo *IssueUpdateOne) SetRepositoryURL(s string) *IssueUpdateOne

SetRepositoryURL sets the "repository_url" field.

func (*IssueUpdateOne) SetState

func (iuo *IssueUpdateOne) SetState(s string) *IssueUpdateOne

SetState sets the "state" field.

func (*IssueUpdateOne) SetStateReason

func (iuo *IssueUpdateOne) SetStateReason(ir issue.StateReason) *IssueUpdateOne

SetStateReason sets the "state_reason" field.

func (*IssueUpdateOne) SetTitle

func (iuo *IssueUpdateOne) SetTitle(s string) *IssueUpdateOne

SetTitle sets the "title" field.

func (*IssueUpdateOne) SetURL

func (iuo *IssueUpdateOne) SetURL(s string) *IssueUpdateOne

SetURL sets the "url" field.

func (*IssueUpdateOne) SetUpdatedAt

func (iuo *IssueUpdateOne) SetUpdatedAt(t time.Time) *IssueUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*IssueUpdateOne) SetUser

func (iuo *IssueUpdateOne) SetUser(u *User) *IssueUpdateOne

SetUser sets the "user" edge to the User entity.

func (*IssueUpdateOne) SetUserID

func (iuo *IssueUpdateOne) SetUserID(id int64) *IssueUpdateOne

SetUserID sets the "user" edge to the User entity by ID.

func (*IssueUpdateOne) Where

func (iuo *IssueUpdateOne) Where(ps ...predicate.Issue) *IssueUpdateOne

Where appends a list predicates to the IssueUpdate builder.

type IssueUpsert

type IssueUpsert struct {
	*sql.UpdateSet
}

IssueUpsert is the "OnConflict" setter.

func (*IssueUpsert) AddNumber

func (u *IssueUpsert) AddNumber(v int64) *IssueUpsert

AddNumber adds v to the "number" field.

func (*IssueUpsert) ClearActiveLockReason

func (u *IssueUpsert) ClearActiveLockReason() *IssueUpsert

ClearActiveLockReason clears the value of the "active_lock_reason" field.

func (*IssueUpsert) ClearBody

func (u *IssueUpsert) ClearBody() *IssueUpsert

ClearBody clears the value of the "body" field.

func (*IssueUpsert) ClearClosedAt

func (u *IssueUpsert) ClearClosedAt() *IssueUpsert

ClearClosedAt clears the value of the "closed_at" field.

func (*IssueUpsert) ClearStateReason

func (u *IssueUpsert) ClearStateReason() *IssueUpsert

ClearStateReason clears the value of the "state_reason" field.

func (*IssueUpsert) SetActiveLockReason

func (u *IssueUpsert) SetActiveLockReason(v string) *IssueUpsert

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueUpsert) SetAuthorAssociation

func (u *IssueUpsert) SetAuthorAssociation(v issue.AuthorAssociation) *IssueUpsert

SetAuthorAssociation sets the "author_association" field.

func (*IssueUpsert) SetBody

func (u *IssueUpsert) SetBody(v string) *IssueUpsert

SetBody sets the "body" field.

func (*IssueUpsert) SetClosedAt

func (u *IssueUpsert) SetClosedAt(v time.Time) *IssueUpsert

SetClosedAt sets the "closed_at" field.

func (*IssueUpsert) SetCommentsURL

func (u *IssueUpsert) SetCommentsURL(v string) *IssueUpsert

SetCommentsURL sets the "comments_url" field.

func (*IssueUpsert) SetCreatedAt

func (u *IssueUpsert) SetCreatedAt(v time.Time) *IssueUpsert

SetCreatedAt sets the "created_at" field.

func (*IssueUpsert) SetDraft

func (u *IssueUpsert) SetDraft(v bool) *IssueUpsert

SetDraft sets the "draft" field.

func (*IssueUpsert) SetEventsURL

func (u *IssueUpsert) SetEventsURL(v string) *IssueUpsert

SetEventsURL sets the "events_url" field.

func (*IssueUpsert) SetHTMLURL

func (u *IssueUpsert) SetHTMLURL(v string) *IssueUpsert

SetHTMLURL sets the "html_url" field.

func (*IssueUpsert) SetLabelsURL

func (u *IssueUpsert) SetLabelsURL(v string) *IssueUpsert

SetLabelsURL sets the "labels_url" field.

func (*IssueUpsert) SetLocked

func (u *IssueUpsert) SetLocked(v bool) *IssueUpsert

SetLocked sets the "locked" field.

func (*IssueUpsert) SetNodeID

func (u *IssueUpsert) SetNodeID(v string) *IssueUpsert

SetNodeID sets the "node_id" field.

func (*IssueUpsert) SetNumber

func (u *IssueUpsert) SetNumber(v int64) *IssueUpsert

SetNumber sets the "number" field.

func (*IssueUpsert) SetReactions

func (u *IssueUpsert) SetReactions(v map[string]interface{}) *IssueUpsert

SetReactions sets the "reactions" field.

func (*IssueUpsert) SetRepositoryURL

func (u *IssueUpsert) SetRepositoryURL(v string) *IssueUpsert

SetRepositoryURL sets the "repository_url" field.

func (*IssueUpsert) SetState

func (u *IssueUpsert) SetState(v string) *IssueUpsert

SetState sets the "state" field.

func (*IssueUpsert) SetStateReason

func (u *IssueUpsert) SetStateReason(v issue.StateReason) *IssueUpsert

SetStateReason sets the "state_reason" field.

func (*IssueUpsert) SetTitle

func (u *IssueUpsert) SetTitle(v string) *IssueUpsert

SetTitle sets the "title" field.

func (*IssueUpsert) SetURL

func (u *IssueUpsert) SetURL(v string) *IssueUpsert

SetURL sets the "url" field.

func (*IssueUpsert) SetUpdatedAt

func (u *IssueUpsert) SetUpdatedAt(v time.Time) *IssueUpsert

SetUpdatedAt sets the "updated_at" field.

func (*IssueUpsert) UpdateActiveLockReason

func (u *IssueUpsert) UpdateActiveLockReason() *IssueUpsert

UpdateActiveLockReason sets the "active_lock_reason" field to the value that was provided on create.

func (*IssueUpsert) UpdateAuthorAssociation

func (u *IssueUpsert) UpdateAuthorAssociation() *IssueUpsert

UpdateAuthorAssociation sets the "author_association" field to the value that was provided on create.

func (*IssueUpsert) UpdateBody

func (u *IssueUpsert) UpdateBody() *IssueUpsert

UpdateBody sets the "body" field to the value that was provided on create.

func (*IssueUpsert) UpdateClosedAt

func (u *IssueUpsert) UpdateClosedAt() *IssueUpsert

UpdateClosedAt sets the "closed_at" field to the value that was provided on create.

func (*IssueUpsert) UpdateCommentsURL

func (u *IssueUpsert) UpdateCommentsURL() *IssueUpsert

UpdateCommentsURL sets the "comments_url" field to the value that was provided on create.

func (*IssueUpsert) UpdateCreatedAt

func (u *IssueUpsert) UpdateCreatedAt() *IssueUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*IssueUpsert) UpdateDraft

func (u *IssueUpsert) UpdateDraft() *IssueUpsert

UpdateDraft sets the "draft" field to the value that was provided on create.

func (*IssueUpsert) UpdateEventsURL

func (u *IssueUpsert) UpdateEventsURL() *IssueUpsert

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*IssueUpsert) UpdateHTMLURL

func (u *IssueUpsert) UpdateHTMLURL() *IssueUpsert

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*IssueUpsert) UpdateLabelsURL

func (u *IssueUpsert) UpdateLabelsURL() *IssueUpsert

UpdateLabelsURL sets the "labels_url" field to the value that was provided on create.

func (*IssueUpsert) UpdateLocked

func (u *IssueUpsert) UpdateLocked() *IssueUpsert

UpdateLocked sets the "locked" field to the value that was provided on create.

func (*IssueUpsert) UpdateNodeID

func (u *IssueUpsert) UpdateNodeID() *IssueUpsert

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*IssueUpsert) UpdateNumber

func (u *IssueUpsert) UpdateNumber() *IssueUpsert

UpdateNumber sets the "number" field to the value that was provided on create.

func (*IssueUpsert) UpdateReactions

func (u *IssueUpsert) UpdateReactions() *IssueUpsert

UpdateReactions sets the "reactions" field to the value that was provided on create.

func (*IssueUpsert) UpdateRepositoryURL

func (u *IssueUpsert) UpdateRepositoryURL() *IssueUpsert

UpdateRepositoryURL sets the "repository_url" field to the value that was provided on create.

func (*IssueUpsert) UpdateState

func (u *IssueUpsert) UpdateState() *IssueUpsert

UpdateState sets the "state" field to the value that was provided on create.

func (*IssueUpsert) UpdateStateReason

func (u *IssueUpsert) UpdateStateReason() *IssueUpsert

UpdateStateReason sets the "state_reason" field to the value that was provided on create.

func (*IssueUpsert) UpdateTitle

func (u *IssueUpsert) UpdateTitle() *IssueUpsert

UpdateTitle sets the "title" field to the value that was provided on create.

func (*IssueUpsert) UpdateURL

func (u *IssueUpsert) UpdateURL() *IssueUpsert

UpdateURL sets the "url" field to the value that was provided on create.

func (*IssueUpsert) UpdateUpdatedAt

func (u *IssueUpsert) UpdateUpdatedAt() *IssueUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type IssueUpsertBulk

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

IssueUpsertBulk is the builder for "upsert"-ing a bulk of Issue nodes.

func (*IssueUpsertBulk) AddNumber

func (u *IssueUpsertBulk) AddNumber(v int64) *IssueUpsertBulk

AddNumber adds v to the "number" field.

func (*IssueUpsertBulk) ClearActiveLockReason

func (u *IssueUpsertBulk) ClearActiveLockReason() *IssueUpsertBulk

ClearActiveLockReason clears the value of the "active_lock_reason" field.

func (*IssueUpsertBulk) ClearBody

func (u *IssueUpsertBulk) ClearBody() *IssueUpsertBulk

ClearBody clears the value of the "body" field.

func (*IssueUpsertBulk) ClearClosedAt

func (u *IssueUpsertBulk) ClearClosedAt() *IssueUpsertBulk

ClearClosedAt clears the value of the "closed_at" field.

func (*IssueUpsertBulk) ClearStateReason

func (u *IssueUpsertBulk) ClearStateReason() *IssueUpsertBulk

ClearStateReason clears the value of the "state_reason" field.

func (*IssueUpsertBulk) DoNothing

func (u *IssueUpsertBulk) DoNothing() *IssueUpsertBulk

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

func (*IssueUpsertBulk) Exec

func (u *IssueUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueUpsertBulk) ExecX

func (u *IssueUpsertBulk) ExecX(ctx context.Context)

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

func (*IssueUpsertBulk) Ignore

func (u *IssueUpsertBulk) Ignore() *IssueUpsertBulk

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

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

func (*IssueUpsertBulk) SetActiveLockReason

func (u *IssueUpsertBulk) SetActiveLockReason(v string) *IssueUpsertBulk

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueUpsertBulk) SetAuthorAssociation

func (u *IssueUpsertBulk) SetAuthorAssociation(v issue.AuthorAssociation) *IssueUpsertBulk

SetAuthorAssociation sets the "author_association" field.

func (*IssueUpsertBulk) SetBody

func (u *IssueUpsertBulk) SetBody(v string) *IssueUpsertBulk

SetBody sets the "body" field.

func (*IssueUpsertBulk) SetClosedAt

func (u *IssueUpsertBulk) SetClosedAt(v time.Time) *IssueUpsertBulk

SetClosedAt sets the "closed_at" field.

func (*IssueUpsertBulk) SetCommentsURL

func (u *IssueUpsertBulk) SetCommentsURL(v string) *IssueUpsertBulk

SetCommentsURL sets the "comments_url" field.

func (*IssueUpsertBulk) SetCreatedAt

func (u *IssueUpsertBulk) SetCreatedAt(v time.Time) *IssueUpsertBulk

SetCreatedAt sets the "created_at" field.

func (*IssueUpsertBulk) SetDraft

func (u *IssueUpsertBulk) SetDraft(v bool) *IssueUpsertBulk

SetDraft sets the "draft" field.

func (*IssueUpsertBulk) SetEventsURL

func (u *IssueUpsertBulk) SetEventsURL(v string) *IssueUpsertBulk

SetEventsURL sets the "events_url" field.

func (*IssueUpsertBulk) SetHTMLURL

func (u *IssueUpsertBulk) SetHTMLURL(v string) *IssueUpsertBulk

SetHTMLURL sets the "html_url" field.

func (*IssueUpsertBulk) SetLabelsURL

func (u *IssueUpsertBulk) SetLabelsURL(v string) *IssueUpsertBulk

SetLabelsURL sets the "labels_url" field.

func (*IssueUpsertBulk) SetLocked

func (u *IssueUpsertBulk) SetLocked(v bool) *IssueUpsertBulk

SetLocked sets the "locked" field.

func (*IssueUpsertBulk) SetNodeID

func (u *IssueUpsertBulk) SetNodeID(v string) *IssueUpsertBulk

SetNodeID sets the "node_id" field.

func (*IssueUpsertBulk) SetNumber

func (u *IssueUpsertBulk) SetNumber(v int64) *IssueUpsertBulk

SetNumber sets the "number" field.

func (*IssueUpsertBulk) SetReactions

func (u *IssueUpsertBulk) SetReactions(v map[string]interface{}) *IssueUpsertBulk

SetReactions sets the "reactions" field.

func (*IssueUpsertBulk) SetRepositoryURL

func (u *IssueUpsertBulk) SetRepositoryURL(v string) *IssueUpsertBulk

SetRepositoryURL sets the "repository_url" field.

func (*IssueUpsertBulk) SetState

func (u *IssueUpsertBulk) SetState(v string) *IssueUpsertBulk

SetState sets the "state" field.

func (*IssueUpsertBulk) SetStateReason

func (u *IssueUpsertBulk) SetStateReason(v issue.StateReason) *IssueUpsertBulk

SetStateReason sets the "state_reason" field.

func (*IssueUpsertBulk) SetTitle

func (u *IssueUpsertBulk) SetTitle(v string) *IssueUpsertBulk

SetTitle sets the "title" field.

func (*IssueUpsertBulk) SetURL

func (u *IssueUpsertBulk) SetURL(v string) *IssueUpsertBulk

SetURL sets the "url" field.

func (*IssueUpsertBulk) SetUpdatedAt

func (u *IssueUpsertBulk) SetUpdatedAt(v time.Time) *IssueUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*IssueUpsertBulk) Update

func (u *IssueUpsertBulk) Update(set func(*IssueUpsert)) *IssueUpsertBulk

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

func (*IssueUpsertBulk) UpdateActiveLockReason

func (u *IssueUpsertBulk) UpdateActiveLockReason() *IssueUpsertBulk

UpdateActiveLockReason sets the "active_lock_reason" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateAuthorAssociation

func (u *IssueUpsertBulk) UpdateAuthorAssociation() *IssueUpsertBulk

UpdateAuthorAssociation sets the "author_association" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateBody

func (u *IssueUpsertBulk) UpdateBody() *IssueUpsertBulk

UpdateBody sets the "body" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateClosedAt

func (u *IssueUpsertBulk) UpdateClosedAt() *IssueUpsertBulk

UpdateClosedAt sets the "closed_at" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateCommentsURL

func (u *IssueUpsertBulk) UpdateCommentsURL() *IssueUpsertBulk

UpdateCommentsURL sets the "comments_url" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateCreatedAt

func (u *IssueUpsertBulk) UpdateCreatedAt() *IssueUpsertBulk

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateDraft

func (u *IssueUpsertBulk) UpdateDraft() *IssueUpsertBulk

UpdateDraft sets the "draft" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateEventsURL

func (u *IssueUpsertBulk) UpdateEventsURL() *IssueUpsertBulk

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateHTMLURL

func (u *IssueUpsertBulk) UpdateHTMLURL() *IssueUpsertBulk

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateLabelsURL

func (u *IssueUpsertBulk) UpdateLabelsURL() *IssueUpsertBulk

UpdateLabelsURL sets the "labels_url" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateLocked

func (u *IssueUpsertBulk) UpdateLocked() *IssueUpsertBulk

UpdateLocked sets the "locked" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateNewValues

func (u *IssueUpsertBulk) UpdateNewValues() *IssueUpsertBulk

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

client.Issue.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(issue.FieldID)
		}),
	).
	Exec(ctx)

func (*IssueUpsertBulk) UpdateNodeID

func (u *IssueUpsertBulk) UpdateNodeID() *IssueUpsertBulk

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateNumber

func (u *IssueUpsertBulk) UpdateNumber() *IssueUpsertBulk

UpdateNumber sets the "number" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateReactions

func (u *IssueUpsertBulk) UpdateReactions() *IssueUpsertBulk

UpdateReactions sets the "reactions" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateRepositoryURL

func (u *IssueUpsertBulk) UpdateRepositoryURL() *IssueUpsertBulk

UpdateRepositoryURL sets the "repository_url" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateState

func (u *IssueUpsertBulk) UpdateState() *IssueUpsertBulk

UpdateState sets the "state" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateStateReason

func (u *IssueUpsertBulk) UpdateStateReason() *IssueUpsertBulk

UpdateStateReason sets the "state_reason" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateTitle

func (u *IssueUpsertBulk) UpdateTitle() *IssueUpsertBulk

UpdateTitle sets the "title" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateURL

func (u *IssueUpsertBulk) UpdateURL() *IssueUpsertBulk

UpdateURL sets the "url" field to the value that was provided on create.

func (*IssueUpsertBulk) UpdateUpdatedAt

func (u *IssueUpsertBulk) UpdateUpdatedAt() *IssueUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type IssueUpsertOne

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

IssueUpsertOne is the builder for "upsert"-ing

one Issue node.

func (*IssueUpsertOne) AddNumber

func (u *IssueUpsertOne) AddNumber(v int64) *IssueUpsertOne

AddNumber adds v to the "number" field.

func (*IssueUpsertOne) ClearActiveLockReason

func (u *IssueUpsertOne) ClearActiveLockReason() *IssueUpsertOne

ClearActiveLockReason clears the value of the "active_lock_reason" field.

func (*IssueUpsertOne) ClearBody

func (u *IssueUpsertOne) ClearBody() *IssueUpsertOne

ClearBody clears the value of the "body" field.

func (*IssueUpsertOne) ClearClosedAt

func (u *IssueUpsertOne) ClearClosedAt() *IssueUpsertOne

ClearClosedAt clears the value of the "closed_at" field.

func (*IssueUpsertOne) ClearStateReason

func (u *IssueUpsertOne) ClearStateReason() *IssueUpsertOne

ClearStateReason clears the value of the "state_reason" field.

func (*IssueUpsertOne) DoNothing

func (u *IssueUpsertOne) DoNothing() *IssueUpsertOne

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

func (*IssueUpsertOne) Exec

func (u *IssueUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*IssueUpsertOne) ExecX

func (u *IssueUpsertOne) ExecX(ctx context.Context)

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

func (*IssueUpsertOne) ID

func (u *IssueUpsertOne) ID(ctx context.Context) (id int64, err error)

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

func (*IssueUpsertOne) IDX

func (u *IssueUpsertOne) IDX(ctx context.Context) int64

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

func (*IssueUpsertOne) Ignore

func (u *IssueUpsertOne) Ignore() *IssueUpsertOne

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

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

func (*IssueUpsertOne) SetActiveLockReason

func (u *IssueUpsertOne) SetActiveLockReason(v string) *IssueUpsertOne

SetActiveLockReason sets the "active_lock_reason" field.

func (*IssueUpsertOne) SetAuthorAssociation

func (u *IssueUpsertOne) SetAuthorAssociation(v issue.AuthorAssociation) *IssueUpsertOne

SetAuthorAssociation sets the "author_association" field.

func (*IssueUpsertOne) SetBody

func (u *IssueUpsertOne) SetBody(v string) *IssueUpsertOne

SetBody sets the "body" field.

func (*IssueUpsertOne) SetClosedAt

func (u *IssueUpsertOne) SetClosedAt(v time.Time) *IssueUpsertOne

SetClosedAt sets the "closed_at" field.

func (*IssueUpsertOne) SetCommentsURL

func (u *IssueUpsertOne) SetCommentsURL(v string) *IssueUpsertOne

SetCommentsURL sets the "comments_url" field.

func (*IssueUpsertOne) SetCreatedAt

func (u *IssueUpsertOne) SetCreatedAt(v time.Time) *IssueUpsertOne

SetCreatedAt sets the "created_at" field.

func (*IssueUpsertOne) SetDraft

func (u *IssueUpsertOne) SetDraft(v bool) *IssueUpsertOne

SetDraft sets the "draft" field.

func (*IssueUpsertOne) SetEventsURL

func (u *IssueUpsertOne) SetEventsURL(v string) *IssueUpsertOne

SetEventsURL sets the "events_url" field.

func (*IssueUpsertOne) SetHTMLURL

func (u *IssueUpsertOne) SetHTMLURL(v string) *IssueUpsertOne

SetHTMLURL sets the "html_url" field.

func (*IssueUpsertOne) SetLabelsURL

func (u *IssueUpsertOne) SetLabelsURL(v string) *IssueUpsertOne

SetLabelsURL sets the "labels_url" field.

func (*IssueUpsertOne) SetLocked

func (u *IssueUpsertOne) SetLocked(v bool) *IssueUpsertOne

SetLocked sets the "locked" field.

func (*IssueUpsertOne) SetNodeID

func (u *IssueUpsertOne) SetNodeID(v string) *IssueUpsertOne

SetNodeID sets the "node_id" field.

func (*IssueUpsertOne) SetNumber

func (u *IssueUpsertOne) SetNumber(v int64) *IssueUpsertOne

SetNumber sets the "number" field.

func (*IssueUpsertOne) SetReactions

func (u *IssueUpsertOne) SetReactions(v map[string]interface{}) *IssueUpsertOne

SetReactions sets the "reactions" field.

func (*IssueUpsertOne) SetRepositoryURL

func (u *IssueUpsertOne) SetRepositoryURL(v string) *IssueUpsertOne

SetRepositoryURL sets the "repository_url" field.

func (*IssueUpsertOne) SetState

func (u *IssueUpsertOne) SetState(v string) *IssueUpsertOne

SetState sets the "state" field.

func (*IssueUpsertOne) SetStateReason

func (u *IssueUpsertOne) SetStateReason(v issue.StateReason) *IssueUpsertOne

SetStateReason sets the "state_reason" field.

func (*IssueUpsertOne) SetTitle

func (u *IssueUpsertOne) SetTitle(v string) *IssueUpsertOne

SetTitle sets the "title" field.

func (*IssueUpsertOne) SetURL

func (u *IssueUpsertOne) SetURL(v string) *IssueUpsertOne

SetURL sets the "url" field.

func (*IssueUpsertOne) SetUpdatedAt

func (u *IssueUpsertOne) SetUpdatedAt(v time.Time) *IssueUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*IssueUpsertOne) Update

func (u *IssueUpsertOne) Update(set func(*IssueUpsert)) *IssueUpsertOne

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

func (*IssueUpsertOne) UpdateActiveLockReason

func (u *IssueUpsertOne) UpdateActiveLockReason() *IssueUpsertOne

UpdateActiveLockReason sets the "active_lock_reason" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateAuthorAssociation

func (u *IssueUpsertOne) UpdateAuthorAssociation() *IssueUpsertOne

UpdateAuthorAssociation sets the "author_association" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateBody

func (u *IssueUpsertOne) UpdateBody() *IssueUpsertOne

UpdateBody sets the "body" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateClosedAt

func (u *IssueUpsertOne) UpdateClosedAt() *IssueUpsertOne

UpdateClosedAt sets the "closed_at" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateCommentsURL

func (u *IssueUpsertOne) UpdateCommentsURL() *IssueUpsertOne

UpdateCommentsURL sets the "comments_url" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateCreatedAt

func (u *IssueUpsertOne) UpdateCreatedAt() *IssueUpsertOne

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateDraft

func (u *IssueUpsertOne) UpdateDraft() *IssueUpsertOne

UpdateDraft sets the "draft" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateEventsURL

func (u *IssueUpsertOne) UpdateEventsURL() *IssueUpsertOne

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateHTMLURL

func (u *IssueUpsertOne) UpdateHTMLURL() *IssueUpsertOne

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateLabelsURL

func (u *IssueUpsertOne) UpdateLabelsURL() *IssueUpsertOne

UpdateLabelsURL sets the "labels_url" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateLocked

func (u *IssueUpsertOne) UpdateLocked() *IssueUpsertOne

UpdateLocked sets the "locked" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateNewValues

func (u *IssueUpsertOne) UpdateNewValues() *IssueUpsertOne

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

client.Issue.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(issue.FieldID)
		}),
	).
	Exec(ctx)

func (*IssueUpsertOne) UpdateNodeID

func (u *IssueUpsertOne) UpdateNodeID() *IssueUpsertOne

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateNumber

func (u *IssueUpsertOne) UpdateNumber() *IssueUpsertOne

UpdateNumber sets the "number" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateReactions

func (u *IssueUpsertOne) UpdateReactions() *IssueUpsertOne

UpdateReactions sets the "reactions" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateRepositoryURL

func (u *IssueUpsertOne) UpdateRepositoryURL() *IssueUpsertOne

UpdateRepositoryURL sets the "repository_url" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateState

func (u *IssueUpsertOne) UpdateState() *IssueUpsertOne

UpdateState sets the "state" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateStateReason

func (u *IssueUpsertOne) UpdateStateReason() *IssueUpsertOne

UpdateStateReason sets the "state_reason" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateTitle

func (u *IssueUpsertOne) UpdateTitle() *IssueUpsertOne

UpdateTitle sets the "title" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateURL

func (u *IssueUpsertOne) UpdateURL() *IssueUpsertOne

UpdateURL sets the "url" field to the value that was provided on create.

func (*IssueUpsertOne) UpdateUpdatedAt

func (u *IssueUpsertOne) UpdateUpdatedAt() *IssueUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Issues

type Issues []*Issue

Issues is a parsable slice of Issue.

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 Repositories

type Repositories []*Repository

Repositories is a parsable slice of Repository.

type Repository

type Repository struct {

	// ID of the ent.
	ID int64 `json:"id,omitempty"`
	// NodeID holds the value of the "node_id" field.
	NodeID string `json:"node_id"`
	// Name holds the value of the "name" field.
	Name string `json:"name"`
	// FullName holds the value of the "full_name" field.
	FullName string `json:"full_name"`
	// Private holds the value of the "private" field.
	Private bool `json:"private"`
	// HTMLURL holds the value of the "html_url" field.
	HTMLURL string `json:"html_url"`
	// Description holds the value of the "description" field.
	Description string `json:"description"`
	// Fork holds the value of the "fork" field.
	Fork bool `json:"fork"`
	// URL holds the value of the "url" field.
	URL string `json:"url"`
	// ArchiveURL holds the value of the "archive_url" field.
	ArchiveURL string `json:"archive_url"`
	// AssigneesURL holds the value of the "assignees_url" field.
	AssigneesURL string `json:"assignees_url"`
	// BlobsURL holds the value of the "blobs_url" field.
	BlobsURL string `json:"blobs_url"`
	// BranchesURL holds the value of the "branches_url" field.
	BranchesURL string `json:"branches_url"`
	// CollaboratorsURL holds the value of the "collaborators_url" field.
	CollaboratorsURL string `json:"collaborators_url"`
	// CommentsURL holds the value of the "comments_url" field.
	CommentsURL string `json:"comments_url"`
	// CommitsURL holds the value of the "commits_url" field.
	CommitsURL string `json:"commits_url"`
	// CompareURL holds the value of the "compare_url" field.
	CompareURL string `json:"compare_url"`
	// ContentsURL holds the value of the "contents_url" field.
	ContentsURL string `json:"contents_url"`
	// ContributorsURL holds the value of the "contributors_url" field.
	ContributorsURL string `json:"contributors_url"`
	// DeploymentsURL holds the value of the "deployments_url" field.
	DeploymentsURL string `json:"deployments_url"`
	// DownloadsURL holds the value of the "downloads_url" field.
	DownloadsURL string `json:"downloads_url"`
	// EventsURL holds the value of the "events_url" field.
	EventsURL string `json:"events_url"`
	// ForksURL holds the value of the "forks_url" field.
	ForksURL string `json:"forks_url"`
	// GitCommitsURL holds the value of the "git_commits_url" field.
	GitCommitsURL string `json:"git_commits_url"`
	// GitRefsURL holds the value of the "git_refs_url" field.
	GitRefsURL string `json:"git_refs_url"`
	// GitTagsURL holds the value of the "git_tags_url" field.
	GitTagsURL string `json:"git_tags_url"`
	// GitURL holds the value of the "git_url" field.
	GitURL string `json:"git_url"`
	// IssueCommentURL holds the value of the "issue_comment_url" field.
	IssueCommentURL string `json:"issue_comment_url"`
	// IssueEventsURL holds the value of the "issue_events_url" field.
	IssueEventsURL string `json:"issue_events_url"`
	// IssuesURL holds the value of the "issues_url" field.
	IssuesURL string `json:"issues_url"`
	// KeysURL holds the value of the "keys_url" field.
	KeysURL string `json:"keys_url"`
	// LabelsURL holds the value of the "labels_url" field.
	LabelsURL string `json:"labels_url"`
	// LanguagesURL holds the value of the "languages_url" field.
	LanguagesURL string `json:"languages_url"`
	// MergesURL holds the value of the "merges_url" field.
	MergesURL string `json:"merges_url"`
	// MilestonesURL holds the value of the "milestones_url" field.
	MilestonesURL string `json:"milestones_url"`
	// NotificationsURL holds the value of the "notifications_url" field.
	NotificationsURL string `json:"notifications_url"`
	// PullsURL holds the value of the "pulls_url" field.
	PullsURL string `json:"pulls_url"`
	// ReleasesURL holds the value of the "releases_url" field.
	ReleasesURL string `json:"releases_url"`
	// SSHURL holds the value of the "ssh_url" field.
	SSHURL string `json:"ssh_url"`
	// StargazersURL holds the value of the "stargazers_url" field.
	StargazersURL string `json:"stargazers_url"`
	// StatusesURL holds the value of the "statuses_url" field.
	StatusesURL string `json:"statuses_url"`
	// SubscribersURL holds the value of the "subscribers_url" field.
	SubscribersURL string `json:"subscribers_url"`
	// SubscriptionURL holds the value of the "subscription_url" field.
	SubscriptionURL string `json:"subscription_url"`
	// TagsURL holds the value of the "tags_url" field.
	TagsURL string `json:"tags_url"`
	// TeamsURL holds the value of the "teams_url" field.
	TeamsURL string `json:"teams_url"`
	// TreesURL holds the value of the "trees_url" field.
	TreesURL string `json:"trees_url"`
	// CloneURL holds the value of the "clone_url" field.
	CloneURL string `json:"clone_url"`
	// MirrorURL holds the value of the "mirror_url" field.
	MirrorURL *string `json:"mirror_url"`
	// HooksURL holds the value of the "hooks_url" field.
	HooksURL string `json:"hooks_url"`
	// SvnURL holds the value of the "svn_url" field.
	SvnURL string `json:"svn_url"`
	// Homepage holds the value of the "homepage" field.
	Homepage string `json:"homepage"`
	// Language holds the value of the "language" field.
	Language string `json:"language"`
	// ForksCount holds the value of the "forks_count" field.
	ForksCount int64 `json:"forks_count"`
	// StargazersCount holds the value of the "stargazers_count" field.
	StargazersCount int64 `json:"stargazers_count"`
	// WatchersCount holds the value of the "watchers_count" field.
	WatchersCount int64 `json:"watchers_count"`
	// The size of the repository, in kilobytes. Size is calculated hourly. When a repository is initially created, the size is 0.
	Size int64 `json:"size"`
	// DefaultBranch holds the value of the "default_branch" field.
	DefaultBranch string `json:"default_branch"`
	// OpenIssuesCount holds the value of the "open_issues_count" field.
	OpenIssuesCount int64 `json:"open_issues_count"`
	// IsTemplate holds the value of the "is_template" field.
	IsTemplate bool `json:"is_template"`
	// Topics holds the value of the "topics" field.
	Topics []string `json:"topics"`
	// HasIssuesEnabled holds the value of the "has_issues_enabled" field.
	HasIssuesEnabled bool `json:"has_issues"`
	// HasProjects holds the value of the "has_projects" field.
	HasProjects bool `json:"has_projects"`
	// HasWiki holds the value of the "has_wiki" field.
	HasWiki bool `json:"has_wiki"`
	// HasPages holds the value of the "has_pages" field.
	HasPages bool `json:"has_pages"`
	// HasDownloads holds the value of the "has_downloads" field.
	HasDownloads bool `json:"has_downloads"`
	// HasDiscussions holds the value of the "has_discussions" field.
	HasDiscussions bool `json:"has_discussions"`
	// Archived holds the value of the "archived" field.
	Archived bool `json:"archived"`
	// Returns whether or not this repository disabled.
	Disabled bool `json:"disabled"`
	// Visibility holds the value of the "visibility" field.
	Visibility *repository.Visibility `json:"visibility"`
	// PushedAt holds the value of the "pushed_at" field.
	PushedAt time.Time `json:"pushed_at"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at"`
	// SubscribersCount holds the value of the "subscribers_count" field.
	SubscribersCount int64 `json:"subscribers_count"`
	// NetworkCount holds the value of the "network_count" field.
	NetworkCount int64 `json:"network_count"`
	// Forks holds the value of the "forks" field.
	Forks int64 `json:"forks"`
	// OpenIssues holds the value of the "open_issues" field.
	OpenIssues int64 `json:"open_issues"`
	// Watchers holds the value of the "watchers" field.
	Watchers int64 `json:"watchers"`
	// License holds the value of the "license" field.
	License *model.License `json:"license"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the RepositoryQuery when eager-loading is set.
	Edges RepositoryEdges `json:"-"`
	// contains filtered or unexported fields
}

Repository is the model entity for the Repository schema.

func (*Repository) MarshalJSON

func (r *Repository) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*Repository) QueryIssues

func (r *Repository) QueryIssues() *IssueQuery

QueryIssues queries the "issues" edge of the Repository entity.

func (*Repository) QueryOwner

func (r *Repository) QueryOwner() *UserQuery

QueryOwner queries the "owner" edge of the Repository entity.

func (*Repository) String

func (r *Repository) String() string

String implements the fmt.Stringer.

func (*Repository) Unwrap

func (r *Repository) Unwrap() *Repository

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

func (r *Repository) Update() *RepositoryUpdateOne

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

func (*Repository) Value

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

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

type RepositoryClient

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

RepositoryClient is a client for the Repository schema.

func NewRepositoryClient

func NewRepositoryClient(c config) *RepositoryClient

NewRepositoryClient returns a client for the Repository from the given config.

func (*RepositoryClient) Create

func (c *RepositoryClient) Create() *RepositoryCreate

Create returns a builder for creating a Repository entity.

func (*RepositoryClient) CreateBulk

func (c *RepositoryClient) CreateBulk(builders ...*RepositoryCreate) *RepositoryCreateBulk

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

func (*RepositoryClient) Delete

func (c *RepositoryClient) Delete() *RepositoryDelete

Delete returns a delete builder for Repository.

func (*RepositoryClient) DeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*RepositoryClient) DeleteOneID

func (c *RepositoryClient) DeleteOneID(id int64) *RepositoryDeleteOne

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

func (*RepositoryClient) Get

func (c *RepositoryClient) Get(ctx context.Context, id int64) (*Repository, error)

Get returns a Repository entity by its id.

func (*RepositoryClient) GetX

func (c *RepositoryClient) GetX(ctx context.Context, id int64) *Repository

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

func (*RepositoryClient) Hooks

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

Hooks returns the client hooks.

func (*RepositoryClient) Intercept

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

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

func (*RepositoryClient) Interceptors

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

Interceptors returns the client interceptors.

func (*RepositoryClient) MapCreateBulk

func (c *RepositoryClient) MapCreateBulk(slice any, setFunc func(*RepositoryCreate, int)) *RepositoryCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*RepositoryClient) Query

func (c *RepositoryClient) Query() *RepositoryQuery

Query returns a query builder for Repository.

func (*RepositoryClient) QueryIssues

func (c *RepositoryClient) QueryIssues(r *Repository) *IssueQuery

QueryIssues queries the issues edge of a Repository.

func (*RepositoryClient) QueryOwner

func (c *RepositoryClient) QueryOwner(r *Repository) *UserQuery

QueryOwner queries the owner edge of a Repository.

func (*RepositoryClient) Update

func (c *RepositoryClient) Update() *RepositoryUpdate

Update returns an update builder for Repository.

func (*RepositoryClient) UpdateOne

UpdateOne returns an update builder for the given entity.

func (*RepositoryClient) UpdateOneID

func (c *RepositoryClient) UpdateOneID(id int64) *RepositoryUpdateOne

UpdateOneID returns an update builder for the given id.

func (*RepositoryClient) Use

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

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

type RepositoryCreate

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

RepositoryCreate is the builder for creating a Repository entity.

func (*RepositoryCreate) AddIssueIDs

func (rc *RepositoryCreate) AddIssueIDs(ids ...int64) *RepositoryCreate

AddIssueIDs adds the "issues" edge to the Issue entity by IDs.

func (*RepositoryCreate) AddIssues

func (rc *RepositoryCreate) AddIssues(i ...*Issue) *RepositoryCreate

AddIssues adds the "issues" edges to the Issue entity.

func (*RepositoryCreate) CopyRepository

func (rc *RepositoryCreate) CopyRepository(input *Repository) *RepositoryCreate

CopyRepository allows to create a new Repository copying the existing values of input.

func (*RepositoryCreate) Exec

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

Exec executes the query.

func (*RepositoryCreate) ExecX

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

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

func (*RepositoryCreate) Mutation

func (rc *RepositoryCreate) Mutation() *RepositoryMutation

Mutation returns the RepositoryMutation object of the builder.

func (*RepositoryCreate) OnConflict

func (rc *RepositoryCreate) OnConflict(opts ...sql.ConflictOption) *RepositoryUpsertOne

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

client.Repository.Create().
	SetNodeID(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.RepositoryUpsert) {
		SetNodeID(v+v).
	}).
	Exec(ctx)

func (*RepositoryCreate) OnConflictColumns

func (rc *RepositoryCreate) OnConflictColumns(columns ...string) *RepositoryUpsertOne

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

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

func (*RepositoryCreate) Save

func (rc *RepositoryCreate) Save(ctx context.Context) (*Repository, error)

Save creates the Repository in the database.

func (*RepositoryCreate) SaveX

func (rc *RepositoryCreate) SaveX(ctx context.Context) *Repository

SaveX calls Save and panics if Save returns an error.

func (*RepositoryCreate) SetArchiveURL

func (rc *RepositoryCreate) SetArchiveURL(s string) *RepositoryCreate

SetArchiveURL sets the "archive_url" field.

func (*RepositoryCreate) SetArchived

func (rc *RepositoryCreate) SetArchived(b bool) *RepositoryCreate

SetArchived sets the "archived" field.

func (*RepositoryCreate) SetAssigneesURL

func (rc *RepositoryCreate) SetAssigneesURL(s string) *RepositoryCreate

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryCreate) SetBlobsURL

func (rc *RepositoryCreate) SetBlobsURL(s string) *RepositoryCreate

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryCreate) SetBranchesURL

func (rc *RepositoryCreate) SetBranchesURL(s string) *RepositoryCreate

SetBranchesURL sets the "branches_url" field.

func (*RepositoryCreate) SetCloneURL

func (rc *RepositoryCreate) SetCloneURL(s string) *RepositoryCreate

SetCloneURL sets the "clone_url" field.

func (*RepositoryCreate) SetCollaboratorsURL

func (rc *RepositoryCreate) SetCollaboratorsURL(s string) *RepositoryCreate

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryCreate) SetCommentsURL

func (rc *RepositoryCreate) SetCommentsURL(s string) *RepositoryCreate

SetCommentsURL sets the "comments_url" field.

func (*RepositoryCreate) SetCommitsURL

func (rc *RepositoryCreate) SetCommitsURL(s string) *RepositoryCreate

SetCommitsURL sets the "commits_url" field.

func (*RepositoryCreate) SetCompareURL

func (rc *RepositoryCreate) SetCompareURL(s string) *RepositoryCreate

SetCompareURL sets the "compare_url" field.

func (*RepositoryCreate) SetContentsURL

func (rc *RepositoryCreate) SetContentsURL(s string) *RepositoryCreate

SetContentsURL sets the "contents_url" field.

func (*RepositoryCreate) SetContributorsURL

func (rc *RepositoryCreate) SetContributorsURL(s string) *RepositoryCreate

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryCreate) SetCreatedAt

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

SetCreatedAt sets the "created_at" field.

func (*RepositoryCreate) SetDefaultBranch

func (rc *RepositoryCreate) SetDefaultBranch(s string) *RepositoryCreate

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryCreate) SetDeploymentsURL

func (rc *RepositoryCreate) SetDeploymentsURL(s string) *RepositoryCreate

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryCreate) SetDescription

func (rc *RepositoryCreate) SetDescription(s string) *RepositoryCreate

SetDescription sets the "description" field.

func (*RepositoryCreate) SetDisabled

func (rc *RepositoryCreate) SetDisabled(b bool) *RepositoryCreate

SetDisabled sets the "disabled" field.

func (*RepositoryCreate) SetDownloadsURL

func (rc *RepositoryCreate) SetDownloadsURL(s string) *RepositoryCreate

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryCreate) SetEventsURL

func (rc *RepositoryCreate) SetEventsURL(s string) *RepositoryCreate

SetEventsURL sets the "events_url" field.

func (*RepositoryCreate) SetFork

func (rc *RepositoryCreate) SetFork(b bool) *RepositoryCreate

SetFork sets the "fork" field.

func (*RepositoryCreate) SetForks

func (rc *RepositoryCreate) SetForks(i int64) *RepositoryCreate

SetForks sets the "forks" field.

func (*RepositoryCreate) SetForksCount

func (rc *RepositoryCreate) SetForksCount(i int64) *RepositoryCreate

SetForksCount sets the "forks_count" field.

func (*RepositoryCreate) SetForksURL

func (rc *RepositoryCreate) SetForksURL(s string) *RepositoryCreate

SetForksURL sets the "forks_url" field.

func (*RepositoryCreate) SetFullName

func (rc *RepositoryCreate) SetFullName(s string) *RepositoryCreate

SetFullName sets the "full_name" field.

func (*RepositoryCreate) SetGitCommitsURL

func (rc *RepositoryCreate) SetGitCommitsURL(s string) *RepositoryCreate

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryCreate) SetGitRefsURL

func (rc *RepositoryCreate) SetGitRefsURL(s string) *RepositoryCreate

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryCreate) SetGitTagsURL

func (rc *RepositoryCreate) SetGitTagsURL(s string) *RepositoryCreate

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryCreate) SetGitURL

func (rc *RepositoryCreate) SetGitURL(s string) *RepositoryCreate

SetGitURL sets the "git_url" field.

func (*RepositoryCreate) SetHTMLURL

func (rc *RepositoryCreate) SetHTMLURL(s string) *RepositoryCreate

SetHTMLURL sets the "html_url" field.

func (*RepositoryCreate) SetHasDiscussions

func (rc *RepositoryCreate) SetHasDiscussions(b bool) *RepositoryCreate

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryCreate) SetHasDownloads

func (rc *RepositoryCreate) SetHasDownloads(b bool) *RepositoryCreate

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryCreate) SetHasIssuesEnabled

func (rc *RepositoryCreate) SetHasIssuesEnabled(b bool) *RepositoryCreate

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryCreate) SetHasPages

func (rc *RepositoryCreate) SetHasPages(b bool) *RepositoryCreate

SetHasPages sets the "has_pages" field.

func (*RepositoryCreate) SetHasProjects

func (rc *RepositoryCreate) SetHasProjects(b bool) *RepositoryCreate

SetHasProjects sets the "has_projects" field.

func (*RepositoryCreate) SetHasWiki

func (rc *RepositoryCreate) SetHasWiki(b bool) *RepositoryCreate

SetHasWiki sets the "has_wiki" field.

func (*RepositoryCreate) SetHomepage

func (rc *RepositoryCreate) SetHomepage(s string) *RepositoryCreate

SetHomepage sets the "homepage" field.

func (*RepositoryCreate) SetHooksURL

func (rc *RepositoryCreate) SetHooksURL(s string) *RepositoryCreate

SetHooksURL sets the "hooks_url" field.

func (*RepositoryCreate) SetID

func (rc *RepositoryCreate) SetID(i int64) *RepositoryCreate

SetID sets the "id" field.

func (*RepositoryCreate) SetIsTemplate

func (rc *RepositoryCreate) SetIsTemplate(b bool) *RepositoryCreate

SetIsTemplate sets the "is_template" field.

func (*RepositoryCreate) SetIssueCommentURL

func (rc *RepositoryCreate) SetIssueCommentURL(s string) *RepositoryCreate

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryCreate) SetIssueEventsURL

func (rc *RepositoryCreate) SetIssueEventsURL(s string) *RepositoryCreate

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryCreate) SetIssuesURL

func (rc *RepositoryCreate) SetIssuesURL(s string) *RepositoryCreate

SetIssuesURL sets the "issues_url" field.

func (*RepositoryCreate) SetKeysURL

func (rc *RepositoryCreate) SetKeysURL(s string) *RepositoryCreate

SetKeysURL sets the "keys_url" field.

func (*RepositoryCreate) SetLabelsURL

func (rc *RepositoryCreate) SetLabelsURL(s string) *RepositoryCreate

SetLabelsURL sets the "labels_url" field.

func (*RepositoryCreate) SetLanguage

func (rc *RepositoryCreate) SetLanguage(s string) *RepositoryCreate

SetLanguage sets the "language" field.

func (*RepositoryCreate) SetLanguagesURL

func (rc *RepositoryCreate) SetLanguagesURL(s string) *RepositoryCreate

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryCreate) SetLicense

func (rc *RepositoryCreate) SetLicense(m *model.License) *RepositoryCreate

SetLicense sets the "license" field.

func (*RepositoryCreate) SetMergesURL

func (rc *RepositoryCreate) SetMergesURL(s string) *RepositoryCreate

SetMergesURL sets the "merges_url" field.

func (*RepositoryCreate) SetMilestonesURL

func (rc *RepositoryCreate) SetMilestonesURL(s string) *RepositoryCreate

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryCreate) SetMirrorURL

func (rc *RepositoryCreate) SetMirrorURL(s string) *RepositoryCreate

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryCreate) SetName

func (rc *RepositoryCreate) SetName(s string) *RepositoryCreate

SetName sets the "name" field.

func (*RepositoryCreate) SetNetworkCount

func (rc *RepositoryCreate) SetNetworkCount(i int64) *RepositoryCreate

SetNetworkCount sets the "network_count" field.

func (*RepositoryCreate) SetNillableDescription

func (rc *RepositoryCreate) SetNillableDescription(s *string) *RepositoryCreate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*RepositoryCreate) SetNillableHomepage

func (rc *RepositoryCreate) SetNillableHomepage(s *string) *RepositoryCreate

SetNillableHomepage sets the "homepage" field if the given value is not nil.

func (*RepositoryCreate) SetNillableLanguage

func (rc *RepositoryCreate) SetNillableLanguage(s *string) *RepositoryCreate

SetNillableLanguage sets the "language" field if the given value is not nil.

func (*RepositoryCreate) SetNillableMirrorURL

func (rc *RepositoryCreate) SetNillableMirrorURL(s *string) *RepositoryCreate

SetNillableMirrorURL sets the "mirror_url" field if the given value is not nil.

func (*RepositoryCreate) SetNillableOwnerID

func (rc *RepositoryCreate) SetNillableOwnerID(id *int64) *RepositoryCreate

SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.

func (*RepositoryCreate) SetNillableVisibility

func (rc *RepositoryCreate) SetNillableVisibility(r *repository.Visibility) *RepositoryCreate

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*RepositoryCreate) SetNodeID

func (rc *RepositoryCreate) SetNodeID(s string) *RepositoryCreate

SetNodeID sets the "node_id" field.

func (*RepositoryCreate) SetNotificationsURL

func (rc *RepositoryCreate) SetNotificationsURL(s string) *RepositoryCreate

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryCreate) SetOpenIssues

func (rc *RepositoryCreate) SetOpenIssues(i int64) *RepositoryCreate

SetOpenIssues sets the "open_issues" field.

func (*RepositoryCreate) SetOpenIssuesCount

func (rc *RepositoryCreate) SetOpenIssuesCount(i int64) *RepositoryCreate

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryCreate) SetOwner

func (rc *RepositoryCreate) SetOwner(u *User) *RepositoryCreate

SetOwner sets the "owner" edge to the User entity.

func (*RepositoryCreate) SetOwnerID

func (rc *RepositoryCreate) SetOwnerID(id int64) *RepositoryCreate

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*RepositoryCreate) SetPrivate

func (rc *RepositoryCreate) SetPrivate(b bool) *RepositoryCreate

SetPrivate sets the "private" field.

func (*RepositoryCreate) SetPullsURL

func (rc *RepositoryCreate) SetPullsURL(s string) *RepositoryCreate

SetPullsURL sets the "pulls_url" field.

func (*RepositoryCreate) SetPushedAt

func (rc *RepositoryCreate) SetPushedAt(t time.Time) *RepositoryCreate

SetPushedAt sets the "pushed_at" field.

func (*RepositoryCreate) SetReleasesURL

func (rc *RepositoryCreate) SetReleasesURL(s string) *RepositoryCreate

SetReleasesURL sets the "releases_url" field.

func (*RepositoryCreate) SetSSHURL

func (rc *RepositoryCreate) SetSSHURL(s string) *RepositoryCreate

SetSSHURL sets the "ssh_url" field.

func (*RepositoryCreate) SetSize

func (rc *RepositoryCreate) SetSize(i int64) *RepositoryCreate

SetSize sets the "size" field.

func (*RepositoryCreate) SetStargazersCount

func (rc *RepositoryCreate) SetStargazersCount(i int64) *RepositoryCreate

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryCreate) SetStargazersURL

func (rc *RepositoryCreate) SetStargazersURL(s string) *RepositoryCreate

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryCreate) SetStatusesURL

func (rc *RepositoryCreate) SetStatusesURL(s string) *RepositoryCreate

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryCreate) SetSubscribersCount

func (rc *RepositoryCreate) SetSubscribersCount(i int64) *RepositoryCreate

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryCreate) SetSubscribersURL

func (rc *RepositoryCreate) SetSubscribersURL(s string) *RepositoryCreate

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryCreate) SetSubscriptionURL

func (rc *RepositoryCreate) SetSubscriptionURL(s string) *RepositoryCreate

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryCreate) SetSvnURL

func (rc *RepositoryCreate) SetSvnURL(s string) *RepositoryCreate

SetSvnURL sets the "svn_url" field.

func (*RepositoryCreate) SetTagsURL

func (rc *RepositoryCreate) SetTagsURL(s string) *RepositoryCreate

SetTagsURL sets the "tags_url" field.

func (*RepositoryCreate) SetTeamsURL

func (rc *RepositoryCreate) SetTeamsURL(s string) *RepositoryCreate

SetTeamsURL sets the "teams_url" field.

func (*RepositoryCreate) SetTopics

func (rc *RepositoryCreate) SetTopics(s []string) *RepositoryCreate

SetTopics sets the "topics" field.

func (*RepositoryCreate) SetTreesURL

func (rc *RepositoryCreate) SetTreesURL(s string) *RepositoryCreate

SetTreesURL sets the "trees_url" field.

func (*RepositoryCreate) SetURL

func (rc *RepositoryCreate) SetURL(s string) *RepositoryCreate

SetURL sets the "url" field.

func (*RepositoryCreate) SetUpdatedAt

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

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryCreate) SetVisibility

SetVisibility sets the "visibility" field.

func (*RepositoryCreate) SetWatchers

func (rc *RepositoryCreate) SetWatchers(i int64) *RepositoryCreate

SetWatchers sets the "watchers" field.

func (*RepositoryCreate) SetWatchersCount

func (rc *RepositoryCreate) SetWatchersCount(i int64) *RepositoryCreate

SetWatchersCount sets the "watchers_count" field.

type RepositoryCreateBulk

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

RepositoryCreateBulk is the builder for creating many Repository entities in bulk.

func (*RepositoryCreateBulk) Exec

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

Exec executes the query.

func (*RepositoryCreateBulk) ExecX

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

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

func (*RepositoryCreateBulk) OnConflict

func (rcb *RepositoryCreateBulk) OnConflict(opts ...sql.ConflictOption) *RepositoryUpsertBulk

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

client.Repository.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.RepositoryUpsert) {
		SetNodeID(v+v).
	}).
	Exec(ctx)

func (*RepositoryCreateBulk) OnConflictColumns

func (rcb *RepositoryCreateBulk) OnConflictColumns(columns ...string) *RepositoryUpsertBulk

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

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

func (*RepositoryCreateBulk) Save

func (rcb *RepositoryCreateBulk) Save(ctx context.Context) ([]*Repository, error)

Save creates the Repository entities in the database.

func (*RepositoryCreateBulk) SaveX

func (rcb *RepositoryCreateBulk) SaveX(ctx context.Context) []*Repository

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

type RepositoryDelete

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

RepositoryDelete is the builder for deleting a Repository entity.

func (*RepositoryDelete) Exec

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

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

func (*RepositoryDelete) ExecX

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

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

func (*RepositoryDelete) Where

Where appends a list predicates to the RepositoryDelete builder.

type RepositoryDeleteOne

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

RepositoryDeleteOne is the builder for deleting a single Repository entity.

func (*RepositoryDeleteOne) Exec

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

Exec executes the deletion query.

func (*RepositoryDeleteOne) ExecX

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

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

func (*RepositoryDeleteOne) Where

Where appends a list predicates to the RepositoryDelete builder.

type RepositoryEdges

type RepositoryEdges struct {
	// Owner holds the value of the owner edge.
	Owner *User `json:"owner,omitempty"`
	// Issues holds the value of the issues edge.
	Issues []*Issue `json:"issues,omitempty"`
	// contains filtered or unexported fields
}

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

func (RepositoryEdges) IssuesOrErr

func (e RepositoryEdges) IssuesOrErr() ([]*Issue, error)

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

func (RepositoryEdges) OwnerOrErr

func (e RepositoryEdges) OwnerOrErr() (*User, error)

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

type RepositoryGroupBy

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

RepositoryGroupBy is the group-by builder for Repository entities.

func (*RepositoryGroupBy) Aggregate

func (rgb *RepositoryGroupBy) Aggregate(fns ...AggregateFunc) *RepositoryGroupBy

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

func (*RepositoryGroupBy) Bool

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

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

func (*RepositoryGroupBy) BoolX

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

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

func (*RepositoryGroupBy) Bools

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

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

func (*RepositoryGroupBy) BoolsX

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

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

func (*RepositoryGroupBy) Float64

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

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

func (*RepositoryGroupBy) Float64X

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

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

func (*RepositoryGroupBy) Float64s

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

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

func (*RepositoryGroupBy) Float64sX

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

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

func (*RepositoryGroupBy) Int

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

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

func (*RepositoryGroupBy) IntX

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

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

func (*RepositoryGroupBy) Ints

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

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

func (*RepositoryGroupBy) IntsX

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

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

func (*RepositoryGroupBy) Scan

func (rgb *RepositoryGroupBy) Scan(ctx context.Context, v any) error

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

func (*RepositoryGroupBy) ScanX

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

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

func (*RepositoryGroupBy) String

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

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

func (*RepositoryGroupBy) StringX

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

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

func (*RepositoryGroupBy) Strings

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

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

func (*RepositoryGroupBy) StringsX

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

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

type RepositoryMutation

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

RepositoryMutation represents an operation that mutates the Repository nodes in the graph.

func (*RepositoryMutation) AddField

func (m *RepositoryMutation) 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 (*RepositoryMutation) AddForks

func (m *RepositoryMutation) AddForks(i int64)

AddForks adds i to the "forks" field.

func (*RepositoryMutation) AddForksCount

func (m *RepositoryMutation) AddForksCount(i int64)

AddForksCount adds i to the "forks_count" field.

func (*RepositoryMutation) AddIssueIDs

func (m *RepositoryMutation) AddIssueIDs(ids ...int64)

AddIssueIDs adds the "issues" edge to the Issue entity by ids.

func (*RepositoryMutation) AddNetworkCount

func (m *RepositoryMutation) AddNetworkCount(i int64)

AddNetworkCount adds i to the "network_count" field.

func (*RepositoryMutation) AddOpenIssues

func (m *RepositoryMutation) AddOpenIssues(i int64)

AddOpenIssues adds i to the "open_issues" field.

func (*RepositoryMutation) AddOpenIssuesCount

func (m *RepositoryMutation) AddOpenIssuesCount(i int64)

AddOpenIssuesCount adds i to the "open_issues_count" field.

func (*RepositoryMutation) AddSize

func (m *RepositoryMutation) AddSize(i int64)

AddSize adds i to the "size" field.

func (*RepositoryMutation) AddStargazersCount

func (m *RepositoryMutation) AddStargazersCount(i int64)

AddStargazersCount adds i to the "stargazers_count" field.

func (*RepositoryMutation) AddSubscribersCount

func (m *RepositoryMutation) AddSubscribersCount(i int64)

AddSubscribersCount adds i to the "subscribers_count" field.

func (*RepositoryMutation) AddWatchers

func (m *RepositoryMutation) AddWatchers(i int64)

AddWatchers adds i to the "watchers" field.

func (*RepositoryMutation) AddWatchersCount

func (m *RepositoryMutation) AddWatchersCount(i int64)

AddWatchersCount adds i to the "watchers_count" field.

func (*RepositoryMutation) AddedEdges

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

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

func (*RepositoryMutation) AddedField

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

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

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

func (*RepositoryMutation) AddedForks

func (m *RepositoryMutation) AddedForks() (r int64, exists bool)

AddedForks returns the value that was added to the "forks" field in this mutation.

func (*RepositoryMutation) AddedForksCount

func (m *RepositoryMutation) AddedForksCount() (r int64, exists bool)

AddedForksCount returns the value that was added to the "forks_count" field in this mutation.

func (*RepositoryMutation) AddedIDs

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

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

func (*RepositoryMutation) AddedNetworkCount

func (m *RepositoryMutation) AddedNetworkCount() (r int64, exists bool)

AddedNetworkCount returns the value that was added to the "network_count" field in this mutation.

func (*RepositoryMutation) AddedOpenIssues

func (m *RepositoryMutation) AddedOpenIssues() (r int64, exists bool)

AddedOpenIssues returns the value that was added to the "open_issues" field in this mutation.

func (*RepositoryMutation) AddedOpenIssuesCount

func (m *RepositoryMutation) AddedOpenIssuesCount() (r int64, exists bool)

AddedOpenIssuesCount returns the value that was added to the "open_issues_count" field in this mutation.

func (*RepositoryMutation) AddedSize

func (m *RepositoryMutation) AddedSize() (r int64, exists bool)

AddedSize returns the value that was added to the "size" field in this mutation.

func (*RepositoryMutation) AddedStargazersCount

func (m *RepositoryMutation) AddedStargazersCount() (r int64, exists bool)

AddedStargazersCount returns the value that was added to the "stargazers_count" field in this mutation.

func (*RepositoryMutation) AddedSubscribersCount

func (m *RepositoryMutation) AddedSubscribersCount() (r int64, exists bool)

AddedSubscribersCount returns the value that was added to the "subscribers_count" field in this mutation.

func (*RepositoryMutation) AddedWatchers

func (m *RepositoryMutation) AddedWatchers() (r int64, exists bool)

AddedWatchers returns the value that was added to the "watchers" field in this mutation.

func (*RepositoryMutation) AddedWatchersCount

func (m *RepositoryMutation) AddedWatchersCount() (r int64, exists bool)

AddedWatchersCount returns the value that was added to the "watchers_count" field in this mutation.

func (*RepositoryMutation) AppendTopics

func (m *RepositoryMutation) AppendTopics(s []string)

AppendTopics adds s to the "topics" field.

func (*RepositoryMutation) AppendedTopics

func (m *RepositoryMutation) AppendedTopics() ([]string, bool)

AppendedTopics returns the list of values that were appended to the "topics" field in this mutation.

func (*RepositoryMutation) ArchiveURL

func (m *RepositoryMutation) ArchiveURL() (r string, exists bool)

ArchiveURL returns the value of the "archive_url" field in the mutation.

func (*RepositoryMutation) Archived

func (m *RepositoryMutation) Archived() (r bool, exists bool)

Archived returns the value of the "archived" field in the mutation.

func (*RepositoryMutation) AssigneesURL

func (m *RepositoryMutation) AssigneesURL() (r string, exists bool)

AssigneesURL returns the value of the "assignees_url" field in the mutation.

func (*RepositoryMutation) BlobsURL

func (m *RepositoryMutation) BlobsURL() (r string, exists bool)

BlobsURL returns the value of the "blobs_url" field in the mutation.

func (*RepositoryMutation) BranchesURL

func (m *RepositoryMutation) BranchesURL() (r string, exists bool)

BranchesURL returns the value of the "branches_url" field in the mutation.

func (*RepositoryMutation) ClearDescription

func (m *RepositoryMutation) ClearDescription()

ClearDescription clears the value of the "description" field.

func (*RepositoryMutation) ClearEdge

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

func (m *RepositoryMutation) 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 (*RepositoryMutation) ClearHomepage

func (m *RepositoryMutation) ClearHomepage()

ClearHomepage clears the value of the "homepage" field.

func (*RepositoryMutation) ClearIssues

func (m *RepositoryMutation) ClearIssues()

ClearIssues clears the "issues" edge to the Issue entity.

func (*RepositoryMutation) ClearLanguage

func (m *RepositoryMutation) ClearLanguage()

ClearLanguage clears the value of the "language" field.

func (*RepositoryMutation) ClearLicense

func (m *RepositoryMutation) ClearLicense()

ClearLicense clears the value of the "license" field.

func (*RepositoryMutation) ClearMirrorURL

func (m *RepositoryMutation) ClearMirrorURL()

ClearMirrorURL clears the value of the "mirror_url" field.

func (*RepositoryMutation) ClearOwner

func (m *RepositoryMutation) ClearOwner()

ClearOwner clears the "owner" edge to the User entity.

func (*RepositoryMutation) ClearVisibility

func (m *RepositoryMutation) ClearVisibility()

ClearVisibility clears the value of the "visibility" field.

func (*RepositoryMutation) ClearedEdges

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

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

func (*RepositoryMutation) ClearedFields

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

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

func (RepositoryMutation) Client

func (m RepositoryMutation) 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 (*RepositoryMutation) CloneURL

func (m *RepositoryMutation) CloneURL() (r string, exists bool)

CloneURL returns the value of the "clone_url" field in the mutation.

func (*RepositoryMutation) CollaboratorsURL

func (m *RepositoryMutation) CollaboratorsURL() (r string, exists bool)

CollaboratorsURL returns the value of the "collaborators_url" field in the mutation.

func (*RepositoryMutation) CommentsURL

func (m *RepositoryMutation) CommentsURL() (r string, exists bool)

CommentsURL returns the value of the "comments_url" field in the mutation.

func (*RepositoryMutation) CommitsURL

func (m *RepositoryMutation) CommitsURL() (r string, exists bool)

CommitsURL returns the value of the "commits_url" field in the mutation.

func (*RepositoryMutation) CompareURL

func (m *RepositoryMutation) CompareURL() (r string, exists bool)

CompareURL returns the value of the "compare_url" field in the mutation.

func (*RepositoryMutation) ContentsURL

func (m *RepositoryMutation) ContentsURL() (r string, exists bool)

ContentsURL returns the value of the "contents_url" field in the mutation.

func (*RepositoryMutation) ContributorsURL

func (m *RepositoryMutation) ContributorsURL() (r string, exists bool)

ContributorsURL returns the value of the "contributors_url" field in the mutation.

func (*RepositoryMutation) CreatedAt

func (m *RepositoryMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*RepositoryMutation) DefaultBranch

func (m *RepositoryMutation) DefaultBranch() (r string, exists bool)

DefaultBranch returns the value of the "default_branch" field in the mutation.

func (*RepositoryMutation) DeploymentsURL

func (m *RepositoryMutation) DeploymentsURL() (r string, exists bool)

DeploymentsURL returns the value of the "deployments_url" field in the mutation.

func (*RepositoryMutation) Description

func (m *RepositoryMutation) Description() (r string, exists bool)

Description returns the value of the "description" field in the mutation.

func (*RepositoryMutation) DescriptionCleared

func (m *RepositoryMutation) DescriptionCleared() bool

DescriptionCleared returns if the "description" field was cleared in this mutation.

func (*RepositoryMutation) Disabled

func (m *RepositoryMutation) Disabled() (r bool, exists bool)

Disabled returns the value of the "disabled" field in the mutation.

func (*RepositoryMutation) DownloadsURL

func (m *RepositoryMutation) DownloadsURL() (r string, exists bool)

DownloadsURL returns the value of the "downloads_url" field in the mutation.

func (*RepositoryMutation) EdgeCleared

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

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

func (*RepositoryMutation) EventsURL

func (m *RepositoryMutation) EventsURL() (r string, exists bool)

EventsURL returns the value of the "events_url" field in the mutation.

func (*RepositoryMutation) Field

func (m *RepositoryMutation) 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 (*RepositoryMutation) FieldCleared

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

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

func (*RepositoryMutation) Fields

func (m *RepositoryMutation) 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 (*RepositoryMutation) Fork

func (m *RepositoryMutation) Fork() (r bool, exists bool)

Fork returns the value of the "fork" field in the mutation.

func (*RepositoryMutation) Forks

func (m *RepositoryMutation) Forks() (r int64, exists bool)

Forks returns the value of the "forks" field in the mutation.

func (*RepositoryMutation) ForksCount

func (m *RepositoryMutation) ForksCount() (r int64, exists bool)

ForksCount returns the value of the "forks_count" field in the mutation.

func (*RepositoryMutation) ForksURL

func (m *RepositoryMutation) ForksURL() (r string, exists bool)

ForksURL returns the value of the "forks_url" field in the mutation.

func (*RepositoryMutation) FullName

func (m *RepositoryMutation) FullName() (r string, exists bool)

FullName returns the value of the "full_name" field in the mutation.

func (*RepositoryMutation) GitCommitsURL

func (m *RepositoryMutation) GitCommitsURL() (r string, exists bool)

GitCommitsURL returns the value of the "git_commits_url" field in the mutation.

func (*RepositoryMutation) GitRefsURL

func (m *RepositoryMutation) GitRefsURL() (r string, exists bool)

GitRefsURL returns the value of the "git_refs_url" field in the mutation.

func (*RepositoryMutation) GitTagsURL

func (m *RepositoryMutation) GitTagsURL() (r string, exists bool)

GitTagsURL returns the value of the "git_tags_url" field in the mutation.

func (*RepositoryMutation) GitURL

func (m *RepositoryMutation) GitURL() (r string, exists bool)

GitURL returns the value of the "git_url" field in the mutation.

func (*RepositoryMutation) HTMLURL

func (m *RepositoryMutation) HTMLURL() (r string, exists bool)

HTMLURL returns the value of the "html_url" field in the mutation.

func (*RepositoryMutation) HasDiscussions

func (m *RepositoryMutation) HasDiscussions() (r bool, exists bool)

HasDiscussions returns the value of the "has_discussions" field in the mutation.

func (*RepositoryMutation) HasDownloads

func (m *RepositoryMutation) HasDownloads() (r bool, exists bool)

HasDownloads returns the value of the "has_downloads" field in the mutation.

func (*RepositoryMutation) HasIssuesEnabled

func (m *RepositoryMutation) HasIssuesEnabled() (r bool, exists bool)

HasIssuesEnabled returns the value of the "has_issues_enabled" field in the mutation.

func (*RepositoryMutation) HasPages

func (m *RepositoryMutation) HasPages() (r bool, exists bool)

HasPages returns the value of the "has_pages" field in the mutation.

func (*RepositoryMutation) HasProjects

func (m *RepositoryMutation) HasProjects() (r bool, exists bool)

HasProjects returns the value of the "has_projects" field in the mutation.

func (*RepositoryMutation) HasWiki

func (m *RepositoryMutation) HasWiki() (r bool, exists bool)

HasWiki returns the value of the "has_wiki" field in the mutation.

func (*RepositoryMutation) Homepage

func (m *RepositoryMutation) Homepage() (r string, exists bool)

Homepage returns the value of the "homepage" field in the mutation.

func (*RepositoryMutation) HomepageCleared

func (m *RepositoryMutation) HomepageCleared() bool

HomepageCleared returns if the "homepage" field was cleared in this mutation.

func (*RepositoryMutation) HooksURL

func (m *RepositoryMutation) HooksURL() (r string, exists bool)

HooksURL returns the value of the "hooks_url" field in the mutation.

func (*RepositoryMutation) ID

func (m *RepositoryMutation) ID() (id int64, 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 (*RepositoryMutation) IDs

func (m *RepositoryMutation) IDs(ctx context.Context) ([]int64, 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 (*RepositoryMutation) IsTemplate

func (m *RepositoryMutation) IsTemplate() (r bool, exists bool)

IsTemplate returns the value of the "is_template" field in the mutation.

func (*RepositoryMutation) IssueCommentURL

func (m *RepositoryMutation) IssueCommentURL() (r string, exists bool)

IssueCommentURL returns the value of the "issue_comment_url" field in the mutation.

func (*RepositoryMutation) IssueEventsURL

func (m *RepositoryMutation) IssueEventsURL() (r string, exists bool)

IssueEventsURL returns the value of the "issue_events_url" field in the mutation.

func (*RepositoryMutation) IssuesCleared

func (m *RepositoryMutation) IssuesCleared() bool

IssuesCleared reports if the "issues" edge to the Issue entity was cleared.

func (*RepositoryMutation) IssuesIDs

func (m *RepositoryMutation) IssuesIDs() (ids []int64)

IssuesIDs returns the "issues" edge IDs in the mutation.

func (*RepositoryMutation) IssuesURL

func (m *RepositoryMutation) IssuesURL() (r string, exists bool)

IssuesURL returns the value of the "issues_url" field in the mutation.

func (*RepositoryMutation) KeysURL

func (m *RepositoryMutation) KeysURL() (r string, exists bool)

KeysURL returns the value of the "keys_url" field in the mutation.

func (*RepositoryMutation) LabelsURL

func (m *RepositoryMutation) LabelsURL() (r string, exists bool)

LabelsURL returns the value of the "labels_url" field in the mutation.

func (*RepositoryMutation) Language

func (m *RepositoryMutation) Language() (r string, exists bool)

Language returns the value of the "language" field in the mutation.

func (*RepositoryMutation) LanguageCleared

func (m *RepositoryMutation) LanguageCleared() bool

LanguageCleared returns if the "language" field was cleared in this mutation.

func (*RepositoryMutation) LanguagesURL

func (m *RepositoryMutation) LanguagesURL() (r string, exists bool)

LanguagesURL returns the value of the "languages_url" field in the mutation.

func (*RepositoryMutation) License

func (m *RepositoryMutation) License() (r *model.License, exists bool)

License returns the value of the "license" field in the mutation.

func (*RepositoryMutation) LicenseCleared

func (m *RepositoryMutation) LicenseCleared() bool

LicenseCleared returns if the "license" field was cleared in this mutation.

func (*RepositoryMutation) MergesURL

func (m *RepositoryMutation) MergesURL() (r string, exists bool)

MergesURL returns the value of the "merges_url" field in the mutation.

func (*RepositoryMutation) MilestonesURL

func (m *RepositoryMutation) MilestonesURL() (r string, exists bool)

MilestonesURL returns the value of the "milestones_url" field in the mutation.

func (*RepositoryMutation) MirrorURL

func (m *RepositoryMutation) MirrorURL() (r string, exists bool)

MirrorURL returns the value of the "mirror_url" field in the mutation.

func (*RepositoryMutation) MirrorURLCleared

func (m *RepositoryMutation) MirrorURLCleared() bool

MirrorURLCleared returns if the "mirror_url" field was cleared in this mutation.

func (*RepositoryMutation) Name

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

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

func (*RepositoryMutation) NetworkCount

func (m *RepositoryMutation) NetworkCount() (r int64, exists bool)

NetworkCount returns the value of the "network_count" field in the mutation.

func (*RepositoryMutation) NodeID

func (m *RepositoryMutation) NodeID() (r string, exists bool)

NodeID returns the value of the "node_id" field in the mutation.

func (*RepositoryMutation) NotificationsURL

func (m *RepositoryMutation) NotificationsURL() (r string, exists bool)

NotificationsURL returns the value of the "notifications_url" field in the mutation.

func (*RepositoryMutation) OldArchiveURL

func (m *RepositoryMutation) OldArchiveURL(ctx context.Context) (v string, err error)

OldArchiveURL returns the old "archive_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldArchived

func (m *RepositoryMutation) OldArchived(ctx context.Context) (v bool, err error)

OldArchived returns the old "archived" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldAssigneesURL

func (m *RepositoryMutation) OldAssigneesURL(ctx context.Context) (v string, err error)

OldAssigneesURL returns the old "assignees_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldBlobsURL

func (m *RepositoryMutation) OldBlobsURL(ctx context.Context) (v string, err error)

OldBlobsURL returns the old "blobs_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldBranchesURL

func (m *RepositoryMutation) OldBranchesURL(ctx context.Context) (v string, err error)

OldBranchesURL returns the old "branches_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldCloneURL

func (m *RepositoryMutation) OldCloneURL(ctx context.Context) (v string, err error)

OldCloneURL returns the old "clone_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldCollaboratorsURL

func (m *RepositoryMutation) OldCollaboratorsURL(ctx context.Context) (v string, err error)

OldCollaboratorsURL returns the old "collaborators_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldCommentsURL

func (m *RepositoryMutation) OldCommentsURL(ctx context.Context) (v string, err error)

OldCommentsURL returns the old "comments_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldCommitsURL

func (m *RepositoryMutation) OldCommitsURL(ctx context.Context) (v string, err error)

OldCommitsURL returns the old "commits_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldCompareURL

func (m *RepositoryMutation) OldCompareURL(ctx context.Context) (v string, err error)

OldCompareURL returns the old "compare_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldContentsURL

func (m *RepositoryMutation) OldContentsURL(ctx context.Context) (v string, err error)

OldContentsURL returns the old "contents_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldContributorsURL

func (m *RepositoryMutation) OldContributorsURL(ctx context.Context) (v string, err error)

OldContributorsURL returns the old "contributors_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldCreatedAt

func (m *RepositoryMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldDefaultBranch

func (m *RepositoryMutation) OldDefaultBranch(ctx context.Context) (v string, err error)

OldDefaultBranch returns the old "default_branch" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldDeploymentsURL

func (m *RepositoryMutation) OldDeploymentsURL(ctx context.Context) (v string, err error)

OldDeploymentsURL returns the old "deployments_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldDescription

func (m *RepositoryMutation) OldDescription(ctx context.Context) (v string, err error)

OldDescription returns the old "description" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldDisabled

func (m *RepositoryMutation) OldDisabled(ctx context.Context) (v bool, err error)

OldDisabled returns the old "disabled" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldDownloadsURL

func (m *RepositoryMutation) OldDownloadsURL(ctx context.Context) (v string, err error)

OldDownloadsURL returns the old "downloads_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldEventsURL

func (m *RepositoryMutation) OldEventsURL(ctx context.Context) (v string, err error)

OldEventsURL returns the old "events_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldField

func (m *RepositoryMutation) 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 (*RepositoryMutation) OldFork

func (m *RepositoryMutation) OldFork(ctx context.Context) (v bool, err error)

OldFork returns the old "fork" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldForks

func (m *RepositoryMutation) OldForks(ctx context.Context) (v int64, err error)

OldForks returns the old "forks" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldForksCount

func (m *RepositoryMutation) OldForksCount(ctx context.Context) (v int64, err error)

OldForksCount returns the old "forks_count" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldForksURL

func (m *RepositoryMutation) OldForksURL(ctx context.Context) (v string, err error)

OldForksURL returns the old "forks_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldFullName

func (m *RepositoryMutation) OldFullName(ctx context.Context) (v string, err error)

OldFullName returns the old "full_name" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldGitCommitsURL

func (m *RepositoryMutation) OldGitCommitsURL(ctx context.Context) (v string, err error)

OldGitCommitsURL returns the old "git_commits_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldGitRefsURL

func (m *RepositoryMutation) OldGitRefsURL(ctx context.Context) (v string, err error)

OldGitRefsURL returns the old "git_refs_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldGitTagsURL

func (m *RepositoryMutation) OldGitTagsURL(ctx context.Context) (v string, err error)

OldGitTagsURL returns the old "git_tags_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldGitURL

func (m *RepositoryMutation) OldGitURL(ctx context.Context) (v string, err error)

OldGitURL returns the old "git_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHTMLURL

func (m *RepositoryMutation) OldHTMLURL(ctx context.Context) (v string, err error)

OldHTMLURL returns the old "html_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHasDiscussions

func (m *RepositoryMutation) OldHasDiscussions(ctx context.Context) (v bool, err error)

OldHasDiscussions returns the old "has_discussions" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHasDownloads

func (m *RepositoryMutation) OldHasDownloads(ctx context.Context) (v bool, err error)

OldHasDownloads returns the old "has_downloads" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHasIssuesEnabled

func (m *RepositoryMutation) OldHasIssuesEnabled(ctx context.Context) (v bool, err error)

OldHasIssuesEnabled returns the old "has_issues_enabled" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHasPages

func (m *RepositoryMutation) OldHasPages(ctx context.Context) (v bool, err error)

OldHasPages returns the old "has_pages" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHasProjects

func (m *RepositoryMutation) OldHasProjects(ctx context.Context) (v bool, err error)

OldHasProjects returns the old "has_projects" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHasWiki

func (m *RepositoryMutation) OldHasWiki(ctx context.Context) (v bool, err error)

OldHasWiki returns the old "has_wiki" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHomepage

func (m *RepositoryMutation) OldHomepage(ctx context.Context) (v string, err error)

OldHomepage returns the old "homepage" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldHooksURL

func (m *RepositoryMutation) OldHooksURL(ctx context.Context) (v string, err error)

OldHooksURL returns the old "hooks_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldIsTemplate

func (m *RepositoryMutation) OldIsTemplate(ctx context.Context) (v bool, err error)

OldIsTemplate returns the old "is_template" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldIssueCommentURL

func (m *RepositoryMutation) OldIssueCommentURL(ctx context.Context) (v string, err error)

OldIssueCommentURL returns the old "issue_comment_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldIssueEventsURL

func (m *RepositoryMutation) OldIssueEventsURL(ctx context.Context) (v string, err error)

OldIssueEventsURL returns the old "issue_events_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldIssuesURL

func (m *RepositoryMutation) OldIssuesURL(ctx context.Context) (v string, err error)

OldIssuesURL returns the old "issues_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldKeysURL

func (m *RepositoryMutation) OldKeysURL(ctx context.Context) (v string, err error)

OldKeysURL returns the old "keys_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldLabelsURL

func (m *RepositoryMutation) OldLabelsURL(ctx context.Context) (v string, err error)

OldLabelsURL returns the old "labels_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldLanguage

func (m *RepositoryMutation) OldLanguage(ctx context.Context) (v string, err error)

OldLanguage returns the old "language" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldLanguagesURL

func (m *RepositoryMutation) OldLanguagesURL(ctx context.Context) (v string, err error)

OldLanguagesURL returns the old "languages_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldLicense

func (m *RepositoryMutation) OldLicense(ctx context.Context) (v *model.License, err error)

OldLicense returns the old "license" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldMergesURL

func (m *RepositoryMutation) OldMergesURL(ctx context.Context) (v string, err error)

OldMergesURL returns the old "merges_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldMilestonesURL

func (m *RepositoryMutation) OldMilestonesURL(ctx context.Context) (v string, err error)

OldMilestonesURL returns the old "milestones_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldMirrorURL

func (m *RepositoryMutation) OldMirrorURL(ctx context.Context) (v *string, err error)

OldMirrorURL returns the old "mirror_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldName

func (m *RepositoryMutation) OldName(ctx context.Context) (v string, err error)

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

func (m *RepositoryMutation) OldNetworkCount(ctx context.Context) (v int64, err error)

OldNetworkCount returns the old "network_count" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldNodeID

func (m *RepositoryMutation) OldNodeID(ctx context.Context) (v string, err error)

OldNodeID returns the old "node_id" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldNotificationsURL

func (m *RepositoryMutation) OldNotificationsURL(ctx context.Context) (v string, err error)

OldNotificationsURL returns the old "notifications_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldOpenIssues

func (m *RepositoryMutation) OldOpenIssues(ctx context.Context) (v int64, err error)

OldOpenIssues returns the old "open_issues" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldOpenIssuesCount

func (m *RepositoryMutation) OldOpenIssuesCount(ctx context.Context) (v int64, err error)

OldOpenIssuesCount returns the old "open_issues_count" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldPrivate

func (m *RepositoryMutation) OldPrivate(ctx context.Context) (v bool, err error)

OldPrivate returns the old "private" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldPullsURL

func (m *RepositoryMutation) OldPullsURL(ctx context.Context) (v string, err error)

OldPullsURL returns the old "pulls_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldPushedAt

func (m *RepositoryMutation) OldPushedAt(ctx context.Context) (v time.Time, err error)

OldPushedAt returns the old "pushed_at" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldReleasesURL

func (m *RepositoryMutation) OldReleasesURL(ctx context.Context) (v string, err error)

OldReleasesURL returns the old "releases_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldSSHURL

func (m *RepositoryMutation) OldSSHURL(ctx context.Context) (v string, err error)

OldSSHURL returns the old "ssh_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldSize

func (m *RepositoryMutation) OldSize(ctx context.Context) (v int64, err error)

OldSize returns the old "size" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldStargazersCount

func (m *RepositoryMutation) OldStargazersCount(ctx context.Context) (v int64, err error)

OldStargazersCount returns the old "stargazers_count" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldStargazersURL

func (m *RepositoryMutation) OldStargazersURL(ctx context.Context) (v string, err error)

OldStargazersURL returns the old "stargazers_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldStatusesURL

func (m *RepositoryMutation) OldStatusesURL(ctx context.Context) (v string, err error)

OldStatusesURL returns the old "statuses_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldSubscribersCount

func (m *RepositoryMutation) OldSubscribersCount(ctx context.Context) (v int64, err error)

OldSubscribersCount returns the old "subscribers_count" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldSubscribersURL

func (m *RepositoryMutation) OldSubscribersURL(ctx context.Context) (v string, err error)

OldSubscribersURL returns the old "subscribers_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldSubscriptionURL

func (m *RepositoryMutation) OldSubscriptionURL(ctx context.Context) (v string, err error)

OldSubscriptionURL returns the old "subscription_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldSvnURL

func (m *RepositoryMutation) OldSvnURL(ctx context.Context) (v string, err error)

OldSvnURL returns the old "svn_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldTagsURL

func (m *RepositoryMutation) OldTagsURL(ctx context.Context) (v string, err error)

OldTagsURL returns the old "tags_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldTeamsURL

func (m *RepositoryMutation) OldTeamsURL(ctx context.Context) (v string, err error)

OldTeamsURL returns the old "teams_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldTopics

func (m *RepositoryMutation) OldTopics(ctx context.Context) (v []string, err error)

OldTopics returns the old "topics" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldTreesURL

func (m *RepositoryMutation) OldTreesURL(ctx context.Context) (v string, err error)

OldTreesURL returns the old "trees_url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldURL

func (m *RepositoryMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldUpdatedAt

func (m *RepositoryMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldVisibility

func (m *RepositoryMutation) OldVisibility(ctx context.Context) (v *repository.Visibility, err error)

OldVisibility returns the old "visibility" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldWatchers

func (m *RepositoryMutation) OldWatchers(ctx context.Context) (v int64, err error)

OldWatchers returns the old "watchers" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) OldWatchersCount

func (m *RepositoryMutation) OldWatchersCount(ctx context.Context) (v int64, err error)

OldWatchersCount returns the old "watchers_count" field's value of the Repository entity. If the Repository 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 (*RepositoryMutation) Op

func (m *RepositoryMutation) Op() Op

Op returns the operation name.

func (*RepositoryMutation) OpenIssues

func (m *RepositoryMutation) OpenIssues() (r int64, exists bool)

OpenIssues returns the value of the "open_issues" field in the mutation.

func (*RepositoryMutation) OpenIssuesCount

func (m *RepositoryMutation) OpenIssuesCount() (r int64, exists bool)

OpenIssuesCount returns the value of the "open_issues_count" field in the mutation.

func (*RepositoryMutation) OwnerCleared

func (m *RepositoryMutation) OwnerCleared() bool

OwnerCleared reports if the "owner" edge to the User entity was cleared.

func (*RepositoryMutation) OwnerID

func (m *RepositoryMutation) OwnerID() (id int64, exists bool)

OwnerID returns the "owner" edge ID in the mutation.

func (*RepositoryMutation) OwnerIDs

func (m *RepositoryMutation) OwnerIDs() (ids []int64)

OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead. It exists only for internal usage by the builders.

func (*RepositoryMutation) Private

func (m *RepositoryMutation) Private() (r bool, exists bool)

Private returns the value of the "private" field in the mutation.

func (*RepositoryMutation) PullsURL

func (m *RepositoryMutation) PullsURL() (r string, exists bool)

PullsURL returns the value of the "pulls_url" field in the mutation.

func (*RepositoryMutation) PushedAt

func (m *RepositoryMutation) PushedAt() (r time.Time, exists bool)

PushedAt returns the value of the "pushed_at" field in the mutation.

func (*RepositoryMutation) ReleasesURL

func (m *RepositoryMutation) ReleasesURL() (r string, exists bool)

ReleasesURL returns the value of the "releases_url" field in the mutation.

func (*RepositoryMutation) RemoveIssueIDs

func (m *RepositoryMutation) RemoveIssueIDs(ids ...int64)

RemoveIssueIDs removes the "issues" edge to the Issue entity by IDs.

func (*RepositoryMutation) RemovedEdges

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

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

func (*RepositoryMutation) RemovedIDs

func (m *RepositoryMutation) 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 (*RepositoryMutation) RemovedIssuesIDs

func (m *RepositoryMutation) RemovedIssuesIDs() (ids []int64)

RemovedIssues returns the removed IDs of the "issues" edge to the Issue entity.

func (*RepositoryMutation) ResetArchiveURL

func (m *RepositoryMutation) ResetArchiveURL()

ResetArchiveURL resets all changes to the "archive_url" field.

func (*RepositoryMutation) ResetArchived

func (m *RepositoryMutation) ResetArchived()

ResetArchived resets all changes to the "archived" field.

func (*RepositoryMutation) ResetAssigneesURL

func (m *RepositoryMutation) ResetAssigneesURL()

ResetAssigneesURL resets all changes to the "assignees_url" field.

func (*RepositoryMutation) ResetBlobsURL

func (m *RepositoryMutation) ResetBlobsURL()

ResetBlobsURL resets all changes to the "blobs_url" field.

func (*RepositoryMutation) ResetBranchesURL

func (m *RepositoryMutation) ResetBranchesURL()

ResetBranchesURL resets all changes to the "branches_url" field.

func (*RepositoryMutation) ResetCloneURL

func (m *RepositoryMutation) ResetCloneURL()

ResetCloneURL resets all changes to the "clone_url" field.

func (*RepositoryMutation) ResetCollaboratorsURL

func (m *RepositoryMutation) ResetCollaboratorsURL()

ResetCollaboratorsURL resets all changes to the "collaborators_url" field.

func (*RepositoryMutation) ResetCommentsURL

func (m *RepositoryMutation) ResetCommentsURL()

ResetCommentsURL resets all changes to the "comments_url" field.

func (*RepositoryMutation) ResetCommitsURL

func (m *RepositoryMutation) ResetCommitsURL()

ResetCommitsURL resets all changes to the "commits_url" field.

func (*RepositoryMutation) ResetCompareURL

func (m *RepositoryMutation) ResetCompareURL()

ResetCompareURL resets all changes to the "compare_url" field.

func (*RepositoryMutation) ResetContentsURL

func (m *RepositoryMutation) ResetContentsURL()

ResetContentsURL resets all changes to the "contents_url" field.

func (*RepositoryMutation) ResetContributorsURL

func (m *RepositoryMutation) ResetContributorsURL()

ResetContributorsURL resets all changes to the "contributors_url" field.

func (*RepositoryMutation) ResetCreatedAt

func (m *RepositoryMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*RepositoryMutation) ResetDefaultBranch

func (m *RepositoryMutation) ResetDefaultBranch()

ResetDefaultBranch resets all changes to the "default_branch" field.

func (*RepositoryMutation) ResetDeploymentsURL

func (m *RepositoryMutation) ResetDeploymentsURL()

ResetDeploymentsURL resets all changes to the "deployments_url" field.

func (*RepositoryMutation) ResetDescription

func (m *RepositoryMutation) ResetDescription()

ResetDescription resets all changes to the "description" field.

func (*RepositoryMutation) ResetDisabled

func (m *RepositoryMutation) ResetDisabled()

ResetDisabled resets all changes to the "disabled" field.

func (*RepositoryMutation) ResetDownloadsURL

func (m *RepositoryMutation) ResetDownloadsURL()

ResetDownloadsURL resets all changes to the "downloads_url" field.

func (*RepositoryMutation) ResetEdge

func (m *RepositoryMutation) 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 (*RepositoryMutation) ResetEventsURL

func (m *RepositoryMutation) ResetEventsURL()

ResetEventsURL resets all changes to the "events_url" field.

func (*RepositoryMutation) ResetField

func (m *RepositoryMutation) 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 (*RepositoryMutation) ResetFork

func (m *RepositoryMutation) ResetFork()

ResetFork resets all changes to the "fork" field.

func (*RepositoryMutation) ResetForks

func (m *RepositoryMutation) ResetForks()

ResetForks resets all changes to the "forks" field.

func (*RepositoryMutation) ResetForksCount

func (m *RepositoryMutation) ResetForksCount()

ResetForksCount resets all changes to the "forks_count" field.

func (*RepositoryMutation) ResetForksURL

func (m *RepositoryMutation) ResetForksURL()

ResetForksURL resets all changes to the "forks_url" field.

func (*RepositoryMutation) ResetFullName

func (m *RepositoryMutation) ResetFullName()

ResetFullName resets all changes to the "full_name" field.

func (*RepositoryMutation) ResetGitCommitsURL

func (m *RepositoryMutation) ResetGitCommitsURL()

ResetGitCommitsURL resets all changes to the "git_commits_url" field.

func (*RepositoryMutation) ResetGitRefsURL

func (m *RepositoryMutation) ResetGitRefsURL()

ResetGitRefsURL resets all changes to the "git_refs_url" field.

func (*RepositoryMutation) ResetGitTagsURL

func (m *RepositoryMutation) ResetGitTagsURL()

ResetGitTagsURL resets all changes to the "git_tags_url" field.

func (*RepositoryMutation) ResetGitURL

func (m *RepositoryMutation) ResetGitURL()

ResetGitURL resets all changes to the "git_url" field.

func (*RepositoryMutation) ResetHTMLURL

func (m *RepositoryMutation) ResetHTMLURL()

ResetHTMLURL resets all changes to the "html_url" field.

func (*RepositoryMutation) ResetHasDiscussions

func (m *RepositoryMutation) ResetHasDiscussions()

ResetHasDiscussions resets all changes to the "has_discussions" field.

func (*RepositoryMutation) ResetHasDownloads

func (m *RepositoryMutation) ResetHasDownloads()

ResetHasDownloads resets all changes to the "has_downloads" field.

func (*RepositoryMutation) ResetHasIssuesEnabled

func (m *RepositoryMutation) ResetHasIssuesEnabled()

ResetHasIssuesEnabled resets all changes to the "has_issues_enabled" field.

func (*RepositoryMutation) ResetHasPages

func (m *RepositoryMutation) ResetHasPages()

ResetHasPages resets all changes to the "has_pages" field.

func (*RepositoryMutation) ResetHasProjects

func (m *RepositoryMutation) ResetHasProjects()

ResetHasProjects resets all changes to the "has_projects" field.

func (*RepositoryMutation) ResetHasWiki

func (m *RepositoryMutation) ResetHasWiki()

ResetHasWiki resets all changes to the "has_wiki" field.

func (*RepositoryMutation) ResetHomepage

func (m *RepositoryMutation) ResetHomepage()

ResetHomepage resets all changes to the "homepage" field.

func (*RepositoryMutation) ResetHooksURL

func (m *RepositoryMutation) ResetHooksURL()

ResetHooksURL resets all changes to the "hooks_url" field.

func (*RepositoryMutation) ResetIsTemplate

func (m *RepositoryMutation) ResetIsTemplate()

ResetIsTemplate resets all changes to the "is_template" field.

func (*RepositoryMutation) ResetIssueCommentURL

func (m *RepositoryMutation) ResetIssueCommentURL()

ResetIssueCommentURL resets all changes to the "issue_comment_url" field.

func (*RepositoryMutation) ResetIssueEventsURL

func (m *RepositoryMutation) ResetIssueEventsURL()

ResetIssueEventsURL resets all changes to the "issue_events_url" field.

func (*RepositoryMutation) ResetIssues

func (m *RepositoryMutation) ResetIssues()

ResetIssues resets all changes to the "issues" edge.

func (*RepositoryMutation) ResetIssuesURL

func (m *RepositoryMutation) ResetIssuesURL()

ResetIssuesURL resets all changes to the "issues_url" field.

func (*RepositoryMutation) ResetKeysURL

func (m *RepositoryMutation) ResetKeysURL()

ResetKeysURL resets all changes to the "keys_url" field.

func (*RepositoryMutation) ResetLabelsURL

func (m *RepositoryMutation) ResetLabelsURL()

ResetLabelsURL resets all changes to the "labels_url" field.

func (*RepositoryMutation) ResetLanguage

func (m *RepositoryMutation) ResetLanguage()

ResetLanguage resets all changes to the "language" field.

func (*RepositoryMutation) ResetLanguagesURL

func (m *RepositoryMutation) ResetLanguagesURL()

ResetLanguagesURL resets all changes to the "languages_url" field.

func (*RepositoryMutation) ResetLicense

func (m *RepositoryMutation) ResetLicense()

ResetLicense resets all changes to the "license" field.

func (*RepositoryMutation) ResetMergesURL

func (m *RepositoryMutation) ResetMergesURL()

ResetMergesURL resets all changes to the "merges_url" field.

func (*RepositoryMutation) ResetMilestonesURL

func (m *RepositoryMutation) ResetMilestonesURL()

ResetMilestonesURL resets all changes to the "milestones_url" field.

func (*RepositoryMutation) ResetMirrorURL

func (m *RepositoryMutation) ResetMirrorURL()

ResetMirrorURL resets all changes to the "mirror_url" field.

func (*RepositoryMutation) ResetName

func (m *RepositoryMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*RepositoryMutation) ResetNetworkCount

func (m *RepositoryMutation) ResetNetworkCount()

ResetNetworkCount resets all changes to the "network_count" field.

func (*RepositoryMutation) ResetNodeID

func (m *RepositoryMutation) ResetNodeID()

ResetNodeID resets all changes to the "node_id" field.

func (*RepositoryMutation) ResetNotificationsURL

func (m *RepositoryMutation) ResetNotificationsURL()

ResetNotificationsURL resets all changes to the "notifications_url" field.

func (*RepositoryMutation) ResetOpenIssues

func (m *RepositoryMutation) ResetOpenIssues()

ResetOpenIssues resets all changes to the "open_issues" field.

func (*RepositoryMutation) ResetOpenIssuesCount

func (m *RepositoryMutation) ResetOpenIssuesCount()

ResetOpenIssuesCount resets all changes to the "open_issues_count" field.

func (*RepositoryMutation) ResetOwner

func (m *RepositoryMutation) ResetOwner()

ResetOwner resets all changes to the "owner" edge.

func (*RepositoryMutation) ResetPrivate

func (m *RepositoryMutation) ResetPrivate()

ResetPrivate resets all changes to the "private" field.

func (*RepositoryMutation) ResetPullsURL

func (m *RepositoryMutation) ResetPullsURL()

ResetPullsURL resets all changes to the "pulls_url" field.

func (*RepositoryMutation) ResetPushedAt

func (m *RepositoryMutation) ResetPushedAt()

ResetPushedAt resets all changes to the "pushed_at" field.

func (*RepositoryMutation) ResetReleasesURL

func (m *RepositoryMutation) ResetReleasesURL()

ResetReleasesURL resets all changes to the "releases_url" field.

func (*RepositoryMutation) ResetSSHURL

func (m *RepositoryMutation) ResetSSHURL()

ResetSSHURL resets all changes to the "ssh_url" field.

func (*RepositoryMutation) ResetSize

func (m *RepositoryMutation) ResetSize()

ResetSize resets all changes to the "size" field.

func (*RepositoryMutation) ResetStargazersCount

func (m *RepositoryMutation) ResetStargazersCount()

ResetStargazersCount resets all changes to the "stargazers_count" field.

func (*RepositoryMutation) ResetStargazersURL

func (m *RepositoryMutation) ResetStargazersURL()

ResetStargazersURL resets all changes to the "stargazers_url" field.

func (*RepositoryMutation) ResetStatusesURL

func (m *RepositoryMutation) ResetStatusesURL()

ResetStatusesURL resets all changes to the "statuses_url" field.

func (*RepositoryMutation) ResetSubscribersCount

func (m *RepositoryMutation) ResetSubscribersCount()

ResetSubscribersCount resets all changes to the "subscribers_count" field.

func (*RepositoryMutation) ResetSubscribersURL

func (m *RepositoryMutation) ResetSubscribersURL()

ResetSubscribersURL resets all changes to the "subscribers_url" field.

func (*RepositoryMutation) ResetSubscriptionURL

func (m *RepositoryMutation) ResetSubscriptionURL()

ResetSubscriptionURL resets all changes to the "subscription_url" field.

func (*RepositoryMutation) ResetSvnURL

func (m *RepositoryMutation) ResetSvnURL()

ResetSvnURL resets all changes to the "svn_url" field.

func (*RepositoryMutation) ResetTagsURL

func (m *RepositoryMutation) ResetTagsURL()

ResetTagsURL resets all changes to the "tags_url" field.

func (*RepositoryMutation) ResetTeamsURL

func (m *RepositoryMutation) ResetTeamsURL()

ResetTeamsURL resets all changes to the "teams_url" field.

func (*RepositoryMutation) ResetTopics

func (m *RepositoryMutation) ResetTopics()

ResetTopics resets all changes to the "topics" field.

func (*RepositoryMutation) ResetTreesURL

func (m *RepositoryMutation) ResetTreesURL()

ResetTreesURL resets all changes to the "trees_url" field.

func (*RepositoryMutation) ResetURL

func (m *RepositoryMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*RepositoryMutation) ResetUpdatedAt

func (m *RepositoryMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*RepositoryMutation) ResetVisibility

func (m *RepositoryMutation) ResetVisibility()

ResetVisibility resets all changes to the "visibility" field.

func (*RepositoryMutation) ResetWatchers

func (m *RepositoryMutation) ResetWatchers()

ResetWatchers resets all changes to the "watchers" field.

func (*RepositoryMutation) ResetWatchersCount

func (m *RepositoryMutation) ResetWatchersCount()

ResetWatchersCount resets all changes to the "watchers_count" field.

func (*RepositoryMutation) SSHURL

func (m *RepositoryMutation) SSHURL() (r string, exists bool)

SSHURL returns the value of the "ssh_url" field in the mutation.

func (*RepositoryMutation) SetArchiveURL

func (m *RepositoryMutation) SetArchiveURL(s string)

SetArchiveURL sets the "archive_url" field.

func (*RepositoryMutation) SetArchived

func (m *RepositoryMutation) SetArchived(b bool)

SetArchived sets the "archived" field.

func (*RepositoryMutation) SetAssigneesURL

func (m *RepositoryMutation) SetAssigneesURL(s string)

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryMutation) SetBlobsURL

func (m *RepositoryMutation) SetBlobsURL(s string)

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryMutation) SetBranchesURL

func (m *RepositoryMutation) SetBranchesURL(s string)

SetBranchesURL sets the "branches_url" field.

func (*RepositoryMutation) SetCloneURL

func (m *RepositoryMutation) SetCloneURL(s string)

SetCloneURL sets the "clone_url" field.

func (*RepositoryMutation) SetCollaboratorsURL

func (m *RepositoryMutation) SetCollaboratorsURL(s string)

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryMutation) SetCommentsURL

func (m *RepositoryMutation) SetCommentsURL(s string)

SetCommentsURL sets the "comments_url" field.

func (*RepositoryMutation) SetCommitsURL

func (m *RepositoryMutation) SetCommitsURL(s string)

SetCommitsURL sets the "commits_url" field.

func (*RepositoryMutation) SetCompareURL

func (m *RepositoryMutation) SetCompareURL(s string)

SetCompareURL sets the "compare_url" field.

func (*RepositoryMutation) SetContentsURL

func (m *RepositoryMutation) SetContentsURL(s string)

SetContentsURL sets the "contents_url" field.

func (*RepositoryMutation) SetContributorsURL

func (m *RepositoryMutation) SetContributorsURL(s string)

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryMutation) SetCreatedAt

func (m *RepositoryMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*RepositoryMutation) SetDefaultBranch

func (m *RepositoryMutation) SetDefaultBranch(s string)

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryMutation) SetDeploymentsURL

func (m *RepositoryMutation) SetDeploymentsURL(s string)

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryMutation) SetDescription

func (m *RepositoryMutation) SetDescription(s string)

SetDescription sets the "description" field.

func (*RepositoryMutation) SetDisabled

func (m *RepositoryMutation) SetDisabled(b bool)

SetDisabled sets the "disabled" field.

func (*RepositoryMutation) SetDownloadsURL

func (m *RepositoryMutation) SetDownloadsURL(s string)

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryMutation) SetEventsURL

func (m *RepositoryMutation) SetEventsURL(s string)

SetEventsURL sets the "events_url" field.

func (*RepositoryMutation) SetField

func (m *RepositoryMutation) 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 (*RepositoryMutation) SetFork

func (m *RepositoryMutation) SetFork(b bool)

SetFork sets the "fork" field.

func (*RepositoryMutation) SetForks

func (m *RepositoryMutation) SetForks(i int64)

SetForks sets the "forks" field.

func (*RepositoryMutation) SetForksCount

func (m *RepositoryMutation) SetForksCount(i int64)

SetForksCount sets the "forks_count" field.

func (*RepositoryMutation) SetForksURL

func (m *RepositoryMutation) SetForksURL(s string)

SetForksURL sets the "forks_url" field.

func (*RepositoryMutation) SetFullName

func (m *RepositoryMutation) SetFullName(s string)

SetFullName sets the "full_name" field.

func (*RepositoryMutation) SetGitCommitsURL

func (m *RepositoryMutation) SetGitCommitsURL(s string)

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryMutation) SetGitRefsURL

func (m *RepositoryMutation) SetGitRefsURL(s string)

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryMutation) SetGitTagsURL

func (m *RepositoryMutation) SetGitTagsURL(s string)

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryMutation) SetGitURL

func (m *RepositoryMutation) SetGitURL(s string)

SetGitURL sets the "git_url" field.

func (*RepositoryMutation) SetHTMLURL

func (m *RepositoryMutation) SetHTMLURL(s string)

SetHTMLURL sets the "html_url" field.

func (*RepositoryMutation) SetHasDiscussions

func (m *RepositoryMutation) SetHasDiscussions(b bool)

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryMutation) SetHasDownloads

func (m *RepositoryMutation) SetHasDownloads(b bool)

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryMutation) SetHasIssuesEnabled

func (m *RepositoryMutation) SetHasIssuesEnabled(b bool)

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryMutation) SetHasPages

func (m *RepositoryMutation) SetHasPages(b bool)

SetHasPages sets the "has_pages" field.

func (*RepositoryMutation) SetHasProjects

func (m *RepositoryMutation) SetHasProjects(b bool)

SetHasProjects sets the "has_projects" field.

func (*RepositoryMutation) SetHasWiki

func (m *RepositoryMutation) SetHasWiki(b bool)

SetHasWiki sets the "has_wiki" field.

func (*RepositoryMutation) SetHomepage

func (m *RepositoryMutation) SetHomepage(s string)

SetHomepage sets the "homepage" field.

func (*RepositoryMutation) SetHooksURL

func (m *RepositoryMutation) SetHooksURL(s string)

SetHooksURL sets the "hooks_url" field.

func (*RepositoryMutation) SetID

func (m *RepositoryMutation) SetID(id int64)

SetID sets the value of the id field. Note that this operation is only accepted on creation of Repository entities.

func (*RepositoryMutation) SetIsTemplate

func (m *RepositoryMutation) SetIsTemplate(b bool)

SetIsTemplate sets the "is_template" field.

func (*RepositoryMutation) SetIssueCommentURL

func (m *RepositoryMutation) SetIssueCommentURL(s string)

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryMutation) SetIssueEventsURL

func (m *RepositoryMutation) SetIssueEventsURL(s string)

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryMutation) SetIssuesURL

func (m *RepositoryMutation) SetIssuesURL(s string)

SetIssuesURL sets the "issues_url" field.

func (*RepositoryMutation) SetKeysURL

func (m *RepositoryMutation) SetKeysURL(s string)

SetKeysURL sets the "keys_url" field.

func (*RepositoryMutation) SetLabelsURL

func (m *RepositoryMutation) SetLabelsURL(s string)

SetLabelsURL sets the "labels_url" field.

func (*RepositoryMutation) SetLanguage

func (m *RepositoryMutation) SetLanguage(s string)

SetLanguage sets the "language" field.

func (*RepositoryMutation) SetLanguagesURL

func (m *RepositoryMutation) SetLanguagesURL(s string)

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryMutation) SetLicense

func (m *RepositoryMutation) SetLicense(value *model.License)

SetLicense sets the "license" field.

func (*RepositoryMutation) SetMergesURL

func (m *RepositoryMutation) SetMergesURL(s string)

SetMergesURL sets the "merges_url" field.

func (*RepositoryMutation) SetMilestonesURL

func (m *RepositoryMutation) SetMilestonesURL(s string)

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryMutation) SetMirrorURL

func (m *RepositoryMutation) SetMirrorURL(s string)

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryMutation) SetName

func (m *RepositoryMutation) SetName(s string)

SetName sets the "name" field.

func (*RepositoryMutation) SetNetworkCount

func (m *RepositoryMutation) SetNetworkCount(i int64)

SetNetworkCount sets the "network_count" field.

func (*RepositoryMutation) SetNodeID

func (m *RepositoryMutation) SetNodeID(s string)

SetNodeID sets the "node_id" field.

func (*RepositoryMutation) SetNotificationsURL

func (m *RepositoryMutation) SetNotificationsURL(s string)

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryMutation) SetOp

func (m *RepositoryMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*RepositoryMutation) SetOpenIssues

func (m *RepositoryMutation) SetOpenIssues(i int64)

SetOpenIssues sets the "open_issues" field.

func (*RepositoryMutation) SetOpenIssuesCount

func (m *RepositoryMutation) SetOpenIssuesCount(i int64)

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryMutation) SetOwnerID

func (m *RepositoryMutation) SetOwnerID(id int64)

SetOwnerID sets the "owner" edge to the User entity by id.

func (*RepositoryMutation) SetPrivate

func (m *RepositoryMutation) SetPrivate(b bool)

SetPrivate sets the "private" field.

func (*RepositoryMutation) SetPullsURL

func (m *RepositoryMutation) SetPullsURL(s string)

SetPullsURL sets the "pulls_url" field.

func (*RepositoryMutation) SetPushedAt

func (m *RepositoryMutation) SetPushedAt(t time.Time)

SetPushedAt sets the "pushed_at" field.

func (*RepositoryMutation) SetReleasesURL

func (m *RepositoryMutation) SetReleasesURL(s string)

SetReleasesURL sets the "releases_url" field.

func (*RepositoryMutation) SetSSHURL

func (m *RepositoryMutation) SetSSHURL(s string)

SetSSHURL sets the "ssh_url" field.

func (*RepositoryMutation) SetSize

func (m *RepositoryMutation) SetSize(i int64)

SetSize sets the "size" field.

func (*RepositoryMutation) SetStargazersCount

func (m *RepositoryMutation) SetStargazersCount(i int64)

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryMutation) SetStargazersURL

func (m *RepositoryMutation) SetStargazersURL(s string)

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryMutation) SetStatusesURL

func (m *RepositoryMutation) SetStatusesURL(s string)

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryMutation) SetSubscribersCount

func (m *RepositoryMutation) SetSubscribersCount(i int64)

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryMutation) SetSubscribersURL

func (m *RepositoryMutation) SetSubscribersURL(s string)

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryMutation) SetSubscriptionURL

func (m *RepositoryMutation) SetSubscriptionURL(s string)

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryMutation) SetSvnURL

func (m *RepositoryMutation) SetSvnURL(s string)

SetSvnURL sets the "svn_url" field.

func (*RepositoryMutation) SetTagsURL

func (m *RepositoryMutation) SetTagsURL(s string)

SetTagsURL sets the "tags_url" field.

func (*RepositoryMutation) SetTeamsURL

func (m *RepositoryMutation) SetTeamsURL(s string)

SetTeamsURL sets the "teams_url" field.

func (*RepositoryMutation) SetTopics

func (m *RepositoryMutation) SetTopics(s []string)

SetTopics sets the "topics" field.

func (*RepositoryMutation) SetTreesURL

func (m *RepositoryMutation) SetTreesURL(s string)

SetTreesURL sets the "trees_url" field.

func (*RepositoryMutation) SetURL

func (m *RepositoryMutation) SetURL(s string)

SetURL sets the "url" field.

func (*RepositoryMutation) SetUpdatedAt

func (m *RepositoryMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryMutation) SetVisibility

func (m *RepositoryMutation) SetVisibility(r repository.Visibility)

SetVisibility sets the "visibility" field.

func (*RepositoryMutation) SetWatchers

func (m *RepositoryMutation) SetWatchers(i int64)

SetWatchers sets the "watchers" field.

func (*RepositoryMutation) SetWatchersCount

func (m *RepositoryMutation) SetWatchersCount(i int64)

SetWatchersCount sets the "watchers_count" field.

func (*RepositoryMutation) Size

func (m *RepositoryMutation) Size() (r int64, exists bool)

Size returns the value of the "size" field in the mutation.

func (*RepositoryMutation) StargazersCount

func (m *RepositoryMutation) StargazersCount() (r int64, exists bool)

StargazersCount returns the value of the "stargazers_count" field in the mutation.

func (*RepositoryMutation) StargazersURL

func (m *RepositoryMutation) StargazersURL() (r string, exists bool)

StargazersURL returns the value of the "stargazers_url" field in the mutation.

func (*RepositoryMutation) StatusesURL

func (m *RepositoryMutation) StatusesURL() (r string, exists bool)

StatusesURL returns the value of the "statuses_url" field in the mutation.

func (*RepositoryMutation) SubscribersCount

func (m *RepositoryMutation) SubscribersCount() (r int64, exists bool)

SubscribersCount returns the value of the "subscribers_count" field in the mutation.

func (*RepositoryMutation) SubscribersURL

func (m *RepositoryMutation) SubscribersURL() (r string, exists bool)

SubscribersURL returns the value of the "subscribers_url" field in the mutation.

func (*RepositoryMutation) SubscriptionURL

func (m *RepositoryMutation) SubscriptionURL() (r string, exists bool)

SubscriptionURL returns the value of the "subscription_url" field in the mutation.

func (*RepositoryMutation) SvnURL

func (m *RepositoryMutation) SvnURL() (r string, exists bool)

SvnURL returns the value of the "svn_url" field in the mutation.

func (*RepositoryMutation) TagsURL

func (m *RepositoryMutation) TagsURL() (r string, exists bool)

TagsURL returns the value of the "tags_url" field in the mutation.

func (*RepositoryMutation) TeamsURL

func (m *RepositoryMutation) TeamsURL() (r string, exists bool)

TeamsURL returns the value of the "teams_url" field in the mutation.

func (*RepositoryMutation) Topics

func (m *RepositoryMutation) Topics() (r []string, exists bool)

Topics returns the value of the "topics" field in the mutation.

func (*RepositoryMutation) TreesURL

func (m *RepositoryMutation) TreesURL() (r string, exists bool)

TreesURL returns the value of the "trees_url" field in the mutation.

func (RepositoryMutation) Tx

func (m RepositoryMutation) Tx() (*Tx, error)

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

func (*RepositoryMutation) Type

func (m *RepositoryMutation) Type() string

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

func (*RepositoryMutation) URL

func (m *RepositoryMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*RepositoryMutation) UpdatedAt

func (m *RepositoryMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*RepositoryMutation) Visibility

func (m *RepositoryMutation) Visibility() (r repository.Visibility, exists bool)

Visibility returns the value of the "visibility" field in the mutation.

func (*RepositoryMutation) VisibilityCleared

func (m *RepositoryMutation) VisibilityCleared() bool

VisibilityCleared returns if the "visibility" field was cleared in this mutation.

func (*RepositoryMutation) Watchers

func (m *RepositoryMutation) Watchers() (r int64, exists bool)

Watchers returns the value of the "watchers" field in the mutation.

func (*RepositoryMutation) WatchersCount

func (m *RepositoryMutation) WatchersCount() (r int64, exists bool)

WatchersCount returns the value of the "watchers_count" field in the mutation.

func (*RepositoryMutation) Where

func (m *RepositoryMutation) Where(ps ...predicate.Repository)

Where appends a list predicates to the RepositoryMutation builder.

func (*RepositoryMutation) WhereP

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

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

type RepositoryQuery

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

RepositoryQuery is the builder for querying Repository entities.

func (*RepositoryQuery) Aggregate

func (rq *RepositoryQuery) Aggregate(fns ...AggregateFunc) *RepositorySelect

Aggregate returns a RepositorySelect configured with the given aggregations.

func (*RepositoryQuery) All

func (rq *RepositoryQuery) All(ctx context.Context) ([]*Repository, error)

All executes the query and returns a list of Repositories.

func (*RepositoryQuery) AllX

func (rq *RepositoryQuery) AllX(ctx context.Context) []*Repository

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

func (*RepositoryQuery) Clone

func (rq *RepositoryQuery) Clone() *RepositoryQuery

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

func (*RepositoryQuery) Count

func (rq *RepositoryQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*RepositoryQuery) CountX

func (rq *RepositoryQuery) CountX(ctx context.Context) int

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

func (*RepositoryQuery) Exist

func (rq *RepositoryQuery) Exist(ctx context.Context) (bool, error)

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

func (*RepositoryQuery) ExistX

func (rq *RepositoryQuery) ExistX(ctx context.Context) bool

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

func (*RepositoryQuery) First

func (rq *RepositoryQuery) First(ctx context.Context) (*Repository, error)

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

func (*RepositoryQuery) FirstID

func (rq *RepositoryQuery) FirstID(ctx context.Context) (id int64, err error)

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

func (*RepositoryQuery) FirstIDX

func (rq *RepositoryQuery) FirstIDX(ctx context.Context) int64

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

func (*RepositoryQuery) FirstX

func (rq *RepositoryQuery) FirstX(ctx context.Context) *Repository

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

func (*RepositoryQuery) GroupBy

func (rq *RepositoryQuery) GroupBy(field string, fields ...string) *RepositoryGroupBy

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 {
	NodeID string `json:"node_id"`
	Count int `json:"count,omitempty"`
}

client.Repository.Query().
	GroupBy(repository.FieldNodeID).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*RepositoryQuery) IDs

func (rq *RepositoryQuery) IDs(ctx context.Context) (ids []int64, err error)

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

func (*RepositoryQuery) IDsX

func (rq *RepositoryQuery) IDsX(ctx context.Context) []int64

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

func (*RepositoryQuery) Limit

func (rq *RepositoryQuery) Limit(limit int) *RepositoryQuery

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

func (*RepositoryQuery) Offset

func (rq *RepositoryQuery) Offset(offset int) *RepositoryQuery

Offset to start from.

func (*RepositoryQuery) Only

func (rq *RepositoryQuery) Only(ctx context.Context) (*Repository, error)

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

func (*RepositoryQuery) OnlyID

func (rq *RepositoryQuery) OnlyID(ctx context.Context) (id int64, err error)

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

func (*RepositoryQuery) OnlyIDX

func (rq *RepositoryQuery) OnlyIDX(ctx context.Context) int64

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

func (*RepositoryQuery) OnlyX

func (rq *RepositoryQuery) OnlyX(ctx context.Context) *Repository

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

func (*RepositoryQuery) Order

Order specifies how the records should be ordered.

func (*RepositoryQuery) QueryIssues

func (rq *RepositoryQuery) QueryIssues() *IssueQuery

QueryIssues chains the current query on the "issues" edge.

func (*RepositoryQuery) QueryOwner

func (rq *RepositoryQuery) QueryOwner() *UserQuery

QueryOwner chains the current query on the "owner" edge.

func (*RepositoryQuery) Select

func (rq *RepositoryQuery) Select(fields ...string) *RepositorySelect

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 {
	NodeID string `json:"node_id"`
}

client.Repository.Query().
	Select(repository.FieldNodeID).
	Scan(ctx, &v)

func (*RepositoryQuery) Unique

func (rq *RepositoryQuery) Unique(unique bool) *RepositoryQuery

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

Where adds a new predicate for the RepositoryQuery builder.

func (*RepositoryQuery) WithIssues

func (rq *RepositoryQuery) WithIssues(opts ...func(*IssueQuery)) *RepositoryQuery

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

func (*RepositoryQuery) WithOwner

func (rq *RepositoryQuery) WithOwner(opts ...func(*UserQuery)) *RepositoryQuery

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

type RepositorySelect

type RepositorySelect struct {
	*RepositoryQuery
	// contains filtered or unexported fields
}

RepositorySelect is the builder for selecting fields of Repository entities.

func (*RepositorySelect) Aggregate

func (rs *RepositorySelect) Aggregate(fns ...AggregateFunc) *RepositorySelect

Aggregate adds the given aggregation functions to the selector query.

func (*RepositorySelect) Bool

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

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

func (*RepositorySelect) BoolX

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

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

func (*RepositorySelect) Bools

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

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

func (*RepositorySelect) BoolsX

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

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

func (*RepositorySelect) Float64

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

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

func (*RepositorySelect) Float64X

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

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

func (*RepositorySelect) Float64s

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

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

func (*RepositorySelect) Float64sX

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

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

func (*RepositorySelect) Int

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

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

func (*RepositorySelect) IntX

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

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

func (*RepositorySelect) Ints

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

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

func (*RepositorySelect) IntsX

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

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

func (*RepositorySelect) Scan

func (rs *RepositorySelect) Scan(ctx context.Context, v any) error

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

func (*RepositorySelect) ScanX

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

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

func (*RepositorySelect) String

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

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

func (*RepositorySelect) StringX

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

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

func (*RepositorySelect) Strings

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

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

func (*RepositorySelect) StringsX

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

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

type RepositoryUpdate

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

RepositoryUpdate is the builder for updating Repository entities.

func (*RepositoryUpdate) AddForks

func (ru *RepositoryUpdate) AddForks(i int64) *RepositoryUpdate

AddForks adds i to the "forks" field.

func (*RepositoryUpdate) AddForksCount

func (ru *RepositoryUpdate) AddForksCount(i int64) *RepositoryUpdate

AddForksCount adds i to the "forks_count" field.

func (*RepositoryUpdate) AddIssueIDs

func (ru *RepositoryUpdate) AddIssueIDs(ids ...int64) *RepositoryUpdate

AddIssueIDs adds the "issues" edge to the Issue entity by IDs.

func (*RepositoryUpdate) AddIssues

func (ru *RepositoryUpdate) AddIssues(i ...*Issue) *RepositoryUpdate

AddIssues adds the "issues" edges to the Issue entity.

func (*RepositoryUpdate) AddNetworkCount

func (ru *RepositoryUpdate) AddNetworkCount(i int64) *RepositoryUpdate

AddNetworkCount adds i to the "network_count" field.

func (*RepositoryUpdate) AddOpenIssues

func (ru *RepositoryUpdate) AddOpenIssues(i int64) *RepositoryUpdate

AddOpenIssues adds i to the "open_issues" field.

func (*RepositoryUpdate) AddOpenIssuesCount

func (ru *RepositoryUpdate) AddOpenIssuesCount(i int64) *RepositoryUpdate

AddOpenIssuesCount adds i to the "open_issues_count" field.

func (*RepositoryUpdate) AddSize

func (ru *RepositoryUpdate) AddSize(i int64) *RepositoryUpdate

AddSize adds i to the "size" field.

func (*RepositoryUpdate) AddStargazersCount

func (ru *RepositoryUpdate) AddStargazersCount(i int64) *RepositoryUpdate

AddStargazersCount adds i to the "stargazers_count" field.

func (*RepositoryUpdate) AddSubscribersCount

func (ru *RepositoryUpdate) AddSubscribersCount(i int64) *RepositoryUpdate

AddSubscribersCount adds i to the "subscribers_count" field.

func (*RepositoryUpdate) AddWatchers

func (ru *RepositoryUpdate) AddWatchers(i int64) *RepositoryUpdate

AddWatchers adds i to the "watchers" field.

func (*RepositoryUpdate) AddWatchersCount

func (ru *RepositoryUpdate) AddWatchersCount(i int64) *RepositoryUpdate

AddWatchersCount adds i to the "watchers_count" field.

func (*RepositoryUpdate) AppendTopics

func (ru *RepositoryUpdate) AppendTopics(s []string) *RepositoryUpdate

AppendTopics appends s to the "topics" field.

func (*RepositoryUpdate) ClearDescription

func (ru *RepositoryUpdate) ClearDescription() *RepositoryUpdate

ClearDescription clears the value of the "description" field.

func (*RepositoryUpdate) ClearHomepage

func (ru *RepositoryUpdate) ClearHomepage() *RepositoryUpdate

ClearHomepage clears the value of the "homepage" field.

func (*RepositoryUpdate) ClearIssues

func (ru *RepositoryUpdate) ClearIssues() *RepositoryUpdate

ClearIssues clears all "issues" edges to the Issue entity.

func (*RepositoryUpdate) ClearLanguage

func (ru *RepositoryUpdate) ClearLanguage() *RepositoryUpdate

ClearLanguage clears the value of the "language" field.

func (*RepositoryUpdate) ClearLicense

func (ru *RepositoryUpdate) ClearLicense() *RepositoryUpdate

ClearLicense clears the value of the "license" field.

func (*RepositoryUpdate) ClearMirrorURL

func (ru *RepositoryUpdate) ClearMirrorURL() *RepositoryUpdate

ClearMirrorURL clears the value of the "mirror_url" field.

func (*RepositoryUpdate) ClearOwner

func (ru *RepositoryUpdate) ClearOwner() *RepositoryUpdate

ClearOwner clears the "owner" edge to the User entity.

func (*RepositoryUpdate) ClearVisibility

func (ru *RepositoryUpdate) ClearVisibility() *RepositoryUpdate

ClearVisibility clears the value of the "visibility" field.

func (*RepositoryUpdate) Exec

func (ru *RepositoryUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*RepositoryUpdate) ExecX

func (ru *RepositoryUpdate) ExecX(ctx context.Context)

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

func (*RepositoryUpdate) Mutation

func (ru *RepositoryUpdate) Mutation() *RepositoryMutation

Mutation returns the RepositoryMutation object of the builder.

func (*RepositoryUpdate) RemoveIssueIDs

func (ru *RepositoryUpdate) RemoveIssueIDs(ids ...int64) *RepositoryUpdate

RemoveIssueIDs removes the "issues" edge to Issue entities by IDs.

func (*RepositoryUpdate) RemoveIssues

func (ru *RepositoryUpdate) RemoveIssues(i ...*Issue) *RepositoryUpdate

RemoveIssues removes "issues" edges to Issue entities.

func (*RepositoryUpdate) Save

func (ru *RepositoryUpdate) Save(ctx context.Context) (int, error)

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

func (*RepositoryUpdate) SaveX

func (ru *RepositoryUpdate) SaveX(ctx context.Context) int

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

func (*RepositoryUpdate) SetArchiveURL

func (ru *RepositoryUpdate) SetArchiveURL(s string) *RepositoryUpdate

SetArchiveURL sets the "archive_url" field.

func (*RepositoryUpdate) SetArchived

func (ru *RepositoryUpdate) SetArchived(b bool) *RepositoryUpdate

SetArchived sets the "archived" field.

func (*RepositoryUpdate) SetAssigneesURL

func (ru *RepositoryUpdate) SetAssigneesURL(s string) *RepositoryUpdate

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryUpdate) SetBlobsURL

func (ru *RepositoryUpdate) SetBlobsURL(s string) *RepositoryUpdate

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryUpdate) SetBranchesURL

func (ru *RepositoryUpdate) SetBranchesURL(s string) *RepositoryUpdate

SetBranchesURL sets the "branches_url" field.

func (*RepositoryUpdate) SetCloneURL

func (ru *RepositoryUpdate) SetCloneURL(s string) *RepositoryUpdate

SetCloneURL sets the "clone_url" field.

func (*RepositoryUpdate) SetCollaboratorsURL

func (ru *RepositoryUpdate) SetCollaboratorsURL(s string) *RepositoryUpdate

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryUpdate) SetCommentsURL

func (ru *RepositoryUpdate) SetCommentsURL(s string) *RepositoryUpdate

SetCommentsURL sets the "comments_url" field.

func (*RepositoryUpdate) SetCommitsURL

func (ru *RepositoryUpdate) SetCommitsURL(s string) *RepositoryUpdate

SetCommitsURL sets the "commits_url" field.

func (*RepositoryUpdate) SetCompareURL

func (ru *RepositoryUpdate) SetCompareURL(s string) *RepositoryUpdate

SetCompareURL sets the "compare_url" field.

func (*RepositoryUpdate) SetContentsURL

func (ru *RepositoryUpdate) SetContentsURL(s string) *RepositoryUpdate

SetContentsURL sets the "contents_url" field.

func (*RepositoryUpdate) SetContributorsURL

func (ru *RepositoryUpdate) SetContributorsURL(s string) *RepositoryUpdate

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryUpdate) SetCreatedAt

func (ru *RepositoryUpdate) SetCreatedAt(t time.Time) *RepositoryUpdate

SetCreatedAt sets the "created_at" field.

func (*RepositoryUpdate) SetDefaultBranch

func (ru *RepositoryUpdate) SetDefaultBranch(s string) *RepositoryUpdate

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryUpdate) SetDeploymentsURL

func (ru *RepositoryUpdate) SetDeploymentsURL(s string) *RepositoryUpdate

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryUpdate) SetDescription

func (ru *RepositoryUpdate) SetDescription(s string) *RepositoryUpdate

SetDescription sets the "description" field.

func (*RepositoryUpdate) SetDisabled

func (ru *RepositoryUpdate) SetDisabled(b bool) *RepositoryUpdate

SetDisabled sets the "disabled" field.

func (*RepositoryUpdate) SetDownloadsURL

func (ru *RepositoryUpdate) SetDownloadsURL(s string) *RepositoryUpdate

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryUpdate) SetEventsURL

func (ru *RepositoryUpdate) SetEventsURL(s string) *RepositoryUpdate

SetEventsURL sets the "events_url" field.

func (*RepositoryUpdate) SetFork

func (ru *RepositoryUpdate) SetFork(b bool) *RepositoryUpdate

SetFork sets the "fork" field.

func (*RepositoryUpdate) SetForks

func (ru *RepositoryUpdate) SetForks(i int64) *RepositoryUpdate

SetForks sets the "forks" field.

func (*RepositoryUpdate) SetForksCount

func (ru *RepositoryUpdate) SetForksCount(i int64) *RepositoryUpdate

SetForksCount sets the "forks_count" field.

func (*RepositoryUpdate) SetForksURL

func (ru *RepositoryUpdate) SetForksURL(s string) *RepositoryUpdate

SetForksURL sets the "forks_url" field.

func (*RepositoryUpdate) SetFullName

func (ru *RepositoryUpdate) SetFullName(s string) *RepositoryUpdate

SetFullName sets the "full_name" field.

func (*RepositoryUpdate) SetGitCommitsURL

func (ru *RepositoryUpdate) SetGitCommitsURL(s string) *RepositoryUpdate

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryUpdate) SetGitRefsURL

func (ru *RepositoryUpdate) SetGitRefsURL(s string) *RepositoryUpdate

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryUpdate) SetGitTagsURL

func (ru *RepositoryUpdate) SetGitTagsURL(s string) *RepositoryUpdate

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryUpdate) SetGitURL

func (ru *RepositoryUpdate) SetGitURL(s string) *RepositoryUpdate

SetGitURL sets the "git_url" field.

func (*RepositoryUpdate) SetHTMLURL

func (ru *RepositoryUpdate) SetHTMLURL(s string) *RepositoryUpdate

SetHTMLURL sets the "html_url" field.

func (*RepositoryUpdate) SetHasDiscussions

func (ru *RepositoryUpdate) SetHasDiscussions(b bool) *RepositoryUpdate

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryUpdate) SetHasDownloads

func (ru *RepositoryUpdate) SetHasDownloads(b bool) *RepositoryUpdate

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryUpdate) SetHasIssuesEnabled

func (ru *RepositoryUpdate) SetHasIssuesEnabled(b bool) *RepositoryUpdate

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryUpdate) SetHasPages

func (ru *RepositoryUpdate) SetHasPages(b bool) *RepositoryUpdate

SetHasPages sets the "has_pages" field.

func (*RepositoryUpdate) SetHasProjects

func (ru *RepositoryUpdate) SetHasProjects(b bool) *RepositoryUpdate

SetHasProjects sets the "has_projects" field.

func (*RepositoryUpdate) SetHasWiki

func (ru *RepositoryUpdate) SetHasWiki(b bool) *RepositoryUpdate

SetHasWiki sets the "has_wiki" field.

func (*RepositoryUpdate) SetHomepage

func (ru *RepositoryUpdate) SetHomepage(s string) *RepositoryUpdate

SetHomepage sets the "homepage" field.

func (*RepositoryUpdate) SetHooksURL

func (ru *RepositoryUpdate) SetHooksURL(s string) *RepositoryUpdate

SetHooksURL sets the "hooks_url" field.

func (*RepositoryUpdate) SetIsTemplate

func (ru *RepositoryUpdate) SetIsTemplate(b bool) *RepositoryUpdate

SetIsTemplate sets the "is_template" field.

func (*RepositoryUpdate) SetIssueCommentURL

func (ru *RepositoryUpdate) SetIssueCommentURL(s string) *RepositoryUpdate

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryUpdate) SetIssueEventsURL

func (ru *RepositoryUpdate) SetIssueEventsURL(s string) *RepositoryUpdate

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryUpdate) SetIssuesURL

func (ru *RepositoryUpdate) SetIssuesURL(s string) *RepositoryUpdate

SetIssuesURL sets the "issues_url" field.

func (*RepositoryUpdate) SetKeysURL

func (ru *RepositoryUpdate) SetKeysURL(s string) *RepositoryUpdate

SetKeysURL sets the "keys_url" field.

func (*RepositoryUpdate) SetLabelsURL

func (ru *RepositoryUpdate) SetLabelsURL(s string) *RepositoryUpdate

SetLabelsURL sets the "labels_url" field.

func (*RepositoryUpdate) SetLanguage

func (ru *RepositoryUpdate) SetLanguage(s string) *RepositoryUpdate

SetLanguage sets the "language" field.

func (*RepositoryUpdate) SetLanguagesURL

func (ru *RepositoryUpdate) SetLanguagesURL(s string) *RepositoryUpdate

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryUpdate) SetLicense

func (ru *RepositoryUpdate) SetLicense(m *model.License) *RepositoryUpdate

SetLicense sets the "license" field.

func (*RepositoryUpdate) SetMergesURL

func (ru *RepositoryUpdate) SetMergesURL(s string) *RepositoryUpdate

SetMergesURL sets the "merges_url" field.

func (*RepositoryUpdate) SetMilestonesURL

func (ru *RepositoryUpdate) SetMilestonesURL(s string) *RepositoryUpdate

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryUpdate) SetMirrorURL

func (ru *RepositoryUpdate) SetMirrorURL(s string) *RepositoryUpdate

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryUpdate) SetName

func (ru *RepositoryUpdate) SetName(s string) *RepositoryUpdate

SetName sets the "name" field.

func (*RepositoryUpdate) SetNetworkCount

func (ru *RepositoryUpdate) SetNetworkCount(i int64) *RepositoryUpdate

SetNetworkCount sets the "network_count" field.

func (*RepositoryUpdate) SetNillableArchiveURL

func (ru *RepositoryUpdate) SetNillableArchiveURL(s *string) *RepositoryUpdate

SetNillableArchiveURL sets the "archive_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableArchived

func (ru *RepositoryUpdate) SetNillableArchived(b *bool) *RepositoryUpdate

SetNillableArchived sets the "archived" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableAssigneesURL

func (ru *RepositoryUpdate) SetNillableAssigneesURL(s *string) *RepositoryUpdate

SetNillableAssigneesURL sets the "assignees_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableBlobsURL

func (ru *RepositoryUpdate) SetNillableBlobsURL(s *string) *RepositoryUpdate

SetNillableBlobsURL sets the "blobs_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableBranchesURL

func (ru *RepositoryUpdate) SetNillableBranchesURL(s *string) *RepositoryUpdate

SetNillableBranchesURL sets the "branches_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableCloneURL

func (ru *RepositoryUpdate) SetNillableCloneURL(s *string) *RepositoryUpdate

SetNillableCloneURL sets the "clone_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableCollaboratorsURL

func (ru *RepositoryUpdate) SetNillableCollaboratorsURL(s *string) *RepositoryUpdate

SetNillableCollaboratorsURL sets the "collaborators_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableCommentsURL

func (ru *RepositoryUpdate) SetNillableCommentsURL(s *string) *RepositoryUpdate

SetNillableCommentsURL sets the "comments_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableCommitsURL

func (ru *RepositoryUpdate) SetNillableCommitsURL(s *string) *RepositoryUpdate

SetNillableCommitsURL sets the "commits_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableCompareURL

func (ru *RepositoryUpdate) SetNillableCompareURL(s *string) *RepositoryUpdate

SetNillableCompareURL sets the "compare_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableContentsURL

func (ru *RepositoryUpdate) SetNillableContentsURL(s *string) *RepositoryUpdate

SetNillableContentsURL sets the "contents_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableContributorsURL

func (ru *RepositoryUpdate) SetNillableContributorsURL(s *string) *RepositoryUpdate

SetNillableContributorsURL sets the "contributors_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableCreatedAt

func (ru *RepositoryUpdate) SetNillableCreatedAt(t *time.Time) *RepositoryUpdate

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

func (*RepositoryUpdate) SetNillableDefaultBranch

func (ru *RepositoryUpdate) SetNillableDefaultBranch(s *string) *RepositoryUpdate

SetNillableDefaultBranch sets the "default_branch" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableDeploymentsURL

func (ru *RepositoryUpdate) SetNillableDeploymentsURL(s *string) *RepositoryUpdate

SetNillableDeploymentsURL sets the "deployments_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableDescription

func (ru *RepositoryUpdate) SetNillableDescription(s *string) *RepositoryUpdate

SetNillableDescription sets the "description" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableDisabled

func (ru *RepositoryUpdate) SetNillableDisabled(b *bool) *RepositoryUpdate

SetNillableDisabled sets the "disabled" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableDownloadsURL

func (ru *RepositoryUpdate) SetNillableDownloadsURL(s *string) *RepositoryUpdate

SetNillableDownloadsURL sets the "downloads_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableEventsURL

func (ru *RepositoryUpdate) SetNillableEventsURL(s *string) *RepositoryUpdate

SetNillableEventsURL sets the "events_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableFork

func (ru *RepositoryUpdate) SetNillableFork(b *bool) *RepositoryUpdate

SetNillableFork sets the "fork" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableForks

func (ru *RepositoryUpdate) SetNillableForks(i *int64) *RepositoryUpdate

SetNillableForks sets the "forks" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableForksCount

func (ru *RepositoryUpdate) SetNillableForksCount(i *int64) *RepositoryUpdate

SetNillableForksCount sets the "forks_count" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableForksURL

func (ru *RepositoryUpdate) SetNillableForksURL(s *string) *RepositoryUpdate

SetNillableForksURL sets the "forks_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableFullName

func (ru *RepositoryUpdate) SetNillableFullName(s *string) *RepositoryUpdate

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableGitCommitsURL

func (ru *RepositoryUpdate) SetNillableGitCommitsURL(s *string) *RepositoryUpdate

SetNillableGitCommitsURL sets the "git_commits_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableGitRefsURL

func (ru *RepositoryUpdate) SetNillableGitRefsURL(s *string) *RepositoryUpdate

SetNillableGitRefsURL sets the "git_refs_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableGitTagsURL

func (ru *RepositoryUpdate) SetNillableGitTagsURL(s *string) *RepositoryUpdate

SetNillableGitTagsURL sets the "git_tags_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableGitURL

func (ru *RepositoryUpdate) SetNillableGitURL(s *string) *RepositoryUpdate

SetNillableGitURL sets the "git_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHTMLURL

func (ru *RepositoryUpdate) SetNillableHTMLURL(s *string) *RepositoryUpdate

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHasDiscussions

func (ru *RepositoryUpdate) SetNillableHasDiscussions(b *bool) *RepositoryUpdate

SetNillableHasDiscussions sets the "has_discussions" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHasDownloads

func (ru *RepositoryUpdate) SetNillableHasDownloads(b *bool) *RepositoryUpdate

SetNillableHasDownloads sets the "has_downloads" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHasIssuesEnabled

func (ru *RepositoryUpdate) SetNillableHasIssuesEnabled(b *bool) *RepositoryUpdate

SetNillableHasIssuesEnabled sets the "has_issues_enabled" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHasPages

func (ru *RepositoryUpdate) SetNillableHasPages(b *bool) *RepositoryUpdate

SetNillableHasPages sets the "has_pages" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHasProjects

func (ru *RepositoryUpdate) SetNillableHasProjects(b *bool) *RepositoryUpdate

SetNillableHasProjects sets the "has_projects" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHasWiki

func (ru *RepositoryUpdate) SetNillableHasWiki(b *bool) *RepositoryUpdate

SetNillableHasWiki sets the "has_wiki" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHomepage

func (ru *RepositoryUpdate) SetNillableHomepage(s *string) *RepositoryUpdate

SetNillableHomepage sets the "homepage" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableHooksURL

func (ru *RepositoryUpdate) SetNillableHooksURL(s *string) *RepositoryUpdate

SetNillableHooksURL sets the "hooks_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableIsTemplate

func (ru *RepositoryUpdate) SetNillableIsTemplate(b *bool) *RepositoryUpdate

SetNillableIsTemplate sets the "is_template" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableIssueCommentURL

func (ru *RepositoryUpdate) SetNillableIssueCommentURL(s *string) *RepositoryUpdate

SetNillableIssueCommentURL sets the "issue_comment_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableIssueEventsURL

func (ru *RepositoryUpdate) SetNillableIssueEventsURL(s *string) *RepositoryUpdate

SetNillableIssueEventsURL sets the "issue_events_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableIssuesURL

func (ru *RepositoryUpdate) SetNillableIssuesURL(s *string) *RepositoryUpdate

SetNillableIssuesURL sets the "issues_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableKeysURL

func (ru *RepositoryUpdate) SetNillableKeysURL(s *string) *RepositoryUpdate

SetNillableKeysURL sets the "keys_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableLabelsURL

func (ru *RepositoryUpdate) SetNillableLabelsURL(s *string) *RepositoryUpdate

SetNillableLabelsURL sets the "labels_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableLanguage

func (ru *RepositoryUpdate) SetNillableLanguage(s *string) *RepositoryUpdate

SetNillableLanguage sets the "language" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableLanguagesURL

func (ru *RepositoryUpdate) SetNillableLanguagesURL(s *string) *RepositoryUpdate

SetNillableLanguagesURL sets the "languages_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableMergesURL

func (ru *RepositoryUpdate) SetNillableMergesURL(s *string) *RepositoryUpdate

SetNillableMergesURL sets the "merges_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableMilestonesURL

func (ru *RepositoryUpdate) SetNillableMilestonesURL(s *string) *RepositoryUpdate

SetNillableMilestonesURL sets the "milestones_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableMirrorURL

func (ru *RepositoryUpdate) SetNillableMirrorURL(s *string) *RepositoryUpdate

SetNillableMirrorURL sets the "mirror_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableName

func (ru *RepositoryUpdate) SetNillableName(s *string) *RepositoryUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableNetworkCount

func (ru *RepositoryUpdate) SetNillableNetworkCount(i *int64) *RepositoryUpdate

SetNillableNetworkCount sets the "network_count" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableNodeID

func (ru *RepositoryUpdate) SetNillableNodeID(s *string) *RepositoryUpdate

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableNotificationsURL

func (ru *RepositoryUpdate) SetNillableNotificationsURL(s *string) *RepositoryUpdate

SetNillableNotificationsURL sets the "notifications_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableOpenIssues

func (ru *RepositoryUpdate) SetNillableOpenIssues(i *int64) *RepositoryUpdate

SetNillableOpenIssues sets the "open_issues" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableOpenIssuesCount

func (ru *RepositoryUpdate) SetNillableOpenIssuesCount(i *int64) *RepositoryUpdate

SetNillableOpenIssuesCount sets the "open_issues_count" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableOwnerID

func (ru *RepositoryUpdate) SetNillableOwnerID(id *int64) *RepositoryUpdate

SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.

func (*RepositoryUpdate) SetNillablePrivate

func (ru *RepositoryUpdate) SetNillablePrivate(b *bool) *RepositoryUpdate

SetNillablePrivate sets the "private" field if the given value is not nil.

func (*RepositoryUpdate) SetNillablePullsURL

func (ru *RepositoryUpdate) SetNillablePullsURL(s *string) *RepositoryUpdate

SetNillablePullsURL sets the "pulls_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillablePushedAt

func (ru *RepositoryUpdate) SetNillablePushedAt(t *time.Time) *RepositoryUpdate

SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableReleasesURL

func (ru *RepositoryUpdate) SetNillableReleasesURL(s *string) *RepositoryUpdate

SetNillableReleasesURL sets the "releases_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableSSHURL

func (ru *RepositoryUpdate) SetNillableSSHURL(s *string) *RepositoryUpdate

SetNillableSSHURL sets the "ssh_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableSize

func (ru *RepositoryUpdate) SetNillableSize(i *int64) *RepositoryUpdate

SetNillableSize sets the "size" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableStargazersCount

func (ru *RepositoryUpdate) SetNillableStargazersCount(i *int64) *RepositoryUpdate

SetNillableStargazersCount sets the "stargazers_count" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableStargazersURL

func (ru *RepositoryUpdate) SetNillableStargazersURL(s *string) *RepositoryUpdate

SetNillableStargazersURL sets the "stargazers_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableStatusesURL

func (ru *RepositoryUpdate) SetNillableStatusesURL(s *string) *RepositoryUpdate

SetNillableStatusesURL sets the "statuses_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableSubscribersCount

func (ru *RepositoryUpdate) SetNillableSubscribersCount(i *int64) *RepositoryUpdate

SetNillableSubscribersCount sets the "subscribers_count" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableSubscribersURL

func (ru *RepositoryUpdate) SetNillableSubscribersURL(s *string) *RepositoryUpdate

SetNillableSubscribersURL sets the "subscribers_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableSubscriptionURL

func (ru *RepositoryUpdate) SetNillableSubscriptionURL(s *string) *RepositoryUpdate

SetNillableSubscriptionURL sets the "subscription_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableSvnURL

func (ru *RepositoryUpdate) SetNillableSvnURL(s *string) *RepositoryUpdate

SetNillableSvnURL sets the "svn_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableTagsURL

func (ru *RepositoryUpdate) SetNillableTagsURL(s *string) *RepositoryUpdate

SetNillableTagsURL sets the "tags_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableTeamsURL

func (ru *RepositoryUpdate) SetNillableTeamsURL(s *string) *RepositoryUpdate

SetNillableTeamsURL sets the "teams_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableTreesURL

func (ru *RepositoryUpdate) SetNillableTreesURL(s *string) *RepositoryUpdate

SetNillableTreesURL sets the "trees_url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableURL

func (ru *RepositoryUpdate) SetNillableURL(s *string) *RepositoryUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableUpdatedAt

func (ru *RepositoryUpdate) SetNillableUpdatedAt(t *time.Time) *RepositoryUpdate

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

func (*RepositoryUpdate) SetNillableVisibility

func (ru *RepositoryUpdate) SetNillableVisibility(r *repository.Visibility) *RepositoryUpdate

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableWatchers

func (ru *RepositoryUpdate) SetNillableWatchers(i *int64) *RepositoryUpdate

SetNillableWatchers sets the "watchers" field if the given value is not nil.

func (*RepositoryUpdate) SetNillableWatchersCount

func (ru *RepositoryUpdate) SetNillableWatchersCount(i *int64) *RepositoryUpdate

SetNillableWatchersCount sets the "watchers_count" field if the given value is not nil.

func (*RepositoryUpdate) SetNodeID

func (ru *RepositoryUpdate) SetNodeID(s string) *RepositoryUpdate

SetNodeID sets the "node_id" field.

func (*RepositoryUpdate) SetNotificationsURL

func (ru *RepositoryUpdate) SetNotificationsURL(s string) *RepositoryUpdate

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryUpdate) SetOpenIssues

func (ru *RepositoryUpdate) SetOpenIssues(i int64) *RepositoryUpdate

SetOpenIssues sets the "open_issues" field.

func (*RepositoryUpdate) SetOpenIssuesCount

func (ru *RepositoryUpdate) SetOpenIssuesCount(i int64) *RepositoryUpdate

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryUpdate) SetOwner

func (ru *RepositoryUpdate) SetOwner(u *User) *RepositoryUpdate

SetOwner sets the "owner" edge to the User entity.

func (*RepositoryUpdate) SetOwnerID

func (ru *RepositoryUpdate) SetOwnerID(id int64) *RepositoryUpdate

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*RepositoryUpdate) SetPrivate

func (ru *RepositoryUpdate) SetPrivate(b bool) *RepositoryUpdate

SetPrivate sets the "private" field.

func (*RepositoryUpdate) SetPullsURL

func (ru *RepositoryUpdate) SetPullsURL(s string) *RepositoryUpdate

SetPullsURL sets the "pulls_url" field.

func (*RepositoryUpdate) SetPushedAt

func (ru *RepositoryUpdate) SetPushedAt(t time.Time) *RepositoryUpdate

SetPushedAt sets the "pushed_at" field.

func (*RepositoryUpdate) SetReleasesURL

func (ru *RepositoryUpdate) SetReleasesURL(s string) *RepositoryUpdate

SetReleasesURL sets the "releases_url" field.

func (*RepositoryUpdate) SetSSHURL

func (ru *RepositoryUpdate) SetSSHURL(s string) *RepositoryUpdate

SetSSHURL sets the "ssh_url" field.

func (*RepositoryUpdate) SetSize

func (ru *RepositoryUpdate) SetSize(i int64) *RepositoryUpdate

SetSize sets the "size" field.

func (*RepositoryUpdate) SetStargazersCount

func (ru *RepositoryUpdate) SetStargazersCount(i int64) *RepositoryUpdate

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryUpdate) SetStargazersURL

func (ru *RepositoryUpdate) SetStargazersURL(s string) *RepositoryUpdate

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryUpdate) SetStatusesURL

func (ru *RepositoryUpdate) SetStatusesURL(s string) *RepositoryUpdate

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryUpdate) SetSubscribersCount

func (ru *RepositoryUpdate) SetSubscribersCount(i int64) *RepositoryUpdate

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryUpdate) SetSubscribersURL

func (ru *RepositoryUpdate) SetSubscribersURL(s string) *RepositoryUpdate

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryUpdate) SetSubscriptionURL

func (ru *RepositoryUpdate) SetSubscriptionURL(s string) *RepositoryUpdate

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryUpdate) SetSvnURL

func (ru *RepositoryUpdate) SetSvnURL(s string) *RepositoryUpdate

SetSvnURL sets the "svn_url" field.

func (*RepositoryUpdate) SetTagsURL

func (ru *RepositoryUpdate) SetTagsURL(s string) *RepositoryUpdate

SetTagsURL sets the "tags_url" field.

func (*RepositoryUpdate) SetTeamsURL

func (ru *RepositoryUpdate) SetTeamsURL(s string) *RepositoryUpdate

SetTeamsURL sets the "teams_url" field.

func (*RepositoryUpdate) SetTopics

func (ru *RepositoryUpdate) SetTopics(s []string) *RepositoryUpdate

SetTopics sets the "topics" field.

func (*RepositoryUpdate) SetTreesURL

func (ru *RepositoryUpdate) SetTreesURL(s string) *RepositoryUpdate

SetTreesURL sets the "trees_url" field.

func (*RepositoryUpdate) SetURL

func (ru *RepositoryUpdate) SetURL(s string) *RepositoryUpdate

SetURL sets the "url" field.

func (*RepositoryUpdate) SetUpdatedAt

func (ru *RepositoryUpdate) SetUpdatedAt(t time.Time) *RepositoryUpdate

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryUpdate) SetVisibility

SetVisibility sets the "visibility" field.

func (*RepositoryUpdate) SetWatchers

func (ru *RepositoryUpdate) SetWatchers(i int64) *RepositoryUpdate

SetWatchers sets the "watchers" field.

func (*RepositoryUpdate) SetWatchersCount

func (ru *RepositoryUpdate) SetWatchersCount(i int64) *RepositoryUpdate

SetWatchersCount sets the "watchers_count" field.

func (*RepositoryUpdate) Where

Where appends a list predicates to the RepositoryUpdate builder.

type RepositoryUpdateOne

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

RepositoryUpdateOne is the builder for updating a single Repository entity.

func (*RepositoryUpdateOne) AddForks

func (ruo *RepositoryUpdateOne) AddForks(i int64) *RepositoryUpdateOne

AddForks adds i to the "forks" field.

func (*RepositoryUpdateOne) AddForksCount

func (ruo *RepositoryUpdateOne) AddForksCount(i int64) *RepositoryUpdateOne

AddForksCount adds i to the "forks_count" field.

func (*RepositoryUpdateOne) AddIssueIDs

func (ruo *RepositoryUpdateOne) AddIssueIDs(ids ...int64) *RepositoryUpdateOne

AddIssueIDs adds the "issues" edge to the Issue entity by IDs.

func (*RepositoryUpdateOne) AddIssues

func (ruo *RepositoryUpdateOne) AddIssues(i ...*Issue) *RepositoryUpdateOne

AddIssues adds the "issues" edges to the Issue entity.

func (*RepositoryUpdateOne) AddNetworkCount

func (ruo *RepositoryUpdateOne) AddNetworkCount(i int64) *RepositoryUpdateOne

AddNetworkCount adds i to the "network_count" field.

func (*RepositoryUpdateOne) AddOpenIssues

func (ruo *RepositoryUpdateOne) AddOpenIssues(i int64) *RepositoryUpdateOne

AddOpenIssues adds i to the "open_issues" field.

func (*RepositoryUpdateOne) AddOpenIssuesCount

func (ruo *RepositoryUpdateOne) AddOpenIssuesCount(i int64) *RepositoryUpdateOne

AddOpenIssuesCount adds i to the "open_issues_count" field.

func (*RepositoryUpdateOne) AddSize

AddSize adds i to the "size" field.

func (*RepositoryUpdateOne) AddStargazersCount

func (ruo *RepositoryUpdateOne) AddStargazersCount(i int64) *RepositoryUpdateOne

AddStargazersCount adds i to the "stargazers_count" field.

func (*RepositoryUpdateOne) AddSubscribersCount

func (ruo *RepositoryUpdateOne) AddSubscribersCount(i int64) *RepositoryUpdateOne

AddSubscribersCount adds i to the "subscribers_count" field.

func (*RepositoryUpdateOne) AddWatchers

func (ruo *RepositoryUpdateOne) AddWatchers(i int64) *RepositoryUpdateOne

AddWatchers adds i to the "watchers" field.

func (*RepositoryUpdateOne) AddWatchersCount

func (ruo *RepositoryUpdateOne) AddWatchersCount(i int64) *RepositoryUpdateOne

AddWatchersCount adds i to the "watchers_count" field.

func (*RepositoryUpdateOne) AppendTopics

func (ruo *RepositoryUpdateOne) AppendTopics(s []string) *RepositoryUpdateOne

AppendTopics appends s to the "topics" field.

func (*RepositoryUpdateOne) ClearDescription

func (ruo *RepositoryUpdateOne) ClearDescription() *RepositoryUpdateOne

ClearDescription clears the value of the "description" field.

func (*RepositoryUpdateOne) ClearHomepage

func (ruo *RepositoryUpdateOne) ClearHomepage() *RepositoryUpdateOne

ClearHomepage clears the value of the "homepage" field.

func (*RepositoryUpdateOne) ClearIssues

func (ruo *RepositoryUpdateOne) ClearIssues() *RepositoryUpdateOne

ClearIssues clears all "issues" edges to the Issue entity.

func (*RepositoryUpdateOne) ClearLanguage

func (ruo *RepositoryUpdateOne) ClearLanguage() *RepositoryUpdateOne

ClearLanguage clears the value of the "language" field.

func (*RepositoryUpdateOne) ClearLicense

func (ruo *RepositoryUpdateOne) ClearLicense() *RepositoryUpdateOne

ClearLicense clears the value of the "license" field.

func (*RepositoryUpdateOne) ClearMirrorURL

func (ruo *RepositoryUpdateOne) ClearMirrorURL() *RepositoryUpdateOne

ClearMirrorURL clears the value of the "mirror_url" field.

func (*RepositoryUpdateOne) ClearOwner

func (ruo *RepositoryUpdateOne) ClearOwner() *RepositoryUpdateOne

ClearOwner clears the "owner" edge to the User entity.

func (*RepositoryUpdateOne) ClearVisibility

func (ruo *RepositoryUpdateOne) ClearVisibility() *RepositoryUpdateOne

ClearVisibility clears the value of the "visibility" field.

func (*RepositoryUpdateOne) CopyRepository

func (ruo *RepositoryUpdateOne) CopyRepository(input *Repository) *RepositoryUpdateOne

CopyRepository allows to update a Repository copying the existing values of input.

func (*RepositoryUpdateOne) Exec

func (ruo *RepositoryUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*RepositoryUpdateOne) ExecX

func (ruo *RepositoryUpdateOne) ExecX(ctx context.Context)

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

func (*RepositoryUpdateOne) Mutation

func (ruo *RepositoryUpdateOne) Mutation() *RepositoryMutation

Mutation returns the RepositoryMutation object of the builder.

func (*RepositoryUpdateOne) RemoveIssueIDs

func (ruo *RepositoryUpdateOne) RemoveIssueIDs(ids ...int64) *RepositoryUpdateOne

RemoveIssueIDs removes the "issues" edge to Issue entities by IDs.

func (*RepositoryUpdateOne) RemoveIssues

func (ruo *RepositoryUpdateOne) RemoveIssues(i ...*Issue) *RepositoryUpdateOne

RemoveIssues removes "issues" edges to Issue entities.

func (*RepositoryUpdateOne) Save

func (ruo *RepositoryUpdateOne) Save(ctx context.Context) (*Repository, error)

Save executes the query and returns the updated Repository entity.

func (*RepositoryUpdateOne) SaveX

func (ruo *RepositoryUpdateOne) SaveX(ctx context.Context) *Repository

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

func (*RepositoryUpdateOne) Select

func (ruo *RepositoryUpdateOne) Select(field string, fields ...string) *RepositoryUpdateOne

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

func (*RepositoryUpdateOne) SetArchiveURL

func (ruo *RepositoryUpdateOne) SetArchiveURL(s string) *RepositoryUpdateOne

SetArchiveURL sets the "archive_url" field.

func (*RepositoryUpdateOne) SetArchived

func (ruo *RepositoryUpdateOne) SetArchived(b bool) *RepositoryUpdateOne

SetArchived sets the "archived" field.

func (*RepositoryUpdateOne) SetAssigneesURL

func (ruo *RepositoryUpdateOne) SetAssigneesURL(s string) *RepositoryUpdateOne

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryUpdateOne) SetBlobsURL

func (ruo *RepositoryUpdateOne) SetBlobsURL(s string) *RepositoryUpdateOne

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryUpdateOne) SetBranchesURL

func (ruo *RepositoryUpdateOne) SetBranchesURL(s string) *RepositoryUpdateOne

SetBranchesURL sets the "branches_url" field.

func (*RepositoryUpdateOne) SetCloneURL

func (ruo *RepositoryUpdateOne) SetCloneURL(s string) *RepositoryUpdateOne

SetCloneURL sets the "clone_url" field.

func (*RepositoryUpdateOne) SetCollaboratorsURL

func (ruo *RepositoryUpdateOne) SetCollaboratorsURL(s string) *RepositoryUpdateOne

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryUpdateOne) SetCommentsURL

func (ruo *RepositoryUpdateOne) SetCommentsURL(s string) *RepositoryUpdateOne

SetCommentsURL sets the "comments_url" field.

func (*RepositoryUpdateOne) SetCommitsURL

func (ruo *RepositoryUpdateOne) SetCommitsURL(s string) *RepositoryUpdateOne

SetCommitsURL sets the "commits_url" field.

func (*RepositoryUpdateOne) SetCompareURL

func (ruo *RepositoryUpdateOne) SetCompareURL(s string) *RepositoryUpdateOne

SetCompareURL sets the "compare_url" field.

func (*RepositoryUpdateOne) SetContentsURL

func (ruo *RepositoryUpdateOne) SetContentsURL(s string) *RepositoryUpdateOne

SetContentsURL sets the "contents_url" field.

func (*RepositoryUpdateOne) SetContributorsURL

func (ruo *RepositoryUpdateOne) SetContributorsURL(s string) *RepositoryUpdateOne

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryUpdateOne) SetCreatedAt

func (ruo *RepositoryUpdateOne) SetCreatedAt(t time.Time) *RepositoryUpdateOne

SetCreatedAt sets the "created_at" field.

func (*RepositoryUpdateOne) SetDefaultBranch

func (ruo *RepositoryUpdateOne) SetDefaultBranch(s string) *RepositoryUpdateOne

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryUpdateOne) SetDeploymentsURL

func (ruo *RepositoryUpdateOne) SetDeploymentsURL(s string) *RepositoryUpdateOne

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryUpdateOne) SetDescription

func (ruo *RepositoryUpdateOne) SetDescription(s string) *RepositoryUpdateOne

SetDescription sets the "description" field.

func (*RepositoryUpdateOne) SetDisabled

func (ruo *RepositoryUpdateOne) SetDisabled(b bool) *RepositoryUpdateOne

SetDisabled sets the "disabled" field.

func (*RepositoryUpdateOne) SetDownloadsURL

func (ruo *RepositoryUpdateOne) SetDownloadsURL(s string) *RepositoryUpdateOne

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryUpdateOne) SetEventsURL

func (ruo *RepositoryUpdateOne) SetEventsURL(s string) *RepositoryUpdateOne

SetEventsURL sets the "events_url" field.

func (*RepositoryUpdateOne) SetFork

func (ruo *RepositoryUpdateOne) SetFork(b bool) *RepositoryUpdateOne

SetFork sets the "fork" field.

func (*RepositoryUpdateOne) SetForks

func (ruo *RepositoryUpdateOne) SetForks(i int64) *RepositoryUpdateOne

SetForks sets the "forks" field.

func (*RepositoryUpdateOne) SetForksCount

func (ruo *RepositoryUpdateOne) SetForksCount(i int64) *RepositoryUpdateOne

SetForksCount sets the "forks_count" field.

func (*RepositoryUpdateOne) SetForksURL

func (ruo *RepositoryUpdateOne) SetForksURL(s string) *RepositoryUpdateOne

SetForksURL sets the "forks_url" field.

func (*RepositoryUpdateOne) SetFullName

func (ruo *RepositoryUpdateOne) SetFullName(s string) *RepositoryUpdateOne

SetFullName sets the "full_name" field.

func (*RepositoryUpdateOne) SetGitCommitsURL

func (ruo *RepositoryUpdateOne) SetGitCommitsURL(s string) *RepositoryUpdateOne

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryUpdateOne) SetGitRefsURL

func (ruo *RepositoryUpdateOne) SetGitRefsURL(s string) *RepositoryUpdateOne

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryUpdateOne) SetGitTagsURL

func (ruo *RepositoryUpdateOne) SetGitTagsURL(s string) *RepositoryUpdateOne

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryUpdateOne) SetGitURL

func (ruo *RepositoryUpdateOne) SetGitURL(s string) *RepositoryUpdateOne

SetGitURL sets the "git_url" field.

func (*RepositoryUpdateOne) SetHTMLURL

func (ruo *RepositoryUpdateOne) SetHTMLURL(s string) *RepositoryUpdateOne

SetHTMLURL sets the "html_url" field.

func (*RepositoryUpdateOne) SetHasDiscussions

func (ruo *RepositoryUpdateOne) SetHasDiscussions(b bool) *RepositoryUpdateOne

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryUpdateOne) SetHasDownloads

func (ruo *RepositoryUpdateOne) SetHasDownloads(b bool) *RepositoryUpdateOne

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryUpdateOne) SetHasIssuesEnabled

func (ruo *RepositoryUpdateOne) SetHasIssuesEnabled(b bool) *RepositoryUpdateOne

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryUpdateOne) SetHasPages

func (ruo *RepositoryUpdateOne) SetHasPages(b bool) *RepositoryUpdateOne

SetHasPages sets the "has_pages" field.

func (*RepositoryUpdateOne) SetHasProjects

func (ruo *RepositoryUpdateOne) SetHasProjects(b bool) *RepositoryUpdateOne

SetHasProjects sets the "has_projects" field.

func (*RepositoryUpdateOne) SetHasWiki

func (ruo *RepositoryUpdateOne) SetHasWiki(b bool) *RepositoryUpdateOne

SetHasWiki sets the "has_wiki" field.

func (*RepositoryUpdateOne) SetHomepage

func (ruo *RepositoryUpdateOne) SetHomepage(s string) *RepositoryUpdateOne

SetHomepage sets the "homepage" field.

func (*RepositoryUpdateOne) SetHooksURL

func (ruo *RepositoryUpdateOne) SetHooksURL(s string) *RepositoryUpdateOne

SetHooksURL sets the "hooks_url" field.

func (*RepositoryUpdateOne) SetIsTemplate

func (ruo *RepositoryUpdateOne) SetIsTemplate(b bool) *RepositoryUpdateOne

SetIsTemplate sets the "is_template" field.

func (*RepositoryUpdateOne) SetIssueCommentURL

func (ruo *RepositoryUpdateOne) SetIssueCommentURL(s string) *RepositoryUpdateOne

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryUpdateOne) SetIssueEventsURL

func (ruo *RepositoryUpdateOne) SetIssueEventsURL(s string) *RepositoryUpdateOne

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryUpdateOne) SetIssuesURL

func (ruo *RepositoryUpdateOne) SetIssuesURL(s string) *RepositoryUpdateOne

SetIssuesURL sets the "issues_url" field.

func (*RepositoryUpdateOne) SetKeysURL

func (ruo *RepositoryUpdateOne) SetKeysURL(s string) *RepositoryUpdateOne

SetKeysURL sets the "keys_url" field.

func (*RepositoryUpdateOne) SetLabelsURL

func (ruo *RepositoryUpdateOne) SetLabelsURL(s string) *RepositoryUpdateOne

SetLabelsURL sets the "labels_url" field.

func (*RepositoryUpdateOne) SetLanguage

func (ruo *RepositoryUpdateOne) SetLanguage(s string) *RepositoryUpdateOne

SetLanguage sets the "language" field.

func (*RepositoryUpdateOne) SetLanguagesURL

func (ruo *RepositoryUpdateOne) SetLanguagesURL(s string) *RepositoryUpdateOne

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryUpdateOne) SetLicense

SetLicense sets the "license" field.

func (*RepositoryUpdateOne) SetMergesURL

func (ruo *RepositoryUpdateOne) SetMergesURL(s string) *RepositoryUpdateOne

SetMergesURL sets the "merges_url" field.

func (*RepositoryUpdateOne) SetMilestonesURL

func (ruo *RepositoryUpdateOne) SetMilestonesURL(s string) *RepositoryUpdateOne

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryUpdateOne) SetMirrorURL

func (ruo *RepositoryUpdateOne) SetMirrorURL(s string) *RepositoryUpdateOne

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryUpdateOne) SetName

SetName sets the "name" field.

func (*RepositoryUpdateOne) SetNetworkCount

func (ruo *RepositoryUpdateOne) SetNetworkCount(i int64) *RepositoryUpdateOne

SetNetworkCount sets the "network_count" field.

func (*RepositoryUpdateOne) SetNillableArchiveURL

func (ruo *RepositoryUpdateOne) SetNillableArchiveURL(s *string) *RepositoryUpdateOne

SetNillableArchiveURL sets the "archive_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableArchived

func (ruo *RepositoryUpdateOne) SetNillableArchived(b *bool) *RepositoryUpdateOne

SetNillableArchived sets the "archived" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableAssigneesURL

func (ruo *RepositoryUpdateOne) SetNillableAssigneesURL(s *string) *RepositoryUpdateOne

SetNillableAssigneesURL sets the "assignees_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableBlobsURL

func (ruo *RepositoryUpdateOne) SetNillableBlobsURL(s *string) *RepositoryUpdateOne

SetNillableBlobsURL sets the "blobs_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableBranchesURL

func (ruo *RepositoryUpdateOne) SetNillableBranchesURL(s *string) *RepositoryUpdateOne

SetNillableBranchesURL sets the "branches_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableCloneURL

func (ruo *RepositoryUpdateOne) SetNillableCloneURL(s *string) *RepositoryUpdateOne

SetNillableCloneURL sets the "clone_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableCollaboratorsURL

func (ruo *RepositoryUpdateOne) SetNillableCollaboratorsURL(s *string) *RepositoryUpdateOne

SetNillableCollaboratorsURL sets the "collaborators_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableCommentsURL

func (ruo *RepositoryUpdateOne) SetNillableCommentsURL(s *string) *RepositoryUpdateOne

SetNillableCommentsURL sets the "comments_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableCommitsURL

func (ruo *RepositoryUpdateOne) SetNillableCommitsURL(s *string) *RepositoryUpdateOne

SetNillableCommitsURL sets the "commits_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableCompareURL

func (ruo *RepositoryUpdateOne) SetNillableCompareURL(s *string) *RepositoryUpdateOne

SetNillableCompareURL sets the "compare_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableContentsURL

func (ruo *RepositoryUpdateOne) SetNillableContentsURL(s *string) *RepositoryUpdateOne

SetNillableContentsURL sets the "contents_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableContributorsURL

func (ruo *RepositoryUpdateOne) SetNillableContributorsURL(s *string) *RepositoryUpdateOne

SetNillableContributorsURL sets the "contributors_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableCreatedAt

func (ruo *RepositoryUpdateOne) SetNillableCreatedAt(t *time.Time) *RepositoryUpdateOne

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

func (*RepositoryUpdateOne) SetNillableDefaultBranch

func (ruo *RepositoryUpdateOne) SetNillableDefaultBranch(s *string) *RepositoryUpdateOne

SetNillableDefaultBranch sets the "default_branch" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableDeploymentsURL

func (ruo *RepositoryUpdateOne) SetNillableDeploymentsURL(s *string) *RepositoryUpdateOne

SetNillableDeploymentsURL sets the "deployments_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableDescription

func (ruo *RepositoryUpdateOne) SetNillableDescription(s *string) *RepositoryUpdateOne

SetNillableDescription sets the "description" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableDisabled

func (ruo *RepositoryUpdateOne) SetNillableDisabled(b *bool) *RepositoryUpdateOne

SetNillableDisabled sets the "disabled" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableDownloadsURL

func (ruo *RepositoryUpdateOne) SetNillableDownloadsURL(s *string) *RepositoryUpdateOne

SetNillableDownloadsURL sets the "downloads_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableEventsURL

func (ruo *RepositoryUpdateOne) SetNillableEventsURL(s *string) *RepositoryUpdateOne

SetNillableEventsURL sets the "events_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableFork

func (ruo *RepositoryUpdateOne) SetNillableFork(b *bool) *RepositoryUpdateOne

SetNillableFork sets the "fork" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableForks

func (ruo *RepositoryUpdateOne) SetNillableForks(i *int64) *RepositoryUpdateOne

SetNillableForks sets the "forks" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableForksCount

func (ruo *RepositoryUpdateOne) SetNillableForksCount(i *int64) *RepositoryUpdateOne

SetNillableForksCount sets the "forks_count" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableForksURL

func (ruo *RepositoryUpdateOne) SetNillableForksURL(s *string) *RepositoryUpdateOne

SetNillableForksURL sets the "forks_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableFullName

func (ruo *RepositoryUpdateOne) SetNillableFullName(s *string) *RepositoryUpdateOne

SetNillableFullName sets the "full_name" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableGitCommitsURL

func (ruo *RepositoryUpdateOne) SetNillableGitCommitsURL(s *string) *RepositoryUpdateOne

SetNillableGitCommitsURL sets the "git_commits_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableGitRefsURL

func (ruo *RepositoryUpdateOne) SetNillableGitRefsURL(s *string) *RepositoryUpdateOne

SetNillableGitRefsURL sets the "git_refs_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableGitTagsURL

func (ruo *RepositoryUpdateOne) SetNillableGitTagsURL(s *string) *RepositoryUpdateOne

SetNillableGitTagsURL sets the "git_tags_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableGitURL

func (ruo *RepositoryUpdateOne) SetNillableGitURL(s *string) *RepositoryUpdateOne

SetNillableGitURL sets the "git_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHTMLURL

func (ruo *RepositoryUpdateOne) SetNillableHTMLURL(s *string) *RepositoryUpdateOne

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHasDiscussions

func (ruo *RepositoryUpdateOne) SetNillableHasDiscussions(b *bool) *RepositoryUpdateOne

SetNillableHasDiscussions sets the "has_discussions" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHasDownloads

func (ruo *RepositoryUpdateOne) SetNillableHasDownloads(b *bool) *RepositoryUpdateOne

SetNillableHasDownloads sets the "has_downloads" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHasIssuesEnabled

func (ruo *RepositoryUpdateOne) SetNillableHasIssuesEnabled(b *bool) *RepositoryUpdateOne

SetNillableHasIssuesEnabled sets the "has_issues_enabled" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHasPages

func (ruo *RepositoryUpdateOne) SetNillableHasPages(b *bool) *RepositoryUpdateOne

SetNillableHasPages sets the "has_pages" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHasProjects

func (ruo *RepositoryUpdateOne) SetNillableHasProjects(b *bool) *RepositoryUpdateOne

SetNillableHasProjects sets the "has_projects" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHasWiki

func (ruo *RepositoryUpdateOne) SetNillableHasWiki(b *bool) *RepositoryUpdateOne

SetNillableHasWiki sets the "has_wiki" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHomepage

func (ruo *RepositoryUpdateOne) SetNillableHomepage(s *string) *RepositoryUpdateOne

SetNillableHomepage sets the "homepage" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableHooksURL

func (ruo *RepositoryUpdateOne) SetNillableHooksURL(s *string) *RepositoryUpdateOne

SetNillableHooksURL sets the "hooks_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableIsTemplate

func (ruo *RepositoryUpdateOne) SetNillableIsTemplate(b *bool) *RepositoryUpdateOne

SetNillableIsTemplate sets the "is_template" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableIssueCommentURL

func (ruo *RepositoryUpdateOne) SetNillableIssueCommentURL(s *string) *RepositoryUpdateOne

SetNillableIssueCommentURL sets the "issue_comment_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableIssueEventsURL

func (ruo *RepositoryUpdateOne) SetNillableIssueEventsURL(s *string) *RepositoryUpdateOne

SetNillableIssueEventsURL sets the "issue_events_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableIssuesURL

func (ruo *RepositoryUpdateOne) SetNillableIssuesURL(s *string) *RepositoryUpdateOne

SetNillableIssuesURL sets the "issues_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableKeysURL

func (ruo *RepositoryUpdateOne) SetNillableKeysURL(s *string) *RepositoryUpdateOne

SetNillableKeysURL sets the "keys_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableLabelsURL

func (ruo *RepositoryUpdateOne) SetNillableLabelsURL(s *string) *RepositoryUpdateOne

SetNillableLabelsURL sets the "labels_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableLanguage

func (ruo *RepositoryUpdateOne) SetNillableLanguage(s *string) *RepositoryUpdateOne

SetNillableLanguage sets the "language" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableLanguagesURL

func (ruo *RepositoryUpdateOne) SetNillableLanguagesURL(s *string) *RepositoryUpdateOne

SetNillableLanguagesURL sets the "languages_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableMergesURL

func (ruo *RepositoryUpdateOne) SetNillableMergesURL(s *string) *RepositoryUpdateOne

SetNillableMergesURL sets the "merges_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableMilestonesURL

func (ruo *RepositoryUpdateOne) SetNillableMilestonesURL(s *string) *RepositoryUpdateOne

SetNillableMilestonesURL sets the "milestones_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableMirrorURL

func (ruo *RepositoryUpdateOne) SetNillableMirrorURL(s *string) *RepositoryUpdateOne

SetNillableMirrorURL sets the "mirror_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableName

func (ruo *RepositoryUpdateOne) SetNillableName(s *string) *RepositoryUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableNetworkCount

func (ruo *RepositoryUpdateOne) SetNillableNetworkCount(i *int64) *RepositoryUpdateOne

SetNillableNetworkCount sets the "network_count" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableNodeID

func (ruo *RepositoryUpdateOne) SetNillableNodeID(s *string) *RepositoryUpdateOne

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableNotificationsURL

func (ruo *RepositoryUpdateOne) SetNillableNotificationsURL(s *string) *RepositoryUpdateOne

SetNillableNotificationsURL sets the "notifications_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableOpenIssues

func (ruo *RepositoryUpdateOne) SetNillableOpenIssues(i *int64) *RepositoryUpdateOne

SetNillableOpenIssues sets the "open_issues" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableOpenIssuesCount

func (ruo *RepositoryUpdateOne) SetNillableOpenIssuesCount(i *int64) *RepositoryUpdateOne

SetNillableOpenIssuesCount sets the "open_issues_count" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableOwnerID

func (ruo *RepositoryUpdateOne) SetNillableOwnerID(id *int64) *RepositoryUpdateOne

SetNillableOwnerID sets the "owner" edge to the User entity by ID if the given value is not nil.

func (*RepositoryUpdateOne) SetNillablePrivate

func (ruo *RepositoryUpdateOne) SetNillablePrivate(b *bool) *RepositoryUpdateOne

SetNillablePrivate sets the "private" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillablePullsURL

func (ruo *RepositoryUpdateOne) SetNillablePullsURL(s *string) *RepositoryUpdateOne

SetNillablePullsURL sets the "pulls_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillablePushedAt

func (ruo *RepositoryUpdateOne) SetNillablePushedAt(t *time.Time) *RepositoryUpdateOne

SetNillablePushedAt sets the "pushed_at" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableReleasesURL

func (ruo *RepositoryUpdateOne) SetNillableReleasesURL(s *string) *RepositoryUpdateOne

SetNillableReleasesURL sets the "releases_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableSSHURL

func (ruo *RepositoryUpdateOne) SetNillableSSHURL(s *string) *RepositoryUpdateOne

SetNillableSSHURL sets the "ssh_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableSize

func (ruo *RepositoryUpdateOne) SetNillableSize(i *int64) *RepositoryUpdateOne

SetNillableSize sets the "size" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableStargazersCount

func (ruo *RepositoryUpdateOne) SetNillableStargazersCount(i *int64) *RepositoryUpdateOne

SetNillableStargazersCount sets the "stargazers_count" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableStargazersURL

func (ruo *RepositoryUpdateOne) SetNillableStargazersURL(s *string) *RepositoryUpdateOne

SetNillableStargazersURL sets the "stargazers_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableStatusesURL

func (ruo *RepositoryUpdateOne) SetNillableStatusesURL(s *string) *RepositoryUpdateOne

SetNillableStatusesURL sets the "statuses_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableSubscribersCount

func (ruo *RepositoryUpdateOne) SetNillableSubscribersCount(i *int64) *RepositoryUpdateOne

SetNillableSubscribersCount sets the "subscribers_count" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableSubscribersURL

func (ruo *RepositoryUpdateOne) SetNillableSubscribersURL(s *string) *RepositoryUpdateOne

SetNillableSubscribersURL sets the "subscribers_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableSubscriptionURL

func (ruo *RepositoryUpdateOne) SetNillableSubscriptionURL(s *string) *RepositoryUpdateOne

SetNillableSubscriptionURL sets the "subscription_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableSvnURL

func (ruo *RepositoryUpdateOne) SetNillableSvnURL(s *string) *RepositoryUpdateOne

SetNillableSvnURL sets the "svn_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableTagsURL

func (ruo *RepositoryUpdateOne) SetNillableTagsURL(s *string) *RepositoryUpdateOne

SetNillableTagsURL sets the "tags_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableTeamsURL

func (ruo *RepositoryUpdateOne) SetNillableTeamsURL(s *string) *RepositoryUpdateOne

SetNillableTeamsURL sets the "teams_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableTreesURL

func (ruo *RepositoryUpdateOne) SetNillableTreesURL(s *string) *RepositoryUpdateOne

SetNillableTreesURL sets the "trees_url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableURL

func (ruo *RepositoryUpdateOne) SetNillableURL(s *string) *RepositoryUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableUpdatedAt

func (ruo *RepositoryUpdateOne) SetNillableUpdatedAt(t *time.Time) *RepositoryUpdateOne

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

func (*RepositoryUpdateOne) SetNillableVisibility

func (ruo *RepositoryUpdateOne) SetNillableVisibility(r *repository.Visibility) *RepositoryUpdateOne

SetNillableVisibility sets the "visibility" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableWatchers

func (ruo *RepositoryUpdateOne) SetNillableWatchers(i *int64) *RepositoryUpdateOne

SetNillableWatchers sets the "watchers" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNillableWatchersCount

func (ruo *RepositoryUpdateOne) SetNillableWatchersCount(i *int64) *RepositoryUpdateOne

SetNillableWatchersCount sets the "watchers_count" field if the given value is not nil.

func (*RepositoryUpdateOne) SetNodeID

func (ruo *RepositoryUpdateOne) SetNodeID(s string) *RepositoryUpdateOne

SetNodeID sets the "node_id" field.

func (*RepositoryUpdateOne) SetNotificationsURL

func (ruo *RepositoryUpdateOne) SetNotificationsURL(s string) *RepositoryUpdateOne

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryUpdateOne) SetOpenIssues

func (ruo *RepositoryUpdateOne) SetOpenIssues(i int64) *RepositoryUpdateOne

SetOpenIssues sets the "open_issues" field.

func (*RepositoryUpdateOne) SetOpenIssuesCount

func (ruo *RepositoryUpdateOne) SetOpenIssuesCount(i int64) *RepositoryUpdateOne

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryUpdateOne) SetOwner

func (ruo *RepositoryUpdateOne) SetOwner(u *User) *RepositoryUpdateOne

SetOwner sets the "owner" edge to the User entity.

func (*RepositoryUpdateOne) SetOwnerID

func (ruo *RepositoryUpdateOne) SetOwnerID(id int64) *RepositoryUpdateOne

SetOwnerID sets the "owner" edge to the User entity by ID.

func (*RepositoryUpdateOne) SetPrivate

func (ruo *RepositoryUpdateOne) SetPrivate(b bool) *RepositoryUpdateOne

SetPrivate sets the "private" field.

func (*RepositoryUpdateOne) SetPullsURL

func (ruo *RepositoryUpdateOne) SetPullsURL(s string) *RepositoryUpdateOne

SetPullsURL sets the "pulls_url" field.

func (*RepositoryUpdateOne) SetPushedAt

func (ruo *RepositoryUpdateOne) SetPushedAt(t time.Time) *RepositoryUpdateOne

SetPushedAt sets the "pushed_at" field.

func (*RepositoryUpdateOne) SetReleasesURL

func (ruo *RepositoryUpdateOne) SetReleasesURL(s string) *RepositoryUpdateOne

SetReleasesURL sets the "releases_url" field.

func (*RepositoryUpdateOne) SetSSHURL

func (ruo *RepositoryUpdateOne) SetSSHURL(s string) *RepositoryUpdateOne

SetSSHURL sets the "ssh_url" field.

func (*RepositoryUpdateOne) SetSize

SetSize sets the "size" field.

func (*RepositoryUpdateOne) SetStargazersCount

func (ruo *RepositoryUpdateOne) SetStargazersCount(i int64) *RepositoryUpdateOne

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryUpdateOne) SetStargazersURL

func (ruo *RepositoryUpdateOne) SetStargazersURL(s string) *RepositoryUpdateOne

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryUpdateOne) SetStatusesURL

func (ruo *RepositoryUpdateOne) SetStatusesURL(s string) *RepositoryUpdateOne

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryUpdateOne) SetSubscribersCount

func (ruo *RepositoryUpdateOne) SetSubscribersCount(i int64) *RepositoryUpdateOne

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryUpdateOne) SetSubscribersURL

func (ruo *RepositoryUpdateOne) SetSubscribersURL(s string) *RepositoryUpdateOne

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryUpdateOne) SetSubscriptionURL

func (ruo *RepositoryUpdateOne) SetSubscriptionURL(s string) *RepositoryUpdateOne

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryUpdateOne) SetSvnURL

func (ruo *RepositoryUpdateOne) SetSvnURL(s string) *RepositoryUpdateOne

SetSvnURL sets the "svn_url" field.

func (*RepositoryUpdateOne) SetTagsURL

func (ruo *RepositoryUpdateOne) SetTagsURL(s string) *RepositoryUpdateOne

SetTagsURL sets the "tags_url" field.

func (*RepositoryUpdateOne) SetTeamsURL

func (ruo *RepositoryUpdateOne) SetTeamsURL(s string) *RepositoryUpdateOne

SetTeamsURL sets the "teams_url" field.

func (*RepositoryUpdateOne) SetTopics

func (ruo *RepositoryUpdateOne) SetTopics(s []string) *RepositoryUpdateOne

SetTopics sets the "topics" field.

func (*RepositoryUpdateOne) SetTreesURL

func (ruo *RepositoryUpdateOne) SetTreesURL(s string) *RepositoryUpdateOne

SetTreesURL sets the "trees_url" field.

func (*RepositoryUpdateOne) SetURL

SetURL sets the "url" field.

func (*RepositoryUpdateOne) SetUpdatedAt

func (ruo *RepositoryUpdateOne) SetUpdatedAt(t time.Time) *RepositoryUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryUpdateOne) SetVisibility

SetVisibility sets the "visibility" field.

func (*RepositoryUpdateOne) SetWatchers

func (ruo *RepositoryUpdateOne) SetWatchers(i int64) *RepositoryUpdateOne

SetWatchers sets the "watchers" field.

func (*RepositoryUpdateOne) SetWatchersCount

func (ruo *RepositoryUpdateOne) SetWatchersCount(i int64) *RepositoryUpdateOne

SetWatchersCount sets the "watchers_count" field.

func (*RepositoryUpdateOne) Where

Where appends a list predicates to the RepositoryUpdate builder.

type RepositoryUpsert

type RepositoryUpsert struct {
	*sql.UpdateSet
}

RepositoryUpsert is the "OnConflict" setter.

func (*RepositoryUpsert) AddForks

func (u *RepositoryUpsert) AddForks(v int64) *RepositoryUpsert

AddForks adds v to the "forks" field.

func (*RepositoryUpsert) AddForksCount

func (u *RepositoryUpsert) AddForksCount(v int64) *RepositoryUpsert

AddForksCount adds v to the "forks_count" field.

func (*RepositoryUpsert) AddNetworkCount

func (u *RepositoryUpsert) AddNetworkCount(v int64) *RepositoryUpsert

AddNetworkCount adds v to the "network_count" field.

func (*RepositoryUpsert) AddOpenIssues

func (u *RepositoryUpsert) AddOpenIssues(v int64) *RepositoryUpsert

AddOpenIssues adds v to the "open_issues" field.

func (*RepositoryUpsert) AddOpenIssuesCount

func (u *RepositoryUpsert) AddOpenIssuesCount(v int64) *RepositoryUpsert

AddOpenIssuesCount adds v to the "open_issues_count" field.

func (*RepositoryUpsert) AddSize

func (u *RepositoryUpsert) AddSize(v int64) *RepositoryUpsert

AddSize adds v to the "size" field.

func (*RepositoryUpsert) AddStargazersCount

func (u *RepositoryUpsert) AddStargazersCount(v int64) *RepositoryUpsert

AddStargazersCount adds v to the "stargazers_count" field.

func (*RepositoryUpsert) AddSubscribersCount

func (u *RepositoryUpsert) AddSubscribersCount(v int64) *RepositoryUpsert

AddSubscribersCount adds v to the "subscribers_count" field.

func (*RepositoryUpsert) AddWatchers

func (u *RepositoryUpsert) AddWatchers(v int64) *RepositoryUpsert

AddWatchers adds v to the "watchers" field.

func (*RepositoryUpsert) AddWatchersCount

func (u *RepositoryUpsert) AddWatchersCount(v int64) *RepositoryUpsert

AddWatchersCount adds v to the "watchers_count" field.

func (*RepositoryUpsert) ClearDescription

func (u *RepositoryUpsert) ClearDescription() *RepositoryUpsert

ClearDescription clears the value of the "description" field.

func (*RepositoryUpsert) ClearHomepage

func (u *RepositoryUpsert) ClearHomepage() *RepositoryUpsert

ClearHomepage clears the value of the "homepage" field.

func (*RepositoryUpsert) ClearLanguage

func (u *RepositoryUpsert) ClearLanguage() *RepositoryUpsert

ClearLanguage clears the value of the "language" field.

func (*RepositoryUpsert) ClearLicense

func (u *RepositoryUpsert) ClearLicense() *RepositoryUpsert

ClearLicense clears the value of the "license" field.

func (*RepositoryUpsert) ClearMirrorURL

func (u *RepositoryUpsert) ClearMirrorURL() *RepositoryUpsert

ClearMirrorURL clears the value of the "mirror_url" field.

func (*RepositoryUpsert) ClearVisibility

func (u *RepositoryUpsert) ClearVisibility() *RepositoryUpsert

ClearVisibility clears the value of the "visibility" field.

func (*RepositoryUpsert) SetArchiveURL

func (u *RepositoryUpsert) SetArchiveURL(v string) *RepositoryUpsert

SetArchiveURL sets the "archive_url" field.

func (*RepositoryUpsert) SetArchived

func (u *RepositoryUpsert) SetArchived(v bool) *RepositoryUpsert

SetArchived sets the "archived" field.

func (*RepositoryUpsert) SetAssigneesURL

func (u *RepositoryUpsert) SetAssigneesURL(v string) *RepositoryUpsert

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryUpsert) SetBlobsURL

func (u *RepositoryUpsert) SetBlobsURL(v string) *RepositoryUpsert

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryUpsert) SetBranchesURL

func (u *RepositoryUpsert) SetBranchesURL(v string) *RepositoryUpsert

SetBranchesURL sets the "branches_url" field.

func (*RepositoryUpsert) SetCloneURL

func (u *RepositoryUpsert) SetCloneURL(v string) *RepositoryUpsert

SetCloneURL sets the "clone_url" field.

func (*RepositoryUpsert) SetCollaboratorsURL

func (u *RepositoryUpsert) SetCollaboratorsURL(v string) *RepositoryUpsert

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryUpsert) SetCommentsURL

func (u *RepositoryUpsert) SetCommentsURL(v string) *RepositoryUpsert

SetCommentsURL sets the "comments_url" field.

func (*RepositoryUpsert) SetCommitsURL

func (u *RepositoryUpsert) SetCommitsURL(v string) *RepositoryUpsert

SetCommitsURL sets the "commits_url" field.

func (*RepositoryUpsert) SetCompareURL

func (u *RepositoryUpsert) SetCompareURL(v string) *RepositoryUpsert

SetCompareURL sets the "compare_url" field.

func (*RepositoryUpsert) SetContentsURL

func (u *RepositoryUpsert) SetContentsURL(v string) *RepositoryUpsert

SetContentsURL sets the "contents_url" field.

func (*RepositoryUpsert) SetContributorsURL

func (u *RepositoryUpsert) SetContributorsURL(v string) *RepositoryUpsert

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryUpsert) SetCreatedAt

func (u *RepositoryUpsert) SetCreatedAt(v time.Time) *RepositoryUpsert

SetCreatedAt sets the "created_at" field.

func (*RepositoryUpsert) SetDefaultBranch

func (u *RepositoryUpsert) SetDefaultBranch(v string) *RepositoryUpsert

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryUpsert) SetDeploymentsURL

func (u *RepositoryUpsert) SetDeploymentsURL(v string) *RepositoryUpsert

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryUpsert) SetDescription

func (u *RepositoryUpsert) SetDescription(v string) *RepositoryUpsert

SetDescription sets the "description" field.

func (*RepositoryUpsert) SetDisabled

func (u *RepositoryUpsert) SetDisabled(v bool) *RepositoryUpsert

SetDisabled sets the "disabled" field.

func (*RepositoryUpsert) SetDownloadsURL

func (u *RepositoryUpsert) SetDownloadsURL(v string) *RepositoryUpsert

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryUpsert) SetEventsURL

func (u *RepositoryUpsert) SetEventsURL(v string) *RepositoryUpsert

SetEventsURL sets the "events_url" field.

func (*RepositoryUpsert) SetFork

func (u *RepositoryUpsert) SetFork(v bool) *RepositoryUpsert

SetFork sets the "fork" field.

func (*RepositoryUpsert) SetForks

func (u *RepositoryUpsert) SetForks(v int64) *RepositoryUpsert

SetForks sets the "forks" field.

func (*RepositoryUpsert) SetForksCount

func (u *RepositoryUpsert) SetForksCount(v int64) *RepositoryUpsert

SetForksCount sets the "forks_count" field.

func (*RepositoryUpsert) SetForksURL

func (u *RepositoryUpsert) SetForksURL(v string) *RepositoryUpsert

SetForksURL sets the "forks_url" field.

func (*RepositoryUpsert) SetFullName

func (u *RepositoryUpsert) SetFullName(v string) *RepositoryUpsert

SetFullName sets the "full_name" field.

func (*RepositoryUpsert) SetGitCommitsURL

func (u *RepositoryUpsert) SetGitCommitsURL(v string) *RepositoryUpsert

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryUpsert) SetGitRefsURL

func (u *RepositoryUpsert) SetGitRefsURL(v string) *RepositoryUpsert

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryUpsert) SetGitTagsURL

func (u *RepositoryUpsert) SetGitTagsURL(v string) *RepositoryUpsert

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryUpsert) SetGitURL

func (u *RepositoryUpsert) SetGitURL(v string) *RepositoryUpsert

SetGitURL sets the "git_url" field.

func (*RepositoryUpsert) SetHTMLURL

func (u *RepositoryUpsert) SetHTMLURL(v string) *RepositoryUpsert

SetHTMLURL sets the "html_url" field.

func (*RepositoryUpsert) SetHasDiscussions

func (u *RepositoryUpsert) SetHasDiscussions(v bool) *RepositoryUpsert

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryUpsert) SetHasDownloads

func (u *RepositoryUpsert) SetHasDownloads(v bool) *RepositoryUpsert

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryUpsert) SetHasIssuesEnabled

func (u *RepositoryUpsert) SetHasIssuesEnabled(v bool) *RepositoryUpsert

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryUpsert) SetHasPages

func (u *RepositoryUpsert) SetHasPages(v bool) *RepositoryUpsert

SetHasPages sets the "has_pages" field.

func (*RepositoryUpsert) SetHasProjects

func (u *RepositoryUpsert) SetHasProjects(v bool) *RepositoryUpsert

SetHasProjects sets the "has_projects" field.

func (*RepositoryUpsert) SetHasWiki

func (u *RepositoryUpsert) SetHasWiki(v bool) *RepositoryUpsert

SetHasWiki sets the "has_wiki" field.

func (*RepositoryUpsert) SetHomepage

func (u *RepositoryUpsert) SetHomepage(v string) *RepositoryUpsert

SetHomepage sets the "homepage" field.

func (*RepositoryUpsert) SetHooksURL

func (u *RepositoryUpsert) SetHooksURL(v string) *RepositoryUpsert

SetHooksURL sets the "hooks_url" field.

func (*RepositoryUpsert) SetIsTemplate

func (u *RepositoryUpsert) SetIsTemplate(v bool) *RepositoryUpsert

SetIsTemplate sets the "is_template" field.

func (*RepositoryUpsert) SetIssueCommentURL

func (u *RepositoryUpsert) SetIssueCommentURL(v string) *RepositoryUpsert

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryUpsert) SetIssueEventsURL

func (u *RepositoryUpsert) SetIssueEventsURL(v string) *RepositoryUpsert

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryUpsert) SetIssuesURL

func (u *RepositoryUpsert) SetIssuesURL(v string) *RepositoryUpsert

SetIssuesURL sets the "issues_url" field.

func (*RepositoryUpsert) SetKeysURL

func (u *RepositoryUpsert) SetKeysURL(v string) *RepositoryUpsert

SetKeysURL sets the "keys_url" field.

func (*RepositoryUpsert) SetLabelsURL

func (u *RepositoryUpsert) SetLabelsURL(v string) *RepositoryUpsert

SetLabelsURL sets the "labels_url" field.

func (*RepositoryUpsert) SetLanguage

func (u *RepositoryUpsert) SetLanguage(v string) *RepositoryUpsert

SetLanguage sets the "language" field.

func (*RepositoryUpsert) SetLanguagesURL

func (u *RepositoryUpsert) SetLanguagesURL(v string) *RepositoryUpsert

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryUpsert) SetLicense

func (u *RepositoryUpsert) SetLicense(v *model.License) *RepositoryUpsert

SetLicense sets the "license" field.

func (*RepositoryUpsert) SetMergesURL

func (u *RepositoryUpsert) SetMergesURL(v string) *RepositoryUpsert

SetMergesURL sets the "merges_url" field.

func (*RepositoryUpsert) SetMilestonesURL

func (u *RepositoryUpsert) SetMilestonesURL(v string) *RepositoryUpsert

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryUpsert) SetMirrorURL

func (u *RepositoryUpsert) SetMirrorURL(v string) *RepositoryUpsert

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryUpsert) SetName

func (u *RepositoryUpsert) SetName(v string) *RepositoryUpsert

SetName sets the "name" field.

func (*RepositoryUpsert) SetNetworkCount

func (u *RepositoryUpsert) SetNetworkCount(v int64) *RepositoryUpsert

SetNetworkCount sets the "network_count" field.

func (*RepositoryUpsert) SetNodeID

func (u *RepositoryUpsert) SetNodeID(v string) *RepositoryUpsert

SetNodeID sets the "node_id" field.

func (*RepositoryUpsert) SetNotificationsURL

func (u *RepositoryUpsert) SetNotificationsURL(v string) *RepositoryUpsert

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryUpsert) SetOpenIssues

func (u *RepositoryUpsert) SetOpenIssues(v int64) *RepositoryUpsert

SetOpenIssues sets the "open_issues" field.

func (*RepositoryUpsert) SetOpenIssuesCount

func (u *RepositoryUpsert) SetOpenIssuesCount(v int64) *RepositoryUpsert

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryUpsert) SetPrivate

func (u *RepositoryUpsert) SetPrivate(v bool) *RepositoryUpsert

SetPrivate sets the "private" field.

func (*RepositoryUpsert) SetPullsURL

func (u *RepositoryUpsert) SetPullsURL(v string) *RepositoryUpsert

SetPullsURL sets the "pulls_url" field.

func (*RepositoryUpsert) SetPushedAt

func (u *RepositoryUpsert) SetPushedAt(v time.Time) *RepositoryUpsert

SetPushedAt sets the "pushed_at" field.

func (*RepositoryUpsert) SetReleasesURL

func (u *RepositoryUpsert) SetReleasesURL(v string) *RepositoryUpsert

SetReleasesURL sets the "releases_url" field.

func (*RepositoryUpsert) SetSSHURL

func (u *RepositoryUpsert) SetSSHURL(v string) *RepositoryUpsert

SetSSHURL sets the "ssh_url" field.

func (*RepositoryUpsert) SetSize

func (u *RepositoryUpsert) SetSize(v int64) *RepositoryUpsert

SetSize sets the "size" field.

func (*RepositoryUpsert) SetStargazersCount

func (u *RepositoryUpsert) SetStargazersCount(v int64) *RepositoryUpsert

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryUpsert) SetStargazersURL

func (u *RepositoryUpsert) SetStargazersURL(v string) *RepositoryUpsert

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryUpsert) SetStatusesURL

func (u *RepositoryUpsert) SetStatusesURL(v string) *RepositoryUpsert

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryUpsert) SetSubscribersCount

func (u *RepositoryUpsert) SetSubscribersCount(v int64) *RepositoryUpsert

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryUpsert) SetSubscribersURL

func (u *RepositoryUpsert) SetSubscribersURL(v string) *RepositoryUpsert

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryUpsert) SetSubscriptionURL

func (u *RepositoryUpsert) SetSubscriptionURL(v string) *RepositoryUpsert

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryUpsert) SetSvnURL

func (u *RepositoryUpsert) SetSvnURL(v string) *RepositoryUpsert

SetSvnURL sets the "svn_url" field.

func (*RepositoryUpsert) SetTagsURL

func (u *RepositoryUpsert) SetTagsURL(v string) *RepositoryUpsert

SetTagsURL sets the "tags_url" field.

func (*RepositoryUpsert) SetTeamsURL

func (u *RepositoryUpsert) SetTeamsURL(v string) *RepositoryUpsert

SetTeamsURL sets the "teams_url" field.

func (*RepositoryUpsert) SetTopics

func (u *RepositoryUpsert) SetTopics(v []string) *RepositoryUpsert

SetTopics sets the "topics" field.

func (*RepositoryUpsert) SetTreesURL

func (u *RepositoryUpsert) SetTreesURL(v string) *RepositoryUpsert

SetTreesURL sets the "trees_url" field.

func (*RepositoryUpsert) SetURL

SetURL sets the "url" field.

func (*RepositoryUpsert) SetUpdatedAt

func (u *RepositoryUpsert) SetUpdatedAt(v time.Time) *RepositoryUpsert

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryUpsert) SetVisibility

SetVisibility sets the "visibility" field.

func (*RepositoryUpsert) SetWatchers

func (u *RepositoryUpsert) SetWatchers(v int64) *RepositoryUpsert

SetWatchers sets the "watchers" field.

func (*RepositoryUpsert) SetWatchersCount

func (u *RepositoryUpsert) SetWatchersCount(v int64) *RepositoryUpsert

SetWatchersCount sets the "watchers_count" field.

func (*RepositoryUpsert) UpdateArchiveURL

func (u *RepositoryUpsert) UpdateArchiveURL() *RepositoryUpsert

UpdateArchiveURL sets the "archive_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateArchived

func (u *RepositoryUpsert) UpdateArchived() *RepositoryUpsert

UpdateArchived sets the "archived" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateAssigneesURL

func (u *RepositoryUpsert) UpdateAssigneesURL() *RepositoryUpsert

UpdateAssigneesURL sets the "assignees_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateBlobsURL

func (u *RepositoryUpsert) UpdateBlobsURL() *RepositoryUpsert

UpdateBlobsURL sets the "blobs_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateBranchesURL

func (u *RepositoryUpsert) UpdateBranchesURL() *RepositoryUpsert

UpdateBranchesURL sets the "branches_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateCloneURL

func (u *RepositoryUpsert) UpdateCloneURL() *RepositoryUpsert

UpdateCloneURL sets the "clone_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateCollaboratorsURL

func (u *RepositoryUpsert) UpdateCollaboratorsURL() *RepositoryUpsert

UpdateCollaboratorsURL sets the "collaborators_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateCommentsURL

func (u *RepositoryUpsert) UpdateCommentsURL() *RepositoryUpsert

UpdateCommentsURL sets the "comments_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateCommitsURL

func (u *RepositoryUpsert) UpdateCommitsURL() *RepositoryUpsert

UpdateCommitsURL sets the "commits_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateCompareURL

func (u *RepositoryUpsert) UpdateCompareURL() *RepositoryUpsert

UpdateCompareURL sets the "compare_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateContentsURL

func (u *RepositoryUpsert) UpdateContentsURL() *RepositoryUpsert

UpdateContentsURL sets the "contents_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateContributorsURL

func (u *RepositoryUpsert) UpdateContributorsURL() *RepositoryUpsert

UpdateContributorsURL sets the "contributors_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateCreatedAt

func (u *RepositoryUpsert) UpdateCreatedAt() *RepositoryUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateDefaultBranch

func (u *RepositoryUpsert) UpdateDefaultBranch() *RepositoryUpsert

UpdateDefaultBranch sets the "default_branch" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateDeploymentsURL

func (u *RepositoryUpsert) UpdateDeploymentsURL() *RepositoryUpsert

UpdateDeploymentsURL sets the "deployments_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateDescription

func (u *RepositoryUpsert) UpdateDescription() *RepositoryUpsert

UpdateDescription sets the "description" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateDisabled

func (u *RepositoryUpsert) UpdateDisabled() *RepositoryUpsert

UpdateDisabled sets the "disabled" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateDownloadsURL

func (u *RepositoryUpsert) UpdateDownloadsURL() *RepositoryUpsert

UpdateDownloadsURL sets the "downloads_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateEventsURL

func (u *RepositoryUpsert) UpdateEventsURL() *RepositoryUpsert

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateFork

func (u *RepositoryUpsert) UpdateFork() *RepositoryUpsert

UpdateFork sets the "fork" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateForks

func (u *RepositoryUpsert) UpdateForks() *RepositoryUpsert

UpdateForks sets the "forks" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateForksCount

func (u *RepositoryUpsert) UpdateForksCount() *RepositoryUpsert

UpdateForksCount sets the "forks_count" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateForksURL

func (u *RepositoryUpsert) UpdateForksURL() *RepositoryUpsert

UpdateForksURL sets the "forks_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateFullName

func (u *RepositoryUpsert) UpdateFullName() *RepositoryUpsert

UpdateFullName sets the "full_name" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateGitCommitsURL

func (u *RepositoryUpsert) UpdateGitCommitsURL() *RepositoryUpsert

UpdateGitCommitsURL sets the "git_commits_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateGitRefsURL

func (u *RepositoryUpsert) UpdateGitRefsURL() *RepositoryUpsert

UpdateGitRefsURL sets the "git_refs_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateGitTagsURL

func (u *RepositoryUpsert) UpdateGitTagsURL() *RepositoryUpsert

UpdateGitTagsURL sets the "git_tags_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateGitURL

func (u *RepositoryUpsert) UpdateGitURL() *RepositoryUpsert

UpdateGitURL sets the "git_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHTMLURL

func (u *RepositoryUpsert) UpdateHTMLURL() *RepositoryUpsert

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHasDiscussions

func (u *RepositoryUpsert) UpdateHasDiscussions() *RepositoryUpsert

UpdateHasDiscussions sets the "has_discussions" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHasDownloads

func (u *RepositoryUpsert) UpdateHasDownloads() *RepositoryUpsert

UpdateHasDownloads sets the "has_downloads" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHasIssuesEnabled

func (u *RepositoryUpsert) UpdateHasIssuesEnabled() *RepositoryUpsert

UpdateHasIssuesEnabled sets the "has_issues_enabled" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHasPages

func (u *RepositoryUpsert) UpdateHasPages() *RepositoryUpsert

UpdateHasPages sets the "has_pages" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHasProjects

func (u *RepositoryUpsert) UpdateHasProjects() *RepositoryUpsert

UpdateHasProjects sets the "has_projects" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHasWiki

func (u *RepositoryUpsert) UpdateHasWiki() *RepositoryUpsert

UpdateHasWiki sets the "has_wiki" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHomepage

func (u *RepositoryUpsert) UpdateHomepage() *RepositoryUpsert

UpdateHomepage sets the "homepage" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateHooksURL

func (u *RepositoryUpsert) UpdateHooksURL() *RepositoryUpsert

UpdateHooksURL sets the "hooks_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateIsTemplate

func (u *RepositoryUpsert) UpdateIsTemplate() *RepositoryUpsert

UpdateIsTemplate sets the "is_template" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateIssueCommentURL

func (u *RepositoryUpsert) UpdateIssueCommentURL() *RepositoryUpsert

UpdateIssueCommentURL sets the "issue_comment_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateIssueEventsURL

func (u *RepositoryUpsert) UpdateIssueEventsURL() *RepositoryUpsert

UpdateIssueEventsURL sets the "issue_events_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateIssuesURL

func (u *RepositoryUpsert) UpdateIssuesURL() *RepositoryUpsert

UpdateIssuesURL sets the "issues_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateKeysURL

func (u *RepositoryUpsert) UpdateKeysURL() *RepositoryUpsert

UpdateKeysURL sets the "keys_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateLabelsURL

func (u *RepositoryUpsert) UpdateLabelsURL() *RepositoryUpsert

UpdateLabelsURL sets the "labels_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateLanguage

func (u *RepositoryUpsert) UpdateLanguage() *RepositoryUpsert

UpdateLanguage sets the "language" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateLanguagesURL

func (u *RepositoryUpsert) UpdateLanguagesURL() *RepositoryUpsert

UpdateLanguagesURL sets the "languages_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateLicense

func (u *RepositoryUpsert) UpdateLicense() *RepositoryUpsert

UpdateLicense sets the "license" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateMergesURL

func (u *RepositoryUpsert) UpdateMergesURL() *RepositoryUpsert

UpdateMergesURL sets the "merges_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateMilestonesURL

func (u *RepositoryUpsert) UpdateMilestonesURL() *RepositoryUpsert

UpdateMilestonesURL sets the "milestones_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateMirrorURL

func (u *RepositoryUpsert) UpdateMirrorURL() *RepositoryUpsert

UpdateMirrorURL sets the "mirror_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateName

func (u *RepositoryUpsert) UpdateName() *RepositoryUpsert

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

func (*RepositoryUpsert) UpdateNetworkCount

func (u *RepositoryUpsert) UpdateNetworkCount() *RepositoryUpsert

UpdateNetworkCount sets the "network_count" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateNodeID

func (u *RepositoryUpsert) UpdateNodeID() *RepositoryUpsert

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateNotificationsURL

func (u *RepositoryUpsert) UpdateNotificationsURL() *RepositoryUpsert

UpdateNotificationsURL sets the "notifications_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateOpenIssues

func (u *RepositoryUpsert) UpdateOpenIssues() *RepositoryUpsert

UpdateOpenIssues sets the "open_issues" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateOpenIssuesCount

func (u *RepositoryUpsert) UpdateOpenIssuesCount() *RepositoryUpsert

UpdateOpenIssuesCount sets the "open_issues_count" field to the value that was provided on create.

func (*RepositoryUpsert) UpdatePrivate

func (u *RepositoryUpsert) UpdatePrivate() *RepositoryUpsert

UpdatePrivate sets the "private" field to the value that was provided on create.

func (*RepositoryUpsert) UpdatePullsURL

func (u *RepositoryUpsert) UpdatePullsURL() *RepositoryUpsert

UpdatePullsURL sets the "pulls_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdatePushedAt

func (u *RepositoryUpsert) UpdatePushedAt() *RepositoryUpsert

UpdatePushedAt sets the "pushed_at" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateReleasesURL

func (u *RepositoryUpsert) UpdateReleasesURL() *RepositoryUpsert

UpdateReleasesURL sets the "releases_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateSSHURL

func (u *RepositoryUpsert) UpdateSSHURL() *RepositoryUpsert

UpdateSSHURL sets the "ssh_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateSize

func (u *RepositoryUpsert) UpdateSize() *RepositoryUpsert

UpdateSize sets the "size" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateStargazersCount

func (u *RepositoryUpsert) UpdateStargazersCount() *RepositoryUpsert

UpdateStargazersCount sets the "stargazers_count" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateStargazersURL

func (u *RepositoryUpsert) UpdateStargazersURL() *RepositoryUpsert

UpdateStargazersURL sets the "stargazers_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateStatusesURL

func (u *RepositoryUpsert) UpdateStatusesURL() *RepositoryUpsert

UpdateStatusesURL sets the "statuses_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateSubscribersCount

func (u *RepositoryUpsert) UpdateSubscribersCount() *RepositoryUpsert

UpdateSubscribersCount sets the "subscribers_count" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateSubscribersURL

func (u *RepositoryUpsert) UpdateSubscribersURL() *RepositoryUpsert

UpdateSubscribersURL sets the "subscribers_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateSubscriptionURL

func (u *RepositoryUpsert) UpdateSubscriptionURL() *RepositoryUpsert

UpdateSubscriptionURL sets the "subscription_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateSvnURL

func (u *RepositoryUpsert) UpdateSvnURL() *RepositoryUpsert

UpdateSvnURL sets the "svn_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateTagsURL

func (u *RepositoryUpsert) UpdateTagsURL() *RepositoryUpsert

UpdateTagsURL sets the "tags_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateTeamsURL

func (u *RepositoryUpsert) UpdateTeamsURL() *RepositoryUpsert

UpdateTeamsURL sets the "teams_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateTopics

func (u *RepositoryUpsert) UpdateTopics() *RepositoryUpsert

UpdateTopics sets the "topics" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateTreesURL

func (u *RepositoryUpsert) UpdateTreesURL() *RepositoryUpsert

UpdateTreesURL sets the "trees_url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateURL

func (u *RepositoryUpsert) UpdateURL() *RepositoryUpsert

UpdateURL sets the "url" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateUpdatedAt

func (u *RepositoryUpsert) UpdateUpdatedAt() *RepositoryUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateVisibility

func (u *RepositoryUpsert) UpdateVisibility() *RepositoryUpsert

UpdateVisibility sets the "visibility" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateWatchers

func (u *RepositoryUpsert) UpdateWatchers() *RepositoryUpsert

UpdateWatchers sets the "watchers" field to the value that was provided on create.

func (*RepositoryUpsert) UpdateWatchersCount

func (u *RepositoryUpsert) UpdateWatchersCount() *RepositoryUpsert

UpdateWatchersCount sets the "watchers_count" field to the value that was provided on create.

type RepositoryUpsertBulk

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

RepositoryUpsertBulk is the builder for "upsert"-ing a bulk of Repository nodes.

func (*RepositoryUpsertBulk) AddForks

AddForks adds v to the "forks" field.

func (*RepositoryUpsertBulk) AddForksCount

func (u *RepositoryUpsertBulk) AddForksCount(v int64) *RepositoryUpsertBulk

AddForksCount adds v to the "forks_count" field.

func (*RepositoryUpsertBulk) AddNetworkCount

func (u *RepositoryUpsertBulk) AddNetworkCount(v int64) *RepositoryUpsertBulk

AddNetworkCount adds v to the "network_count" field.

func (*RepositoryUpsertBulk) AddOpenIssues

func (u *RepositoryUpsertBulk) AddOpenIssues(v int64) *RepositoryUpsertBulk

AddOpenIssues adds v to the "open_issues" field.

func (*RepositoryUpsertBulk) AddOpenIssuesCount

func (u *RepositoryUpsertBulk) AddOpenIssuesCount(v int64) *RepositoryUpsertBulk

AddOpenIssuesCount adds v to the "open_issues_count" field.

func (*RepositoryUpsertBulk) AddSize

AddSize adds v to the "size" field.

func (*RepositoryUpsertBulk) AddStargazersCount

func (u *RepositoryUpsertBulk) AddStargazersCount(v int64) *RepositoryUpsertBulk

AddStargazersCount adds v to the "stargazers_count" field.

func (*RepositoryUpsertBulk) AddSubscribersCount

func (u *RepositoryUpsertBulk) AddSubscribersCount(v int64) *RepositoryUpsertBulk

AddSubscribersCount adds v to the "subscribers_count" field.

func (*RepositoryUpsertBulk) AddWatchers

func (u *RepositoryUpsertBulk) AddWatchers(v int64) *RepositoryUpsertBulk

AddWatchers adds v to the "watchers" field.

func (*RepositoryUpsertBulk) AddWatchersCount

func (u *RepositoryUpsertBulk) AddWatchersCount(v int64) *RepositoryUpsertBulk

AddWatchersCount adds v to the "watchers_count" field.

func (*RepositoryUpsertBulk) ClearDescription

func (u *RepositoryUpsertBulk) ClearDescription() *RepositoryUpsertBulk

ClearDescription clears the value of the "description" field.

func (*RepositoryUpsertBulk) ClearHomepage

func (u *RepositoryUpsertBulk) ClearHomepage() *RepositoryUpsertBulk

ClearHomepage clears the value of the "homepage" field.

func (*RepositoryUpsertBulk) ClearLanguage

func (u *RepositoryUpsertBulk) ClearLanguage() *RepositoryUpsertBulk

ClearLanguage clears the value of the "language" field.

func (*RepositoryUpsertBulk) ClearLicense

func (u *RepositoryUpsertBulk) ClearLicense() *RepositoryUpsertBulk

ClearLicense clears the value of the "license" field.

func (*RepositoryUpsertBulk) ClearMirrorURL

func (u *RepositoryUpsertBulk) ClearMirrorURL() *RepositoryUpsertBulk

ClearMirrorURL clears the value of the "mirror_url" field.

func (*RepositoryUpsertBulk) ClearVisibility

func (u *RepositoryUpsertBulk) ClearVisibility() *RepositoryUpsertBulk

ClearVisibility clears the value of the "visibility" field.

func (*RepositoryUpsertBulk) DoNothing

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

func (*RepositoryUpsertBulk) Exec

Exec executes the query.

func (*RepositoryUpsertBulk) ExecX

func (u *RepositoryUpsertBulk) ExecX(ctx context.Context)

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

func (*RepositoryUpsertBulk) Ignore

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

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

func (*RepositoryUpsertBulk) SetArchiveURL

func (u *RepositoryUpsertBulk) SetArchiveURL(v string) *RepositoryUpsertBulk

SetArchiveURL sets the "archive_url" field.

func (*RepositoryUpsertBulk) SetArchived

func (u *RepositoryUpsertBulk) SetArchived(v bool) *RepositoryUpsertBulk

SetArchived sets the "archived" field.

func (*RepositoryUpsertBulk) SetAssigneesURL

func (u *RepositoryUpsertBulk) SetAssigneesURL(v string) *RepositoryUpsertBulk

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryUpsertBulk) SetBlobsURL

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryUpsertBulk) SetBranchesURL

func (u *RepositoryUpsertBulk) SetBranchesURL(v string) *RepositoryUpsertBulk

SetBranchesURL sets the "branches_url" field.

func (*RepositoryUpsertBulk) SetCloneURL

SetCloneURL sets the "clone_url" field.

func (*RepositoryUpsertBulk) SetCollaboratorsURL

func (u *RepositoryUpsertBulk) SetCollaboratorsURL(v string) *RepositoryUpsertBulk

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryUpsertBulk) SetCommentsURL

func (u *RepositoryUpsertBulk) SetCommentsURL(v string) *RepositoryUpsertBulk

SetCommentsURL sets the "comments_url" field.

func (*RepositoryUpsertBulk) SetCommitsURL

func (u *RepositoryUpsertBulk) SetCommitsURL(v string) *RepositoryUpsertBulk

SetCommitsURL sets the "commits_url" field.

func (*RepositoryUpsertBulk) SetCompareURL

func (u *RepositoryUpsertBulk) SetCompareURL(v string) *RepositoryUpsertBulk

SetCompareURL sets the "compare_url" field.

func (*RepositoryUpsertBulk) SetContentsURL

func (u *RepositoryUpsertBulk) SetContentsURL(v string) *RepositoryUpsertBulk

SetContentsURL sets the "contents_url" field.

func (*RepositoryUpsertBulk) SetContributorsURL

func (u *RepositoryUpsertBulk) SetContributorsURL(v string) *RepositoryUpsertBulk

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryUpsertBulk) SetCreatedAt

func (u *RepositoryUpsertBulk) SetCreatedAt(v time.Time) *RepositoryUpsertBulk

SetCreatedAt sets the "created_at" field.

func (*RepositoryUpsertBulk) SetDefaultBranch

func (u *RepositoryUpsertBulk) SetDefaultBranch(v string) *RepositoryUpsertBulk

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryUpsertBulk) SetDeploymentsURL

func (u *RepositoryUpsertBulk) SetDeploymentsURL(v string) *RepositoryUpsertBulk

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryUpsertBulk) SetDescription

func (u *RepositoryUpsertBulk) SetDescription(v string) *RepositoryUpsertBulk

SetDescription sets the "description" field.

func (*RepositoryUpsertBulk) SetDisabled

func (u *RepositoryUpsertBulk) SetDisabled(v bool) *RepositoryUpsertBulk

SetDisabled sets the "disabled" field.

func (*RepositoryUpsertBulk) SetDownloadsURL

func (u *RepositoryUpsertBulk) SetDownloadsURL(v string) *RepositoryUpsertBulk

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryUpsertBulk) SetEventsURL

func (u *RepositoryUpsertBulk) SetEventsURL(v string) *RepositoryUpsertBulk

SetEventsURL sets the "events_url" field.

func (*RepositoryUpsertBulk) SetFork

SetFork sets the "fork" field.

func (*RepositoryUpsertBulk) SetForks

SetForks sets the "forks" field.

func (*RepositoryUpsertBulk) SetForksCount

func (u *RepositoryUpsertBulk) SetForksCount(v int64) *RepositoryUpsertBulk

SetForksCount sets the "forks_count" field.

func (*RepositoryUpsertBulk) SetForksURL

SetForksURL sets the "forks_url" field.

func (*RepositoryUpsertBulk) SetFullName

SetFullName sets the "full_name" field.

func (*RepositoryUpsertBulk) SetGitCommitsURL

func (u *RepositoryUpsertBulk) SetGitCommitsURL(v string) *RepositoryUpsertBulk

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryUpsertBulk) SetGitRefsURL

func (u *RepositoryUpsertBulk) SetGitRefsURL(v string) *RepositoryUpsertBulk

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryUpsertBulk) SetGitTagsURL

func (u *RepositoryUpsertBulk) SetGitTagsURL(v string) *RepositoryUpsertBulk

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryUpsertBulk) SetGitURL

SetGitURL sets the "git_url" field.

func (*RepositoryUpsertBulk) SetHTMLURL

SetHTMLURL sets the "html_url" field.

func (*RepositoryUpsertBulk) SetHasDiscussions

func (u *RepositoryUpsertBulk) SetHasDiscussions(v bool) *RepositoryUpsertBulk

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryUpsertBulk) SetHasDownloads

func (u *RepositoryUpsertBulk) SetHasDownloads(v bool) *RepositoryUpsertBulk

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryUpsertBulk) SetHasIssuesEnabled

func (u *RepositoryUpsertBulk) SetHasIssuesEnabled(v bool) *RepositoryUpsertBulk

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryUpsertBulk) SetHasPages

func (u *RepositoryUpsertBulk) SetHasPages(v bool) *RepositoryUpsertBulk

SetHasPages sets the "has_pages" field.

func (*RepositoryUpsertBulk) SetHasProjects

func (u *RepositoryUpsertBulk) SetHasProjects(v bool) *RepositoryUpsertBulk

SetHasProjects sets the "has_projects" field.

func (*RepositoryUpsertBulk) SetHasWiki

SetHasWiki sets the "has_wiki" field.

func (*RepositoryUpsertBulk) SetHomepage

SetHomepage sets the "homepage" field.

func (*RepositoryUpsertBulk) SetHooksURL

SetHooksURL sets the "hooks_url" field.

func (*RepositoryUpsertBulk) SetIsTemplate

func (u *RepositoryUpsertBulk) SetIsTemplate(v bool) *RepositoryUpsertBulk

SetIsTemplate sets the "is_template" field.

func (*RepositoryUpsertBulk) SetIssueCommentURL

func (u *RepositoryUpsertBulk) SetIssueCommentURL(v string) *RepositoryUpsertBulk

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryUpsertBulk) SetIssueEventsURL

func (u *RepositoryUpsertBulk) SetIssueEventsURL(v string) *RepositoryUpsertBulk

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryUpsertBulk) SetIssuesURL

func (u *RepositoryUpsertBulk) SetIssuesURL(v string) *RepositoryUpsertBulk

SetIssuesURL sets the "issues_url" field.

func (*RepositoryUpsertBulk) SetKeysURL

SetKeysURL sets the "keys_url" field.

func (*RepositoryUpsertBulk) SetLabelsURL

func (u *RepositoryUpsertBulk) SetLabelsURL(v string) *RepositoryUpsertBulk

SetLabelsURL sets the "labels_url" field.

func (*RepositoryUpsertBulk) SetLanguage

SetLanguage sets the "language" field.

func (*RepositoryUpsertBulk) SetLanguagesURL

func (u *RepositoryUpsertBulk) SetLanguagesURL(v string) *RepositoryUpsertBulk

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryUpsertBulk) SetLicense

SetLicense sets the "license" field.

func (*RepositoryUpsertBulk) SetMergesURL

func (u *RepositoryUpsertBulk) SetMergesURL(v string) *RepositoryUpsertBulk

SetMergesURL sets the "merges_url" field.

func (*RepositoryUpsertBulk) SetMilestonesURL

func (u *RepositoryUpsertBulk) SetMilestonesURL(v string) *RepositoryUpsertBulk

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryUpsertBulk) SetMirrorURL

func (u *RepositoryUpsertBulk) SetMirrorURL(v string) *RepositoryUpsertBulk

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryUpsertBulk) SetName

SetName sets the "name" field.

func (*RepositoryUpsertBulk) SetNetworkCount

func (u *RepositoryUpsertBulk) SetNetworkCount(v int64) *RepositoryUpsertBulk

SetNetworkCount sets the "network_count" field.

func (*RepositoryUpsertBulk) SetNodeID

SetNodeID sets the "node_id" field.

func (*RepositoryUpsertBulk) SetNotificationsURL

func (u *RepositoryUpsertBulk) SetNotificationsURL(v string) *RepositoryUpsertBulk

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryUpsertBulk) SetOpenIssues

func (u *RepositoryUpsertBulk) SetOpenIssues(v int64) *RepositoryUpsertBulk

SetOpenIssues sets the "open_issues" field.

func (*RepositoryUpsertBulk) SetOpenIssuesCount

func (u *RepositoryUpsertBulk) SetOpenIssuesCount(v int64) *RepositoryUpsertBulk

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryUpsertBulk) SetPrivate

SetPrivate sets the "private" field.

func (*RepositoryUpsertBulk) SetPullsURL

SetPullsURL sets the "pulls_url" field.

func (*RepositoryUpsertBulk) SetPushedAt

SetPushedAt sets the "pushed_at" field.

func (*RepositoryUpsertBulk) SetReleasesURL

func (u *RepositoryUpsertBulk) SetReleasesURL(v string) *RepositoryUpsertBulk

SetReleasesURL sets the "releases_url" field.

func (*RepositoryUpsertBulk) SetSSHURL

SetSSHURL sets the "ssh_url" field.

func (*RepositoryUpsertBulk) SetSize

SetSize sets the "size" field.

func (*RepositoryUpsertBulk) SetStargazersCount

func (u *RepositoryUpsertBulk) SetStargazersCount(v int64) *RepositoryUpsertBulk

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryUpsertBulk) SetStargazersURL

func (u *RepositoryUpsertBulk) SetStargazersURL(v string) *RepositoryUpsertBulk

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryUpsertBulk) SetStatusesURL

func (u *RepositoryUpsertBulk) SetStatusesURL(v string) *RepositoryUpsertBulk

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryUpsertBulk) SetSubscribersCount

func (u *RepositoryUpsertBulk) SetSubscribersCount(v int64) *RepositoryUpsertBulk

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryUpsertBulk) SetSubscribersURL

func (u *RepositoryUpsertBulk) SetSubscribersURL(v string) *RepositoryUpsertBulk

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryUpsertBulk) SetSubscriptionURL

func (u *RepositoryUpsertBulk) SetSubscriptionURL(v string) *RepositoryUpsertBulk

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryUpsertBulk) SetSvnURL

SetSvnURL sets the "svn_url" field.

func (*RepositoryUpsertBulk) SetTagsURL

SetTagsURL sets the "tags_url" field.

func (*RepositoryUpsertBulk) SetTeamsURL

SetTeamsURL sets the "teams_url" field.

func (*RepositoryUpsertBulk) SetTopics

SetTopics sets the "topics" field.

func (*RepositoryUpsertBulk) SetTreesURL

SetTreesURL sets the "trees_url" field.

func (*RepositoryUpsertBulk) SetURL

SetURL sets the "url" field.

func (*RepositoryUpsertBulk) SetUpdatedAt

func (u *RepositoryUpsertBulk) SetUpdatedAt(v time.Time) *RepositoryUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryUpsertBulk) SetVisibility

SetVisibility sets the "visibility" field.

func (*RepositoryUpsertBulk) SetWatchers

func (u *RepositoryUpsertBulk) SetWatchers(v int64) *RepositoryUpsertBulk

SetWatchers sets the "watchers" field.

func (*RepositoryUpsertBulk) SetWatchersCount

func (u *RepositoryUpsertBulk) SetWatchersCount(v int64) *RepositoryUpsertBulk

SetWatchersCount sets the "watchers_count" field.

func (*RepositoryUpsertBulk) Update

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

func (*RepositoryUpsertBulk) UpdateArchiveURL

func (u *RepositoryUpsertBulk) UpdateArchiveURL() *RepositoryUpsertBulk

UpdateArchiveURL sets the "archive_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateArchived

func (u *RepositoryUpsertBulk) UpdateArchived() *RepositoryUpsertBulk

UpdateArchived sets the "archived" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateAssigneesURL

func (u *RepositoryUpsertBulk) UpdateAssigneesURL() *RepositoryUpsertBulk

UpdateAssigneesURL sets the "assignees_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateBlobsURL

func (u *RepositoryUpsertBulk) UpdateBlobsURL() *RepositoryUpsertBulk

UpdateBlobsURL sets the "blobs_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateBranchesURL

func (u *RepositoryUpsertBulk) UpdateBranchesURL() *RepositoryUpsertBulk

UpdateBranchesURL sets the "branches_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateCloneURL

func (u *RepositoryUpsertBulk) UpdateCloneURL() *RepositoryUpsertBulk

UpdateCloneURL sets the "clone_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateCollaboratorsURL

func (u *RepositoryUpsertBulk) UpdateCollaboratorsURL() *RepositoryUpsertBulk

UpdateCollaboratorsURL sets the "collaborators_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateCommentsURL

func (u *RepositoryUpsertBulk) UpdateCommentsURL() *RepositoryUpsertBulk

UpdateCommentsURL sets the "comments_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateCommitsURL

func (u *RepositoryUpsertBulk) UpdateCommitsURL() *RepositoryUpsertBulk

UpdateCommitsURL sets the "commits_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateCompareURL

func (u *RepositoryUpsertBulk) UpdateCompareURL() *RepositoryUpsertBulk

UpdateCompareURL sets the "compare_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateContentsURL

func (u *RepositoryUpsertBulk) UpdateContentsURL() *RepositoryUpsertBulk

UpdateContentsURL sets the "contents_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateContributorsURL

func (u *RepositoryUpsertBulk) UpdateContributorsURL() *RepositoryUpsertBulk

UpdateContributorsURL sets the "contributors_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateCreatedAt

func (u *RepositoryUpsertBulk) UpdateCreatedAt() *RepositoryUpsertBulk

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateDefaultBranch

func (u *RepositoryUpsertBulk) UpdateDefaultBranch() *RepositoryUpsertBulk

UpdateDefaultBranch sets the "default_branch" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateDeploymentsURL

func (u *RepositoryUpsertBulk) UpdateDeploymentsURL() *RepositoryUpsertBulk

UpdateDeploymentsURL sets the "deployments_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateDescription

func (u *RepositoryUpsertBulk) UpdateDescription() *RepositoryUpsertBulk

UpdateDescription sets the "description" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateDisabled

func (u *RepositoryUpsertBulk) UpdateDisabled() *RepositoryUpsertBulk

UpdateDisabled sets the "disabled" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateDownloadsURL

func (u *RepositoryUpsertBulk) UpdateDownloadsURL() *RepositoryUpsertBulk

UpdateDownloadsURL sets the "downloads_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateEventsURL

func (u *RepositoryUpsertBulk) UpdateEventsURL() *RepositoryUpsertBulk

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateFork

func (u *RepositoryUpsertBulk) UpdateFork() *RepositoryUpsertBulk

UpdateFork sets the "fork" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateForks

func (u *RepositoryUpsertBulk) UpdateForks() *RepositoryUpsertBulk

UpdateForks sets the "forks" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateForksCount

func (u *RepositoryUpsertBulk) UpdateForksCount() *RepositoryUpsertBulk

UpdateForksCount sets the "forks_count" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateForksURL

func (u *RepositoryUpsertBulk) UpdateForksURL() *RepositoryUpsertBulk

UpdateForksURL sets the "forks_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateFullName

func (u *RepositoryUpsertBulk) UpdateFullName() *RepositoryUpsertBulk

UpdateFullName sets the "full_name" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateGitCommitsURL

func (u *RepositoryUpsertBulk) UpdateGitCommitsURL() *RepositoryUpsertBulk

UpdateGitCommitsURL sets the "git_commits_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateGitRefsURL

func (u *RepositoryUpsertBulk) UpdateGitRefsURL() *RepositoryUpsertBulk

UpdateGitRefsURL sets the "git_refs_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateGitTagsURL

func (u *RepositoryUpsertBulk) UpdateGitTagsURL() *RepositoryUpsertBulk

UpdateGitTagsURL sets the "git_tags_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateGitURL

func (u *RepositoryUpsertBulk) UpdateGitURL() *RepositoryUpsertBulk

UpdateGitURL sets the "git_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHTMLURL

func (u *RepositoryUpsertBulk) UpdateHTMLURL() *RepositoryUpsertBulk

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHasDiscussions

func (u *RepositoryUpsertBulk) UpdateHasDiscussions() *RepositoryUpsertBulk

UpdateHasDiscussions sets the "has_discussions" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHasDownloads

func (u *RepositoryUpsertBulk) UpdateHasDownloads() *RepositoryUpsertBulk

UpdateHasDownloads sets the "has_downloads" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHasIssuesEnabled

func (u *RepositoryUpsertBulk) UpdateHasIssuesEnabled() *RepositoryUpsertBulk

UpdateHasIssuesEnabled sets the "has_issues_enabled" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHasPages

func (u *RepositoryUpsertBulk) UpdateHasPages() *RepositoryUpsertBulk

UpdateHasPages sets the "has_pages" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHasProjects

func (u *RepositoryUpsertBulk) UpdateHasProjects() *RepositoryUpsertBulk

UpdateHasProjects sets the "has_projects" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHasWiki

func (u *RepositoryUpsertBulk) UpdateHasWiki() *RepositoryUpsertBulk

UpdateHasWiki sets the "has_wiki" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHomepage

func (u *RepositoryUpsertBulk) UpdateHomepage() *RepositoryUpsertBulk

UpdateHomepage sets the "homepage" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateHooksURL

func (u *RepositoryUpsertBulk) UpdateHooksURL() *RepositoryUpsertBulk

UpdateHooksURL sets the "hooks_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateIsTemplate

func (u *RepositoryUpsertBulk) UpdateIsTemplate() *RepositoryUpsertBulk

UpdateIsTemplate sets the "is_template" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateIssueCommentURL

func (u *RepositoryUpsertBulk) UpdateIssueCommentURL() *RepositoryUpsertBulk

UpdateIssueCommentURL sets the "issue_comment_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateIssueEventsURL

func (u *RepositoryUpsertBulk) UpdateIssueEventsURL() *RepositoryUpsertBulk

UpdateIssueEventsURL sets the "issue_events_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateIssuesURL

func (u *RepositoryUpsertBulk) UpdateIssuesURL() *RepositoryUpsertBulk

UpdateIssuesURL sets the "issues_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateKeysURL

func (u *RepositoryUpsertBulk) UpdateKeysURL() *RepositoryUpsertBulk

UpdateKeysURL sets the "keys_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateLabelsURL

func (u *RepositoryUpsertBulk) UpdateLabelsURL() *RepositoryUpsertBulk

UpdateLabelsURL sets the "labels_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateLanguage

func (u *RepositoryUpsertBulk) UpdateLanguage() *RepositoryUpsertBulk

UpdateLanguage sets the "language" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateLanguagesURL

func (u *RepositoryUpsertBulk) UpdateLanguagesURL() *RepositoryUpsertBulk

UpdateLanguagesURL sets the "languages_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateLicense

func (u *RepositoryUpsertBulk) UpdateLicense() *RepositoryUpsertBulk

UpdateLicense sets the "license" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateMergesURL

func (u *RepositoryUpsertBulk) UpdateMergesURL() *RepositoryUpsertBulk

UpdateMergesURL sets the "merges_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateMilestonesURL

func (u *RepositoryUpsertBulk) UpdateMilestonesURL() *RepositoryUpsertBulk

UpdateMilestonesURL sets the "milestones_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateMirrorURL

func (u *RepositoryUpsertBulk) UpdateMirrorURL() *RepositoryUpsertBulk

UpdateMirrorURL sets the "mirror_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateName

func (u *RepositoryUpsertBulk) UpdateName() *RepositoryUpsertBulk

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

func (*RepositoryUpsertBulk) UpdateNetworkCount

func (u *RepositoryUpsertBulk) UpdateNetworkCount() *RepositoryUpsertBulk

UpdateNetworkCount sets the "network_count" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateNewValues

func (u *RepositoryUpsertBulk) UpdateNewValues() *RepositoryUpsertBulk

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

client.Repository.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(repository.FieldID)
		}),
	).
	Exec(ctx)

func (*RepositoryUpsertBulk) UpdateNodeID

func (u *RepositoryUpsertBulk) UpdateNodeID() *RepositoryUpsertBulk

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateNotificationsURL

func (u *RepositoryUpsertBulk) UpdateNotificationsURL() *RepositoryUpsertBulk

UpdateNotificationsURL sets the "notifications_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateOpenIssues

func (u *RepositoryUpsertBulk) UpdateOpenIssues() *RepositoryUpsertBulk

UpdateOpenIssues sets the "open_issues" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateOpenIssuesCount

func (u *RepositoryUpsertBulk) UpdateOpenIssuesCount() *RepositoryUpsertBulk

UpdateOpenIssuesCount sets the "open_issues_count" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdatePrivate

func (u *RepositoryUpsertBulk) UpdatePrivate() *RepositoryUpsertBulk

UpdatePrivate sets the "private" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdatePullsURL

func (u *RepositoryUpsertBulk) UpdatePullsURL() *RepositoryUpsertBulk

UpdatePullsURL sets the "pulls_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdatePushedAt

func (u *RepositoryUpsertBulk) UpdatePushedAt() *RepositoryUpsertBulk

UpdatePushedAt sets the "pushed_at" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateReleasesURL

func (u *RepositoryUpsertBulk) UpdateReleasesURL() *RepositoryUpsertBulk

UpdateReleasesURL sets the "releases_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateSSHURL

func (u *RepositoryUpsertBulk) UpdateSSHURL() *RepositoryUpsertBulk

UpdateSSHURL sets the "ssh_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateSize

func (u *RepositoryUpsertBulk) UpdateSize() *RepositoryUpsertBulk

UpdateSize sets the "size" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateStargazersCount

func (u *RepositoryUpsertBulk) UpdateStargazersCount() *RepositoryUpsertBulk

UpdateStargazersCount sets the "stargazers_count" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateStargazersURL

func (u *RepositoryUpsertBulk) UpdateStargazersURL() *RepositoryUpsertBulk

UpdateStargazersURL sets the "stargazers_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateStatusesURL

func (u *RepositoryUpsertBulk) UpdateStatusesURL() *RepositoryUpsertBulk

UpdateStatusesURL sets the "statuses_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateSubscribersCount

func (u *RepositoryUpsertBulk) UpdateSubscribersCount() *RepositoryUpsertBulk

UpdateSubscribersCount sets the "subscribers_count" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateSubscribersURL

func (u *RepositoryUpsertBulk) UpdateSubscribersURL() *RepositoryUpsertBulk

UpdateSubscribersURL sets the "subscribers_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateSubscriptionURL

func (u *RepositoryUpsertBulk) UpdateSubscriptionURL() *RepositoryUpsertBulk

UpdateSubscriptionURL sets the "subscription_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateSvnURL

func (u *RepositoryUpsertBulk) UpdateSvnURL() *RepositoryUpsertBulk

UpdateSvnURL sets the "svn_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateTagsURL

func (u *RepositoryUpsertBulk) UpdateTagsURL() *RepositoryUpsertBulk

UpdateTagsURL sets the "tags_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateTeamsURL

func (u *RepositoryUpsertBulk) UpdateTeamsURL() *RepositoryUpsertBulk

UpdateTeamsURL sets the "teams_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateTopics

func (u *RepositoryUpsertBulk) UpdateTopics() *RepositoryUpsertBulk

UpdateTopics sets the "topics" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateTreesURL

func (u *RepositoryUpsertBulk) UpdateTreesURL() *RepositoryUpsertBulk

UpdateTreesURL sets the "trees_url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateURL

UpdateURL sets the "url" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateUpdatedAt

func (u *RepositoryUpsertBulk) UpdateUpdatedAt() *RepositoryUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateVisibility

func (u *RepositoryUpsertBulk) UpdateVisibility() *RepositoryUpsertBulk

UpdateVisibility sets the "visibility" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateWatchers

func (u *RepositoryUpsertBulk) UpdateWatchers() *RepositoryUpsertBulk

UpdateWatchers sets the "watchers" field to the value that was provided on create.

func (*RepositoryUpsertBulk) UpdateWatchersCount

func (u *RepositoryUpsertBulk) UpdateWatchersCount() *RepositoryUpsertBulk

UpdateWatchersCount sets the "watchers_count" field to the value that was provided on create.

type RepositoryUpsertOne

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

RepositoryUpsertOne is the builder for "upsert"-ing

one Repository node.

func (*RepositoryUpsertOne) AddForks

AddForks adds v to the "forks" field.

func (*RepositoryUpsertOne) AddForksCount

func (u *RepositoryUpsertOne) AddForksCount(v int64) *RepositoryUpsertOne

AddForksCount adds v to the "forks_count" field.

func (*RepositoryUpsertOne) AddNetworkCount

func (u *RepositoryUpsertOne) AddNetworkCount(v int64) *RepositoryUpsertOne

AddNetworkCount adds v to the "network_count" field.

func (*RepositoryUpsertOne) AddOpenIssues

func (u *RepositoryUpsertOne) AddOpenIssues(v int64) *RepositoryUpsertOne

AddOpenIssues adds v to the "open_issues" field.

func (*RepositoryUpsertOne) AddOpenIssuesCount

func (u *RepositoryUpsertOne) AddOpenIssuesCount(v int64) *RepositoryUpsertOne

AddOpenIssuesCount adds v to the "open_issues_count" field.

func (*RepositoryUpsertOne) AddSize

AddSize adds v to the "size" field.

func (*RepositoryUpsertOne) AddStargazersCount

func (u *RepositoryUpsertOne) AddStargazersCount(v int64) *RepositoryUpsertOne

AddStargazersCount adds v to the "stargazers_count" field.

func (*RepositoryUpsertOne) AddSubscribersCount

func (u *RepositoryUpsertOne) AddSubscribersCount(v int64) *RepositoryUpsertOne

AddSubscribersCount adds v to the "subscribers_count" field.

func (*RepositoryUpsertOne) AddWatchers

func (u *RepositoryUpsertOne) AddWatchers(v int64) *RepositoryUpsertOne

AddWatchers adds v to the "watchers" field.

func (*RepositoryUpsertOne) AddWatchersCount

func (u *RepositoryUpsertOne) AddWatchersCount(v int64) *RepositoryUpsertOne

AddWatchersCount adds v to the "watchers_count" field.

func (*RepositoryUpsertOne) ClearDescription

func (u *RepositoryUpsertOne) ClearDescription() *RepositoryUpsertOne

ClearDescription clears the value of the "description" field.

func (*RepositoryUpsertOne) ClearHomepage

func (u *RepositoryUpsertOne) ClearHomepage() *RepositoryUpsertOne

ClearHomepage clears the value of the "homepage" field.

func (*RepositoryUpsertOne) ClearLanguage

func (u *RepositoryUpsertOne) ClearLanguage() *RepositoryUpsertOne

ClearLanguage clears the value of the "language" field.

func (*RepositoryUpsertOne) ClearLicense

func (u *RepositoryUpsertOne) ClearLicense() *RepositoryUpsertOne

ClearLicense clears the value of the "license" field.

func (*RepositoryUpsertOne) ClearMirrorURL

func (u *RepositoryUpsertOne) ClearMirrorURL() *RepositoryUpsertOne

ClearMirrorURL clears the value of the "mirror_url" field.

func (*RepositoryUpsertOne) ClearVisibility

func (u *RepositoryUpsertOne) ClearVisibility() *RepositoryUpsertOne

ClearVisibility clears the value of the "visibility" field.

func (*RepositoryUpsertOne) DoNothing

func (u *RepositoryUpsertOne) DoNothing() *RepositoryUpsertOne

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

func (*RepositoryUpsertOne) Exec

Exec executes the query.

func (*RepositoryUpsertOne) ExecX

func (u *RepositoryUpsertOne) ExecX(ctx context.Context)

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

func (*RepositoryUpsertOne) ID

func (u *RepositoryUpsertOne) ID(ctx context.Context) (id int64, err error)

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

func (*RepositoryUpsertOne) IDX

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

func (*RepositoryUpsertOne) Ignore

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

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

func (*RepositoryUpsertOne) SetArchiveURL

func (u *RepositoryUpsertOne) SetArchiveURL(v string) *RepositoryUpsertOne

SetArchiveURL sets the "archive_url" field.

func (*RepositoryUpsertOne) SetArchived

func (u *RepositoryUpsertOne) SetArchived(v bool) *RepositoryUpsertOne

SetArchived sets the "archived" field.

func (*RepositoryUpsertOne) SetAssigneesURL

func (u *RepositoryUpsertOne) SetAssigneesURL(v string) *RepositoryUpsertOne

SetAssigneesURL sets the "assignees_url" field.

func (*RepositoryUpsertOne) SetBlobsURL

func (u *RepositoryUpsertOne) SetBlobsURL(v string) *RepositoryUpsertOne

SetBlobsURL sets the "blobs_url" field.

func (*RepositoryUpsertOne) SetBranchesURL

func (u *RepositoryUpsertOne) SetBranchesURL(v string) *RepositoryUpsertOne

SetBranchesURL sets the "branches_url" field.

func (*RepositoryUpsertOne) SetCloneURL

func (u *RepositoryUpsertOne) SetCloneURL(v string) *RepositoryUpsertOne

SetCloneURL sets the "clone_url" field.

func (*RepositoryUpsertOne) SetCollaboratorsURL

func (u *RepositoryUpsertOne) SetCollaboratorsURL(v string) *RepositoryUpsertOne

SetCollaboratorsURL sets the "collaborators_url" field.

func (*RepositoryUpsertOne) SetCommentsURL

func (u *RepositoryUpsertOne) SetCommentsURL(v string) *RepositoryUpsertOne

SetCommentsURL sets the "comments_url" field.

func (*RepositoryUpsertOne) SetCommitsURL

func (u *RepositoryUpsertOne) SetCommitsURL(v string) *RepositoryUpsertOne

SetCommitsURL sets the "commits_url" field.

func (*RepositoryUpsertOne) SetCompareURL

func (u *RepositoryUpsertOne) SetCompareURL(v string) *RepositoryUpsertOne

SetCompareURL sets the "compare_url" field.

func (*RepositoryUpsertOne) SetContentsURL

func (u *RepositoryUpsertOne) SetContentsURL(v string) *RepositoryUpsertOne

SetContentsURL sets the "contents_url" field.

func (*RepositoryUpsertOne) SetContributorsURL

func (u *RepositoryUpsertOne) SetContributorsURL(v string) *RepositoryUpsertOne

SetContributorsURL sets the "contributors_url" field.

func (*RepositoryUpsertOne) SetCreatedAt

func (u *RepositoryUpsertOne) SetCreatedAt(v time.Time) *RepositoryUpsertOne

SetCreatedAt sets the "created_at" field.

func (*RepositoryUpsertOne) SetDefaultBranch

func (u *RepositoryUpsertOne) SetDefaultBranch(v string) *RepositoryUpsertOne

SetDefaultBranch sets the "default_branch" field.

func (*RepositoryUpsertOne) SetDeploymentsURL

func (u *RepositoryUpsertOne) SetDeploymentsURL(v string) *RepositoryUpsertOne

SetDeploymentsURL sets the "deployments_url" field.

func (*RepositoryUpsertOne) SetDescription

func (u *RepositoryUpsertOne) SetDescription(v string) *RepositoryUpsertOne

SetDescription sets the "description" field.

func (*RepositoryUpsertOne) SetDisabled

func (u *RepositoryUpsertOne) SetDisabled(v bool) *RepositoryUpsertOne

SetDisabled sets the "disabled" field.

func (*RepositoryUpsertOne) SetDownloadsURL

func (u *RepositoryUpsertOne) SetDownloadsURL(v string) *RepositoryUpsertOne

SetDownloadsURL sets the "downloads_url" field.

func (*RepositoryUpsertOne) SetEventsURL

func (u *RepositoryUpsertOne) SetEventsURL(v string) *RepositoryUpsertOne

SetEventsURL sets the "events_url" field.

func (*RepositoryUpsertOne) SetFork

SetFork sets the "fork" field.

func (*RepositoryUpsertOne) SetForks

SetForks sets the "forks" field.

func (*RepositoryUpsertOne) SetForksCount

func (u *RepositoryUpsertOne) SetForksCount(v int64) *RepositoryUpsertOne

SetForksCount sets the "forks_count" field.

func (*RepositoryUpsertOne) SetForksURL

func (u *RepositoryUpsertOne) SetForksURL(v string) *RepositoryUpsertOne

SetForksURL sets the "forks_url" field.

func (*RepositoryUpsertOne) SetFullName

func (u *RepositoryUpsertOne) SetFullName(v string) *RepositoryUpsertOne

SetFullName sets the "full_name" field.

func (*RepositoryUpsertOne) SetGitCommitsURL

func (u *RepositoryUpsertOne) SetGitCommitsURL(v string) *RepositoryUpsertOne

SetGitCommitsURL sets the "git_commits_url" field.

func (*RepositoryUpsertOne) SetGitRefsURL

func (u *RepositoryUpsertOne) SetGitRefsURL(v string) *RepositoryUpsertOne

SetGitRefsURL sets the "git_refs_url" field.

func (*RepositoryUpsertOne) SetGitTagsURL

func (u *RepositoryUpsertOne) SetGitTagsURL(v string) *RepositoryUpsertOne

SetGitTagsURL sets the "git_tags_url" field.

func (*RepositoryUpsertOne) SetGitURL

SetGitURL sets the "git_url" field.

func (*RepositoryUpsertOne) SetHTMLURL

SetHTMLURL sets the "html_url" field.

func (*RepositoryUpsertOne) SetHasDiscussions

func (u *RepositoryUpsertOne) SetHasDiscussions(v bool) *RepositoryUpsertOne

SetHasDiscussions sets the "has_discussions" field.

func (*RepositoryUpsertOne) SetHasDownloads

func (u *RepositoryUpsertOne) SetHasDownloads(v bool) *RepositoryUpsertOne

SetHasDownloads sets the "has_downloads" field.

func (*RepositoryUpsertOne) SetHasIssuesEnabled

func (u *RepositoryUpsertOne) SetHasIssuesEnabled(v bool) *RepositoryUpsertOne

SetHasIssuesEnabled sets the "has_issues_enabled" field.

func (*RepositoryUpsertOne) SetHasPages

func (u *RepositoryUpsertOne) SetHasPages(v bool) *RepositoryUpsertOne

SetHasPages sets the "has_pages" field.

func (*RepositoryUpsertOne) SetHasProjects

func (u *RepositoryUpsertOne) SetHasProjects(v bool) *RepositoryUpsertOne

SetHasProjects sets the "has_projects" field.

func (*RepositoryUpsertOne) SetHasWiki

func (u *RepositoryUpsertOne) SetHasWiki(v bool) *RepositoryUpsertOne

SetHasWiki sets the "has_wiki" field.

func (*RepositoryUpsertOne) SetHomepage

func (u *RepositoryUpsertOne) SetHomepage(v string) *RepositoryUpsertOne

SetHomepage sets the "homepage" field.

func (*RepositoryUpsertOne) SetHooksURL

func (u *RepositoryUpsertOne) SetHooksURL(v string) *RepositoryUpsertOne

SetHooksURL sets the "hooks_url" field.

func (*RepositoryUpsertOne) SetIsTemplate

func (u *RepositoryUpsertOne) SetIsTemplate(v bool) *RepositoryUpsertOne

SetIsTemplate sets the "is_template" field.

func (*RepositoryUpsertOne) SetIssueCommentURL

func (u *RepositoryUpsertOne) SetIssueCommentURL(v string) *RepositoryUpsertOne

SetIssueCommentURL sets the "issue_comment_url" field.

func (*RepositoryUpsertOne) SetIssueEventsURL

func (u *RepositoryUpsertOne) SetIssueEventsURL(v string) *RepositoryUpsertOne

SetIssueEventsURL sets the "issue_events_url" field.

func (*RepositoryUpsertOne) SetIssuesURL

func (u *RepositoryUpsertOne) SetIssuesURL(v string) *RepositoryUpsertOne

SetIssuesURL sets the "issues_url" field.

func (*RepositoryUpsertOne) SetKeysURL

SetKeysURL sets the "keys_url" field.

func (*RepositoryUpsertOne) SetLabelsURL

func (u *RepositoryUpsertOne) SetLabelsURL(v string) *RepositoryUpsertOne

SetLabelsURL sets the "labels_url" field.

func (*RepositoryUpsertOne) SetLanguage

func (u *RepositoryUpsertOne) SetLanguage(v string) *RepositoryUpsertOne

SetLanguage sets the "language" field.

func (*RepositoryUpsertOne) SetLanguagesURL

func (u *RepositoryUpsertOne) SetLanguagesURL(v string) *RepositoryUpsertOne

SetLanguagesURL sets the "languages_url" field.

func (*RepositoryUpsertOne) SetLicense

SetLicense sets the "license" field.

func (*RepositoryUpsertOne) SetMergesURL

func (u *RepositoryUpsertOne) SetMergesURL(v string) *RepositoryUpsertOne

SetMergesURL sets the "merges_url" field.

func (*RepositoryUpsertOne) SetMilestonesURL

func (u *RepositoryUpsertOne) SetMilestonesURL(v string) *RepositoryUpsertOne

SetMilestonesURL sets the "milestones_url" field.

func (*RepositoryUpsertOne) SetMirrorURL

func (u *RepositoryUpsertOne) SetMirrorURL(v string) *RepositoryUpsertOne

SetMirrorURL sets the "mirror_url" field.

func (*RepositoryUpsertOne) SetName

SetName sets the "name" field.

func (*RepositoryUpsertOne) SetNetworkCount

func (u *RepositoryUpsertOne) SetNetworkCount(v int64) *RepositoryUpsertOne

SetNetworkCount sets the "network_count" field.

func (*RepositoryUpsertOne) SetNodeID

SetNodeID sets the "node_id" field.

func (*RepositoryUpsertOne) SetNotificationsURL

func (u *RepositoryUpsertOne) SetNotificationsURL(v string) *RepositoryUpsertOne

SetNotificationsURL sets the "notifications_url" field.

func (*RepositoryUpsertOne) SetOpenIssues

func (u *RepositoryUpsertOne) SetOpenIssues(v int64) *RepositoryUpsertOne

SetOpenIssues sets the "open_issues" field.

func (*RepositoryUpsertOne) SetOpenIssuesCount

func (u *RepositoryUpsertOne) SetOpenIssuesCount(v int64) *RepositoryUpsertOne

SetOpenIssuesCount sets the "open_issues_count" field.

func (*RepositoryUpsertOne) SetPrivate

func (u *RepositoryUpsertOne) SetPrivate(v bool) *RepositoryUpsertOne

SetPrivate sets the "private" field.

func (*RepositoryUpsertOne) SetPullsURL

func (u *RepositoryUpsertOne) SetPullsURL(v string) *RepositoryUpsertOne

SetPullsURL sets the "pulls_url" field.

func (*RepositoryUpsertOne) SetPushedAt

func (u *RepositoryUpsertOne) SetPushedAt(v time.Time) *RepositoryUpsertOne

SetPushedAt sets the "pushed_at" field.

func (*RepositoryUpsertOne) SetReleasesURL

func (u *RepositoryUpsertOne) SetReleasesURL(v string) *RepositoryUpsertOne

SetReleasesURL sets the "releases_url" field.

func (*RepositoryUpsertOne) SetSSHURL

SetSSHURL sets the "ssh_url" field.

func (*RepositoryUpsertOne) SetSize

SetSize sets the "size" field.

func (*RepositoryUpsertOne) SetStargazersCount

func (u *RepositoryUpsertOne) SetStargazersCount(v int64) *RepositoryUpsertOne

SetStargazersCount sets the "stargazers_count" field.

func (*RepositoryUpsertOne) SetStargazersURL

func (u *RepositoryUpsertOne) SetStargazersURL(v string) *RepositoryUpsertOne

SetStargazersURL sets the "stargazers_url" field.

func (*RepositoryUpsertOne) SetStatusesURL

func (u *RepositoryUpsertOne) SetStatusesURL(v string) *RepositoryUpsertOne

SetStatusesURL sets the "statuses_url" field.

func (*RepositoryUpsertOne) SetSubscribersCount

func (u *RepositoryUpsertOne) SetSubscribersCount(v int64) *RepositoryUpsertOne

SetSubscribersCount sets the "subscribers_count" field.

func (*RepositoryUpsertOne) SetSubscribersURL

func (u *RepositoryUpsertOne) SetSubscribersURL(v string) *RepositoryUpsertOne

SetSubscribersURL sets the "subscribers_url" field.

func (*RepositoryUpsertOne) SetSubscriptionURL

func (u *RepositoryUpsertOne) SetSubscriptionURL(v string) *RepositoryUpsertOne

SetSubscriptionURL sets the "subscription_url" field.

func (*RepositoryUpsertOne) SetSvnURL

SetSvnURL sets the "svn_url" field.

func (*RepositoryUpsertOne) SetTagsURL

SetTagsURL sets the "tags_url" field.

func (*RepositoryUpsertOne) SetTeamsURL

func (u *RepositoryUpsertOne) SetTeamsURL(v string) *RepositoryUpsertOne

SetTeamsURL sets the "teams_url" field.

func (*RepositoryUpsertOne) SetTopics

func (u *RepositoryUpsertOne) SetTopics(v []string) *RepositoryUpsertOne

SetTopics sets the "topics" field.

func (*RepositoryUpsertOne) SetTreesURL

func (u *RepositoryUpsertOne) SetTreesURL(v string) *RepositoryUpsertOne

SetTreesURL sets the "trees_url" field.

func (*RepositoryUpsertOne) SetURL

SetURL sets the "url" field.

func (*RepositoryUpsertOne) SetUpdatedAt

func (u *RepositoryUpsertOne) SetUpdatedAt(v time.Time) *RepositoryUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*RepositoryUpsertOne) SetVisibility

SetVisibility sets the "visibility" field.

func (*RepositoryUpsertOne) SetWatchers

func (u *RepositoryUpsertOne) SetWatchers(v int64) *RepositoryUpsertOne

SetWatchers sets the "watchers" field.

func (*RepositoryUpsertOne) SetWatchersCount

func (u *RepositoryUpsertOne) SetWatchersCount(v int64) *RepositoryUpsertOne

SetWatchersCount sets the "watchers_count" field.

func (*RepositoryUpsertOne) Update

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

func (*RepositoryUpsertOne) UpdateArchiveURL

func (u *RepositoryUpsertOne) UpdateArchiveURL() *RepositoryUpsertOne

UpdateArchiveURL sets the "archive_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateArchived

func (u *RepositoryUpsertOne) UpdateArchived() *RepositoryUpsertOne

UpdateArchived sets the "archived" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateAssigneesURL

func (u *RepositoryUpsertOne) UpdateAssigneesURL() *RepositoryUpsertOne

UpdateAssigneesURL sets the "assignees_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateBlobsURL

func (u *RepositoryUpsertOne) UpdateBlobsURL() *RepositoryUpsertOne

UpdateBlobsURL sets the "blobs_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateBranchesURL

func (u *RepositoryUpsertOne) UpdateBranchesURL() *RepositoryUpsertOne

UpdateBranchesURL sets the "branches_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateCloneURL

func (u *RepositoryUpsertOne) UpdateCloneURL() *RepositoryUpsertOne

UpdateCloneURL sets the "clone_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateCollaboratorsURL

func (u *RepositoryUpsertOne) UpdateCollaboratorsURL() *RepositoryUpsertOne

UpdateCollaboratorsURL sets the "collaborators_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateCommentsURL

func (u *RepositoryUpsertOne) UpdateCommentsURL() *RepositoryUpsertOne

UpdateCommentsURL sets the "comments_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateCommitsURL

func (u *RepositoryUpsertOne) UpdateCommitsURL() *RepositoryUpsertOne

UpdateCommitsURL sets the "commits_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateCompareURL

func (u *RepositoryUpsertOne) UpdateCompareURL() *RepositoryUpsertOne

UpdateCompareURL sets the "compare_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateContentsURL

func (u *RepositoryUpsertOne) UpdateContentsURL() *RepositoryUpsertOne

UpdateContentsURL sets the "contents_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateContributorsURL

func (u *RepositoryUpsertOne) UpdateContributorsURL() *RepositoryUpsertOne

UpdateContributorsURL sets the "contributors_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateCreatedAt

func (u *RepositoryUpsertOne) UpdateCreatedAt() *RepositoryUpsertOne

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateDefaultBranch

func (u *RepositoryUpsertOne) UpdateDefaultBranch() *RepositoryUpsertOne

UpdateDefaultBranch sets the "default_branch" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateDeploymentsURL

func (u *RepositoryUpsertOne) UpdateDeploymentsURL() *RepositoryUpsertOne

UpdateDeploymentsURL sets the "deployments_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateDescription

func (u *RepositoryUpsertOne) UpdateDescription() *RepositoryUpsertOne

UpdateDescription sets the "description" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateDisabled

func (u *RepositoryUpsertOne) UpdateDisabled() *RepositoryUpsertOne

UpdateDisabled sets the "disabled" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateDownloadsURL

func (u *RepositoryUpsertOne) UpdateDownloadsURL() *RepositoryUpsertOne

UpdateDownloadsURL sets the "downloads_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateEventsURL

func (u *RepositoryUpsertOne) UpdateEventsURL() *RepositoryUpsertOne

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateFork

func (u *RepositoryUpsertOne) UpdateFork() *RepositoryUpsertOne

UpdateFork sets the "fork" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateForks

func (u *RepositoryUpsertOne) UpdateForks() *RepositoryUpsertOne

UpdateForks sets the "forks" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateForksCount

func (u *RepositoryUpsertOne) UpdateForksCount() *RepositoryUpsertOne

UpdateForksCount sets the "forks_count" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateForksURL

func (u *RepositoryUpsertOne) UpdateForksURL() *RepositoryUpsertOne

UpdateForksURL sets the "forks_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateFullName

func (u *RepositoryUpsertOne) UpdateFullName() *RepositoryUpsertOne

UpdateFullName sets the "full_name" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateGitCommitsURL

func (u *RepositoryUpsertOne) UpdateGitCommitsURL() *RepositoryUpsertOne

UpdateGitCommitsURL sets the "git_commits_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateGitRefsURL

func (u *RepositoryUpsertOne) UpdateGitRefsURL() *RepositoryUpsertOne

UpdateGitRefsURL sets the "git_refs_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateGitTagsURL

func (u *RepositoryUpsertOne) UpdateGitTagsURL() *RepositoryUpsertOne

UpdateGitTagsURL sets the "git_tags_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateGitURL

func (u *RepositoryUpsertOne) UpdateGitURL() *RepositoryUpsertOne

UpdateGitURL sets the "git_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHTMLURL

func (u *RepositoryUpsertOne) UpdateHTMLURL() *RepositoryUpsertOne

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHasDiscussions

func (u *RepositoryUpsertOne) UpdateHasDiscussions() *RepositoryUpsertOne

UpdateHasDiscussions sets the "has_discussions" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHasDownloads

func (u *RepositoryUpsertOne) UpdateHasDownloads() *RepositoryUpsertOne

UpdateHasDownloads sets the "has_downloads" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHasIssuesEnabled

func (u *RepositoryUpsertOne) UpdateHasIssuesEnabled() *RepositoryUpsertOne

UpdateHasIssuesEnabled sets the "has_issues_enabled" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHasPages

func (u *RepositoryUpsertOne) UpdateHasPages() *RepositoryUpsertOne

UpdateHasPages sets the "has_pages" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHasProjects

func (u *RepositoryUpsertOne) UpdateHasProjects() *RepositoryUpsertOne

UpdateHasProjects sets the "has_projects" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHasWiki

func (u *RepositoryUpsertOne) UpdateHasWiki() *RepositoryUpsertOne

UpdateHasWiki sets the "has_wiki" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHomepage

func (u *RepositoryUpsertOne) UpdateHomepage() *RepositoryUpsertOne

UpdateHomepage sets the "homepage" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateHooksURL

func (u *RepositoryUpsertOne) UpdateHooksURL() *RepositoryUpsertOne

UpdateHooksURL sets the "hooks_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateIsTemplate

func (u *RepositoryUpsertOne) UpdateIsTemplate() *RepositoryUpsertOne

UpdateIsTemplate sets the "is_template" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateIssueCommentURL

func (u *RepositoryUpsertOne) UpdateIssueCommentURL() *RepositoryUpsertOne

UpdateIssueCommentURL sets the "issue_comment_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateIssueEventsURL

func (u *RepositoryUpsertOne) UpdateIssueEventsURL() *RepositoryUpsertOne

UpdateIssueEventsURL sets the "issue_events_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateIssuesURL

func (u *RepositoryUpsertOne) UpdateIssuesURL() *RepositoryUpsertOne

UpdateIssuesURL sets the "issues_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateKeysURL

func (u *RepositoryUpsertOne) UpdateKeysURL() *RepositoryUpsertOne

UpdateKeysURL sets the "keys_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateLabelsURL

func (u *RepositoryUpsertOne) UpdateLabelsURL() *RepositoryUpsertOne

UpdateLabelsURL sets the "labels_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateLanguage

func (u *RepositoryUpsertOne) UpdateLanguage() *RepositoryUpsertOne

UpdateLanguage sets the "language" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateLanguagesURL

func (u *RepositoryUpsertOne) UpdateLanguagesURL() *RepositoryUpsertOne

UpdateLanguagesURL sets the "languages_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateLicense

func (u *RepositoryUpsertOne) UpdateLicense() *RepositoryUpsertOne

UpdateLicense sets the "license" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateMergesURL

func (u *RepositoryUpsertOne) UpdateMergesURL() *RepositoryUpsertOne

UpdateMergesURL sets the "merges_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateMilestonesURL

func (u *RepositoryUpsertOne) UpdateMilestonesURL() *RepositoryUpsertOne

UpdateMilestonesURL sets the "milestones_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateMirrorURL

func (u *RepositoryUpsertOne) UpdateMirrorURL() *RepositoryUpsertOne

UpdateMirrorURL sets the "mirror_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateName

func (u *RepositoryUpsertOne) UpdateName() *RepositoryUpsertOne

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

func (*RepositoryUpsertOne) UpdateNetworkCount

func (u *RepositoryUpsertOne) UpdateNetworkCount() *RepositoryUpsertOne

UpdateNetworkCount sets the "network_count" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateNewValues

func (u *RepositoryUpsertOne) UpdateNewValues() *RepositoryUpsertOne

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

client.Repository.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(repository.FieldID)
		}),
	).
	Exec(ctx)

func (*RepositoryUpsertOne) UpdateNodeID

func (u *RepositoryUpsertOne) UpdateNodeID() *RepositoryUpsertOne

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateNotificationsURL

func (u *RepositoryUpsertOne) UpdateNotificationsURL() *RepositoryUpsertOne

UpdateNotificationsURL sets the "notifications_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateOpenIssues

func (u *RepositoryUpsertOne) UpdateOpenIssues() *RepositoryUpsertOne

UpdateOpenIssues sets the "open_issues" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateOpenIssuesCount

func (u *RepositoryUpsertOne) UpdateOpenIssuesCount() *RepositoryUpsertOne

UpdateOpenIssuesCount sets the "open_issues_count" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdatePrivate

func (u *RepositoryUpsertOne) UpdatePrivate() *RepositoryUpsertOne

UpdatePrivate sets the "private" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdatePullsURL

func (u *RepositoryUpsertOne) UpdatePullsURL() *RepositoryUpsertOne

UpdatePullsURL sets the "pulls_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdatePushedAt

func (u *RepositoryUpsertOne) UpdatePushedAt() *RepositoryUpsertOne

UpdatePushedAt sets the "pushed_at" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateReleasesURL

func (u *RepositoryUpsertOne) UpdateReleasesURL() *RepositoryUpsertOne

UpdateReleasesURL sets the "releases_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateSSHURL

func (u *RepositoryUpsertOne) UpdateSSHURL() *RepositoryUpsertOne

UpdateSSHURL sets the "ssh_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateSize

func (u *RepositoryUpsertOne) UpdateSize() *RepositoryUpsertOne

UpdateSize sets the "size" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateStargazersCount

func (u *RepositoryUpsertOne) UpdateStargazersCount() *RepositoryUpsertOne

UpdateStargazersCount sets the "stargazers_count" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateStargazersURL

func (u *RepositoryUpsertOne) UpdateStargazersURL() *RepositoryUpsertOne

UpdateStargazersURL sets the "stargazers_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateStatusesURL

func (u *RepositoryUpsertOne) UpdateStatusesURL() *RepositoryUpsertOne

UpdateStatusesURL sets the "statuses_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateSubscribersCount

func (u *RepositoryUpsertOne) UpdateSubscribersCount() *RepositoryUpsertOne

UpdateSubscribersCount sets the "subscribers_count" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateSubscribersURL

func (u *RepositoryUpsertOne) UpdateSubscribersURL() *RepositoryUpsertOne

UpdateSubscribersURL sets the "subscribers_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateSubscriptionURL

func (u *RepositoryUpsertOne) UpdateSubscriptionURL() *RepositoryUpsertOne

UpdateSubscriptionURL sets the "subscription_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateSvnURL

func (u *RepositoryUpsertOne) UpdateSvnURL() *RepositoryUpsertOne

UpdateSvnURL sets the "svn_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateTagsURL

func (u *RepositoryUpsertOne) UpdateTagsURL() *RepositoryUpsertOne

UpdateTagsURL sets the "tags_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateTeamsURL

func (u *RepositoryUpsertOne) UpdateTeamsURL() *RepositoryUpsertOne

UpdateTeamsURL sets the "teams_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateTopics

func (u *RepositoryUpsertOne) UpdateTopics() *RepositoryUpsertOne

UpdateTopics sets the "topics" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateTreesURL

func (u *RepositoryUpsertOne) UpdateTreesURL() *RepositoryUpsertOne

UpdateTreesURL sets the "trees_url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateURL

func (u *RepositoryUpsertOne) UpdateURL() *RepositoryUpsertOne

UpdateURL sets the "url" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateUpdatedAt

func (u *RepositoryUpsertOne) UpdateUpdatedAt() *RepositoryUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateVisibility

func (u *RepositoryUpsertOne) UpdateVisibility() *RepositoryUpsertOne

UpdateVisibility sets the "visibility" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateWatchers

func (u *RepositoryUpsertOne) UpdateWatchers() *RepositoryUpsertOne

UpdateWatchers sets the "watchers" field to the value that was provided on create.

func (*RepositoryUpsertOne) UpdateWatchersCount

func (u *RepositoryUpsertOne) UpdateWatchersCount() *RepositoryUpsertOne

UpdateWatchersCount sets the "watchers_count" field to the value that was provided on create.

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 {

	// Issue is the client for interacting with the Issue builders.
	Issue *IssueClient
	// IssueComment is the client for interacting with the IssueComment builders.
	IssueComment *IssueCommentClient
	// Repository is the client for interacting with the Repository builders.
	Repository *RepositoryClient
	// User is the client for interacting with the User builders.
	User *UserClient
	// 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 User

type User struct {

	// ID of the ent.
	ID int64 `json:"id,omitempty"`
	// Login holds the value of the "login" field.
	Login string `json:"login"`
	// NodeID holds the value of the "node_id" field.
	NodeID string `json:"node_id"`
	// AvatarURL holds the value of the "avatar_url" field.
	AvatarURL string `json:"avatar_url"`
	// GravatarID holds the value of the "gravatar_id" field.
	GravatarID string `json:"gravatar_id"`
	// URL holds the value of the "url" field.
	URL string `json:"url"`
	// HTMLURL holds the value of the "html_url" field.
	HTMLURL string `json:"html_url"`
	// FollowersURL holds the value of the "followers_url" field.
	FollowersURL string `json:"followers_url"`
	// FollowingURL holds the value of the "following_url" field.
	FollowingURL string `json:"following_url"`
	// GistsURL holds the value of the "gists_url" field.
	GistsURL string `json:"gists_url"`
	// StarredURL holds the value of the "starred_url" field.
	StarredURL string `json:"starred_url"`
	// SubscriptionsURL holds the value of the "subscriptions_url" field.
	SubscriptionsURL string `json:"subscriptions_url"`
	// OrganizationsURL holds the value of the "organizations_url" field.
	OrganizationsURL string `json:"organizations_url"`
	// ReposURL holds the value of the "repos_url" field.
	ReposURL string `json:"repos_url"`
	// EventsURL holds the value of the "events_url" field.
	EventsURL string `json:"events_url"`
	// ReceivedEventsURL holds the value of the "received_events_url" field.
	ReceivedEventsURL string `json:"received_events_url"`
	// Type holds the value of the "type" field.
	Type string `json:"type"`
	// SiteAdmin holds the value of the "site_admin" field.
	SiteAdmin bool `json:"site_admin"`
	// Name holds the value of the "name" field.
	Name string `json:"name"`
	// Company holds the value of the "company" field.
	Company string `json:"company"`
	// Blog holds the value of the "blog" field.
	Blog string `json:"blog"`
	// Location holds the value of the "location" field.
	Location string `json:"location"`
	// Email holds the value of the "email" field.
	Email string `json:"email"`
	// Hireable holds the value of the "hireable" field.
	Hireable bool `json:"hireable"`
	// Bio holds the value of the "bio" field.
	Bio string `json:"bio"`
	// PublicRepos holds the value of the "public_repos" field.
	PublicRepos int64 `json:"public_repos"`
	// PublicGists holds the value of the "public_gists" field.
	PublicGists int64 `json:"public_gists"`
	// Followers holds the value of the "followers" field.
	Followers int64 `json:"followers"`
	// Following holds the value of the "following" field.
	Following int64 `json:"following"`
	// CreatedAt holds the value of the "created_at" field.
	CreatedAt time.Time `json:"created_at"`
	// UpdatedAt holds the value of the "updated_at" field.
	UpdatedAt time.Time `json:"updated_at"`
	// Edges holds the relations/edges for other nodes in the graph.
	// The values are being populated by the UserQuery when eager-loading is set.
	Edges UserEdges `json:"-"`
	// contains filtered or unexported fields
}

User is the model entity for the User schema.

func (*User) MarshalJSON

func (u *User) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface.

func (*User) QueryCommentsCreated

func (u *User) QueryCommentsCreated() *IssueCommentQuery

QueryCommentsCreated queries the "comments_created" edge of the User entity.

func (*User) QueryIssuesAssigned

func (u *User) QueryIssuesAssigned() *IssueQuery

QueryIssuesAssigned queries the "issues_assigned" edge of the User entity.

func (*User) QueryIssuesClosed

func (u *User) QueryIssuesClosed() *IssueQuery

QueryIssuesClosed queries the "issues_closed" edge of the User entity.

func (*User) QueryIssuesCreated

func (u *User) QueryIssuesCreated() *IssueQuery

QueryIssuesCreated queries the "issues_created" edge of the User entity.

func (*User) QueryRepositories

func (u *User) QueryRepositories() *RepositoryQuery

QueryRepositories queries the "repositories" edge of the User entity.

func (*User) String

func (u *User) String() string

String implements the fmt.Stringer.

func (*User) Unwrap

func (u *User) Unwrap() *User

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

func (u *User) Update() *UserUpdateOne

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

func (*User) Value

func (u *User) Value(name string) (ent.Value, error)

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

type UserClient

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

UserClient is a client for the User schema.

func NewUserClient

func NewUserClient(c config) *UserClient

NewUserClient returns a client for the User from the given config.

func (*UserClient) Create

func (c *UserClient) Create() *UserCreate

Create returns a builder for creating a User entity.

func (*UserClient) CreateBulk

func (c *UserClient) CreateBulk(builders ...*UserCreate) *UserCreateBulk

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

func (*UserClient) Delete

func (c *UserClient) Delete() *UserDelete

Delete returns a delete builder for User.

func (*UserClient) DeleteOne

func (c *UserClient) DeleteOne(u *User) *UserDeleteOne

DeleteOne returns a builder for deleting the given entity.

func (*UserClient) DeleteOneID

func (c *UserClient) DeleteOneID(id int64) *UserDeleteOne

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

func (*UserClient) Get

func (c *UserClient) Get(ctx context.Context, id int64) (*User, error)

Get returns a User entity by its id.

func (*UserClient) GetX

func (c *UserClient) GetX(ctx context.Context, id int64) *User

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

func (*UserClient) Hooks

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

Hooks returns the client hooks.

func (*UserClient) Intercept

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

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

func (*UserClient) Interceptors

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

Interceptors returns the client interceptors.

func (*UserClient) MapCreateBulk

func (c *UserClient) MapCreateBulk(slice any, setFunc func(*UserCreate, int)) *UserCreateBulk

MapCreateBulk creates a bulk creation builder from the given slice. For each item in the slice, the function creates a builder and applies setFunc on it.

func (*UserClient) Query

func (c *UserClient) Query() *UserQuery

Query returns a query builder for User.

func (*UserClient) QueryCommentsCreated

func (c *UserClient) QueryCommentsCreated(u *User) *IssueCommentQuery

QueryCommentsCreated queries the comments_created edge of a User.

func (*UserClient) QueryIssuesAssigned

func (c *UserClient) QueryIssuesAssigned(u *User) *IssueQuery

QueryIssuesAssigned queries the issues_assigned edge of a User.

func (*UserClient) QueryIssuesClosed

func (c *UserClient) QueryIssuesClosed(u *User) *IssueQuery

QueryIssuesClosed queries the issues_closed edge of a User.

func (*UserClient) QueryIssuesCreated

func (c *UserClient) QueryIssuesCreated(u *User) *IssueQuery

QueryIssuesCreated queries the issues_created edge of a User.

func (*UserClient) QueryRepositories

func (c *UserClient) QueryRepositories(u *User) *RepositoryQuery

QueryRepositories queries the repositories edge of a User.

func (*UserClient) Update

func (c *UserClient) Update() *UserUpdate

Update returns an update builder for User.

func (*UserClient) UpdateOne

func (c *UserClient) UpdateOne(u *User) *UserUpdateOne

UpdateOne returns an update builder for the given entity.

func (*UserClient) UpdateOneID

func (c *UserClient) UpdateOneID(id int64) *UserUpdateOne

UpdateOneID returns an update builder for the given id.

func (*UserClient) Use

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

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

type UserCreate

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

UserCreate is the builder for creating a User entity.

func (*UserCreate) AddCommentsCreated

func (uc *UserCreate) AddCommentsCreated(i ...*IssueComment) *UserCreate

AddCommentsCreated adds the "comments_created" edges to the IssueComment entity.

func (*UserCreate) AddCommentsCreatedIDs

func (uc *UserCreate) AddCommentsCreatedIDs(ids ...int64) *UserCreate

AddCommentsCreatedIDs adds the "comments_created" edge to the IssueComment entity by IDs.

func (*UserCreate) AddIssuesAssigned

func (uc *UserCreate) AddIssuesAssigned(i ...*Issue) *UserCreate

AddIssuesAssigned adds the "issues_assigned" edges to the Issue entity.

func (*UserCreate) AddIssuesAssignedIDs

func (uc *UserCreate) AddIssuesAssignedIDs(ids ...int64) *UserCreate

AddIssuesAssignedIDs adds the "issues_assigned" edge to the Issue entity by IDs.

func (*UserCreate) AddIssuesClosed

func (uc *UserCreate) AddIssuesClosed(i ...*Issue) *UserCreate

AddIssuesClosed adds the "issues_closed" edges to the Issue entity.

func (*UserCreate) AddIssuesClosedIDs

func (uc *UserCreate) AddIssuesClosedIDs(ids ...int64) *UserCreate

AddIssuesClosedIDs adds the "issues_closed" edge to the Issue entity by IDs.

func (*UserCreate) AddIssuesCreated

func (uc *UserCreate) AddIssuesCreated(i ...*Issue) *UserCreate

AddIssuesCreated adds the "issues_created" edges to the Issue entity.

func (*UserCreate) AddIssuesCreatedIDs

func (uc *UserCreate) AddIssuesCreatedIDs(ids ...int64) *UserCreate

AddIssuesCreatedIDs adds the "issues_created" edge to the Issue entity by IDs.

func (*UserCreate) AddRepositories

func (uc *UserCreate) AddRepositories(r ...*Repository) *UserCreate

AddRepositories adds the "repositories" edges to the Repository entity.

func (*UserCreate) AddRepositoryIDs

func (uc *UserCreate) AddRepositoryIDs(ids ...int64) *UserCreate

AddRepositoryIDs adds the "repositories" edge to the Repository entity by IDs.

func (*UserCreate) CopyUser

func (uc *UserCreate) CopyUser(input *User) *UserCreate

CopyUser allows to create a new User copying the existing values of input.

func (*UserCreate) Exec

func (uc *UserCreate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreate) ExecX

func (uc *UserCreate) ExecX(ctx context.Context)

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

func (*UserCreate) Mutation

func (uc *UserCreate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserCreate) OnConflict

func (uc *UserCreate) OnConflict(opts ...sql.ConflictOption) *UserUpsertOne

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

client.User.Create().
	SetLogin(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.UserUpsert) {
		SetLogin(v+v).
	}).
	Exec(ctx)

func (*UserCreate) OnConflictColumns

func (uc *UserCreate) OnConflictColumns(columns ...string) *UserUpsertOne

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

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

func (*UserCreate) Save

func (uc *UserCreate) Save(ctx context.Context) (*User, error)

Save creates the User in the database.

func (*UserCreate) SaveX

func (uc *UserCreate) SaveX(ctx context.Context) *User

SaveX calls Save and panics if Save returns an error.

func (*UserCreate) SetAvatarURL

func (uc *UserCreate) SetAvatarURL(s string) *UserCreate

SetAvatarURL sets the "avatar_url" field.

func (*UserCreate) SetBio

func (uc *UserCreate) SetBio(s string) *UserCreate

SetBio sets the "bio" field.

func (*UserCreate) SetBlog

func (uc *UserCreate) SetBlog(s string) *UserCreate

SetBlog sets the "blog" field.

func (*UserCreate) SetCompany

func (uc *UserCreate) SetCompany(s string) *UserCreate

SetCompany sets the "company" field.

func (*UserCreate) SetCreatedAt

func (uc *UserCreate) SetCreatedAt(t time.Time) *UserCreate

SetCreatedAt sets the "created_at" field.

func (*UserCreate) SetEmail

func (uc *UserCreate) SetEmail(s string) *UserCreate

SetEmail sets the "email" field.

func (*UserCreate) SetEventsURL

func (uc *UserCreate) SetEventsURL(s string) *UserCreate

SetEventsURL sets the "events_url" field.

func (*UserCreate) SetFollowers

func (uc *UserCreate) SetFollowers(i int64) *UserCreate

SetFollowers sets the "followers" field.

func (*UserCreate) SetFollowersURL

func (uc *UserCreate) SetFollowersURL(s string) *UserCreate

SetFollowersURL sets the "followers_url" field.

func (*UserCreate) SetFollowing

func (uc *UserCreate) SetFollowing(i int64) *UserCreate

SetFollowing sets the "following" field.

func (*UserCreate) SetFollowingURL

func (uc *UserCreate) SetFollowingURL(s string) *UserCreate

SetFollowingURL sets the "following_url" field.

func (*UserCreate) SetGistsURL

func (uc *UserCreate) SetGistsURL(s string) *UserCreate

SetGistsURL sets the "gists_url" field.

func (*UserCreate) SetGravatarID

func (uc *UserCreate) SetGravatarID(s string) *UserCreate

SetGravatarID sets the "gravatar_id" field.

func (*UserCreate) SetHTMLURL

func (uc *UserCreate) SetHTMLURL(s string) *UserCreate

SetHTMLURL sets the "html_url" field.

func (*UserCreate) SetHireable

func (uc *UserCreate) SetHireable(b bool) *UserCreate

SetHireable sets the "hireable" field.

func (*UserCreate) SetID

func (uc *UserCreate) SetID(i int64) *UserCreate

SetID sets the "id" field.

func (*UserCreate) SetLocation

func (uc *UserCreate) SetLocation(s string) *UserCreate

SetLocation sets the "location" field.

func (*UserCreate) SetLogin

func (uc *UserCreate) SetLogin(s string) *UserCreate

SetLogin sets the "login" field.

func (*UserCreate) SetName

func (uc *UserCreate) SetName(s string) *UserCreate

SetName sets the "name" field.

func (*UserCreate) SetNillableBio

func (uc *UserCreate) SetNillableBio(s *string) *UserCreate

SetNillableBio sets the "bio" field if the given value is not nil.

func (*UserCreate) SetNillableBlog

func (uc *UserCreate) SetNillableBlog(s *string) *UserCreate

SetNillableBlog sets the "blog" field if the given value is not nil.

func (*UserCreate) SetNillableCompany

func (uc *UserCreate) SetNillableCompany(s *string) *UserCreate

SetNillableCompany sets the "company" field if the given value is not nil.

func (*UserCreate) SetNillableEmail

func (uc *UserCreate) SetNillableEmail(s *string) *UserCreate

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserCreate) SetNillableGravatarID

func (uc *UserCreate) SetNillableGravatarID(s *string) *UserCreate

SetNillableGravatarID sets the "gravatar_id" field if the given value is not nil.

func (*UserCreate) SetNillableHireable

func (uc *UserCreate) SetNillableHireable(b *bool) *UserCreate

SetNillableHireable sets the "hireable" field if the given value is not nil.

func (*UserCreate) SetNillableLocation

func (uc *UserCreate) SetNillableLocation(s *string) *UserCreate

SetNillableLocation sets the "location" field if the given value is not nil.

func (*UserCreate) SetNillableName

func (uc *UserCreate) SetNillableName(s *string) *UserCreate

SetNillableName sets the "name" field if the given value is not nil.

func (*UserCreate) SetNodeID

func (uc *UserCreate) SetNodeID(s string) *UserCreate

SetNodeID sets the "node_id" field.

func (*UserCreate) SetOrganizationsURL

func (uc *UserCreate) SetOrganizationsURL(s string) *UserCreate

SetOrganizationsURL sets the "organizations_url" field.

func (*UserCreate) SetPublicGists

func (uc *UserCreate) SetPublicGists(i int64) *UserCreate

SetPublicGists sets the "public_gists" field.

func (*UserCreate) SetPublicRepos

func (uc *UserCreate) SetPublicRepos(i int64) *UserCreate

SetPublicRepos sets the "public_repos" field.

func (*UserCreate) SetReceivedEventsURL

func (uc *UserCreate) SetReceivedEventsURL(s string) *UserCreate

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserCreate) SetReposURL

func (uc *UserCreate) SetReposURL(s string) *UserCreate

SetReposURL sets the "repos_url" field.

func (*UserCreate) SetSiteAdmin

func (uc *UserCreate) SetSiteAdmin(b bool) *UserCreate

SetSiteAdmin sets the "site_admin" field.

func (*UserCreate) SetStarredURL

func (uc *UserCreate) SetStarredURL(s string) *UserCreate

SetStarredURL sets the "starred_url" field.

func (*UserCreate) SetSubscriptionsURL

func (uc *UserCreate) SetSubscriptionsURL(s string) *UserCreate

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserCreate) SetType

func (uc *UserCreate) SetType(s string) *UserCreate

SetType sets the "type" field.

func (*UserCreate) SetURL

func (uc *UserCreate) SetURL(s string) *UserCreate

SetURL sets the "url" field.

func (*UserCreate) SetUpdatedAt

func (uc *UserCreate) SetUpdatedAt(t time.Time) *UserCreate

SetUpdatedAt sets the "updated_at" field.

type UserCreateBulk

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

UserCreateBulk is the builder for creating many User entities in bulk.

func (*UserCreateBulk) Exec

func (ucb *UserCreateBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserCreateBulk) ExecX

func (ucb *UserCreateBulk) ExecX(ctx context.Context)

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

func (*UserCreateBulk) OnConflict

func (ucb *UserCreateBulk) OnConflict(opts ...sql.ConflictOption) *UserUpsertBulk

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

client.User.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.UserUpsert) {
		SetLogin(v+v).
	}).
	Exec(ctx)

func (*UserCreateBulk) OnConflictColumns

func (ucb *UserCreateBulk) OnConflictColumns(columns ...string) *UserUpsertBulk

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

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

func (*UserCreateBulk) Save

func (ucb *UserCreateBulk) Save(ctx context.Context) ([]*User, error)

Save creates the User entities in the database.

func (*UserCreateBulk) SaveX

func (ucb *UserCreateBulk) SaveX(ctx context.Context) []*User

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

type UserDelete

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

UserDelete is the builder for deleting a User entity.

func (*UserDelete) Exec

func (ud *UserDelete) Exec(ctx context.Context) (int, error)

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

func (*UserDelete) ExecX

func (ud *UserDelete) ExecX(ctx context.Context) int

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

func (*UserDelete) Where

func (ud *UserDelete) Where(ps ...predicate.User) *UserDelete

Where appends a list predicates to the UserDelete builder.

type UserDeleteOne

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

UserDeleteOne is the builder for deleting a single User entity.

func (*UserDeleteOne) Exec

func (udo *UserDeleteOne) Exec(ctx context.Context) error

Exec executes the deletion query.

func (*UserDeleteOne) ExecX

func (udo *UserDeleteOne) ExecX(ctx context.Context)

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

func (*UserDeleteOne) Where

func (udo *UserDeleteOne) Where(ps ...predicate.User) *UserDeleteOne

Where appends a list predicates to the UserDelete builder.

type UserEdges

type UserEdges struct {
	// Repositories holds the value of the repositories edge.
	Repositories []*Repository `json:"repositories,omitempty"`
	// IssuesCreated holds the value of the issues_created edge.
	IssuesCreated []*Issue `json:"issues_created,omitempty"`
	// CommentsCreated holds the value of the comments_created edge.
	CommentsCreated []*IssueComment `json:"comments_created,omitempty"`
	// IssuesAssigned holds the value of the issues_assigned edge.
	IssuesAssigned []*Issue `json:"issues_assigned,omitempty"`
	// IssuesClosed holds the value of the issues_closed edge.
	IssuesClosed []*Issue `json:"issues_closed,omitempty"`
	// contains filtered or unexported fields
}

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

func (UserEdges) CommentsCreatedOrErr

func (e UserEdges) CommentsCreatedOrErr() ([]*IssueComment, error)

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

func (UserEdges) IssuesAssignedOrErr

func (e UserEdges) IssuesAssignedOrErr() ([]*Issue, error)

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

func (UserEdges) IssuesClosedOrErr

func (e UserEdges) IssuesClosedOrErr() ([]*Issue, error)

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

func (UserEdges) IssuesCreatedOrErr

func (e UserEdges) IssuesCreatedOrErr() ([]*Issue, error)

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

func (UserEdges) RepositoriesOrErr

func (e UserEdges) RepositoriesOrErr() ([]*Repository, error)

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

type UserGroupBy

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

UserGroupBy is the group-by builder for User entities.

func (*UserGroupBy) Aggregate

func (ugb *UserGroupBy) Aggregate(fns ...AggregateFunc) *UserGroupBy

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

func (*UserGroupBy) Bool

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

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

func (*UserGroupBy) BoolX

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

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

func (*UserGroupBy) Bools

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

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

func (*UserGroupBy) BoolsX

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

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

func (*UserGroupBy) Float64

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

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

func (*UserGroupBy) Float64X

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

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

func (*UserGroupBy) Float64s

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

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

func (*UserGroupBy) Float64sX

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

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

func (*UserGroupBy) Int

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

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

func (*UserGroupBy) IntX

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

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

func (*UserGroupBy) Ints

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

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

func (*UserGroupBy) IntsX

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

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

func (*UserGroupBy) Scan

func (ugb *UserGroupBy) Scan(ctx context.Context, v any) error

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

func (*UserGroupBy) ScanX

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

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

func (*UserGroupBy) String

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

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

func (*UserGroupBy) StringX

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

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

func (*UserGroupBy) Strings

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

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

func (*UserGroupBy) StringsX

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

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

type UserMutation

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

UserMutation represents an operation that mutates the User nodes in the graph.

func (*UserMutation) AddCommentsCreatedIDs

func (m *UserMutation) AddCommentsCreatedIDs(ids ...int64)

AddCommentsCreatedIDs adds the "comments_created" edge to the IssueComment entity by ids.

func (*UserMutation) AddField

func (m *UserMutation) 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 (*UserMutation) AddFollowers

func (m *UserMutation) AddFollowers(i int64)

AddFollowers adds i to the "followers" field.

func (*UserMutation) AddFollowing

func (m *UserMutation) AddFollowing(i int64)

AddFollowing adds i to the "following" field.

func (*UserMutation) AddIssuesAssignedIDs

func (m *UserMutation) AddIssuesAssignedIDs(ids ...int64)

AddIssuesAssignedIDs adds the "issues_assigned" edge to the Issue entity by ids.

func (*UserMutation) AddIssuesClosedIDs

func (m *UserMutation) AddIssuesClosedIDs(ids ...int64)

AddIssuesClosedIDs adds the "issues_closed" edge to the Issue entity by ids.

func (*UserMutation) AddIssuesCreatedIDs

func (m *UserMutation) AddIssuesCreatedIDs(ids ...int64)

AddIssuesCreatedIDs adds the "issues_created" edge to the Issue entity by ids.

func (*UserMutation) AddPublicGists

func (m *UserMutation) AddPublicGists(i int64)

AddPublicGists adds i to the "public_gists" field.

func (*UserMutation) AddPublicRepos

func (m *UserMutation) AddPublicRepos(i int64)

AddPublicRepos adds i to the "public_repos" field.

func (*UserMutation) AddRepositoryIDs

func (m *UserMutation) AddRepositoryIDs(ids ...int64)

AddRepositoryIDs adds the "repositories" edge to the Repository entity by ids.

func (*UserMutation) AddedEdges

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

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

func (*UserMutation) AddedField

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

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

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

func (*UserMutation) AddedFollowers

func (m *UserMutation) AddedFollowers() (r int64, exists bool)

AddedFollowers returns the value that was added to the "followers" field in this mutation.

func (*UserMutation) AddedFollowing

func (m *UserMutation) AddedFollowing() (r int64, exists bool)

AddedFollowing returns the value that was added to the "following" field in this mutation.

func (*UserMutation) AddedIDs

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

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

func (*UserMutation) AddedPublicGists

func (m *UserMutation) AddedPublicGists() (r int64, exists bool)

AddedPublicGists returns the value that was added to the "public_gists" field in this mutation.

func (*UserMutation) AddedPublicRepos

func (m *UserMutation) AddedPublicRepos() (r int64, exists bool)

AddedPublicRepos returns the value that was added to the "public_repos" field in this mutation.

func (*UserMutation) AvatarURL

func (m *UserMutation) AvatarURL() (r string, exists bool)

AvatarURL returns the value of the "avatar_url" field in the mutation.

func (*UserMutation) Bio

func (m *UserMutation) Bio() (r string, exists bool)

Bio returns the value of the "bio" field in the mutation.

func (*UserMutation) BioCleared

func (m *UserMutation) BioCleared() bool

BioCleared returns if the "bio" field was cleared in this mutation.

func (*UserMutation) Blog

func (m *UserMutation) Blog() (r string, exists bool)

Blog returns the value of the "blog" field in the mutation.

func (*UserMutation) BlogCleared

func (m *UserMutation) BlogCleared() bool

BlogCleared returns if the "blog" field was cleared in this mutation.

func (*UserMutation) ClearBio

func (m *UserMutation) ClearBio()

ClearBio clears the value of the "bio" field.

func (*UserMutation) ClearBlog

func (m *UserMutation) ClearBlog()

ClearBlog clears the value of the "blog" field.

func (*UserMutation) ClearCommentsCreated

func (m *UserMutation) ClearCommentsCreated()

ClearCommentsCreated clears the "comments_created" edge to the IssueComment entity.

func (*UserMutation) ClearCompany

func (m *UserMutation) ClearCompany()

ClearCompany clears the value of the "company" field.

func (*UserMutation) ClearEdge

func (m *UserMutation) 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 (*UserMutation) ClearEmail

func (m *UserMutation) ClearEmail()

ClearEmail clears the value of the "email" field.

func (*UserMutation) ClearField

func (m *UserMutation) 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 (*UserMutation) ClearGravatarID

func (m *UserMutation) ClearGravatarID()

ClearGravatarID clears the value of the "gravatar_id" field.

func (*UserMutation) ClearHireable

func (m *UserMutation) ClearHireable()

ClearHireable clears the value of the "hireable" field.

func (*UserMutation) ClearIssuesAssigned

func (m *UserMutation) ClearIssuesAssigned()

ClearIssuesAssigned clears the "issues_assigned" edge to the Issue entity.

func (*UserMutation) ClearIssuesClosed

func (m *UserMutation) ClearIssuesClosed()

ClearIssuesClosed clears the "issues_closed" edge to the Issue entity.

func (*UserMutation) ClearIssuesCreated

func (m *UserMutation) ClearIssuesCreated()

ClearIssuesCreated clears the "issues_created" edge to the Issue entity.

func (*UserMutation) ClearLocation

func (m *UserMutation) ClearLocation()

ClearLocation clears the value of the "location" field.

func (*UserMutation) ClearName

func (m *UserMutation) ClearName()

ClearName clears the value of the "name" field.

func (*UserMutation) ClearRepositories

func (m *UserMutation) ClearRepositories()

ClearRepositories clears the "repositories" edge to the Repository entity.

func (*UserMutation) ClearedEdges

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

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

func (*UserMutation) ClearedFields

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

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

func (UserMutation) Client

func (m UserMutation) 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 (*UserMutation) CommentsCreatedCleared

func (m *UserMutation) CommentsCreatedCleared() bool

CommentsCreatedCleared reports if the "comments_created" edge to the IssueComment entity was cleared.

func (*UserMutation) CommentsCreatedIDs

func (m *UserMutation) CommentsCreatedIDs() (ids []int64)

CommentsCreatedIDs returns the "comments_created" edge IDs in the mutation.

func (*UserMutation) Company

func (m *UserMutation) Company() (r string, exists bool)

Company returns the value of the "company" field in the mutation.

func (*UserMutation) CompanyCleared

func (m *UserMutation) CompanyCleared() bool

CompanyCleared returns if the "company" field was cleared in this mutation.

func (*UserMutation) CreatedAt

func (m *UserMutation) CreatedAt() (r time.Time, exists bool)

CreatedAt returns the value of the "created_at" field in the mutation.

func (*UserMutation) EdgeCleared

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

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

func (*UserMutation) Email

func (m *UserMutation) Email() (r string, exists bool)

Email returns the value of the "email" field in the mutation.

func (*UserMutation) EmailCleared

func (m *UserMutation) EmailCleared() bool

EmailCleared returns if the "email" field was cleared in this mutation.

func (*UserMutation) EventsURL

func (m *UserMutation) EventsURL() (r string, exists bool)

EventsURL returns the value of the "events_url" field in the mutation.

func (*UserMutation) Field

func (m *UserMutation) 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 (*UserMutation) FieldCleared

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

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

func (*UserMutation) Fields

func (m *UserMutation) 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 (*UserMutation) Followers

func (m *UserMutation) Followers() (r int64, exists bool)

Followers returns the value of the "followers" field in the mutation.

func (*UserMutation) FollowersURL

func (m *UserMutation) FollowersURL() (r string, exists bool)

FollowersURL returns the value of the "followers_url" field in the mutation.

func (*UserMutation) Following

func (m *UserMutation) Following() (r int64, exists bool)

Following returns the value of the "following" field in the mutation.

func (*UserMutation) FollowingURL

func (m *UserMutation) FollowingURL() (r string, exists bool)

FollowingURL returns the value of the "following_url" field in the mutation.

func (*UserMutation) GetType

func (m *UserMutation) GetType() (r string, exists bool)

GetType returns the value of the "type" field in the mutation.

func (*UserMutation) GistsURL

func (m *UserMutation) GistsURL() (r string, exists bool)

GistsURL returns the value of the "gists_url" field in the mutation.

func (*UserMutation) GravatarID

func (m *UserMutation) GravatarID() (r string, exists bool)

GravatarID returns the value of the "gravatar_id" field in the mutation.

func (*UserMutation) GravatarIDCleared

func (m *UserMutation) GravatarIDCleared() bool

GravatarIDCleared returns if the "gravatar_id" field was cleared in this mutation.

func (*UserMutation) HTMLURL

func (m *UserMutation) HTMLURL() (r string, exists bool)

HTMLURL returns the value of the "html_url" field in the mutation.

func (*UserMutation) Hireable

func (m *UserMutation) Hireable() (r bool, exists bool)

Hireable returns the value of the "hireable" field in the mutation.

func (*UserMutation) HireableCleared

func (m *UserMutation) HireableCleared() bool

HireableCleared returns if the "hireable" field was cleared in this mutation.

func (*UserMutation) ID

func (m *UserMutation) ID() (id int64, 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 (*UserMutation) IDs

func (m *UserMutation) IDs(ctx context.Context) ([]int64, 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 (*UserMutation) IssuesAssignedCleared

func (m *UserMutation) IssuesAssignedCleared() bool

IssuesAssignedCleared reports if the "issues_assigned" edge to the Issue entity was cleared.

func (*UserMutation) IssuesAssignedIDs

func (m *UserMutation) IssuesAssignedIDs() (ids []int64)

IssuesAssignedIDs returns the "issues_assigned" edge IDs in the mutation.

func (*UserMutation) IssuesClosedCleared

func (m *UserMutation) IssuesClosedCleared() bool

IssuesClosedCleared reports if the "issues_closed" edge to the Issue entity was cleared.

func (*UserMutation) IssuesClosedIDs

func (m *UserMutation) IssuesClosedIDs() (ids []int64)

IssuesClosedIDs returns the "issues_closed" edge IDs in the mutation.

func (*UserMutation) IssuesCreatedCleared

func (m *UserMutation) IssuesCreatedCleared() bool

IssuesCreatedCleared reports if the "issues_created" edge to the Issue entity was cleared.

func (*UserMutation) IssuesCreatedIDs

func (m *UserMutation) IssuesCreatedIDs() (ids []int64)

IssuesCreatedIDs returns the "issues_created" edge IDs in the mutation.

func (*UserMutation) Location

func (m *UserMutation) Location() (r string, exists bool)

Location returns the value of the "location" field in the mutation.

func (*UserMutation) LocationCleared

func (m *UserMutation) LocationCleared() bool

LocationCleared returns if the "location" field was cleared in this mutation.

func (*UserMutation) Login

func (m *UserMutation) Login() (r string, exists bool)

Login returns the value of the "login" field in the mutation.

func (*UserMutation) Name

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

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

func (*UserMutation) NameCleared

func (m *UserMutation) NameCleared() bool

NameCleared returns if the "name" field was cleared in this mutation.

func (*UserMutation) NodeID

func (m *UserMutation) NodeID() (r string, exists bool)

NodeID returns the value of the "node_id" field in the mutation.

func (*UserMutation) OldAvatarURL

func (m *UserMutation) OldAvatarURL(ctx context.Context) (v string, err error)

OldAvatarURL returns the old "avatar_url" field's value of the User entity. If the User 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 (*UserMutation) OldBio

func (m *UserMutation) OldBio(ctx context.Context) (v string, err error)

OldBio returns the old "bio" field's value of the User entity. If the User 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 (*UserMutation) OldBlog

func (m *UserMutation) OldBlog(ctx context.Context) (v string, err error)

OldBlog returns the old "blog" field's value of the User entity. If the User 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 (*UserMutation) OldCompany

func (m *UserMutation) OldCompany(ctx context.Context) (v string, err error)

OldCompany returns the old "company" field's value of the User entity. If the User 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 (*UserMutation) OldCreatedAt

func (m *UserMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)

OldCreatedAt returns the old "created_at" field's value of the User entity. If the User 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 (*UserMutation) OldEmail

func (m *UserMutation) OldEmail(ctx context.Context) (v string, err error)

OldEmail returns the old "email" field's value of the User entity. If the User 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 (*UserMutation) OldEventsURL

func (m *UserMutation) OldEventsURL(ctx context.Context) (v string, err error)

OldEventsURL returns the old "events_url" field's value of the User entity. If the User 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 (*UserMutation) OldField

func (m *UserMutation) 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 (*UserMutation) OldFollowers

func (m *UserMutation) OldFollowers(ctx context.Context) (v int64, err error)

OldFollowers returns the old "followers" field's value of the User entity. If the User 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 (*UserMutation) OldFollowersURL

func (m *UserMutation) OldFollowersURL(ctx context.Context) (v string, err error)

OldFollowersURL returns the old "followers_url" field's value of the User entity. If the User 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 (*UserMutation) OldFollowing

func (m *UserMutation) OldFollowing(ctx context.Context) (v int64, err error)

OldFollowing returns the old "following" field's value of the User entity. If the User 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 (*UserMutation) OldFollowingURL

func (m *UserMutation) OldFollowingURL(ctx context.Context) (v string, err error)

OldFollowingURL returns the old "following_url" field's value of the User entity. If the User 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 (*UserMutation) OldGistsURL

func (m *UserMutation) OldGistsURL(ctx context.Context) (v string, err error)

OldGistsURL returns the old "gists_url" field's value of the User entity. If the User 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 (*UserMutation) OldGravatarID

func (m *UserMutation) OldGravatarID(ctx context.Context) (v string, err error)

OldGravatarID returns the old "gravatar_id" field's value of the User entity. If the User 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 (*UserMutation) OldHTMLURL

func (m *UserMutation) OldHTMLURL(ctx context.Context) (v string, err error)

OldHTMLURL returns the old "html_url" field's value of the User entity. If the User 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 (*UserMutation) OldHireable

func (m *UserMutation) OldHireable(ctx context.Context) (v bool, err error)

OldHireable returns the old "hireable" field's value of the User entity. If the User 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 (*UserMutation) OldLocation

func (m *UserMutation) OldLocation(ctx context.Context) (v string, err error)

OldLocation returns the old "location" field's value of the User entity. If the User 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 (*UserMutation) OldLogin

func (m *UserMutation) OldLogin(ctx context.Context) (v string, err error)

OldLogin returns the old "login" field's value of the User entity. If the User 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 (*UserMutation) OldName

func (m *UserMutation) OldName(ctx context.Context) (v string, err error)

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

func (m *UserMutation) OldNodeID(ctx context.Context) (v string, err error)

OldNodeID returns the old "node_id" field's value of the User entity. If the User 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 (*UserMutation) OldOrganizationsURL

func (m *UserMutation) OldOrganizationsURL(ctx context.Context) (v string, err error)

OldOrganizationsURL returns the old "organizations_url" field's value of the User entity. If the User 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 (*UserMutation) OldPublicGists

func (m *UserMutation) OldPublicGists(ctx context.Context) (v int64, err error)

OldPublicGists returns the old "public_gists" field's value of the User entity. If the User 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 (*UserMutation) OldPublicRepos

func (m *UserMutation) OldPublicRepos(ctx context.Context) (v int64, err error)

OldPublicRepos returns the old "public_repos" field's value of the User entity. If the User 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 (*UserMutation) OldReceivedEventsURL

func (m *UserMutation) OldReceivedEventsURL(ctx context.Context) (v string, err error)

OldReceivedEventsURL returns the old "received_events_url" field's value of the User entity. If the User 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 (*UserMutation) OldReposURL

func (m *UserMutation) OldReposURL(ctx context.Context) (v string, err error)

OldReposURL returns the old "repos_url" field's value of the User entity. If the User 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 (*UserMutation) OldSiteAdmin

func (m *UserMutation) OldSiteAdmin(ctx context.Context) (v bool, err error)

OldSiteAdmin returns the old "site_admin" field's value of the User entity. If the User 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 (*UserMutation) OldStarredURL

func (m *UserMutation) OldStarredURL(ctx context.Context) (v string, err error)

OldStarredURL returns the old "starred_url" field's value of the User entity. If the User 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 (*UserMutation) OldSubscriptionsURL

func (m *UserMutation) OldSubscriptionsURL(ctx context.Context) (v string, err error)

OldSubscriptionsURL returns the old "subscriptions_url" field's value of the User entity. If the User 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 (*UserMutation) OldType

func (m *UserMutation) OldType(ctx context.Context) (v string, err error)

OldType returns the old "type" field's value of the User entity. If the User 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 (*UserMutation) OldURL

func (m *UserMutation) OldURL(ctx context.Context) (v string, err error)

OldURL returns the old "url" field's value of the User entity. If the User 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 (*UserMutation) OldUpdatedAt

func (m *UserMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)

OldUpdatedAt returns the old "updated_at" field's value of the User entity. If the User 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 (*UserMutation) Op

func (m *UserMutation) Op() Op

Op returns the operation name.

func (*UserMutation) OrganizationsURL

func (m *UserMutation) OrganizationsURL() (r string, exists bool)

OrganizationsURL returns the value of the "organizations_url" field in the mutation.

func (*UserMutation) PublicGists

func (m *UserMutation) PublicGists() (r int64, exists bool)

PublicGists returns the value of the "public_gists" field in the mutation.

func (*UserMutation) PublicRepos

func (m *UserMutation) PublicRepos() (r int64, exists bool)

PublicRepos returns the value of the "public_repos" field in the mutation.

func (*UserMutation) ReceivedEventsURL

func (m *UserMutation) ReceivedEventsURL() (r string, exists bool)

ReceivedEventsURL returns the value of the "received_events_url" field in the mutation.

func (*UserMutation) RemoveCommentsCreatedIDs

func (m *UserMutation) RemoveCommentsCreatedIDs(ids ...int64)

RemoveCommentsCreatedIDs removes the "comments_created" edge to the IssueComment entity by IDs.

func (*UserMutation) RemoveIssuesAssignedIDs

func (m *UserMutation) RemoveIssuesAssignedIDs(ids ...int64)

RemoveIssuesAssignedIDs removes the "issues_assigned" edge to the Issue entity by IDs.

func (*UserMutation) RemoveIssuesClosedIDs

func (m *UserMutation) RemoveIssuesClosedIDs(ids ...int64)

RemoveIssuesClosedIDs removes the "issues_closed" edge to the Issue entity by IDs.

func (*UserMutation) RemoveIssuesCreatedIDs

func (m *UserMutation) RemoveIssuesCreatedIDs(ids ...int64)

RemoveIssuesCreatedIDs removes the "issues_created" edge to the Issue entity by IDs.

func (*UserMutation) RemoveRepositoryIDs

func (m *UserMutation) RemoveRepositoryIDs(ids ...int64)

RemoveRepositoryIDs removes the "repositories" edge to the Repository entity by IDs.

func (*UserMutation) RemovedCommentsCreatedIDs

func (m *UserMutation) RemovedCommentsCreatedIDs() (ids []int64)

RemovedCommentsCreated returns the removed IDs of the "comments_created" edge to the IssueComment entity.

func (*UserMutation) RemovedEdges

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

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

func (*UserMutation) RemovedIDs

func (m *UserMutation) 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 (*UserMutation) RemovedIssuesAssignedIDs

func (m *UserMutation) RemovedIssuesAssignedIDs() (ids []int64)

RemovedIssuesAssigned returns the removed IDs of the "issues_assigned" edge to the Issue entity.

func (*UserMutation) RemovedIssuesClosedIDs

func (m *UserMutation) RemovedIssuesClosedIDs() (ids []int64)

RemovedIssuesClosed returns the removed IDs of the "issues_closed" edge to the Issue entity.

func (*UserMutation) RemovedIssuesCreatedIDs

func (m *UserMutation) RemovedIssuesCreatedIDs() (ids []int64)

RemovedIssuesCreated returns the removed IDs of the "issues_created" edge to the Issue entity.

func (*UserMutation) RemovedRepositoriesIDs

func (m *UserMutation) RemovedRepositoriesIDs() (ids []int64)

RemovedRepositories returns the removed IDs of the "repositories" edge to the Repository entity.

func (*UserMutation) ReposURL

func (m *UserMutation) ReposURL() (r string, exists bool)

ReposURL returns the value of the "repos_url" field in the mutation.

func (*UserMutation) RepositoriesCleared

func (m *UserMutation) RepositoriesCleared() bool

RepositoriesCleared reports if the "repositories" edge to the Repository entity was cleared.

func (*UserMutation) RepositoriesIDs

func (m *UserMutation) RepositoriesIDs() (ids []int64)

RepositoriesIDs returns the "repositories" edge IDs in the mutation.

func (*UserMutation) ResetAvatarURL

func (m *UserMutation) ResetAvatarURL()

ResetAvatarURL resets all changes to the "avatar_url" field.

func (*UserMutation) ResetBio

func (m *UserMutation) ResetBio()

ResetBio resets all changes to the "bio" field.

func (*UserMutation) ResetBlog

func (m *UserMutation) ResetBlog()

ResetBlog resets all changes to the "blog" field.

func (*UserMutation) ResetCommentsCreated

func (m *UserMutation) ResetCommentsCreated()

ResetCommentsCreated resets all changes to the "comments_created" edge.

func (*UserMutation) ResetCompany

func (m *UserMutation) ResetCompany()

ResetCompany resets all changes to the "company" field.

func (*UserMutation) ResetCreatedAt

func (m *UserMutation) ResetCreatedAt()

ResetCreatedAt resets all changes to the "created_at" field.

func (*UserMutation) ResetEdge

func (m *UserMutation) 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 (*UserMutation) ResetEmail

func (m *UserMutation) ResetEmail()

ResetEmail resets all changes to the "email" field.

func (*UserMutation) ResetEventsURL

func (m *UserMutation) ResetEventsURL()

ResetEventsURL resets all changes to the "events_url" field.

func (*UserMutation) ResetField

func (m *UserMutation) 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 (*UserMutation) ResetFollowers

func (m *UserMutation) ResetFollowers()

ResetFollowers resets all changes to the "followers" field.

func (*UserMutation) ResetFollowersURL

func (m *UserMutation) ResetFollowersURL()

ResetFollowersURL resets all changes to the "followers_url" field.

func (*UserMutation) ResetFollowing

func (m *UserMutation) ResetFollowing()

ResetFollowing resets all changes to the "following" field.

func (*UserMutation) ResetFollowingURL

func (m *UserMutation) ResetFollowingURL()

ResetFollowingURL resets all changes to the "following_url" field.

func (*UserMutation) ResetGistsURL

func (m *UserMutation) ResetGistsURL()

ResetGistsURL resets all changes to the "gists_url" field.

func (*UserMutation) ResetGravatarID

func (m *UserMutation) ResetGravatarID()

ResetGravatarID resets all changes to the "gravatar_id" field.

func (*UserMutation) ResetHTMLURL

func (m *UserMutation) ResetHTMLURL()

ResetHTMLURL resets all changes to the "html_url" field.

func (*UserMutation) ResetHireable

func (m *UserMutation) ResetHireable()

ResetHireable resets all changes to the "hireable" field.

func (*UserMutation) ResetIssuesAssigned

func (m *UserMutation) ResetIssuesAssigned()

ResetIssuesAssigned resets all changes to the "issues_assigned" edge.

func (*UserMutation) ResetIssuesClosed

func (m *UserMutation) ResetIssuesClosed()

ResetIssuesClosed resets all changes to the "issues_closed" edge.

func (*UserMutation) ResetIssuesCreated

func (m *UserMutation) ResetIssuesCreated()

ResetIssuesCreated resets all changes to the "issues_created" edge.

func (*UserMutation) ResetLocation

func (m *UserMutation) ResetLocation()

ResetLocation resets all changes to the "location" field.

func (*UserMutation) ResetLogin

func (m *UserMutation) ResetLogin()

ResetLogin resets all changes to the "login" field.

func (*UserMutation) ResetName

func (m *UserMutation) ResetName()

ResetName resets all changes to the "name" field.

func (*UserMutation) ResetNodeID

func (m *UserMutation) ResetNodeID()

ResetNodeID resets all changes to the "node_id" field.

func (*UserMutation) ResetOrganizationsURL

func (m *UserMutation) ResetOrganizationsURL()

ResetOrganizationsURL resets all changes to the "organizations_url" field.

func (*UserMutation) ResetPublicGists

func (m *UserMutation) ResetPublicGists()

ResetPublicGists resets all changes to the "public_gists" field.

func (*UserMutation) ResetPublicRepos

func (m *UserMutation) ResetPublicRepos()

ResetPublicRepos resets all changes to the "public_repos" field.

func (*UserMutation) ResetReceivedEventsURL

func (m *UserMutation) ResetReceivedEventsURL()

ResetReceivedEventsURL resets all changes to the "received_events_url" field.

func (*UserMutation) ResetReposURL

func (m *UserMutation) ResetReposURL()

ResetReposURL resets all changes to the "repos_url" field.

func (*UserMutation) ResetRepositories

func (m *UserMutation) ResetRepositories()

ResetRepositories resets all changes to the "repositories" edge.

func (*UserMutation) ResetSiteAdmin

func (m *UserMutation) ResetSiteAdmin()

ResetSiteAdmin resets all changes to the "site_admin" field.

func (*UserMutation) ResetStarredURL

func (m *UserMutation) ResetStarredURL()

ResetStarredURL resets all changes to the "starred_url" field.

func (*UserMutation) ResetSubscriptionsURL

func (m *UserMutation) ResetSubscriptionsURL()

ResetSubscriptionsURL resets all changes to the "subscriptions_url" field.

func (*UserMutation) ResetType

func (m *UserMutation) ResetType()

ResetType resets all changes to the "type" field.

func (*UserMutation) ResetURL

func (m *UserMutation) ResetURL()

ResetURL resets all changes to the "url" field.

func (*UserMutation) ResetUpdatedAt

func (m *UserMutation) ResetUpdatedAt()

ResetUpdatedAt resets all changes to the "updated_at" field.

func (*UserMutation) SetAvatarURL

func (m *UserMutation) SetAvatarURL(s string)

SetAvatarURL sets the "avatar_url" field.

func (*UserMutation) SetBio

func (m *UserMutation) SetBio(s string)

SetBio sets the "bio" field.

func (*UserMutation) SetBlog

func (m *UserMutation) SetBlog(s string)

SetBlog sets the "blog" field.

func (*UserMutation) SetCompany

func (m *UserMutation) SetCompany(s string)

SetCompany sets the "company" field.

func (*UserMutation) SetCreatedAt

func (m *UserMutation) SetCreatedAt(t time.Time)

SetCreatedAt sets the "created_at" field.

func (*UserMutation) SetEmail

func (m *UserMutation) SetEmail(s string)

SetEmail sets the "email" field.

func (*UserMutation) SetEventsURL

func (m *UserMutation) SetEventsURL(s string)

SetEventsURL sets the "events_url" field.

func (*UserMutation) SetField

func (m *UserMutation) 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 (*UserMutation) SetFollowers

func (m *UserMutation) SetFollowers(i int64)

SetFollowers sets the "followers" field.

func (*UserMutation) SetFollowersURL

func (m *UserMutation) SetFollowersURL(s string)

SetFollowersURL sets the "followers_url" field.

func (*UserMutation) SetFollowing

func (m *UserMutation) SetFollowing(i int64)

SetFollowing sets the "following" field.

func (*UserMutation) SetFollowingURL

func (m *UserMutation) SetFollowingURL(s string)

SetFollowingURL sets the "following_url" field.

func (*UserMutation) SetGistsURL

func (m *UserMutation) SetGistsURL(s string)

SetGistsURL sets the "gists_url" field.

func (*UserMutation) SetGravatarID

func (m *UserMutation) SetGravatarID(s string)

SetGravatarID sets the "gravatar_id" field.

func (*UserMutation) SetHTMLURL

func (m *UserMutation) SetHTMLURL(s string)

SetHTMLURL sets the "html_url" field.

func (*UserMutation) SetHireable

func (m *UserMutation) SetHireable(b bool)

SetHireable sets the "hireable" field.

func (*UserMutation) SetID

func (m *UserMutation) SetID(id int64)

SetID sets the value of the id field. Note that this operation is only accepted on creation of User entities.

func (*UserMutation) SetLocation

func (m *UserMutation) SetLocation(s string)

SetLocation sets the "location" field.

func (*UserMutation) SetLogin

func (m *UserMutation) SetLogin(s string)

SetLogin sets the "login" field.

func (*UserMutation) SetName

func (m *UserMutation) SetName(s string)

SetName sets the "name" field.

func (*UserMutation) SetNodeID

func (m *UserMutation) SetNodeID(s string)

SetNodeID sets the "node_id" field.

func (*UserMutation) SetOp

func (m *UserMutation) SetOp(op Op)

SetOp allows setting the mutation operation.

func (*UserMutation) SetOrganizationsURL

func (m *UserMutation) SetOrganizationsURL(s string)

SetOrganizationsURL sets the "organizations_url" field.

func (*UserMutation) SetPublicGists

func (m *UserMutation) SetPublicGists(i int64)

SetPublicGists sets the "public_gists" field.

func (*UserMutation) SetPublicRepos

func (m *UserMutation) SetPublicRepos(i int64)

SetPublicRepos sets the "public_repos" field.

func (*UserMutation) SetReceivedEventsURL

func (m *UserMutation) SetReceivedEventsURL(s string)

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserMutation) SetReposURL

func (m *UserMutation) SetReposURL(s string)

SetReposURL sets the "repos_url" field.

func (*UserMutation) SetSiteAdmin

func (m *UserMutation) SetSiteAdmin(b bool)

SetSiteAdmin sets the "site_admin" field.

func (*UserMutation) SetStarredURL

func (m *UserMutation) SetStarredURL(s string)

SetStarredURL sets the "starred_url" field.

func (*UserMutation) SetSubscriptionsURL

func (m *UserMutation) SetSubscriptionsURL(s string)

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserMutation) SetType

func (m *UserMutation) SetType(s string)

SetType sets the "type" field.

func (*UserMutation) SetURL

func (m *UserMutation) SetURL(s string)

SetURL sets the "url" field.

func (*UserMutation) SetUpdatedAt

func (m *UserMutation) SetUpdatedAt(t time.Time)

SetUpdatedAt sets the "updated_at" field.

func (*UserMutation) SiteAdmin

func (m *UserMutation) SiteAdmin() (r bool, exists bool)

SiteAdmin returns the value of the "site_admin" field in the mutation.

func (*UserMutation) StarredURL

func (m *UserMutation) StarredURL() (r string, exists bool)

StarredURL returns the value of the "starred_url" field in the mutation.

func (*UserMutation) SubscriptionsURL

func (m *UserMutation) SubscriptionsURL() (r string, exists bool)

SubscriptionsURL returns the value of the "subscriptions_url" field in the mutation.

func (UserMutation) Tx

func (m UserMutation) Tx() (*Tx, error)

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

func (*UserMutation) Type

func (m *UserMutation) Type() string

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

func (*UserMutation) URL

func (m *UserMutation) URL() (r string, exists bool)

URL returns the value of the "url" field in the mutation.

func (*UserMutation) UpdatedAt

func (m *UserMutation) UpdatedAt() (r time.Time, exists bool)

UpdatedAt returns the value of the "updated_at" field in the mutation.

func (*UserMutation) Where

func (m *UserMutation) Where(ps ...predicate.User)

Where appends a list predicates to the UserMutation builder.

func (*UserMutation) WhereP

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

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

type UserQuery

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

UserQuery is the builder for querying User entities.

func (*UserQuery) Aggregate

func (uq *UserQuery) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate returns a UserSelect configured with the given aggregations.

func (*UserQuery) All

func (uq *UserQuery) All(ctx context.Context) ([]*User, error)

All executes the query and returns a list of Users.

func (*UserQuery) AllX

func (uq *UserQuery) AllX(ctx context.Context) []*User

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

func (*UserQuery) Clone

func (uq *UserQuery) Clone() *UserQuery

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

func (*UserQuery) Count

func (uq *UserQuery) Count(ctx context.Context) (int, error)

Count returns the count of the given query.

func (*UserQuery) CountX

func (uq *UserQuery) CountX(ctx context.Context) int

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

func (*UserQuery) Exist

func (uq *UserQuery) Exist(ctx context.Context) (bool, error)

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

func (*UserQuery) ExistX

func (uq *UserQuery) ExistX(ctx context.Context) bool

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

func (*UserQuery) First

func (uq *UserQuery) First(ctx context.Context) (*User, error)

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

func (*UserQuery) FirstID

func (uq *UserQuery) FirstID(ctx context.Context) (id int64, err error)

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

func (*UserQuery) FirstIDX

func (uq *UserQuery) FirstIDX(ctx context.Context) int64

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

func (*UserQuery) FirstX

func (uq *UserQuery) FirstX(ctx context.Context) *User

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

func (*UserQuery) GroupBy

func (uq *UserQuery) GroupBy(field string, fields ...string) *UserGroupBy

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 {
	Login string `json:"login"`
	Count int `json:"count,omitempty"`
}

client.User.Query().
	GroupBy(user.FieldLogin).
	Aggregate(ent.Count()).
	Scan(ctx, &v)

func (*UserQuery) IDs

func (uq *UserQuery) IDs(ctx context.Context) (ids []int64, err error)

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

func (*UserQuery) IDsX

func (uq *UserQuery) IDsX(ctx context.Context) []int64

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

func (*UserQuery) Limit

func (uq *UserQuery) Limit(limit int) *UserQuery

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

func (*UserQuery) Offset

func (uq *UserQuery) Offset(offset int) *UserQuery

Offset to start from.

func (*UserQuery) Only

func (uq *UserQuery) Only(ctx context.Context) (*User, error)

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

func (*UserQuery) OnlyID

func (uq *UserQuery) OnlyID(ctx context.Context) (id int64, err error)

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

func (*UserQuery) OnlyIDX

func (uq *UserQuery) OnlyIDX(ctx context.Context) int64

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

func (*UserQuery) OnlyX

func (uq *UserQuery) OnlyX(ctx context.Context) *User

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

func (*UserQuery) Order

func (uq *UserQuery) Order(o ...user.OrderOption) *UserQuery

Order specifies how the records should be ordered.

func (*UserQuery) QueryCommentsCreated

func (uq *UserQuery) QueryCommentsCreated() *IssueCommentQuery

QueryCommentsCreated chains the current query on the "comments_created" edge.

func (*UserQuery) QueryIssuesAssigned

func (uq *UserQuery) QueryIssuesAssigned() *IssueQuery

QueryIssuesAssigned chains the current query on the "issues_assigned" edge.

func (*UserQuery) QueryIssuesClosed

func (uq *UserQuery) QueryIssuesClosed() *IssueQuery

QueryIssuesClosed chains the current query on the "issues_closed" edge.

func (*UserQuery) QueryIssuesCreated

func (uq *UserQuery) QueryIssuesCreated() *IssueQuery

QueryIssuesCreated chains the current query on the "issues_created" edge.

func (*UserQuery) QueryRepositories

func (uq *UserQuery) QueryRepositories() *RepositoryQuery

QueryRepositories chains the current query on the "repositories" edge.

func (*UserQuery) Select

func (uq *UserQuery) Select(fields ...string) *UserSelect

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 {
	Login string `json:"login"`
}

client.User.Query().
	Select(user.FieldLogin).
	Scan(ctx, &v)

func (*UserQuery) Unique

func (uq *UserQuery) Unique(unique bool) *UserQuery

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

func (uq *UserQuery) Where(ps ...predicate.User) *UserQuery

Where adds a new predicate for the UserQuery builder.

func (*UserQuery) WithCommentsCreated

func (uq *UserQuery) WithCommentsCreated(opts ...func(*IssueCommentQuery)) *UserQuery

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

func (*UserQuery) WithIssuesAssigned

func (uq *UserQuery) WithIssuesAssigned(opts ...func(*IssueQuery)) *UserQuery

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

func (*UserQuery) WithIssuesClosed

func (uq *UserQuery) WithIssuesClosed(opts ...func(*IssueQuery)) *UserQuery

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

func (*UserQuery) WithIssuesCreated

func (uq *UserQuery) WithIssuesCreated(opts ...func(*IssueQuery)) *UserQuery

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

func (*UserQuery) WithRepositories

func (uq *UserQuery) WithRepositories(opts ...func(*RepositoryQuery)) *UserQuery

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

type UserSelect

type UserSelect struct {
	*UserQuery
	// contains filtered or unexported fields
}

UserSelect is the builder for selecting fields of User entities.

func (*UserSelect) Aggregate

func (us *UserSelect) Aggregate(fns ...AggregateFunc) *UserSelect

Aggregate adds the given aggregation functions to the selector query.

func (*UserSelect) Bool

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

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

func (*UserSelect) BoolX

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

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

func (*UserSelect) Bools

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

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

func (*UserSelect) BoolsX

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

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

func (*UserSelect) Float64

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

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

func (*UserSelect) Float64X

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

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

func (*UserSelect) Float64s

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

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

func (*UserSelect) Float64sX

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

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

func (*UserSelect) Int

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

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

func (*UserSelect) IntX

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

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

func (*UserSelect) Ints

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

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

func (*UserSelect) IntsX

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

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

func (*UserSelect) Scan

func (us *UserSelect) Scan(ctx context.Context, v any) error

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

func (*UserSelect) ScanX

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

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

func (*UserSelect) String

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

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

func (*UserSelect) StringX

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

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

func (*UserSelect) Strings

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

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

func (*UserSelect) StringsX

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

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

type UserUpdate

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

UserUpdate is the builder for updating User entities.

func (*UserUpdate) AddCommentsCreated

func (uu *UserUpdate) AddCommentsCreated(i ...*IssueComment) *UserUpdate

AddCommentsCreated adds the "comments_created" edges to the IssueComment entity.

func (*UserUpdate) AddCommentsCreatedIDs

func (uu *UserUpdate) AddCommentsCreatedIDs(ids ...int64) *UserUpdate

AddCommentsCreatedIDs adds the "comments_created" edge to the IssueComment entity by IDs.

func (*UserUpdate) AddFollowers

func (uu *UserUpdate) AddFollowers(i int64) *UserUpdate

AddFollowers adds i to the "followers" field.

func (*UserUpdate) AddFollowing

func (uu *UserUpdate) AddFollowing(i int64) *UserUpdate

AddFollowing adds i to the "following" field.

func (*UserUpdate) AddIssuesAssigned

func (uu *UserUpdate) AddIssuesAssigned(i ...*Issue) *UserUpdate

AddIssuesAssigned adds the "issues_assigned" edges to the Issue entity.

func (*UserUpdate) AddIssuesAssignedIDs

func (uu *UserUpdate) AddIssuesAssignedIDs(ids ...int64) *UserUpdate

AddIssuesAssignedIDs adds the "issues_assigned" edge to the Issue entity by IDs.

func (*UserUpdate) AddIssuesClosed

func (uu *UserUpdate) AddIssuesClosed(i ...*Issue) *UserUpdate

AddIssuesClosed adds the "issues_closed" edges to the Issue entity.

func (*UserUpdate) AddIssuesClosedIDs

func (uu *UserUpdate) AddIssuesClosedIDs(ids ...int64) *UserUpdate

AddIssuesClosedIDs adds the "issues_closed" edge to the Issue entity by IDs.

func (*UserUpdate) AddIssuesCreated

func (uu *UserUpdate) AddIssuesCreated(i ...*Issue) *UserUpdate

AddIssuesCreated adds the "issues_created" edges to the Issue entity.

func (*UserUpdate) AddIssuesCreatedIDs

func (uu *UserUpdate) AddIssuesCreatedIDs(ids ...int64) *UserUpdate

AddIssuesCreatedIDs adds the "issues_created" edge to the Issue entity by IDs.

func (*UserUpdate) AddPublicGists

func (uu *UserUpdate) AddPublicGists(i int64) *UserUpdate

AddPublicGists adds i to the "public_gists" field.

func (*UserUpdate) AddPublicRepos

func (uu *UserUpdate) AddPublicRepos(i int64) *UserUpdate

AddPublicRepos adds i to the "public_repos" field.

func (*UserUpdate) AddRepositories

func (uu *UserUpdate) AddRepositories(r ...*Repository) *UserUpdate

AddRepositories adds the "repositories" edges to the Repository entity.

func (*UserUpdate) AddRepositoryIDs

func (uu *UserUpdate) AddRepositoryIDs(ids ...int64) *UserUpdate

AddRepositoryIDs adds the "repositories" edge to the Repository entity by IDs.

func (*UserUpdate) ClearBio

func (uu *UserUpdate) ClearBio() *UserUpdate

ClearBio clears the value of the "bio" field.

func (*UserUpdate) ClearBlog

func (uu *UserUpdate) ClearBlog() *UserUpdate

ClearBlog clears the value of the "blog" field.

func (*UserUpdate) ClearCommentsCreated

func (uu *UserUpdate) ClearCommentsCreated() *UserUpdate

ClearCommentsCreated clears all "comments_created" edges to the IssueComment entity.

func (*UserUpdate) ClearCompany

func (uu *UserUpdate) ClearCompany() *UserUpdate

ClearCompany clears the value of the "company" field.

func (*UserUpdate) ClearEmail

func (uu *UserUpdate) ClearEmail() *UserUpdate

ClearEmail clears the value of the "email" field.

func (*UserUpdate) ClearGravatarID

func (uu *UserUpdate) ClearGravatarID() *UserUpdate

ClearGravatarID clears the value of the "gravatar_id" field.

func (*UserUpdate) ClearHireable

func (uu *UserUpdate) ClearHireable() *UserUpdate

ClearHireable clears the value of the "hireable" field.

func (*UserUpdate) ClearIssuesAssigned

func (uu *UserUpdate) ClearIssuesAssigned() *UserUpdate

ClearIssuesAssigned clears all "issues_assigned" edges to the Issue entity.

func (*UserUpdate) ClearIssuesClosed

func (uu *UserUpdate) ClearIssuesClosed() *UserUpdate

ClearIssuesClosed clears all "issues_closed" edges to the Issue entity.

func (*UserUpdate) ClearIssuesCreated

func (uu *UserUpdate) ClearIssuesCreated() *UserUpdate

ClearIssuesCreated clears all "issues_created" edges to the Issue entity.

func (*UserUpdate) ClearLocation

func (uu *UserUpdate) ClearLocation() *UserUpdate

ClearLocation clears the value of the "location" field.

func (*UserUpdate) ClearName

func (uu *UserUpdate) ClearName() *UserUpdate

ClearName clears the value of the "name" field.

func (*UserUpdate) ClearRepositories

func (uu *UserUpdate) ClearRepositories() *UserUpdate

ClearRepositories clears all "repositories" edges to the Repository entity.

func (*UserUpdate) Exec

func (uu *UserUpdate) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpdate) ExecX

func (uu *UserUpdate) ExecX(ctx context.Context)

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

func (*UserUpdate) Mutation

func (uu *UserUpdate) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdate) RemoveCommentsCreated

func (uu *UserUpdate) RemoveCommentsCreated(i ...*IssueComment) *UserUpdate

RemoveCommentsCreated removes "comments_created" edges to IssueComment entities.

func (*UserUpdate) RemoveCommentsCreatedIDs

func (uu *UserUpdate) RemoveCommentsCreatedIDs(ids ...int64) *UserUpdate

RemoveCommentsCreatedIDs removes the "comments_created" edge to IssueComment entities by IDs.

func (*UserUpdate) RemoveIssuesAssigned

func (uu *UserUpdate) RemoveIssuesAssigned(i ...*Issue) *UserUpdate

RemoveIssuesAssigned removes "issues_assigned" edges to Issue entities.

func (*UserUpdate) RemoveIssuesAssignedIDs

func (uu *UserUpdate) RemoveIssuesAssignedIDs(ids ...int64) *UserUpdate

RemoveIssuesAssignedIDs removes the "issues_assigned" edge to Issue entities by IDs.

func (*UserUpdate) RemoveIssuesClosed

func (uu *UserUpdate) RemoveIssuesClosed(i ...*Issue) *UserUpdate

RemoveIssuesClosed removes "issues_closed" edges to Issue entities.

func (*UserUpdate) RemoveIssuesClosedIDs

func (uu *UserUpdate) RemoveIssuesClosedIDs(ids ...int64) *UserUpdate

RemoveIssuesClosedIDs removes the "issues_closed" edge to Issue entities by IDs.

func (*UserUpdate) RemoveIssuesCreated

func (uu *UserUpdate) RemoveIssuesCreated(i ...*Issue) *UserUpdate

RemoveIssuesCreated removes "issues_created" edges to Issue entities.

func (*UserUpdate) RemoveIssuesCreatedIDs

func (uu *UserUpdate) RemoveIssuesCreatedIDs(ids ...int64) *UserUpdate

RemoveIssuesCreatedIDs removes the "issues_created" edge to Issue entities by IDs.

func (*UserUpdate) RemoveRepositories

func (uu *UserUpdate) RemoveRepositories(r ...*Repository) *UserUpdate

RemoveRepositories removes "repositories" edges to Repository entities.

func (*UserUpdate) RemoveRepositoryIDs

func (uu *UserUpdate) RemoveRepositoryIDs(ids ...int64) *UserUpdate

RemoveRepositoryIDs removes the "repositories" edge to Repository entities by IDs.

func (*UserUpdate) Save

func (uu *UserUpdate) Save(ctx context.Context) (int, error)

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

func (*UserUpdate) SaveX

func (uu *UserUpdate) SaveX(ctx context.Context) int

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

func (*UserUpdate) SetAvatarURL

func (uu *UserUpdate) SetAvatarURL(s string) *UserUpdate

SetAvatarURL sets the "avatar_url" field.

func (*UserUpdate) SetBio

func (uu *UserUpdate) SetBio(s string) *UserUpdate

SetBio sets the "bio" field.

func (*UserUpdate) SetBlog

func (uu *UserUpdate) SetBlog(s string) *UserUpdate

SetBlog sets the "blog" field.

func (*UserUpdate) SetCompany

func (uu *UserUpdate) SetCompany(s string) *UserUpdate

SetCompany sets the "company" field.

func (*UserUpdate) SetCreatedAt

func (uu *UserUpdate) SetCreatedAt(t time.Time) *UserUpdate

SetCreatedAt sets the "created_at" field.

func (*UserUpdate) SetEmail

func (uu *UserUpdate) SetEmail(s string) *UserUpdate

SetEmail sets the "email" field.

func (*UserUpdate) SetEventsURL

func (uu *UserUpdate) SetEventsURL(s string) *UserUpdate

SetEventsURL sets the "events_url" field.

func (*UserUpdate) SetFollowers

func (uu *UserUpdate) SetFollowers(i int64) *UserUpdate

SetFollowers sets the "followers" field.

func (*UserUpdate) SetFollowersURL

func (uu *UserUpdate) SetFollowersURL(s string) *UserUpdate

SetFollowersURL sets the "followers_url" field.

func (*UserUpdate) SetFollowing

func (uu *UserUpdate) SetFollowing(i int64) *UserUpdate

SetFollowing sets the "following" field.

func (*UserUpdate) SetFollowingURL

func (uu *UserUpdate) SetFollowingURL(s string) *UserUpdate

SetFollowingURL sets the "following_url" field.

func (*UserUpdate) SetGistsURL

func (uu *UserUpdate) SetGistsURL(s string) *UserUpdate

SetGistsURL sets the "gists_url" field.

func (*UserUpdate) SetGravatarID

func (uu *UserUpdate) SetGravatarID(s string) *UserUpdate

SetGravatarID sets the "gravatar_id" field.

func (*UserUpdate) SetHTMLURL

func (uu *UserUpdate) SetHTMLURL(s string) *UserUpdate

SetHTMLURL sets the "html_url" field.

func (*UserUpdate) SetHireable

func (uu *UserUpdate) SetHireable(b bool) *UserUpdate

SetHireable sets the "hireable" field.

func (*UserUpdate) SetLocation

func (uu *UserUpdate) SetLocation(s string) *UserUpdate

SetLocation sets the "location" field.

func (*UserUpdate) SetLogin

func (uu *UserUpdate) SetLogin(s string) *UserUpdate

SetLogin sets the "login" field.

func (*UserUpdate) SetName

func (uu *UserUpdate) SetName(s string) *UserUpdate

SetName sets the "name" field.

func (*UserUpdate) SetNillableAvatarURL

func (uu *UserUpdate) SetNillableAvatarURL(s *string) *UserUpdate

SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.

func (*UserUpdate) SetNillableBio

func (uu *UserUpdate) SetNillableBio(s *string) *UserUpdate

SetNillableBio sets the "bio" field if the given value is not nil.

func (*UserUpdate) SetNillableBlog

func (uu *UserUpdate) SetNillableBlog(s *string) *UserUpdate

SetNillableBlog sets the "blog" field if the given value is not nil.

func (*UserUpdate) SetNillableCompany

func (uu *UserUpdate) SetNillableCompany(s *string) *UserUpdate

SetNillableCompany sets the "company" field if the given value is not nil.

func (*UserUpdate) SetNillableCreatedAt

func (uu *UserUpdate) SetNillableCreatedAt(t *time.Time) *UserUpdate

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

func (*UserUpdate) SetNillableEmail

func (uu *UserUpdate) SetNillableEmail(s *string) *UserUpdate

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserUpdate) SetNillableEventsURL

func (uu *UserUpdate) SetNillableEventsURL(s *string) *UserUpdate

SetNillableEventsURL sets the "events_url" field if the given value is not nil.

func (*UserUpdate) SetNillableFollowers

func (uu *UserUpdate) SetNillableFollowers(i *int64) *UserUpdate

SetNillableFollowers sets the "followers" field if the given value is not nil.

func (*UserUpdate) SetNillableFollowersURL

func (uu *UserUpdate) SetNillableFollowersURL(s *string) *UserUpdate

SetNillableFollowersURL sets the "followers_url" field if the given value is not nil.

func (*UserUpdate) SetNillableFollowing

func (uu *UserUpdate) SetNillableFollowing(i *int64) *UserUpdate

SetNillableFollowing sets the "following" field if the given value is not nil.

func (*UserUpdate) SetNillableFollowingURL

func (uu *UserUpdate) SetNillableFollowingURL(s *string) *UserUpdate

SetNillableFollowingURL sets the "following_url" field if the given value is not nil.

func (*UserUpdate) SetNillableGistsURL

func (uu *UserUpdate) SetNillableGistsURL(s *string) *UserUpdate

SetNillableGistsURL sets the "gists_url" field if the given value is not nil.

func (*UserUpdate) SetNillableGravatarID

func (uu *UserUpdate) SetNillableGravatarID(s *string) *UserUpdate

SetNillableGravatarID sets the "gravatar_id" field if the given value is not nil.

func (*UserUpdate) SetNillableHTMLURL

func (uu *UserUpdate) SetNillableHTMLURL(s *string) *UserUpdate

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*UserUpdate) SetNillableHireable

func (uu *UserUpdate) SetNillableHireable(b *bool) *UserUpdate

SetNillableHireable sets the "hireable" field if the given value is not nil.

func (*UserUpdate) SetNillableLocation

func (uu *UserUpdate) SetNillableLocation(s *string) *UserUpdate

SetNillableLocation sets the "location" field if the given value is not nil.

func (*UserUpdate) SetNillableLogin

func (uu *UserUpdate) SetNillableLogin(s *string) *UserUpdate

SetNillableLogin sets the "login" field if the given value is not nil.

func (*UserUpdate) SetNillableName

func (uu *UserUpdate) SetNillableName(s *string) *UserUpdate

SetNillableName sets the "name" field if the given value is not nil.

func (*UserUpdate) SetNillableNodeID

func (uu *UserUpdate) SetNillableNodeID(s *string) *UserUpdate

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*UserUpdate) SetNillableOrganizationsURL

func (uu *UserUpdate) SetNillableOrganizationsURL(s *string) *UserUpdate

SetNillableOrganizationsURL sets the "organizations_url" field if the given value is not nil.

func (*UserUpdate) SetNillablePublicGists

func (uu *UserUpdate) SetNillablePublicGists(i *int64) *UserUpdate

SetNillablePublicGists sets the "public_gists" field if the given value is not nil.

func (*UserUpdate) SetNillablePublicRepos

func (uu *UserUpdate) SetNillablePublicRepos(i *int64) *UserUpdate

SetNillablePublicRepos sets the "public_repos" field if the given value is not nil.

func (*UserUpdate) SetNillableReceivedEventsURL

func (uu *UserUpdate) SetNillableReceivedEventsURL(s *string) *UserUpdate

SetNillableReceivedEventsURL sets the "received_events_url" field if the given value is not nil.

func (*UserUpdate) SetNillableReposURL

func (uu *UserUpdate) SetNillableReposURL(s *string) *UserUpdate

SetNillableReposURL sets the "repos_url" field if the given value is not nil.

func (*UserUpdate) SetNillableSiteAdmin

func (uu *UserUpdate) SetNillableSiteAdmin(b *bool) *UserUpdate

SetNillableSiteAdmin sets the "site_admin" field if the given value is not nil.

func (*UserUpdate) SetNillableStarredURL

func (uu *UserUpdate) SetNillableStarredURL(s *string) *UserUpdate

SetNillableStarredURL sets the "starred_url" field if the given value is not nil.

func (*UserUpdate) SetNillableSubscriptionsURL

func (uu *UserUpdate) SetNillableSubscriptionsURL(s *string) *UserUpdate

SetNillableSubscriptionsURL sets the "subscriptions_url" field if the given value is not nil.

func (*UserUpdate) SetNillableType

func (uu *UserUpdate) SetNillableType(s *string) *UserUpdate

SetNillableType sets the "type" field if the given value is not nil.

func (*UserUpdate) SetNillableURL

func (uu *UserUpdate) SetNillableURL(s *string) *UserUpdate

SetNillableURL sets the "url" field if the given value is not nil.

func (*UserUpdate) SetNillableUpdatedAt

func (uu *UserUpdate) SetNillableUpdatedAt(t *time.Time) *UserUpdate

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

func (*UserUpdate) SetNodeID

func (uu *UserUpdate) SetNodeID(s string) *UserUpdate

SetNodeID sets the "node_id" field.

func (*UserUpdate) SetOrganizationsURL

func (uu *UserUpdate) SetOrganizationsURL(s string) *UserUpdate

SetOrganizationsURL sets the "organizations_url" field.

func (*UserUpdate) SetPublicGists

func (uu *UserUpdate) SetPublicGists(i int64) *UserUpdate

SetPublicGists sets the "public_gists" field.

func (*UserUpdate) SetPublicRepos

func (uu *UserUpdate) SetPublicRepos(i int64) *UserUpdate

SetPublicRepos sets the "public_repos" field.

func (*UserUpdate) SetReceivedEventsURL

func (uu *UserUpdate) SetReceivedEventsURL(s string) *UserUpdate

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserUpdate) SetReposURL

func (uu *UserUpdate) SetReposURL(s string) *UserUpdate

SetReposURL sets the "repos_url" field.

func (*UserUpdate) SetSiteAdmin

func (uu *UserUpdate) SetSiteAdmin(b bool) *UserUpdate

SetSiteAdmin sets the "site_admin" field.

func (*UserUpdate) SetStarredURL

func (uu *UserUpdate) SetStarredURL(s string) *UserUpdate

SetStarredURL sets the "starred_url" field.

func (*UserUpdate) SetSubscriptionsURL

func (uu *UserUpdate) SetSubscriptionsURL(s string) *UserUpdate

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserUpdate) SetType

func (uu *UserUpdate) SetType(s string) *UserUpdate

SetType sets the "type" field.

func (*UserUpdate) SetURL

func (uu *UserUpdate) SetURL(s string) *UserUpdate

SetURL sets the "url" field.

func (*UserUpdate) SetUpdatedAt

func (uu *UserUpdate) SetUpdatedAt(t time.Time) *UserUpdate

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdate) Where

func (uu *UserUpdate) Where(ps ...predicate.User) *UserUpdate

Where appends a list predicates to the UserUpdate builder.

type UserUpdateOne

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

UserUpdateOne is the builder for updating a single User entity.

func (*UserUpdateOne) AddCommentsCreated

func (uuo *UserUpdateOne) AddCommentsCreated(i ...*IssueComment) *UserUpdateOne

AddCommentsCreated adds the "comments_created" edges to the IssueComment entity.

func (*UserUpdateOne) AddCommentsCreatedIDs

func (uuo *UserUpdateOne) AddCommentsCreatedIDs(ids ...int64) *UserUpdateOne

AddCommentsCreatedIDs adds the "comments_created" edge to the IssueComment entity by IDs.

func (*UserUpdateOne) AddFollowers

func (uuo *UserUpdateOne) AddFollowers(i int64) *UserUpdateOne

AddFollowers adds i to the "followers" field.

func (*UserUpdateOne) AddFollowing

func (uuo *UserUpdateOne) AddFollowing(i int64) *UserUpdateOne

AddFollowing adds i to the "following" field.

func (*UserUpdateOne) AddIssuesAssigned

func (uuo *UserUpdateOne) AddIssuesAssigned(i ...*Issue) *UserUpdateOne

AddIssuesAssigned adds the "issues_assigned" edges to the Issue entity.

func (*UserUpdateOne) AddIssuesAssignedIDs

func (uuo *UserUpdateOne) AddIssuesAssignedIDs(ids ...int64) *UserUpdateOne

AddIssuesAssignedIDs adds the "issues_assigned" edge to the Issue entity by IDs.

func (*UserUpdateOne) AddIssuesClosed

func (uuo *UserUpdateOne) AddIssuesClosed(i ...*Issue) *UserUpdateOne

AddIssuesClosed adds the "issues_closed" edges to the Issue entity.

func (*UserUpdateOne) AddIssuesClosedIDs

func (uuo *UserUpdateOne) AddIssuesClosedIDs(ids ...int64) *UserUpdateOne

AddIssuesClosedIDs adds the "issues_closed" edge to the Issue entity by IDs.

func (*UserUpdateOne) AddIssuesCreated

func (uuo *UserUpdateOne) AddIssuesCreated(i ...*Issue) *UserUpdateOne

AddIssuesCreated adds the "issues_created" edges to the Issue entity.

func (*UserUpdateOne) AddIssuesCreatedIDs

func (uuo *UserUpdateOne) AddIssuesCreatedIDs(ids ...int64) *UserUpdateOne

AddIssuesCreatedIDs adds the "issues_created" edge to the Issue entity by IDs.

func (*UserUpdateOne) AddPublicGists

func (uuo *UserUpdateOne) AddPublicGists(i int64) *UserUpdateOne

AddPublicGists adds i to the "public_gists" field.

func (*UserUpdateOne) AddPublicRepos

func (uuo *UserUpdateOne) AddPublicRepos(i int64) *UserUpdateOne

AddPublicRepos adds i to the "public_repos" field.

func (*UserUpdateOne) AddRepositories

func (uuo *UserUpdateOne) AddRepositories(r ...*Repository) *UserUpdateOne

AddRepositories adds the "repositories" edges to the Repository entity.

func (*UserUpdateOne) AddRepositoryIDs

func (uuo *UserUpdateOne) AddRepositoryIDs(ids ...int64) *UserUpdateOne

AddRepositoryIDs adds the "repositories" edge to the Repository entity by IDs.

func (*UserUpdateOne) ClearBio

func (uuo *UserUpdateOne) ClearBio() *UserUpdateOne

ClearBio clears the value of the "bio" field.

func (*UserUpdateOne) ClearBlog

func (uuo *UserUpdateOne) ClearBlog() *UserUpdateOne

ClearBlog clears the value of the "blog" field.

func (*UserUpdateOne) ClearCommentsCreated

func (uuo *UserUpdateOne) ClearCommentsCreated() *UserUpdateOne

ClearCommentsCreated clears all "comments_created" edges to the IssueComment entity.

func (*UserUpdateOne) ClearCompany

func (uuo *UserUpdateOne) ClearCompany() *UserUpdateOne

ClearCompany clears the value of the "company" field.

func (*UserUpdateOne) ClearEmail

func (uuo *UserUpdateOne) ClearEmail() *UserUpdateOne

ClearEmail clears the value of the "email" field.

func (*UserUpdateOne) ClearGravatarID

func (uuo *UserUpdateOne) ClearGravatarID() *UserUpdateOne

ClearGravatarID clears the value of the "gravatar_id" field.

func (*UserUpdateOne) ClearHireable

func (uuo *UserUpdateOne) ClearHireable() *UserUpdateOne

ClearHireable clears the value of the "hireable" field.

func (*UserUpdateOne) ClearIssuesAssigned

func (uuo *UserUpdateOne) ClearIssuesAssigned() *UserUpdateOne

ClearIssuesAssigned clears all "issues_assigned" edges to the Issue entity.

func (*UserUpdateOne) ClearIssuesClosed

func (uuo *UserUpdateOne) ClearIssuesClosed() *UserUpdateOne

ClearIssuesClosed clears all "issues_closed" edges to the Issue entity.

func (*UserUpdateOne) ClearIssuesCreated

func (uuo *UserUpdateOne) ClearIssuesCreated() *UserUpdateOne

ClearIssuesCreated clears all "issues_created" edges to the Issue entity.

func (*UserUpdateOne) ClearLocation

func (uuo *UserUpdateOne) ClearLocation() *UserUpdateOne

ClearLocation clears the value of the "location" field.

func (*UserUpdateOne) ClearName

func (uuo *UserUpdateOne) ClearName() *UserUpdateOne

ClearName clears the value of the "name" field.

func (*UserUpdateOne) ClearRepositories

func (uuo *UserUpdateOne) ClearRepositories() *UserUpdateOne

ClearRepositories clears all "repositories" edges to the Repository entity.

func (*UserUpdateOne) CopyUser

func (uuo *UserUpdateOne) CopyUser(input *User) *UserUpdateOne

CopyUser allows to update a User copying the existing values of input.

func (*UserUpdateOne) Exec

func (uuo *UserUpdateOne) Exec(ctx context.Context) error

Exec executes the query on the entity.

func (*UserUpdateOne) ExecX

func (uuo *UserUpdateOne) ExecX(ctx context.Context)

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

func (*UserUpdateOne) Mutation

func (uuo *UserUpdateOne) Mutation() *UserMutation

Mutation returns the UserMutation object of the builder.

func (*UserUpdateOne) RemoveCommentsCreated

func (uuo *UserUpdateOne) RemoveCommentsCreated(i ...*IssueComment) *UserUpdateOne

RemoveCommentsCreated removes "comments_created" edges to IssueComment entities.

func (*UserUpdateOne) RemoveCommentsCreatedIDs

func (uuo *UserUpdateOne) RemoveCommentsCreatedIDs(ids ...int64) *UserUpdateOne

RemoveCommentsCreatedIDs removes the "comments_created" edge to IssueComment entities by IDs.

func (*UserUpdateOne) RemoveIssuesAssigned

func (uuo *UserUpdateOne) RemoveIssuesAssigned(i ...*Issue) *UserUpdateOne

RemoveIssuesAssigned removes "issues_assigned" edges to Issue entities.

func (*UserUpdateOne) RemoveIssuesAssignedIDs

func (uuo *UserUpdateOne) RemoveIssuesAssignedIDs(ids ...int64) *UserUpdateOne

RemoveIssuesAssignedIDs removes the "issues_assigned" edge to Issue entities by IDs.

func (*UserUpdateOne) RemoveIssuesClosed

func (uuo *UserUpdateOne) RemoveIssuesClosed(i ...*Issue) *UserUpdateOne

RemoveIssuesClosed removes "issues_closed" edges to Issue entities.

func (*UserUpdateOne) RemoveIssuesClosedIDs

func (uuo *UserUpdateOne) RemoveIssuesClosedIDs(ids ...int64) *UserUpdateOne

RemoveIssuesClosedIDs removes the "issues_closed" edge to Issue entities by IDs.

func (*UserUpdateOne) RemoveIssuesCreated

func (uuo *UserUpdateOne) RemoveIssuesCreated(i ...*Issue) *UserUpdateOne

RemoveIssuesCreated removes "issues_created" edges to Issue entities.

func (*UserUpdateOne) RemoveIssuesCreatedIDs

func (uuo *UserUpdateOne) RemoveIssuesCreatedIDs(ids ...int64) *UserUpdateOne

RemoveIssuesCreatedIDs removes the "issues_created" edge to Issue entities by IDs.

func (*UserUpdateOne) RemoveRepositories

func (uuo *UserUpdateOne) RemoveRepositories(r ...*Repository) *UserUpdateOne

RemoveRepositories removes "repositories" edges to Repository entities.

func (*UserUpdateOne) RemoveRepositoryIDs

func (uuo *UserUpdateOne) RemoveRepositoryIDs(ids ...int64) *UserUpdateOne

RemoveRepositoryIDs removes the "repositories" edge to Repository entities by IDs.

func (*UserUpdateOne) Save

func (uuo *UserUpdateOne) Save(ctx context.Context) (*User, error)

Save executes the query and returns the updated User entity.

func (*UserUpdateOne) SaveX

func (uuo *UserUpdateOne) SaveX(ctx context.Context) *User

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

func (*UserUpdateOne) Select

func (uuo *UserUpdateOne) Select(field string, fields ...string) *UserUpdateOne

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

func (*UserUpdateOne) SetAvatarURL

func (uuo *UserUpdateOne) SetAvatarURL(s string) *UserUpdateOne

SetAvatarURL sets the "avatar_url" field.

func (*UserUpdateOne) SetBio

func (uuo *UserUpdateOne) SetBio(s string) *UserUpdateOne

SetBio sets the "bio" field.

func (*UserUpdateOne) SetBlog

func (uuo *UserUpdateOne) SetBlog(s string) *UserUpdateOne

SetBlog sets the "blog" field.

func (*UserUpdateOne) SetCompany

func (uuo *UserUpdateOne) SetCompany(s string) *UserUpdateOne

SetCompany sets the "company" field.

func (*UserUpdateOne) SetCreatedAt

func (uuo *UserUpdateOne) SetCreatedAt(t time.Time) *UserUpdateOne

SetCreatedAt sets the "created_at" field.

func (*UserUpdateOne) SetEmail

func (uuo *UserUpdateOne) SetEmail(s string) *UserUpdateOne

SetEmail sets the "email" field.

func (*UserUpdateOne) SetEventsURL

func (uuo *UserUpdateOne) SetEventsURL(s string) *UserUpdateOne

SetEventsURL sets the "events_url" field.

func (*UserUpdateOne) SetFollowers

func (uuo *UserUpdateOne) SetFollowers(i int64) *UserUpdateOne

SetFollowers sets the "followers" field.

func (*UserUpdateOne) SetFollowersURL

func (uuo *UserUpdateOne) SetFollowersURL(s string) *UserUpdateOne

SetFollowersURL sets the "followers_url" field.

func (*UserUpdateOne) SetFollowing

func (uuo *UserUpdateOne) SetFollowing(i int64) *UserUpdateOne

SetFollowing sets the "following" field.

func (*UserUpdateOne) SetFollowingURL

func (uuo *UserUpdateOne) SetFollowingURL(s string) *UserUpdateOne

SetFollowingURL sets the "following_url" field.

func (*UserUpdateOne) SetGistsURL

func (uuo *UserUpdateOne) SetGistsURL(s string) *UserUpdateOne

SetGistsURL sets the "gists_url" field.

func (*UserUpdateOne) SetGravatarID

func (uuo *UserUpdateOne) SetGravatarID(s string) *UserUpdateOne

SetGravatarID sets the "gravatar_id" field.

func (*UserUpdateOne) SetHTMLURL

func (uuo *UserUpdateOne) SetHTMLURL(s string) *UserUpdateOne

SetHTMLURL sets the "html_url" field.

func (*UserUpdateOne) SetHireable

func (uuo *UserUpdateOne) SetHireable(b bool) *UserUpdateOne

SetHireable sets the "hireable" field.

func (*UserUpdateOne) SetLocation

func (uuo *UserUpdateOne) SetLocation(s string) *UserUpdateOne

SetLocation sets the "location" field.

func (*UserUpdateOne) SetLogin

func (uuo *UserUpdateOne) SetLogin(s string) *UserUpdateOne

SetLogin sets the "login" field.

func (*UserUpdateOne) SetName

func (uuo *UserUpdateOne) SetName(s string) *UserUpdateOne

SetName sets the "name" field.

func (*UserUpdateOne) SetNillableAvatarURL

func (uuo *UserUpdateOne) SetNillableAvatarURL(s *string) *UserUpdateOne

SetNillableAvatarURL sets the "avatar_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableBio

func (uuo *UserUpdateOne) SetNillableBio(s *string) *UserUpdateOne

SetNillableBio sets the "bio" field if the given value is not nil.

func (*UserUpdateOne) SetNillableBlog

func (uuo *UserUpdateOne) SetNillableBlog(s *string) *UserUpdateOne

SetNillableBlog sets the "blog" field if the given value is not nil.

func (*UserUpdateOne) SetNillableCompany

func (uuo *UserUpdateOne) SetNillableCompany(s *string) *UserUpdateOne

SetNillableCompany sets the "company" field if the given value is not nil.

func (*UserUpdateOne) SetNillableCreatedAt

func (uuo *UserUpdateOne) SetNillableCreatedAt(t *time.Time) *UserUpdateOne

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

func (*UserUpdateOne) SetNillableEmail

func (uuo *UserUpdateOne) SetNillableEmail(s *string) *UserUpdateOne

SetNillableEmail sets the "email" field if the given value is not nil.

func (*UserUpdateOne) SetNillableEventsURL

func (uuo *UserUpdateOne) SetNillableEventsURL(s *string) *UserUpdateOne

SetNillableEventsURL sets the "events_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableFollowers

func (uuo *UserUpdateOne) SetNillableFollowers(i *int64) *UserUpdateOne

SetNillableFollowers sets the "followers" field if the given value is not nil.

func (*UserUpdateOne) SetNillableFollowersURL

func (uuo *UserUpdateOne) SetNillableFollowersURL(s *string) *UserUpdateOne

SetNillableFollowersURL sets the "followers_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableFollowing

func (uuo *UserUpdateOne) SetNillableFollowing(i *int64) *UserUpdateOne

SetNillableFollowing sets the "following" field if the given value is not nil.

func (*UserUpdateOne) SetNillableFollowingURL

func (uuo *UserUpdateOne) SetNillableFollowingURL(s *string) *UserUpdateOne

SetNillableFollowingURL sets the "following_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableGistsURL

func (uuo *UserUpdateOne) SetNillableGistsURL(s *string) *UserUpdateOne

SetNillableGistsURL sets the "gists_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableGravatarID

func (uuo *UserUpdateOne) SetNillableGravatarID(s *string) *UserUpdateOne

SetNillableGravatarID sets the "gravatar_id" field if the given value is not nil.

func (*UserUpdateOne) SetNillableHTMLURL

func (uuo *UserUpdateOne) SetNillableHTMLURL(s *string) *UserUpdateOne

SetNillableHTMLURL sets the "html_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableHireable

func (uuo *UserUpdateOne) SetNillableHireable(b *bool) *UserUpdateOne

SetNillableHireable sets the "hireable" field if the given value is not nil.

func (*UserUpdateOne) SetNillableLocation

func (uuo *UserUpdateOne) SetNillableLocation(s *string) *UserUpdateOne

SetNillableLocation sets the "location" field if the given value is not nil.

func (*UserUpdateOne) SetNillableLogin

func (uuo *UserUpdateOne) SetNillableLogin(s *string) *UserUpdateOne

SetNillableLogin sets the "login" field if the given value is not nil.

func (*UserUpdateOne) SetNillableName

func (uuo *UserUpdateOne) SetNillableName(s *string) *UserUpdateOne

SetNillableName sets the "name" field if the given value is not nil.

func (*UserUpdateOne) SetNillableNodeID

func (uuo *UserUpdateOne) SetNillableNodeID(s *string) *UserUpdateOne

SetNillableNodeID sets the "node_id" field if the given value is not nil.

func (*UserUpdateOne) SetNillableOrganizationsURL

func (uuo *UserUpdateOne) SetNillableOrganizationsURL(s *string) *UserUpdateOne

SetNillableOrganizationsURL sets the "organizations_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillablePublicGists

func (uuo *UserUpdateOne) SetNillablePublicGists(i *int64) *UserUpdateOne

SetNillablePublicGists sets the "public_gists" field if the given value is not nil.

func (*UserUpdateOne) SetNillablePublicRepos

func (uuo *UserUpdateOne) SetNillablePublicRepos(i *int64) *UserUpdateOne

SetNillablePublicRepos sets the "public_repos" field if the given value is not nil.

func (*UserUpdateOne) SetNillableReceivedEventsURL

func (uuo *UserUpdateOne) SetNillableReceivedEventsURL(s *string) *UserUpdateOne

SetNillableReceivedEventsURL sets the "received_events_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableReposURL

func (uuo *UserUpdateOne) SetNillableReposURL(s *string) *UserUpdateOne

SetNillableReposURL sets the "repos_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableSiteAdmin

func (uuo *UserUpdateOne) SetNillableSiteAdmin(b *bool) *UserUpdateOne

SetNillableSiteAdmin sets the "site_admin" field if the given value is not nil.

func (*UserUpdateOne) SetNillableStarredURL

func (uuo *UserUpdateOne) SetNillableStarredURL(s *string) *UserUpdateOne

SetNillableStarredURL sets the "starred_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableSubscriptionsURL

func (uuo *UserUpdateOne) SetNillableSubscriptionsURL(s *string) *UserUpdateOne

SetNillableSubscriptionsURL sets the "subscriptions_url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableType

func (uuo *UserUpdateOne) SetNillableType(s *string) *UserUpdateOne

SetNillableType sets the "type" field if the given value is not nil.

func (*UserUpdateOne) SetNillableURL

func (uuo *UserUpdateOne) SetNillableURL(s *string) *UserUpdateOne

SetNillableURL sets the "url" field if the given value is not nil.

func (*UserUpdateOne) SetNillableUpdatedAt

func (uuo *UserUpdateOne) SetNillableUpdatedAt(t *time.Time) *UserUpdateOne

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

func (*UserUpdateOne) SetNodeID

func (uuo *UserUpdateOne) SetNodeID(s string) *UserUpdateOne

SetNodeID sets the "node_id" field.

func (*UserUpdateOne) SetOrganizationsURL

func (uuo *UserUpdateOne) SetOrganizationsURL(s string) *UserUpdateOne

SetOrganizationsURL sets the "organizations_url" field.

func (*UserUpdateOne) SetPublicGists

func (uuo *UserUpdateOne) SetPublicGists(i int64) *UserUpdateOne

SetPublicGists sets the "public_gists" field.

func (*UserUpdateOne) SetPublicRepos

func (uuo *UserUpdateOne) SetPublicRepos(i int64) *UserUpdateOne

SetPublicRepos sets the "public_repos" field.

func (*UserUpdateOne) SetReceivedEventsURL

func (uuo *UserUpdateOne) SetReceivedEventsURL(s string) *UserUpdateOne

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserUpdateOne) SetReposURL

func (uuo *UserUpdateOne) SetReposURL(s string) *UserUpdateOne

SetReposURL sets the "repos_url" field.

func (*UserUpdateOne) SetSiteAdmin

func (uuo *UserUpdateOne) SetSiteAdmin(b bool) *UserUpdateOne

SetSiteAdmin sets the "site_admin" field.

func (*UserUpdateOne) SetStarredURL

func (uuo *UserUpdateOne) SetStarredURL(s string) *UserUpdateOne

SetStarredURL sets the "starred_url" field.

func (*UserUpdateOne) SetSubscriptionsURL

func (uuo *UserUpdateOne) SetSubscriptionsURL(s string) *UserUpdateOne

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserUpdateOne) SetType

func (uuo *UserUpdateOne) SetType(s string) *UserUpdateOne

SetType sets the "type" field.

func (*UserUpdateOne) SetURL

func (uuo *UserUpdateOne) SetURL(s string) *UserUpdateOne

SetURL sets the "url" field.

func (*UserUpdateOne) SetUpdatedAt

func (uuo *UserUpdateOne) SetUpdatedAt(t time.Time) *UserUpdateOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpdateOne) Where

func (uuo *UserUpdateOne) Where(ps ...predicate.User) *UserUpdateOne

Where appends a list predicates to the UserUpdate builder.

type UserUpsert

type UserUpsert struct {
	*sql.UpdateSet
}

UserUpsert is the "OnConflict" setter.

func (*UserUpsert) AddFollowers

func (u *UserUpsert) AddFollowers(v int64) *UserUpsert

AddFollowers adds v to the "followers" field.

func (*UserUpsert) AddFollowing

func (u *UserUpsert) AddFollowing(v int64) *UserUpsert

AddFollowing adds v to the "following" field.

func (*UserUpsert) AddPublicGists

func (u *UserUpsert) AddPublicGists(v int64) *UserUpsert

AddPublicGists adds v to the "public_gists" field.

func (*UserUpsert) AddPublicRepos

func (u *UserUpsert) AddPublicRepos(v int64) *UserUpsert

AddPublicRepos adds v to the "public_repos" field.

func (*UserUpsert) ClearBio

func (u *UserUpsert) ClearBio() *UserUpsert

ClearBio clears the value of the "bio" field.

func (*UserUpsert) ClearBlog

func (u *UserUpsert) ClearBlog() *UserUpsert

ClearBlog clears the value of the "blog" field.

func (*UserUpsert) ClearCompany

func (u *UserUpsert) ClearCompany() *UserUpsert

ClearCompany clears the value of the "company" field.

func (*UserUpsert) ClearEmail

func (u *UserUpsert) ClearEmail() *UserUpsert

ClearEmail clears the value of the "email" field.

func (*UserUpsert) ClearGravatarID

func (u *UserUpsert) ClearGravatarID() *UserUpsert

ClearGravatarID clears the value of the "gravatar_id" field.

func (*UserUpsert) ClearHireable

func (u *UserUpsert) ClearHireable() *UserUpsert

ClearHireable clears the value of the "hireable" field.

func (*UserUpsert) ClearLocation

func (u *UserUpsert) ClearLocation() *UserUpsert

ClearLocation clears the value of the "location" field.

func (*UserUpsert) ClearName

func (u *UserUpsert) ClearName() *UserUpsert

ClearName clears the value of the "name" field.

func (*UserUpsert) SetAvatarURL

func (u *UserUpsert) SetAvatarURL(v string) *UserUpsert

SetAvatarURL sets the "avatar_url" field.

func (*UserUpsert) SetBio

func (u *UserUpsert) SetBio(v string) *UserUpsert

SetBio sets the "bio" field.

func (*UserUpsert) SetBlog

func (u *UserUpsert) SetBlog(v string) *UserUpsert

SetBlog sets the "blog" field.

func (*UserUpsert) SetCompany

func (u *UserUpsert) SetCompany(v string) *UserUpsert

SetCompany sets the "company" field.

func (*UserUpsert) SetCreatedAt

func (u *UserUpsert) SetCreatedAt(v time.Time) *UserUpsert

SetCreatedAt sets the "created_at" field.

func (*UserUpsert) SetEmail

func (u *UserUpsert) SetEmail(v string) *UserUpsert

SetEmail sets the "email" field.

func (*UserUpsert) SetEventsURL

func (u *UserUpsert) SetEventsURL(v string) *UserUpsert

SetEventsURL sets the "events_url" field.

func (*UserUpsert) SetFollowers

func (u *UserUpsert) SetFollowers(v int64) *UserUpsert

SetFollowers sets the "followers" field.

func (*UserUpsert) SetFollowersURL

func (u *UserUpsert) SetFollowersURL(v string) *UserUpsert

SetFollowersURL sets the "followers_url" field.

func (*UserUpsert) SetFollowing

func (u *UserUpsert) SetFollowing(v int64) *UserUpsert

SetFollowing sets the "following" field.

func (*UserUpsert) SetFollowingURL

func (u *UserUpsert) SetFollowingURL(v string) *UserUpsert

SetFollowingURL sets the "following_url" field.

func (*UserUpsert) SetGistsURL

func (u *UserUpsert) SetGistsURL(v string) *UserUpsert

SetGistsURL sets the "gists_url" field.

func (*UserUpsert) SetGravatarID

func (u *UserUpsert) SetGravatarID(v string) *UserUpsert

SetGravatarID sets the "gravatar_id" field.

func (*UserUpsert) SetHTMLURL

func (u *UserUpsert) SetHTMLURL(v string) *UserUpsert

SetHTMLURL sets the "html_url" field.

func (*UserUpsert) SetHireable

func (u *UserUpsert) SetHireable(v bool) *UserUpsert

SetHireable sets the "hireable" field.

func (*UserUpsert) SetLocation

func (u *UserUpsert) SetLocation(v string) *UserUpsert

SetLocation sets the "location" field.

func (*UserUpsert) SetLogin

func (u *UserUpsert) SetLogin(v string) *UserUpsert

SetLogin sets the "login" field.

func (*UserUpsert) SetName

func (u *UserUpsert) SetName(v string) *UserUpsert

SetName sets the "name" field.

func (*UserUpsert) SetNodeID

func (u *UserUpsert) SetNodeID(v string) *UserUpsert

SetNodeID sets the "node_id" field.

func (*UserUpsert) SetOrganizationsURL

func (u *UserUpsert) SetOrganizationsURL(v string) *UserUpsert

SetOrganizationsURL sets the "organizations_url" field.

func (*UserUpsert) SetPublicGists

func (u *UserUpsert) SetPublicGists(v int64) *UserUpsert

SetPublicGists sets the "public_gists" field.

func (*UserUpsert) SetPublicRepos

func (u *UserUpsert) SetPublicRepos(v int64) *UserUpsert

SetPublicRepos sets the "public_repos" field.

func (*UserUpsert) SetReceivedEventsURL

func (u *UserUpsert) SetReceivedEventsURL(v string) *UserUpsert

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserUpsert) SetReposURL

func (u *UserUpsert) SetReposURL(v string) *UserUpsert

SetReposURL sets the "repos_url" field.

func (*UserUpsert) SetSiteAdmin

func (u *UserUpsert) SetSiteAdmin(v bool) *UserUpsert

SetSiteAdmin sets the "site_admin" field.

func (*UserUpsert) SetStarredURL

func (u *UserUpsert) SetStarredURL(v string) *UserUpsert

SetStarredURL sets the "starred_url" field.

func (*UserUpsert) SetSubscriptionsURL

func (u *UserUpsert) SetSubscriptionsURL(v string) *UserUpsert

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserUpsert) SetType

func (u *UserUpsert) SetType(v string) *UserUpsert

SetType sets the "type" field.

func (*UserUpsert) SetURL

func (u *UserUpsert) SetURL(v string) *UserUpsert

SetURL sets the "url" field.

func (*UserUpsert) SetUpdatedAt

func (u *UserUpsert) SetUpdatedAt(v time.Time) *UserUpsert

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsert) UpdateAvatarURL

func (u *UserUpsert) UpdateAvatarURL() *UserUpsert

UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.

func (*UserUpsert) UpdateBio

func (u *UserUpsert) UpdateBio() *UserUpsert

UpdateBio sets the "bio" field to the value that was provided on create.

func (*UserUpsert) UpdateBlog

func (u *UserUpsert) UpdateBlog() *UserUpsert

UpdateBlog sets the "blog" field to the value that was provided on create.

func (*UserUpsert) UpdateCompany

func (u *UserUpsert) UpdateCompany() *UserUpsert

UpdateCompany sets the "company" field to the value that was provided on create.

func (*UserUpsert) UpdateCreatedAt

func (u *UserUpsert) UpdateCreatedAt() *UserUpsert

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*UserUpsert) UpdateEmail

func (u *UserUpsert) UpdateEmail() *UserUpsert

UpdateEmail sets the "email" field to the value that was provided on create.

func (*UserUpsert) UpdateEventsURL

func (u *UserUpsert) UpdateEventsURL() *UserUpsert

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*UserUpsert) UpdateFollowers

func (u *UserUpsert) UpdateFollowers() *UserUpsert

UpdateFollowers sets the "followers" field to the value that was provided on create.

func (*UserUpsert) UpdateFollowersURL

func (u *UserUpsert) UpdateFollowersURL() *UserUpsert

UpdateFollowersURL sets the "followers_url" field to the value that was provided on create.

func (*UserUpsert) UpdateFollowing

func (u *UserUpsert) UpdateFollowing() *UserUpsert

UpdateFollowing sets the "following" field to the value that was provided on create.

func (*UserUpsert) UpdateFollowingURL

func (u *UserUpsert) UpdateFollowingURL() *UserUpsert

UpdateFollowingURL sets the "following_url" field to the value that was provided on create.

func (*UserUpsert) UpdateGistsURL

func (u *UserUpsert) UpdateGistsURL() *UserUpsert

UpdateGistsURL sets the "gists_url" field to the value that was provided on create.

func (*UserUpsert) UpdateGravatarID

func (u *UserUpsert) UpdateGravatarID() *UserUpsert

UpdateGravatarID sets the "gravatar_id" field to the value that was provided on create.

func (*UserUpsert) UpdateHTMLURL

func (u *UserUpsert) UpdateHTMLURL() *UserUpsert

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*UserUpsert) UpdateHireable

func (u *UserUpsert) UpdateHireable() *UserUpsert

UpdateHireable sets the "hireable" field to the value that was provided on create.

func (*UserUpsert) UpdateLocation

func (u *UserUpsert) UpdateLocation() *UserUpsert

UpdateLocation sets the "location" field to the value that was provided on create.

func (*UserUpsert) UpdateLogin

func (u *UserUpsert) UpdateLogin() *UserUpsert

UpdateLogin sets the "login" field to the value that was provided on create.

func (*UserUpsert) UpdateName

func (u *UserUpsert) UpdateName() *UserUpsert

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

func (*UserUpsert) UpdateNodeID

func (u *UserUpsert) UpdateNodeID() *UserUpsert

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*UserUpsert) UpdateOrganizationsURL

func (u *UserUpsert) UpdateOrganizationsURL() *UserUpsert

UpdateOrganizationsURL sets the "organizations_url" field to the value that was provided on create.

func (*UserUpsert) UpdatePublicGists

func (u *UserUpsert) UpdatePublicGists() *UserUpsert

UpdatePublicGists sets the "public_gists" field to the value that was provided on create.

func (*UserUpsert) UpdatePublicRepos

func (u *UserUpsert) UpdatePublicRepos() *UserUpsert

UpdatePublicRepos sets the "public_repos" field to the value that was provided on create.

func (*UserUpsert) UpdateReceivedEventsURL

func (u *UserUpsert) UpdateReceivedEventsURL() *UserUpsert

UpdateReceivedEventsURL sets the "received_events_url" field to the value that was provided on create.

func (*UserUpsert) UpdateReposURL

func (u *UserUpsert) UpdateReposURL() *UserUpsert

UpdateReposURL sets the "repos_url" field to the value that was provided on create.

func (*UserUpsert) UpdateSiteAdmin

func (u *UserUpsert) UpdateSiteAdmin() *UserUpsert

UpdateSiteAdmin sets the "site_admin" field to the value that was provided on create.

func (*UserUpsert) UpdateStarredURL

func (u *UserUpsert) UpdateStarredURL() *UserUpsert

UpdateStarredURL sets the "starred_url" field to the value that was provided on create.

func (*UserUpsert) UpdateSubscriptionsURL

func (u *UserUpsert) UpdateSubscriptionsURL() *UserUpsert

UpdateSubscriptionsURL sets the "subscriptions_url" field to the value that was provided on create.

func (*UserUpsert) UpdateType

func (u *UserUpsert) UpdateType() *UserUpsert

UpdateType sets the "type" field to the value that was provided on create.

func (*UserUpsert) UpdateURL

func (u *UserUpsert) UpdateURL() *UserUpsert

UpdateURL sets the "url" field to the value that was provided on create.

func (*UserUpsert) UpdateUpdatedAt

func (u *UserUpsert) UpdateUpdatedAt() *UserUpsert

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserUpsertBulk

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

UserUpsertBulk is the builder for "upsert"-ing a bulk of User nodes.

func (*UserUpsertBulk) AddFollowers

func (u *UserUpsertBulk) AddFollowers(v int64) *UserUpsertBulk

AddFollowers adds v to the "followers" field.

func (*UserUpsertBulk) AddFollowing

func (u *UserUpsertBulk) AddFollowing(v int64) *UserUpsertBulk

AddFollowing adds v to the "following" field.

func (*UserUpsertBulk) AddPublicGists

func (u *UserUpsertBulk) AddPublicGists(v int64) *UserUpsertBulk

AddPublicGists adds v to the "public_gists" field.

func (*UserUpsertBulk) AddPublicRepos

func (u *UserUpsertBulk) AddPublicRepos(v int64) *UserUpsertBulk

AddPublicRepos adds v to the "public_repos" field.

func (*UserUpsertBulk) ClearBio

func (u *UserUpsertBulk) ClearBio() *UserUpsertBulk

ClearBio clears the value of the "bio" field.

func (*UserUpsertBulk) ClearBlog

func (u *UserUpsertBulk) ClearBlog() *UserUpsertBulk

ClearBlog clears the value of the "blog" field.

func (*UserUpsertBulk) ClearCompany

func (u *UserUpsertBulk) ClearCompany() *UserUpsertBulk

ClearCompany clears the value of the "company" field.

func (*UserUpsertBulk) ClearEmail

func (u *UserUpsertBulk) ClearEmail() *UserUpsertBulk

ClearEmail clears the value of the "email" field.

func (*UserUpsertBulk) ClearGravatarID

func (u *UserUpsertBulk) ClearGravatarID() *UserUpsertBulk

ClearGravatarID clears the value of the "gravatar_id" field.

func (*UserUpsertBulk) ClearHireable

func (u *UserUpsertBulk) ClearHireable() *UserUpsertBulk

ClearHireable clears the value of the "hireable" field.

func (*UserUpsertBulk) ClearLocation

func (u *UserUpsertBulk) ClearLocation() *UserUpsertBulk

ClearLocation clears the value of the "location" field.

func (*UserUpsertBulk) ClearName

func (u *UserUpsertBulk) ClearName() *UserUpsertBulk

ClearName clears the value of the "name" field.

func (*UserUpsertBulk) DoNothing

func (u *UserUpsertBulk) DoNothing() *UserUpsertBulk

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

func (*UserUpsertBulk) Exec

func (u *UserUpsertBulk) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpsertBulk) ExecX

func (u *UserUpsertBulk) ExecX(ctx context.Context)

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

func (*UserUpsertBulk) Ignore

func (u *UserUpsertBulk) Ignore() *UserUpsertBulk

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

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

func (*UserUpsertBulk) SetAvatarURL

func (u *UserUpsertBulk) SetAvatarURL(v string) *UserUpsertBulk

SetAvatarURL sets the "avatar_url" field.

func (*UserUpsertBulk) SetBio

func (u *UserUpsertBulk) SetBio(v string) *UserUpsertBulk

SetBio sets the "bio" field.

func (*UserUpsertBulk) SetBlog

func (u *UserUpsertBulk) SetBlog(v string) *UserUpsertBulk

SetBlog sets the "blog" field.

func (*UserUpsertBulk) SetCompany

func (u *UserUpsertBulk) SetCompany(v string) *UserUpsertBulk

SetCompany sets the "company" field.

func (*UserUpsertBulk) SetCreatedAt

func (u *UserUpsertBulk) SetCreatedAt(v time.Time) *UserUpsertBulk

SetCreatedAt sets the "created_at" field.

func (*UserUpsertBulk) SetEmail

func (u *UserUpsertBulk) SetEmail(v string) *UserUpsertBulk

SetEmail sets the "email" field.

func (*UserUpsertBulk) SetEventsURL

func (u *UserUpsertBulk) SetEventsURL(v string) *UserUpsertBulk

SetEventsURL sets the "events_url" field.

func (*UserUpsertBulk) SetFollowers

func (u *UserUpsertBulk) SetFollowers(v int64) *UserUpsertBulk

SetFollowers sets the "followers" field.

func (*UserUpsertBulk) SetFollowersURL

func (u *UserUpsertBulk) SetFollowersURL(v string) *UserUpsertBulk

SetFollowersURL sets the "followers_url" field.

func (*UserUpsertBulk) SetFollowing

func (u *UserUpsertBulk) SetFollowing(v int64) *UserUpsertBulk

SetFollowing sets the "following" field.

func (*UserUpsertBulk) SetFollowingURL

func (u *UserUpsertBulk) SetFollowingURL(v string) *UserUpsertBulk

SetFollowingURL sets the "following_url" field.

func (*UserUpsertBulk) SetGistsURL

func (u *UserUpsertBulk) SetGistsURL(v string) *UserUpsertBulk

SetGistsURL sets the "gists_url" field.

func (*UserUpsertBulk) SetGravatarID

func (u *UserUpsertBulk) SetGravatarID(v string) *UserUpsertBulk

SetGravatarID sets the "gravatar_id" field.

func (*UserUpsertBulk) SetHTMLURL

func (u *UserUpsertBulk) SetHTMLURL(v string) *UserUpsertBulk

SetHTMLURL sets the "html_url" field.

func (*UserUpsertBulk) SetHireable

func (u *UserUpsertBulk) SetHireable(v bool) *UserUpsertBulk

SetHireable sets the "hireable" field.

func (*UserUpsertBulk) SetLocation

func (u *UserUpsertBulk) SetLocation(v string) *UserUpsertBulk

SetLocation sets the "location" field.

func (*UserUpsertBulk) SetLogin

func (u *UserUpsertBulk) SetLogin(v string) *UserUpsertBulk

SetLogin sets the "login" field.

func (*UserUpsertBulk) SetName

func (u *UserUpsertBulk) SetName(v string) *UserUpsertBulk

SetName sets the "name" field.

func (*UserUpsertBulk) SetNodeID

func (u *UserUpsertBulk) SetNodeID(v string) *UserUpsertBulk

SetNodeID sets the "node_id" field.

func (*UserUpsertBulk) SetOrganizationsURL

func (u *UserUpsertBulk) SetOrganizationsURL(v string) *UserUpsertBulk

SetOrganizationsURL sets the "organizations_url" field.

func (*UserUpsertBulk) SetPublicGists

func (u *UserUpsertBulk) SetPublicGists(v int64) *UserUpsertBulk

SetPublicGists sets the "public_gists" field.

func (*UserUpsertBulk) SetPublicRepos

func (u *UserUpsertBulk) SetPublicRepos(v int64) *UserUpsertBulk

SetPublicRepos sets the "public_repos" field.

func (*UserUpsertBulk) SetReceivedEventsURL

func (u *UserUpsertBulk) SetReceivedEventsURL(v string) *UserUpsertBulk

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserUpsertBulk) SetReposURL

func (u *UserUpsertBulk) SetReposURL(v string) *UserUpsertBulk

SetReposURL sets the "repos_url" field.

func (*UserUpsertBulk) SetSiteAdmin

func (u *UserUpsertBulk) SetSiteAdmin(v bool) *UserUpsertBulk

SetSiteAdmin sets the "site_admin" field.

func (*UserUpsertBulk) SetStarredURL

func (u *UserUpsertBulk) SetStarredURL(v string) *UserUpsertBulk

SetStarredURL sets the "starred_url" field.

func (*UserUpsertBulk) SetSubscriptionsURL

func (u *UserUpsertBulk) SetSubscriptionsURL(v string) *UserUpsertBulk

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserUpsertBulk) SetType

func (u *UserUpsertBulk) SetType(v string) *UserUpsertBulk

SetType sets the "type" field.

func (*UserUpsertBulk) SetURL

func (u *UserUpsertBulk) SetURL(v string) *UserUpsertBulk

SetURL sets the "url" field.

func (*UserUpsertBulk) SetUpdatedAt

func (u *UserUpsertBulk) SetUpdatedAt(v time.Time) *UserUpsertBulk

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsertBulk) Update

func (u *UserUpsertBulk) Update(set func(*UserUpsert)) *UserUpsertBulk

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

func (*UserUpsertBulk) UpdateAvatarURL

func (u *UserUpsertBulk) UpdateAvatarURL() *UserUpsertBulk

UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateBio

func (u *UserUpsertBulk) UpdateBio() *UserUpsertBulk

UpdateBio sets the "bio" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateBlog

func (u *UserUpsertBulk) UpdateBlog() *UserUpsertBulk

UpdateBlog sets the "blog" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateCompany

func (u *UserUpsertBulk) UpdateCompany() *UserUpsertBulk

UpdateCompany sets the "company" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateCreatedAt

func (u *UserUpsertBulk) UpdateCreatedAt() *UserUpsertBulk

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateEmail

func (u *UserUpsertBulk) UpdateEmail() *UserUpsertBulk

UpdateEmail sets the "email" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateEventsURL

func (u *UserUpsertBulk) UpdateEventsURL() *UserUpsertBulk

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateFollowers

func (u *UserUpsertBulk) UpdateFollowers() *UserUpsertBulk

UpdateFollowers sets the "followers" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateFollowersURL

func (u *UserUpsertBulk) UpdateFollowersURL() *UserUpsertBulk

UpdateFollowersURL sets the "followers_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateFollowing

func (u *UserUpsertBulk) UpdateFollowing() *UserUpsertBulk

UpdateFollowing sets the "following" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateFollowingURL

func (u *UserUpsertBulk) UpdateFollowingURL() *UserUpsertBulk

UpdateFollowingURL sets the "following_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateGistsURL

func (u *UserUpsertBulk) UpdateGistsURL() *UserUpsertBulk

UpdateGistsURL sets the "gists_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateGravatarID

func (u *UserUpsertBulk) UpdateGravatarID() *UserUpsertBulk

UpdateGravatarID sets the "gravatar_id" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateHTMLURL

func (u *UserUpsertBulk) UpdateHTMLURL() *UserUpsertBulk

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateHireable

func (u *UserUpsertBulk) UpdateHireable() *UserUpsertBulk

UpdateHireable sets the "hireable" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateLocation

func (u *UserUpsertBulk) UpdateLocation() *UserUpsertBulk

UpdateLocation sets the "location" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateLogin

func (u *UserUpsertBulk) UpdateLogin() *UserUpsertBulk

UpdateLogin sets the "login" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateName

func (u *UserUpsertBulk) UpdateName() *UserUpsertBulk

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

func (*UserUpsertBulk) UpdateNewValues

func (u *UserUpsertBulk) UpdateNewValues() *UserUpsertBulk

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

client.User.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(user.FieldID)
		}),
	).
	Exec(ctx)

func (*UserUpsertBulk) UpdateNodeID

func (u *UserUpsertBulk) UpdateNodeID() *UserUpsertBulk

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateOrganizationsURL

func (u *UserUpsertBulk) UpdateOrganizationsURL() *UserUpsertBulk

UpdateOrganizationsURL sets the "organizations_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdatePublicGists

func (u *UserUpsertBulk) UpdatePublicGists() *UserUpsertBulk

UpdatePublicGists sets the "public_gists" field to the value that was provided on create.

func (*UserUpsertBulk) UpdatePublicRepos

func (u *UserUpsertBulk) UpdatePublicRepos() *UserUpsertBulk

UpdatePublicRepos sets the "public_repos" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateReceivedEventsURL

func (u *UserUpsertBulk) UpdateReceivedEventsURL() *UserUpsertBulk

UpdateReceivedEventsURL sets the "received_events_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateReposURL

func (u *UserUpsertBulk) UpdateReposURL() *UserUpsertBulk

UpdateReposURL sets the "repos_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateSiteAdmin

func (u *UserUpsertBulk) UpdateSiteAdmin() *UserUpsertBulk

UpdateSiteAdmin sets the "site_admin" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateStarredURL

func (u *UserUpsertBulk) UpdateStarredURL() *UserUpsertBulk

UpdateStarredURL sets the "starred_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateSubscriptionsURL

func (u *UserUpsertBulk) UpdateSubscriptionsURL() *UserUpsertBulk

UpdateSubscriptionsURL sets the "subscriptions_url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateType

func (u *UserUpsertBulk) UpdateType() *UserUpsertBulk

UpdateType sets the "type" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateURL

func (u *UserUpsertBulk) UpdateURL() *UserUpsertBulk

UpdateURL sets the "url" field to the value that was provided on create.

func (*UserUpsertBulk) UpdateUpdatedAt

func (u *UserUpsertBulk) UpdateUpdatedAt() *UserUpsertBulk

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type UserUpsertOne

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

UserUpsertOne is the builder for "upsert"-ing

one User node.

func (*UserUpsertOne) AddFollowers

func (u *UserUpsertOne) AddFollowers(v int64) *UserUpsertOne

AddFollowers adds v to the "followers" field.

func (*UserUpsertOne) AddFollowing

func (u *UserUpsertOne) AddFollowing(v int64) *UserUpsertOne

AddFollowing adds v to the "following" field.

func (*UserUpsertOne) AddPublicGists

func (u *UserUpsertOne) AddPublicGists(v int64) *UserUpsertOne

AddPublicGists adds v to the "public_gists" field.

func (*UserUpsertOne) AddPublicRepos

func (u *UserUpsertOne) AddPublicRepos(v int64) *UserUpsertOne

AddPublicRepos adds v to the "public_repos" field.

func (*UserUpsertOne) ClearBio

func (u *UserUpsertOne) ClearBio() *UserUpsertOne

ClearBio clears the value of the "bio" field.

func (*UserUpsertOne) ClearBlog

func (u *UserUpsertOne) ClearBlog() *UserUpsertOne

ClearBlog clears the value of the "blog" field.

func (*UserUpsertOne) ClearCompany

func (u *UserUpsertOne) ClearCompany() *UserUpsertOne

ClearCompany clears the value of the "company" field.

func (*UserUpsertOne) ClearEmail

func (u *UserUpsertOne) ClearEmail() *UserUpsertOne

ClearEmail clears the value of the "email" field.

func (*UserUpsertOne) ClearGravatarID

func (u *UserUpsertOne) ClearGravatarID() *UserUpsertOne

ClearGravatarID clears the value of the "gravatar_id" field.

func (*UserUpsertOne) ClearHireable

func (u *UserUpsertOne) ClearHireable() *UserUpsertOne

ClearHireable clears the value of the "hireable" field.

func (*UserUpsertOne) ClearLocation

func (u *UserUpsertOne) ClearLocation() *UserUpsertOne

ClearLocation clears the value of the "location" field.

func (*UserUpsertOne) ClearName

func (u *UserUpsertOne) ClearName() *UserUpsertOne

ClearName clears the value of the "name" field.

func (*UserUpsertOne) DoNothing

func (u *UserUpsertOne) DoNothing() *UserUpsertOne

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

func (*UserUpsertOne) Exec

func (u *UserUpsertOne) Exec(ctx context.Context) error

Exec executes the query.

func (*UserUpsertOne) ExecX

func (u *UserUpsertOne) ExecX(ctx context.Context)

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

func (*UserUpsertOne) ID

func (u *UserUpsertOne) ID(ctx context.Context) (id int64, err error)

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

func (*UserUpsertOne) IDX

func (u *UserUpsertOne) IDX(ctx context.Context) int64

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

func (*UserUpsertOne) Ignore

func (u *UserUpsertOne) Ignore() *UserUpsertOne

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

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

func (*UserUpsertOne) SetAvatarURL

func (u *UserUpsertOne) SetAvatarURL(v string) *UserUpsertOne

SetAvatarURL sets the "avatar_url" field.

func (*UserUpsertOne) SetBio

func (u *UserUpsertOne) SetBio(v string) *UserUpsertOne

SetBio sets the "bio" field.

func (*UserUpsertOne) SetBlog

func (u *UserUpsertOne) SetBlog(v string) *UserUpsertOne

SetBlog sets the "blog" field.

func (*UserUpsertOne) SetCompany

func (u *UserUpsertOne) SetCompany(v string) *UserUpsertOne

SetCompany sets the "company" field.

func (*UserUpsertOne) SetCreatedAt

func (u *UserUpsertOne) SetCreatedAt(v time.Time) *UserUpsertOne

SetCreatedAt sets the "created_at" field.

func (*UserUpsertOne) SetEmail

func (u *UserUpsertOne) SetEmail(v string) *UserUpsertOne

SetEmail sets the "email" field.

func (*UserUpsertOne) SetEventsURL

func (u *UserUpsertOne) SetEventsURL(v string) *UserUpsertOne

SetEventsURL sets the "events_url" field.

func (*UserUpsertOne) SetFollowers

func (u *UserUpsertOne) SetFollowers(v int64) *UserUpsertOne

SetFollowers sets the "followers" field.

func (*UserUpsertOne) SetFollowersURL

func (u *UserUpsertOne) SetFollowersURL(v string) *UserUpsertOne

SetFollowersURL sets the "followers_url" field.

func (*UserUpsertOne) SetFollowing

func (u *UserUpsertOne) SetFollowing(v int64) *UserUpsertOne

SetFollowing sets the "following" field.

func (*UserUpsertOne) SetFollowingURL

func (u *UserUpsertOne) SetFollowingURL(v string) *UserUpsertOne

SetFollowingURL sets the "following_url" field.

func (*UserUpsertOne) SetGistsURL

func (u *UserUpsertOne) SetGistsURL(v string) *UserUpsertOne

SetGistsURL sets the "gists_url" field.

func (*UserUpsertOne) SetGravatarID

func (u *UserUpsertOne) SetGravatarID(v string) *UserUpsertOne

SetGravatarID sets the "gravatar_id" field.

func (*UserUpsertOne) SetHTMLURL

func (u *UserUpsertOne) SetHTMLURL(v string) *UserUpsertOne

SetHTMLURL sets the "html_url" field.

func (*UserUpsertOne) SetHireable

func (u *UserUpsertOne) SetHireable(v bool) *UserUpsertOne

SetHireable sets the "hireable" field.

func (*UserUpsertOne) SetLocation

func (u *UserUpsertOne) SetLocation(v string) *UserUpsertOne

SetLocation sets the "location" field.

func (*UserUpsertOne) SetLogin

func (u *UserUpsertOne) SetLogin(v string) *UserUpsertOne

SetLogin sets the "login" field.

func (*UserUpsertOne) SetName

func (u *UserUpsertOne) SetName(v string) *UserUpsertOne

SetName sets the "name" field.

func (*UserUpsertOne) SetNodeID

func (u *UserUpsertOne) SetNodeID(v string) *UserUpsertOne

SetNodeID sets the "node_id" field.

func (*UserUpsertOne) SetOrganizationsURL

func (u *UserUpsertOne) SetOrganizationsURL(v string) *UserUpsertOne

SetOrganizationsURL sets the "organizations_url" field.

func (*UserUpsertOne) SetPublicGists

func (u *UserUpsertOne) SetPublicGists(v int64) *UserUpsertOne

SetPublicGists sets the "public_gists" field.

func (*UserUpsertOne) SetPublicRepos

func (u *UserUpsertOne) SetPublicRepos(v int64) *UserUpsertOne

SetPublicRepos sets the "public_repos" field.

func (*UserUpsertOne) SetReceivedEventsURL

func (u *UserUpsertOne) SetReceivedEventsURL(v string) *UserUpsertOne

SetReceivedEventsURL sets the "received_events_url" field.

func (*UserUpsertOne) SetReposURL

func (u *UserUpsertOne) SetReposURL(v string) *UserUpsertOne

SetReposURL sets the "repos_url" field.

func (*UserUpsertOne) SetSiteAdmin

func (u *UserUpsertOne) SetSiteAdmin(v bool) *UserUpsertOne

SetSiteAdmin sets the "site_admin" field.

func (*UserUpsertOne) SetStarredURL

func (u *UserUpsertOne) SetStarredURL(v string) *UserUpsertOne

SetStarredURL sets the "starred_url" field.

func (*UserUpsertOne) SetSubscriptionsURL

func (u *UserUpsertOne) SetSubscriptionsURL(v string) *UserUpsertOne

SetSubscriptionsURL sets the "subscriptions_url" field.

func (*UserUpsertOne) SetType

func (u *UserUpsertOne) SetType(v string) *UserUpsertOne

SetType sets the "type" field.

func (*UserUpsertOne) SetURL

func (u *UserUpsertOne) SetURL(v string) *UserUpsertOne

SetURL sets the "url" field.

func (*UserUpsertOne) SetUpdatedAt

func (u *UserUpsertOne) SetUpdatedAt(v time.Time) *UserUpsertOne

SetUpdatedAt sets the "updated_at" field.

func (*UserUpsertOne) Update

func (u *UserUpsertOne) Update(set func(*UserUpsert)) *UserUpsertOne

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

func (*UserUpsertOne) UpdateAvatarURL

func (u *UserUpsertOne) UpdateAvatarURL() *UserUpsertOne

UpdateAvatarURL sets the "avatar_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateBio

func (u *UserUpsertOne) UpdateBio() *UserUpsertOne

UpdateBio sets the "bio" field to the value that was provided on create.

func (*UserUpsertOne) UpdateBlog

func (u *UserUpsertOne) UpdateBlog() *UserUpsertOne

UpdateBlog sets the "blog" field to the value that was provided on create.

func (*UserUpsertOne) UpdateCompany

func (u *UserUpsertOne) UpdateCompany() *UserUpsertOne

UpdateCompany sets the "company" field to the value that was provided on create.

func (*UserUpsertOne) UpdateCreatedAt

func (u *UserUpsertOne) UpdateCreatedAt() *UserUpsertOne

UpdateCreatedAt sets the "created_at" field to the value that was provided on create.

func (*UserUpsertOne) UpdateEmail

func (u *UserUpsertOne) UpdateEmail() *UserUpsertOne

UpdateEmail sets the "email" field to the value that was provided on create.

func (*UserUpsertOne) UpdateEventsURL

func (u *UserUpsertOne) UpdateEventsURL() *UserUpsertOne

UpdateEventsURL sets the "events_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateFollowers

func (u *UserUpsertOne) UpdateFollowers() *UserUpsertOne

UpdateFollowers sets the "followers" field to the value that was provided on create.

func (*UserUpsertOne) UpdateFollowersURL

func (u *UserUpsertOne) UpdateFollowersURL() *UserUpsertOne

UpdateFollowersURL sets the "followers_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateFollowing

func (u *UserUpsertOne) UpdateFollowing() *UserUpsertOne

UpdateFollowing sets the "following" field to the value that was provided on create.

func (*UserUpsertOne) UpdateFollowingURL

func (u *UserUpsertOne) UpdateFollowingURL() *UserUpsertOne

UpdateFollowingURL sets the "following_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateGistsURL

func (u *UserUpsertOne) UpdateGistsURL() *UserUpsertOne

UpdateGistsURL sets the "gists_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateGravatarID

func (u *UserUpsertOne) UpdateGravatarID() *UserUpsertOne

UpdateGravatarID sets the "gravatar_id" field to the value that was provided on create.

func (*UserUpsertOne) UpdateHTMLURL

func (u *UserUpsertOne) UpdateHTMLURL() *UserUpsertOne

UpdateHTMLURL sets the "html_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateHireable

func (u *UserUpsertOne) UpdateHireable() *UserUpsertOne

UpdateHireable sets the "hireable" field to the value that was provided on create.

func (*UserUpsertOne) UpdateLocation

func (u *UserUpsertOne) UpdateLocation() *UserUpsertOne

UpdateLocation sets the "location" field to the value that was provided on create.

func (*UserUpsertOne) UpdateLogin

func (u *UserUpsertOne) UpdateLogin() *UserUpsertOne

UpdateLogin sets the "login" field to the value that was provided on create.

func (*UserUpsertOne) UpdateName

func (u *UserUpsertOne) UpdateName() *UserUpsertOne

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

func (*UserUpsertOne) UpdateNewValues

func (u *UserUpsertOne) UpdateNewValues() *UserUpsertOne

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

client.User.Create().
	OnConflict(
		sql.ResolveWithNewValues(),
		sql.ResolveWith(func(u *sql.UpdateSet) {
			u.SetIgnore(user.FieldID)
		}),
	).
	Exec(ctx)

func (*UserUpsertOne) UpdateNodeID

func (u *UserUpsertOne) UpdateNodeID() *UserUpsertOne

UpdateNodeID sets the "node_id" field to the value that was provided on create.

func (*UserUpsertOne) UpdateOrganizationsURL

func (u *UserUpsertOne) UpdateOrganizationsURL() *UserUpsertOne

UpdateOrganizationsURL sets the "organizations_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdatePublicGists

func (u *UserUpsertOne) UpdatePublicGists() *UserUpsertOne

UpdatePublicGists sets the "public_gists" field to the value that was provided on create.

func (*UserUpsertOne) UpdatePublicRepos

func (u *UserUpsertOne) UpdatePublicRepos() *UserUpsertOne

UpdatePublicRepos sets the "public_repos" field to the value that was provided on create.

func (*UserUpsertOne) UpdateReceivedEventsURL

func (u *UserUpsertOne) UpdateReceivedEventsURL() *UserUpsertOne

UpdateReceivedEventsURL sets the "received_events_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateReposURL

func (u *UserUpsertOne) UpdateReposURL() *UserUpsertOne

UpdateReposURL sets the "repos_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateSiteAdmin

func (u *UserUpsertOne) UpdateSiteAdmin() *UserUpsertOne

UpdateSiteAdmin sets the "site_admin" field to the value that was provided on create.

func (*UserUpsertOne) UpdateStarredURL

func (u *UserUpsertOne) UpdateStarredURL() *UserUpsertOne

UpdateStarredURL sets the "starred_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateSubscriptionsURL

func (u *UserUpsertOne) UpdateSubscriptionsURL() *UserUpsertOne

UpdateSubscriptionsURL sets the "subscriptions_url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateType

func (u *UserUpsertOne) UpdateType() *UserUpsertOne

UpdateType sets the "type" field to the value that was provided on create.

func (*UserUpsertOne) UpdateURL

func (u *UserUpsertOne) UpdateURL() *UserUpsertOne

UpdateURL sets the "url" field to the value that was provided on create.

func (*UserUpsertOne) UpdateUpdatedAt

func (u *UserUpsertOne) UpdateUpdatedAt() *UserUpsertOne

UpdateUpdatedAt sets the "updated_at" field to the value that was provided on create.

type Users

type Users []*User

Users is a parsable slice of User.

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.

Directories

Path Synopsis
Package schema specifies the ent schema types for gh-sql's database.
Package schema specifies the ent schema types for gh-sql's database.

Jump to

Keyboard shortcuts

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