Documentation
¶
Index ¶
- Constants
- Variables
- func Asc(fields ...string) func(*sql.Selector)
- func Desc(fields ...string) func(*sql.Selector)
- func IsConstraintError(err error) bool
- func IsNotFound(err error) bool
- func IsNotLoaded(err error) bool
- func IsNotSingular(err error) bool
- func IsValidationError(err error) bool
- func MaskNotFound(err error) error
- func NewContext(parent context.Context, c *Client) context.Context
- func NewTxContext(parent context.Context, tx *Tx) context.Context
- type AggregateFunc
- type Client
- func (c *Client) BeginTx(ctx context.Context, opts *sql.TxOptions) (*Tx, error)
- func (c *Client) Close() error
- func (c *Client) Debug() *Client
- func (c *Client) Intercept(interceptors ...Interceptor)
- func (c *Client) Mutate(ctx context.Context, m Mutation) (Value, error)
- func (c *Client) Tx(ctx context.Context) (*Tx, error)
- func (c *Client) Use(hooks ...Hook)
- type CommitFunc
- type CommitHook
- type Committer
- type ConstraintError
- type Event
- type EventClient
- func (c *EventClient) Create() *EventCreate
- func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk
- func (c *EventClient) Delete() *EventDelete
- func (c *EventClient) DeleteOne(_m *Event) *EventDeleteOne
- func (c *EventClient) DeleteOneID(id uuid.UUID) *EventDeleteOne
- func (c *EventClient) Get(ctx context.Context, id uuid.UUID) (*Event, error)
- func (c *EventClient) GetX(ctx context.Context, id uuid.UUID) *Event
- func (c *EventClient) Hooks() []Hook
- func (c *EventClient) Intercept(interceptors ...Interceptor)
- func (c *EventClient) Interceptors() []Interceptor
- func (c *EventClient) MapCreateBulk(slice any, setFunc func(*EventCreate, int)) *EventCreateBulk
- func (c *EventClient) Query() *EventQuery
- func (c *EventClient) QueryJourney(_m *Event) *JourneyQuery
- func (c *EventClient) QueryProject(_m *Event) *ProjectQuery
- func (c *EventClient) Update() *EventUpdate
- func (c *EventClient) UpdateOne(_m *Event) *EventUpdateOne
- func (c *EventClient) UpdateOneID(id uuid.UUID) *EventUpdateOne
- func (c *EventClient) Use(hooks ...Hook)
- type EventCreate
- func (_c *EventCreate) Exec(ctx context.Context) error
- func (_c *EventCreate) ExecX(ctx context.Context)
- func (_c *EventCreate) Mutation() *EventMutation
- func (_c *EventCreate) Save(ctx context.Context) (*Event, error)
- func (_c *EventCreate) SaveX(ctx context.Context) *Event
- func (_c *EventCreate) SetAPIDurationMs(v int64) *EventCreate
- func (_c *EventCreate) SetAPIMethod(v string) *EventCreate
- func (_c *EventCreate) SetAPIPath(v string) *EventCreate
- func (_c *EventCreate) SetAPIStatusCode(v int) *EventCreate
- func (_c *EventCreate) SetConversionStatus(v string) *EventCreate
- func (_c *EventCreate) SetCreatedAt(v time.Time) *EventCreate
- func (_c *EventCreate) SetDurationMs(v int64) *EventCreate
- func (_c *EventCreate) SetErrorComponent(v string) *EventCreate
- func (_c *EventCreate) SetErrorMessage(v string) *EventCreate
- func (_c *EventCreate) SetErrorStack(v string) *EventCreate
- func (_c *EventCreate) SetErrorType(v string) *EventCreate
- func (_c *EventCreate) SetEventID(v string) *EventCreate
- func (_c *EventCreate) SetEventName(v string) *EventCreate
- func (_c *EventCreate) SetEventType(v event.EventType) *EventCreate
- func (_c *EventCreate) SetID(v uuid.UUID) *EventCreate
- func (_c *EventCreate) SetJourney(v *Journey) *EventCreate
- func (_c *EventCreate) SetJourneyID(v uuid.UUID) *EventCreate
- func (_c *EventCreate) SetJourneyStepID(v string) *EventCreate
- func (_c *EventCreate) SetJourneyStepName(v string) *EventCreate
- func (_c *EventCreate) SetMetadata(v map[string]interface{}) *EventCreate
- func (_c *EventCreate) SetNillableAPIDurationMs(v *int64) *EventCreate
- func (_c *EventCreate) SetNillableAPIMethod(v *string) *EventCreate
- func (_c *EventCreate) SetNillableAPIPath(v *string) *EventCreate
- func (_c *EventCreate) SetNillableAPIStatusCode(v *int) *EventCreate
- func (_c *EventCreate) SetNillableConversionStatus(v *string) *EventCreate
- func (_c *EventCreate) SetNillableCreatedAt(v *time.Time) *EventCreate
- func (_c *EventCreate) SetNillableDurationMs(v *int64) *EventCreate
- func (_c *EventCreate) SetNillableErrorComponent(v *string) *EventCreate
- func (_c *EventCreate) SetNillableErrorMessage(v *string) *EventCreate
- func (_c *EventCreate) SetNillableErrorStack(v *string) *EventCreate
- func (_c *EventCreate) SetNillableErrorType(v *string) *EventCreate
- func (_c *EventCreate) SetNillableEventName(v *string) *EventCreate
- func (_c *EventCreate) SetNillableID(v *uuid.UUID) *EventCreate
- func (_c *EventCreate) SetNillableJourneyID(v *uuid.UUID) *EventCreate
- func (_c *EventCreate) SetNillableJourneyStepID(v *string) *EventCreate
- func (_c *EventCreate) SetNillableJourneyStepName(v *string) *EventCreate
- func (_c *EventCreate) SetNillablePagePath(v *string) *EventCreate
- func (_c *EventCreate) SetNillablePageReferrer(v *string) *EventCreate
- func (_c *EventCreate) SetNillablePageTitle(v *string) *EventCreate
- func (_c *EventCreate) SetNillablePageURL(v *string) *EventCreate
- func (_c *EventCreate) SetNillablePerformanceCls(v *float64) *EventCreate
- func (_c *EventCreate) SetNillablePerformanceFidMs(v *float64) *EventCreate
- func (_c *EventCreate) SetNillablePerformanceLcpMs(v *float64) *EventCreate
- func (_c *EventCreate) SetNillablePerformanceTtfbMs(v *float64) *EventCreate
- func (_c *EventCreate) SetNillableSequence(v *int64) *EventCreate
- func (_c *EventCreate) SetNillableSnapshotURL(v *string) *EventCreate
- func (_c *EventCreate) SetNillableSnapshotViewport(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIAction(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIComponentName(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIComponentPath(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIComponentType(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIElement(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIElementText(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIScrollPosition(v *float64) *EventCreate
- func (_c *EventCreate) SetNillableUIStateAfter(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIStateBefore(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIStateChangeType(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIStateKey(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUIViewport(v *string) *EventCreate
- func (_c *EventCreate) SetNillableUserID(v *string) *EventCreate
- func (_c *EventCreate) SetOrgID(v uuid.UUID) *EventCreate
- func (_c *EventCreate) SetPagePath(v string) *EventCreate
- func (_c *EventCreate) SetPageReferrer(v string) *EventCreate
- func (_c *EventCreate) SetPageTitle(v string) *EventCreate
- func (_c *EventCreate) SetPageURL(v string) *EventCreate
- func (_c *EventCreate) SetPerformanceCls(v float64) *EventCreate
- func (_c *EventCreate) SetPerformanceFidMs(v float64) *EventCreate
- func (_c *EventCreate) SetPerformanceLcpMs(v float64) *EventCreate
- func (_c *EventCreate) SetPerformanceTtfbMs(v float64) *EventCreate
- func (_c *EventCreate) SetProject(v *Project) *EventCreate
- func (_c *EventCreate) SetProjectID(v uuid.UUID) *EventCreate
- func (_c *EventCreate) SetSequence(v int64) *EventCreate
- func (_c *EventCreate) SetSessionID(v string) *EventCreate
- func (_c *EventCreate) SetSnapshotURL(v string) *EventCreate
- func (_c *EventCreate) SetSnapshotViewport(v string) *EventCreate
- func (_c *EventCreate) SetTimestamp(v time.Time) *EventCreate
- func (_c *EventCreate) SetUIAction(v string) *EventCreate
- func (_c *EventCreate) SetUIComponentName(v string) *EventCreate
- func (_c *EventCreate) SetUIComponentPath(v string) *EventCreate
- func (_c *EventCreate) SetUIComponentType(v string) *EventCreate
- func (_c *EventCreate) SetUIElement(v string) *EventCreate
- func (_c *EventCreate) SetUIElementText(v string) *EventCreate
- func (_c *EventCreate) SetUIScrollPosition(v float64) *EventCreate
- func (_c *EventCreate) SetUIStateAfter(v string) *EventCreate
- func (_c *EventCreate) SetUIStateBefore(v string) *EventCreate
- func (_c *EventCreate) SetUIStateChangeType(v string) *EventCreate
- func (_c *EventCreate) SetUIStateKey(v string) *EventCreate
- func (_c *EventCreate) SetUIViewport(v string) *EventCreate
- func (_c *EventCreate) SetUserID(v string) *EventCreate
- type EventCreateBulk
- type EventDelete
- type EventDeleteOne
- type EventEdges
- type EventGroupBy
- func (_g *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy
- func (s *EventGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *EventGroupBy) BoolX(ctx context.Context) bool
- func (s *EventGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *EventGroupBy) BoolsX(ctx context.Context) []bool
- func (s *EventGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *EventGroupBy) Float64X(ctx context.Context) float64
- func (s *EventGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *EventGroupBy) Float64sX(ctx context.Context) []float64
- func (s *EventGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *EventGroupBy) IntX(ctx context.Context) int
- func (s *EventGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *EventGroupBy) IntsX(ctx context.Context) []int
- func (_g *EventGroupBy) Scan(ctx context.Context, v any) error
- func (s *EventGroupBy) ScanX(ctx context.Context, v any)
- func (s *EventGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *EventGroupBy) StringX(ctx context.Context) string
- func (s *EventGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *EventGroupBy) StringsX(ctx context.Context) []string
- type EventMutation
- func (m *EventMutation) APIDurationMs() (r int64, exists bool)
- func (m *EventMutation) APIDurationMsCleared() bool
- func (m *EventMutation) APIMethod() (r string, exists bool)
- func (m *EventMutation) APIMethodCleared() bool
- func (m *EventMutation) APIPath() (r string, exists bool)
- func (m *EventMutation) APIPathCleared() bool
- func (m *EventMutation) APIStatusCode() (r int, exists bool)
- func (m *EventMutation) APIStatusCodeCleared() bool
- func (m *EventMutation) AddAPIDurationMs(i int64)
- func (m *EventMutation) AddAPIStatusCode(i int)
- func (m *EventMutation) AddDurationMs(i int64)
- func (m *EventMutation) AddField(name string, value ent.Value) error
- func (m *EventMutation) AddPerformanceCls(f float64)
- func (m *EventMutation) AddPerformanceFidMs(f float64)
- func (m *EventMutation) AddPerformanceLcpMs(f float64)
- func (m *EventMutation) AddPerformanceTtfbMs(f float64)
- func (m *EventMutation) AddSequence(i int64)
- func (m *EventMutation) AddUIScrollPosition(f float64)
- func (m *EventMutation) AddedAPIDurationMs() (r int64, exists bool)
- func (m *EventMutation) AddedAPIStatusCode() (r int, exists bool)
- func (m *EventMutation) AddedDurationMs() (r int64, exists bool)
- func (m *EventMutation) AddedEdges() []string
- func (m *EventMutation) AddedField(name string) (ent.Value, bool)
- func (m *EventMutation) AddedFields() []string
- func (m *EventMutation) AddedIDs(name string) []ent.Value
- func (m *EventMutation) AddedPerformanceCls() (r float64, exists bool)
- func (m *EventMutation) AddedPerformanceFidMs() (r float64, exists bool)
- func (m *EventMutation) AddedPerformanceLcpMs() (r float64, exists bool)
- func (m *EventMutation) AddedPerformanceTtfbMs() (r float64, exists bool)
- func (m *EventMutation) AddedSequence() (r int64, exists bool)
- func (m *EventMutation) AddedUIScrollPosition() (r float64, exists bool)
- func (m *EventMutation) ClearAPIDurationMs()
- func (m *EventMutation) ClearAPIMethod()
- func (m *EventMutation) ClearAPIPath()
- func (m *EventMutation) ClearAPIStatusCode()
- func (m *EventMutation) ClearConversionStatus()
- func (m *EventMutation) ClearDurationMs()
- func (m *EventMutation) ClearEdge(name string) error
- func (m *EventMutation) ClearErrorComponent()
- func (m *EventMutation) ClearErrorMessage()
- func (m *EventMutation) ClearErrorStack()
- func (m *EventMutation) ClearErrorType()
- func (m *EventMutation) ClearEventName()
- func (m *EventMutation) ClearField(name string) error
- func (m *EventMutation) ClearJourney()
- func (m *EventMutation) ClearJourneyID()
- func (m *EventMutation) ClearJourneyStepID()
- func (m *EventMutation) ClearJourneyStepName()
- func (m *EventMutation) ClearMetadata()
- func (m *EventMutation) ClearPagePath()
- func (m *EventMutation) ClearPageReferrer()
- func (m *EventMutation) ClearPageTitle()
- func (m *EventMutation) ClearPageURL()
- func (m *EventMutation) ClearPerformanceCls()
- func (m *EventMutation) ClearPerformanceFidMs()
- func (m *EventMutation) ClearPerformanceLcpMs()
- func (m *EventMutation) ClearPerformanceTtfbMs()
- func (m *EventMutation) ClearProject()
- func (m *EventMutation) ClearSnapshotURL()
- func (m *EventMutation) ClearSnapshotViewport()
- func (m *EventMutation) ClearUIAction()
- func (m *EventMutation) ClearUIComponentName()
- func (m *EventMutation) ClearUIComponentPath()
- func (m *EventMutation) ClearUIComponentType()
- func (m *EventMutation) ClearUIElement()
- func (m *EventMutation) ClearUIElementText()
- func (m *EventMutation) ClearUIScrollPosition()
- func (m *EventMutation) ClearUIStateAfter()
- func (m *EventMutation) ClearUIStateBefore()
- func (m *EventMutation) ClearUIStateChangeType()
- func (m *EventMutation) ClearUIStateKey()
- func (m *EventMutation) ClearUIViewport()
- func (m *EventMutation) ClearUserID()
- func (m *EventMutation) ClearedEdges() []string
- func (m *EventMutation) ClearedFields() []string
- func (m EventMutation) Client() *Client
- func (m *EventMutation) ConversionStatus() (r string, exists bool)
- func (m *EventMutation) ConversionStatusCleared() bool
- func (m *EventMutation) CreatedAt() (r time.Time, exists bool)
- func (m *EventMutation) DurationMs() (r int64, exists bool)
- func (m *EventMutation) DurationMsCleared() bool
- func (m *EventMutation) EdgeCleared(name string) bool
- func (m *EventMutation) ErrorComponent() (r string, exists bool)
- func (m *EventMutation) ErrorComponentCleared() bool
- func (m *EventMutation) ErrorMessage() (r string, exists bool)
- func (m *EventMutation) ErrorMessageCleared() bool
- func (m *EventMutation) ErrorStack() (r string, exists bool)
- func (m *EventMutation) ErrorStackCleared() bool
- func (m *EventMutation) ErrorType() (r string, exists bool)
- func (m *EventMutation) ErrorTypeCleared() bool
- func (m *EventMutation) EventID() (r string, exists bool)
- func (m *EventMutation) EventName() (r string, exists bool)
- func (m *EventMutation) EventNameCleared() bool
- func (m *EventMutation) EventType() (r event.EventType, exists bool)
- func (m *EventMutation) Field(name string) (ent.Value, bool)
- func (m *EventMutation) FieldCleared(name string) bool
- func (m *EventMutation) Fields() []string
- func (m *EventMutation) ID() (id uuid.UUID, exists bool)
- func (m *EventMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *EventMutation) JourneyCleared() bool
- func (m *EventMutation) JourneyID() (r uuid.UUID, exists bool)
- func (m *EventMutation) JourneyIDCleared() bool
- func (m *EventMutation) JourneyIDs() (ids []uuid.UUID)
- func (m *EventMutation) JourneyStepID() (r string, exists bool)
- func (m *EventMutation) JourneyStepIDCleared() bool
- func (m *EventMutation) JourneyStepName() (r string, exists bool)
- func (m *EventMutation) JourneyStepNameCleared() bool
- func (m *EventMutation) Metadata() (r map[string]interface{}, exists bool)
- func (m *EventMutation) MetadataCleared() bool
- func (m *EventMutation) OldAPIDurationMs(ctx context.Context) (v int64, err error)
- func (m *EventMutation) OldAPIMethod(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldAPIPath(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldAPIStatusCode(ctx context.Context) (v int, err error)
- func (m *EventMutation) OldConversionStatus(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldDurationMs(ctx context.Context) (v int64, err error)
- func (m *EventMutation) OldErrorComponent(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldErrorMessage(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldErrorStack(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldErrorType(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldEventID(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldEventName(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldEventType(ctx context.Context) (v event.EventType, err error)
- func (m *EventMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *EventMutation) OldJourneyID(ctx context.Context) (v *uuid.UUID, err error)
- func (m *EventMutation) OldJourneyStepID(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldJourneyStepName(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)
- func (m *EventMutation) OldOrgID(ctx context.Context) (v uuid.UUID, err error)
- func (m *EventMutation) OldPagePath(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldPageReferrer(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldPageTitle(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldPageURL(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldPerformanceCls(ctx context.Context) (v float64, err error)
- func (m *EventMutation) OldPerformanceFidMs(ctx context.Context) (v float64, err error)
- func (m *EventMutation) OldPerformanceLcpMs(ctx context.Context) (v float64, err error)
- func (m *EventMutation) OldPerformanceTtfbMs(ctx context.Context) (v float64, err error)
- func (m *EventMutation) OldProjectID(ctx context.Context) (v uuid.UUID, err error)
- func (m *EventMutation) OldSequence(ctx context.Context) (v int64, err error)
- func (m *EventMutation) OldSessionID(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldSnapshotURL(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldSnapshotViewport(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldTimestamp(ctx context.Context) (v time.Time, err error)
- func (m *EventMutation) OldUIAction(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIComponentName(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIComponentPath(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIComponentType(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIElement(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIElementText(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIScrollPosition(ctx context.Context) (v float64, err error)
- func (m *EventMutation) OldUIStateAfter(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIStateBefore(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIStateChangeType(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIStateKey(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUIViewport(ctx context.Context) (v string, err error)
- func (m *EventMutation) OldUserID(ctx context.Context) (v string, err error)
- func (m *EventMutation) Op() Op
- func (m *EventMutation) OrgID() (r uuid.UUID, exists bool)
- func (m *EventMutation) PagePath() (r string, exists bool)
- func (m *EventMutation) PagePathCleared() bool
- func (m *EventMutation) PageReferrer() (r string, exists bool)
- func (m *EventMutation) PageReferrerCleared() bool
- func (m *EventMutation) PageTitle() (r string, exists bool)
- func (m *EventMutation) PageTitleCleared() bool
- func (m *EventMutation) PageURL() (r string, exists bool)
- func (m *EventMutation) PageURLCleared() bool
- func (m *EventMutation) PerformanceCls() (r float64, exists bool)
- func (m *EventMutation) PerformanceClsCleared() bool
- func (m *EventMutation) PerformanceFidMs() (r float64, exists bool)
- func (m *EventMutation) PerformanceFidMsCleared() bool
- func (m *EventMutation) PerformanceLcpMs() (r float64, exists bool)
- func (m *EventMutation) PerformanceLcpMsCleared() bool
- func (m *EventMutation) PerformanceTtfbMs() (r float64, exists bool)
- func (m *EventMutation) PerformanceTtfbMsCleared() bool
- func (m *EventMutation) ProjectCleared() bool
- func (m *EventMutation) ProjectID() (r uuid.UUID, exists bool)
- func (m *EventMutation) ProjectIDs() (ids []uuid.UUID)
- func (m *EventMutation) RemovedEdges() []string
- func (m *EventMutation) RemovedIDs(name string) []ent.Value
- func (m *EventMutation) ResetAPIDurationMs()
- func (m *EventMutation) ResetAPIMethod()
- func (m *EventMutation) ResetAPIPath()
- func (m *EventMutation) ResetAPIStatusCode()
- func (m *EventMutation) ResetConversionStatus()
- func (m *EventMutation) ResetCreatedAt()
- func (m *EventMutation) ResetDurationMs()
- func (m *EventMutation) ResetEdge(name string) error
- func (m *EventMutation) ResetErrorComponent()
- func (m *EventMutation) ResetErrorMessage()
- func (m *EventMutation) ResetErrorStack()
- func (m *EventMutation) ResetErrorType()
- func (m *EventMutation) ResetEventID()
- func (m *EventMutation) ResetEventName()
- func (m *EventMutation) ResetEventType()
- func (m *EventMutation) ResetField(name string) error
- func (m *EventMutation) ResetJourney()
- func (m *EventMutation) ResetJourneyID()
- func (m *EventMutation) ResetJourneyStepID()
- func (m *EventMutation) ResetJourneyStepName()
- func (m *EventMutation) ResetMetadata()
- func (m *EventMutation) ResetOrgID()
- func (m *EventMutation) ResetPagePath()
- func (m *EventMutation) ResetPageReferrer()
- func (m *EventMutation) ResetPageTitle()
- func (m *EventMutation) ResetPageURL()
- func (m *EventMutation) ResetPerformanceCls()
- func (m *EventMutation) ResetPerformanceFidMs()
- func (m *EventMutation) ResetPerformanceLcpMs()
- func (m *EventMutation) ResetPerformanceTtfbMs()
- func (m *EventMutation) ResetProject()
- func (m *EventMutation) ResetProjectID()
- func (m *EventMutation) ResetSequence()
- func (m *EventMutation) ResetSessionID()
- func (m *EventMutation) ResetSnapshotURL()
- func (m *EventMutation) ResetSnapshotViewport()
- func (m *EventMutation) ResetTimestamp()
- func (m *EventMutation) ResetUIAction()
- func (m *EventMutation) ResetUIComponentName()
- func (m *EventMutation) ResetUIComponentPath()
- func (m *EventMutation) ResetUIComponentType()
- func (m *EventMutation) ResetUIElement()
- func (m *EventMutation) ResetUIElementText()
- func (m *EventMutation) ResetUIScrollPosition()
- func (m *EventMutation) ResetUIStateAfter()
- func (m *EventMutation) ResetUIStateBefore()
- func (m *EventMutation) ResetUIStateChangeType()
- func (m *EventMutation) ResetUIStateKey()
- func (m *EventMutation) ResetUIViewport()
- func (m *EventMutation) ResetUserID()
- func (m *EventMutation) Sequence() (r int64, exists bool)
- func (m *EventMutation) SessionID() (r string, exists bool)
- func (m *EventMutation) SetAPIDurationMs(i int64)
- func (m *EventMutation) SetAPIMethod(s string)
- func (m *EventMutation) SetAPIPath(s string)
- func (m *EventMutation) SetAPIStatusCode(i int)
- func (m *EventMutation) SetConversionStatus(s string)
- func (m *EventMutation) SetCreatedAt(t time.Time)
- func (m *EventMutation) SetDurationMs(i int64)
- func (m *EventMutation) SetErrorComponent(s string)
- func (m *EventMutation) SetErrorMessage(s string)
- func (m *EventMutation) SetErrorStack(s string)
- func (m *EventMutation) SetErrorType(s string)
- func (m *EventMutation) SetEventID(s string)
- func (m *EventMutation) SetEventName(s string)
- func (m *EventMutation) SetEventType(et event.EventType)
- func (m *EventMutation) SetField(name string, value ent.Value) error
- func (m *EventMutation) SetID(id uuid.UUID)
- func (m *EventMutation) SetJourneyID(u uuid.UUID)
- func (m *EventMutation) SetJourneyStepID(s string)
- func (m *EventMutation) SetJourneyStepName(s string)
- func (m *EventMutation) SetMetadata(value map[string]interface{})
- func (m *EventMutation) SetOp(op Op)
- func (m *EventMutation) SetOrgID(u uuid.UUID)
- func (m *EventMutation) SetPagePath(s string)
- func (m *EventMutation) SetPageReferrer(s string)
- func (m *EventMutation) SetPageTitle(s string)
- func (m *EventMutation) SetPageURL(s string)
- func (m *EventMutation) SetPerformanceCls(f float64)
- func (m *EventMutation) SetPerformanceFidMs(f float64)
- func (m *EventMutation) SetPerformanceLcpMs(f float64)
- func (m *EventMutation) SetPerformanceTtfbMs(f float64)
- func (m *EventMutation) SetProjectID(u uuid.UUID)
- func (m *EventMutation) SetSequence(i int64)
- func (m *EventMutation) SetSessionID(s string)
- func (m *EventMutation) SetSnapshotURL(s string)
- func (m *EventMutation) SetSnapshotViewport(s string)
- func (m *EventMutation) SetTimestamp(t time.Time)
- func (m *EventMutation) SetUIAction(s string)
- func (m *EventMutation) SetUIComponentName(s string)
- func (m *EventMutation) SetUIComponentPath(s string)
- func (m *EventMutation) SetUIComponentType(s string)
- func (m *EventMutation) SetUIElement(s string)
- func (m *EventMutation) SetUIElementText(s string)
- func (m *EventMutation) SetUIScrollPosition(f float64)
- func (m *EventMutation) SetUIStateAfter(s string)
- func (m *EventMutation) SetUIStateBefore(s string)
- func (m *EventMutation) SetUIStateChangeType(s string)
- func (m *EventMutation) SetUIStateKey(s string)
- func (m *EventMutation) SetUIViewport(s string)
- func (m *EventMutation) SetUserID(s string)
- func (m *EventMutation) SnapshotURL() (r string, exists bool)
- func (m *EventMutation) SnapshotURLCleared() bool
- func (m *EventMutation) SnapshotViewport() (r string, exists bool)
- func (m *EventMutation) SnapshotViewportCleared() bool
- func (m *EventMutation) Timestamp() (r time.Time, exists bool)
- func (m EventMutation) Tx() (*Tx, error)
- func (m *EventMutation) Type() string
- func (m *EventMutation) UIAction() (r string, exists bool)
- func (m *EventMutation) UIActionCleared() bool
- func (m *EventMutation) UIComponentName() (r string, exists bool)
- func (m *EventMutation) UIComponentNameCleared() bool
- func (m *EventMutation) UIComponentPath() (r string, exists bool)
- func (m *EventMutation) UIComponentPathCleared() bool
- func (m *EventMutation) UIComponentType() (r string, exists bool)
- func (m *EventMutation) UIComponentTypeCleared() bool
- func (m *EventMutation) UIElement() (r string, exists bool)
- func (m *EventMutation) UIElementCleared() bool
- func (m *EventMutation) UIElementText() (r string, exists bool)
- func (m *EventMutation) UIElementTextCleared() bool
- func (m *EventMutation) UIScrollPosition() (r float64, exists bool)
- func (m *EventMutation) UIScrollPositionCleared() bool
- func (m *EventMutation) UIStateAfter() (r string, exists bool)
- func (m *EventMutation) UIStateAfterCleared() bool
- func (m *EventMutation) UIStateBefore() (r string, exists bool)
- func (m *EventMutation) UIStateBeforeCleared() bool
- func (m *EventMutation) UIStateChangeType() (r string, exists bool)
- func (m *EventMutation) UIStateChangeTypeCleared() bool
- func (m *EventMutation) UIStateKey() (r string, exists bool)
- func (m *EventMutation) UIStateKeyCleared() bool
- func (m *EventMutation) UIViewport() (r string, exists bool)
- func (m *EventMutation) UIViewportCleared() bool
- func (m *EventMutation) UserID() (r string, exists bool)
- func (m *EventMutation) UserIDCleared() bool
- func (m *EventMutation) Where(ps ...predicate.Event)
- func (m *EventMutation) WhereP(ps ...func(*sql.Selector))
- type EventQuery
- func (_q *EventQuery) Aggregate(fns ...AggregateFunc) *EventSelect
- func (_q *EventQuery) All(ctx context.Context) ([]*Event, error)
- func (_q *EventQuery) AllX(ctx context.Context) []*Event
- func (_q *EventQuery) Clone() *EventQuery
- func (_q *EventQuery) Count(ctx context.Context) (int, error)
- func (_q *EventQuery) CountX(ctx context.Context) int
- func (_q *EventQuery) Exist(ctx context.Context) (bool, error)
- func (_q *EventQuery) ExistX(ctx context.Context) bool
- func (_q *EventQuery) First(ctx context.Context) (*Event, error)
- func (_q *EventQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *EventQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (_q *EventQuery) FirstX(ctx context.Context) *Event
- func (_q *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy
- func (_q *EventQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (_q *EventQuery) IDsX(ctx context.Context) []uuid.UUID
- func (_q *EventQuery) Limit(limit int) *EventQuery
- func (_q *EventQuery) Offset(offset int) *EventQuery
- func (_q *EventQuery) Only(ctx context.Context) (*Event, error)
- func (_q *EventQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *EventQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (_q *EventQuery) OnlyX(ctx context.Context) *Event
- func (_q *EventQuery) Order(o ...event.OrderOption) *EventQuery
- func (_q *EventQuery) QueryJourney() *JourneyQuery
- func (_q *EventQuery) QueryProject() *ProjectQuery
- func (_q *EventQuery) Select(fields ...string) *EventSelect
- func (_q *EventQuery) Unique(unique bool) *EventQuery
- func (_q *EventQuery) Where(ps ...predicate.Event) *EventQuery
- func (_q *EventQuery) WithJourney(opts ...func(*JourneyQuery)) *EventQuery
- func (_q *EventQuery) WithProject(opts ...func(*ProjectQuery)) *EventQuery
- type EventSelect
- func (_s *EventSelect) Aggregate(fns ...AggregateFunc) *EventSelect
- func (s *EventSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *EventSelect) BoolX(ctx context.Context) bool
- func (s *EventSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *EventSelect) BoolsX(ctx context.Context) []bool
- func (s *EventSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *EventSelect) Float64X(ctx context.Context) float64
- func (s *EventSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *EventSelect) Float64sX(ctx context.Context) []float64
- func (s *EventSelect) Int(ctx context.Context) (_ int, err error)
- func (s *EventSelect) IntX(ctx context.Context) int
- func (s *EventSelect) Ints(ctx context.Context) ([]int, error)
- func (s *EventSelect) IntsX(ctx context.Context) []int
- func (_s *EventSelect) Scan(ctx context.Context, v any) error
- func (s *EventSelect) ScanX(ctx context.Context, v any)
- func (s *EventSelect) String(ctx context.Context) (_ string, err error)
- func (s *EventSelect) StringX(ctx context.Context) string
- func (s *EventSelect) Strings(ctx context.Context) ([]string, error)
- func (s *EventSelect) StringsX(ctx context.Context) []string
- type EventUpdate
- func (_u *EventUpdate) AddAPIDurationMs(v int64) *EventUpdate
- func (_u *EventUpdate) AddAPIStatusCode(v int) *EventUpdate
- func (_u *EventUpdate) AddDurationMs(v int64) *EventUpdate
- func (_u *EventUpdate) AddPerformanceCls(v float64) *EventUpdate
- func (_u *EventUpdate) AddPerformanceFidMs(v float64) *EventUpdate
- func (_u *EventUpdate) AddPerformanceLcpMs(v float64) *EventUpdate
- func (_u *EventUpdate) AddPerformanceTtfbMs(v float64) *EventUpdate
- func (_u *EventUpdate) AddSequence(v int64) *EventUpdate
- func (_u *EventUpdate) AddUIScrollPosition(v float64) *EventUpdate
- func (_u *EventUpdate) ClearAPIDurationMs() *EventUpdate
- func (_u *EventUpdate) ClearAPIMethod() *EventUpdate
- func (_u *EventUpdate) ClearAPIPath() *EventUpdate
- func (_u *EventUpdate) ClearAPIStatusCode() *EventUpdate
- func (_u *EventUpdate) ClearConversionStatus() *EventUpdate
- func (_u *EventUpdate) ClearDurationMs() *EventUpdate
- func (_u *EventUpdate) ClearErrorComponent() *EventUpdate
- func (_u *EventUpdate) ClearErrorMessage() *EventUpdate
- func (_u *EventUpdate) ClearErrorStack() *EventUpdate
- func (_u *EventUpdate) ClearErrorType() *EventUpdate
- func (_u *EventUpdate) ClearEventName() *EventUpdate
- func (_u *EventUpdate) ClearJourney() *EventUpdate
- func (_u *EventUpdate) ClearJourneyID() *EventUpdate
- func (_u *EventUpdate) ClearJourneyStepID() *EventUpdate
- func (_u *EventUpdate) ClearJourneyStepName() *EventUpdate
- func (_u *EventUpdate) ClearMetadata() *EventUpdate
- func (_u *EventUpdate) ClearPagePath() *EventUpdate
- func (_u *EventUpdate) ClearPageReferrer() *EventUpdate
- func (_u *EventUpdate) ClearPageTitle() *EventUpdate
- func (_u *EventUpdate) ClearPageURL() *EventUpdate
- func (_u *EventUpdate) ClearPerformanceCls() *EventUpdate
- func (_u *EventUpdate) ClearPerformanceFidMs() *EventUpdate
- func (_u *EventUpdate) ClearPerformanceLcpMs() *EventUpdate
- func (_u *EventUpdate) ClearPerformanceTtfbMs() *EventUpdate
- func (_u *EventUpdate) ClearProject() *EventUpdate
- func (_u *EventUpdate) ClearSnapshotURL() *EventUpdate
- func (_u *EventUpdate) ClearSnapshotViewport() *EventUpdate
- func (_u *EventUpdate) ClearUIAction() *EventUpdate
- func (_u *EventUpdate) ClearUIComponentName() *EventUpdate
- func (_u *EventUpdate) ClearUIComponentPath() *EventUpdate
- func (_u *EventUpdate) ClearUIComponentType() *EventUpdate
- func (_u *EventUpdate) ClearUIElement() *EventUpdate
- func (_u *EventUpdate) ClearUIElementText() *EventUpdate
- func (_u *EventUpdate) ClearUIScrollPosition() *EventUpdate
- func (_u *EventUpdate) ClearUIStateAfter() *EventUpdate
- func (_u *EventUpdate) ClearUIStateBefore() *EventUpdate
- func (_u *EventUpdate) ClearUIStateChangeType() *EventUpdate
- func (_u *EventUpdate) ClearUIStateKey() *EventUpdate
- func (_u *EventUpdate) ClearUIViewport() *EventUpdate
- func (_u *EventUpdate) ClearUserID() *EventUpdate
- func (_u *EventUpdate) Exec(ctx context.Context) error
- func (_u *EventUpdate) ExecX(ctx context.Context)
- func (_u *EventUpdate) Mutation() *EventMutation
- func (_u *EventUpdate) Save(ctx context.Context) (int, error)
- func (_u *EventUpdate) SaveX(ctx context.Context) int
- func (_u *EventUpdate) SetAPIDurationMs(v int64) *EventUpdate
- func (_u *EventUpdate) SetAPIMethod(v string) *EventUpdate
- func (_u *EventUpdate) SetAPIPath(v string) *EventUpdate
- func (_u *EventUpdate) SetAPIStatusCode(v int) *EventUpdate
- func (_u *EventUpdate) SetConversionStatus(v string) *EventUpdate
- func (_u *EventUpdate) SetDurationMs(v int64) *EventUpdate
- func (_u *EventUpdate) SetErrorComponent(v string) *EventUpdate
- func (_u *EventUpdate) SetErrorMessage(v string) *EventUpdate
- func (_u *EventUpdate) SetErrorStack(v string) *EventUpdate
- func (_u *EventUpdate) SetErrorType(v string) *EventUpdate
- func (_u *EventUpdate) SetEventID(v string) *EventUpdate
- func (_u *EventUpdate) SetEventName(v string) *EventUpdate
- func (_u *EventUpdate) SetEventType(v event.EventType) *EventUpdate
- func (_u *EventUpdate) SetJourney(v *Journey) *EventUpdate
- func (_u *EventUpdate) SetJourneyID(v uuid.UUID) *EventUpdate
- func (_u *EventUpdate) SetJourneyStepID(v string) *EventUpdate
- func (_u *EventUpdate) SetJourneyStepName(v string) *EventUpdate
- func (_u *EventUpdate) SetMetadata(v map[string]interface{}) *EventUpdate
- func (_u *EventUpdate) SetNillableAPIDurationMs(v *int64) *EventUpdate
- func (_u *EventUpdate) SetNillableAPIMethod(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableAPIPath(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableAPIStatusCode(v *int) *EventUpdate
- func (_u *EventUpdate) SetNillableConversionStatus(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableDurationMs(v *int64) *EventUpdate
- func (_u *EventUpdate) SetNillableErrorComponent(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableErrorMessage(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableErrorStack(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableErrorType(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableEventID(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableEventName(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableEventType(v *event.EventType) *EventUpdate
- func (_u *EventUpdate) SetNillableJourneyID(v *uuid.UUID) *EventUpdate
- func (_u *EventUpdate) SetNillableJourneyStepID(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableJourneyStepName(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableOrgID(v *uuid.UUID) *EventUpdate
- func (_u *EventUpdate) SetNillablePagePath(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillablePageReferrer(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillablePageTitle(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillablePageURL(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillablePerformanceCls(v *float64) *EventUpdate
- func (_u *EventUpdate) SetNillablePerformanceFidMs(v *float64) *EventUpdate
- func (_u *EventUpdate) SetNillablePerformanceLcpMs(v *float64) *EventUpdate
- func (_u *EventUpdate) SetNillablePerformanceTtfbMs(v *float64) *EventUpdate
- func (_u *EventUpdate) SetNillableProjectID(v *uuid.UUID) *EventUpdate
- func (_u *EventUpdate) SetNillableSequence(v *int64) *EventUpdate
- func (_u *EventUpdate) SetNillableSessionID(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableSnapshotURL(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableSnapshotViewport(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableTimestamp(v *time.Time) *EventUpdate
- func (_u *EventUpdate) SetNillableUIAction(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIComponentName(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIComponentPath(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIComponentType(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIElement(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIElementText(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIScrollPosition(v *float64) *EventUpdate
- func (_u *EventUpdate) SetNillableUIStateAfter(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIStateBefore(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIStateChangeType(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIStateKey(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUIViewport(v *string) *EventUpdate
- func (_u *EventUpdate) SetNillableUserID(v *string) *EventUpdate
- func (_u *EventUpdate) SetOrgID(v uuid.UUID) *EventUpdate
- func (_u *EventUpdate) SetPagePath(v string) *EventUpdate
- func (_u *EventUpdate) SetPageReferrer(v string) *EventUpdate
- func (_u *EventUpdate) SetPageTitle(v string) *EventUpdate
- func (_u *EventUpdate) SetPageURL(v string) *EventUpdate
- func (_u *EventUpdate) SetPerformanceCls(v float64) *EventUpdate
- func (_u *EventUpdate) SetPerformanceFidMs(v float64) *EventUpdate
- func (_u *EventUpdate) SetPerformanceLcpMs(v float64) *EventUpdate
- func (_u *EventUpdate) SetPerformanceTtfbMs(v float64) *EventUpdate
- func (_u *EventUpdate) SetProject(v *Project) *EventUpdate
- func (_u *EventUpdate) SetProjectID(v uuid.UUID) *EventUpdate
- func (_u *EventUpdate) SetSequence(v int64) *EventUpdate
- func (_u *EventUpdate) SetSessionID(v string) *EventUpdate
- func (_u *EventUpdate) SetSnapshotURL(v string) *EventUpdate
- func (_u *EventUpdate) SetSnapshotViewport(v string) *EventUpdate
- func (_u *EventUpdate) SetTimestamp(v time.Time) *EventUpdate
- func (_u *EventUpdate) SetUIAction(v string) *EventUpdate
- func (_u *EventUpdate) SetUIComponentName(v string) *EventUpdate
- func (_u *EventUpdate) SetUIComponentPath(v string) *EventUpdate
- func (_u *EventUpdate) SetUIComponentType(v string) *EventUpdate
- func (_u *EventUpdate) SetUIElement(v string) *EventUpdate
- func (_u *EventUpdate) SetUIElementText(v string) *EventUpdate
- func (_u *EventUpdate) SetUIScrollPosition(v float64) *EventUpdate
- func (_u *EventUpdate) SetUIStateAfter(v string) *EventUpdate
- func (_u *EventUpdate) SetUIStateBefore(v string) *EventUpdate
- func (_u *EventUpdate) SetUIStateChangeType(v string) *EventUpdate
- func (_u *EventUpdate) SetUIStateKey(v string) *EventUpdate
- func (_u *EventUpdate) SetUIViewport(v string) *EventUpdate
- func (_u *EventUpdate) SetUserID(v string) *EventUpdate
- func (_u *EventUpdate) Where(ps ...predicate.Event) *EventUpdate
- type EventUpdateOne
- func (_u *EventUpdateOne) AddAPIDurationMs(v int64) *EventUpdateOne
- func (_u *EventUpdateOne) AddAPIStatusCode(v int) *EventUpdateOne
- func (_u *EventUpdateOne) AddDurationMs(v int64) *EventUpdateOne
- func (_u *EventUpdateOne) AddPerformanceCls(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) AddPerformanceFidMs(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) AddPerformanceLcpMs(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) AddPerformanceTtfbMs(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) AddSequence(v int64) *EventUpdateOne
- func (_u *EventUpdateOne) AddUIScrollPosition(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) ClearAPIDurationMs() *EventUpdateOne
- func (_u *EventUpdateOne) ClearAPIMethod() *EventUpdateOne
- func (_u *EventUpdateOne) ClearAPIPath() *EventUpdateOne
- func (_u *EventUpdateOne) ClearAPIStatusCode() *EventUpdateOne
- func (_u *EventUpdateOne) ClearConversionStatus() *EventUpdateOne
- func (_u *EventUpdateOne) ClearDurationMs() *EventUpdateOne
- func (_u *EventUpdateOne) ClearErrorComponent() *EventUpdateOne
- func (_u *EventUpdateOne) ClearErrorMessage() *EventUpdateOne
- func (_u *EventUpdateOne) ClearErrorStack() *EventUpdateOne
- func (_u *EventUpdateOne) ClearErrorType() *EventUpdateOne
- func (_u *EventUpdateOne) ClearEventName() *EventUpdateOne
- func (_u *EventUpdateOne) ClearJourney() *EventUpdateOne
- func (_u *EventUpdateOne) ClearJourneyID() *EventUpdateOne
- func (_u *EventUpdateOne) ClearJourneyStepID() *EventUpdateOne
- func (_u *EventUpdateOne) ClearJourneyStepName() *EventUpdateOne
- func (_u *EventUpdateOne) ClearMetadata() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPagePath() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPageReferrer() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPageTitle() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPageURL() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPerformanceCls() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPerformanceFidMs() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPerformanceLcpMs() *EventUpdateOne
- func (_u *EventUpdateOne) ClearPerformanceTtfbMs() *EventUpdateOne
- func (_u *EventUpdateOne) ClearProject() *EventUpdateOne
- func (_u *EventUpdateOne) ClearSnapshotURL() *EventUpdateOne
- func (_u *EventUpdateOne) ClearSnapshotViewport() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIAction() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIComponentName() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIComponentPath() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIComponentType() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIElement() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIElementText() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIScrollPosition() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIStateAfter() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIStateBefore() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIStateChangeType() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIStateKey() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUIViewport() *EventUpdateOne
- func (_u *EventUpdateOne) ClearUserID() *EventUpdateOne
- func (_u *EventUpdateOne) Exec(ctx context.Context) error
- func (_u *EventUpdateOne) ExecX(ctx context.Context)
- func (_u *EventUpdateOne) Mutation() *EventMutation
- func (_u *EventUpdateOne) Save(ctx context.Context) (*Event, error)
- func (_u *EventUpdateOne) SaveX(ctx context.Context) *Event
- func (_u *EventUpdateOne) Select(field string, fields ...string) *EventUpdateOne
- func (_u *EventUpdateOne) SetAPIDurationMs(v int64) *EventUpdateOne
- func (_u *EventUpdateOne) SetAPIMethod(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetAPIPath(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetAPIStatusCode(v int) *EventUpdateOne
- func (_u *EventUpdateOne) SetConversionStatus(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetDurationMs(v int64) *EventUpdateOne
- func (_u *EventUpdateOne) SetErrorComponent(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetErrorMessage(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetErrorStack(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetErrorType(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetEventID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetEventName(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetEventType(v event.EventType) *EventUpdateOne
- func (_u *EventUpdateOne) SetJourney(v *Journey) *EventUpdateOne
- func (_u *EventUpdateOne) SetJourneyID(v uuid.UUID) *EventUpdateOne
- func (_u *EventUpdateOne) SetJourneyStepID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetJourneyStepName(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetMetadata(v map[string]interface{}) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableAPIDurationMs(v *int64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableAPIMethod(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableAPIPath(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableAPIStatusCode(v *int) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableConversionStatus(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableDurationMs(v *int64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableErrorComponent(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableErrorMessage(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableErrorStack(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableErrorType(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableEventID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableEventName(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableEventType(v *event.EventType) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableJourneyID(v *uuid.UUID) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableJourneyStepID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableJourneyStepName(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableOrgID(v *uuid.UUID) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePagePath(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePageReferrer(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePageTitle(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePageURL(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePerformanceCls(v *float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePerformanceFidMs(v *float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePerformanceLcpMs(v *float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillablePerformanceTtfbMs(v *float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableProjectID(v *uuid.UUID) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableSequence(v *int64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableSessionID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableSnapshotURL(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableSnapshotViewport(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableTimestamp(v *time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIAction(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIComponentName(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIComponentPath(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIComponentType(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIElement(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIElementText(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIScrollPosition(v *float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIStateAfter(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIStateBefore(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIStateChangeType(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIStateKey(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUIViewport(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetNillableUserID(v *string) *EventUpdateOne
- func (_u *EventUpdateOne) SetOrgID(v uuid.UUID) *EventUpdateOne
- func (_u *EventUpdateOne) SetPagePath(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetPageReferrer(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetPageTitle(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetPageURL(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetPerformanceCls(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetPerformanceFidMs(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetPerformanceLcpMs(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetPerformanceTtfbMs(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetProject(v *Project) *EventUpdateOne
- func (_u *EventUpdateOne) SetProjectID(v uuid.UUID) *EventUpdateOne
- func (_u *EventUpdateOne) SetSequence(v int64) *EventUpdateOne
- func (_u *EventUpdateOne) SetSessionID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetSnapshotURL(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetSnapshotViewport(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetTimestamp(v time.Time) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIAction(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIComponentName(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIComponentPath(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIComponentType(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIElement(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIElementText(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIScrollPosition(v float64) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIStateAfter(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIStateBefore(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIStateChangeType(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIStateKey(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUIViewport(v string) *EventUpdateOne
- func (_u *EventUpdateOne) SetUserID(v string) *EventUpdateOne
- func (_u *EventUpdateOne) Where(ps ...predicate.Event) *EventUpdateOne
- type Events
- type Hook
- type InterceptFunc
- type Interceptor
- type Journey
- func (_m *Journey) QueryEvents() *EventQuery
- func (_m *Journey) QueryProject() *ProjectQuery
- func (_m *Journey) QuerySessions() *SessionQuery
- func (_m *Journey) String() string
- func (_m *Journey) Unwrap() *Journey
- func (_m *Journey) Update() *JourneyUpdateOne
- func (_m *Journey) Value(name string) (ent.Value, error)
- type JourneyClient
- func (c *JourneyClient) Create() *JourneyCreate
- func (c *JourneyClient) CreateBulk(builders ...*JourneyCreate) *JourneyCreateBulk
- func (c *JourneyClient) Delete() *JourneyDelete
- func (c *JourneyClient) DeleteOne(_m *Journey) *JourneyDeleteOne
- func (c *JourneyClient) DeleteOneID(id uuid.UUID) *JourneyDeleteOne
- func (c *JourneyClient) Get(ctx context.Context, id uuid.UUID) (*Journey, error)
- func (c *JourneyClient) GetX(ctx context.Context, id uuid.UUID) *Journey
- func (c *JourneyClient) Hooks() []Hook
- func (c *JourneyClient) Intercept(interceptors ...Interceptor)
- func (c *JourneyClient) Interceptors() []Interceptor
- func (c *JourneyClient) MapCreateBulk(slice any, setFunc func(*JourneyCreate, int)) *JourneyCreateBulk
- func (c *JourneyClient) Query() *JourneyQuery
- func (c *JourneyClient) QueryEvents(_m *Journey) *EventQuery
- func (c *JourneyClient) QueryProject(_m *Journey) *ProjectQuery
- func (c *JourneyClient) QuerySessions(_m *Journey) *SessionQuery
- func (c *JourneyClient) Update() *JourneyUpdate
- func (c *JourneyClient) UpdateOne(_m *Journey) *JourneyUpdateOne
- func (c *JourneyClient) UpdateOneID(id uuid.UUID) *JourneyUpdateOne
- func (c *JourneyClient) Use(hooks ...Hook)
- type JourneyCreate
- func (_c *JourneyCreate) AddEventIDs(ids ...uuid.UUID) *JourneyCreate
- func (_c *JourneyCreate) AddEvents(v ...*Event) *JourneyCreate
- func (_c *JourneyCreate) AddSessionIDs(ids ...uuid.UUID) *JourneyCreate
- func (_c *JourneyCreate) AddSessions(v ...*Session) *JourneyCreate
- func (_c *JourneyCreate) Exec(ctx context.Context) error
- func (_c *JourneyCreate) ExecX(ctx context.Context)
- func (_c *JourneyCreate) Mutation() *JourneyMutation
- func (_c *JourneyCreate) Save(ctx context.Context) (*Journey, error)
- func (_c *JourneyCreate) SaveX(ctx context.Context) *Journey
- func (_c *JourneyCreate) SetAvgDurationMs(v int64) *JourneyCreate
- func (_c *JourneyCreate) SetConversionRate(v float64) *JourneyCreate
- func (_c *JourneyCreate) SetConvertedSessions(v int64) *JourneyCreate
- func (_c *JourneyCreate) SetCreatedAt(v time.Time) *JourneyCreate
- func (_c *JourneyCreate) SetDescription(v string) *JourneyCreate
- func (_c *JourneyCreate) SetEntryConditions(v []interface{}) *JourneyCreate
- func (_c *JourneyCreate) SetExitConditions(v []interface{}) *JourneyCreate
- func (_c *JourneyCreate) SetID(v uuid.UUID) *JourneyCreate
- func (_c *JourneyCreate) SetIsActive(v bool) *JourneyCreate
- func (_c *JourneyCreate) SetName(v string) *JourneyCreate
- func (_c *JourneyCreate) SetNillableAvgDurationMs(v *int64) *JourneyCreate
- func (_c *JourneyCreate) SetNillableConversionRate(v *float64) *JourneyCreate
- func (_c *JourneyCreate) SetNillableConvertedSessions(v *int64) *JourneyCreate
- func (_c *JourneyCreate) SetNillableCreatedAt(v *time.Time) *JourneyCreate
- func (_c *JourneyCreate) SetNillableDescription(v *string) *JourneyCreate
- func (_c *JourneyCreate) SetNillableID(v *uuid.UUID) *JourneyCreate
- func (_c *JourneyCreate) SetNillableIsActive(v *bool) *JourneyCreate
- func (_c *JourneyCreate) SetNillableTimeoutMinutes(v *int) *JourneyCreate
- func (_c *JourneyCreate) SetNillableTotalSessions(v *int64) *JourneyCreate
- func (_c *JourneyCreate) SetNillableUpdatedAt(v *time.Time) *JourneyCreate
- func (_c *JourneyCreate) SetOrgID(v uuid.UUID) *JourneyCreate
- func (_c *JourneyCreate) SetProject(v *Project) *JourneyCreate
- func (_c *JourneyCreate) SetProjectID(v uuid.UUID) *JourneyCreate
- func (_c *JourneyCreate) SetSteps(v []interface{}) *JourneyCreate
- func (_c *JourneyCreate) SetTimeoutMinutes(v int) *JourneyCreate
- func (_c *JourneyCreate) SetTotalSessions(v int64) *JourneyCreate
- func (_c *JourneyCreate) SetUpdatedAt(v time.Time) *JourneyCreate
- type JourneyCreateBulk
- type JourneyDelete
- type JourneyDeleteOne
- type JourneyEdges
- type JourneyGroupBy
- func (_g *JourneyGroupBy) Aggregate(fns ...AggregateFunc) *JourneyGroupBy
- func (s *JourneyGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *JourneyGroupBy) BoolX(ctx context.Context) bool
- func (s *JourneyGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *JourneyGroupBy) BoolsX(ctx context.Context) []bool
- func (s *JourneyGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *JourneyGroupBy) Float64X(ctx context.Context) float64
- func (s *JourneyGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *JourneyGroupBy) Float64sX(ctx context.Context) []float64
- func (s *JourneyGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *JourneyGroupBy) IntX(ctx context.Context) int
- func (s *JourneyGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *JourneyGroupBy) IntsX(ctx context.Context) []int
- func (_g *JourneyGroupBy) Scan(ctx context.Context, v any) error
- func (s *JourneyGroupBy) ScanX(ctx context.Context, v any)
- func (s *JourneyGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *JourneyGroupBy) StringX(ctx context.Context) string
- func (s *JourneyGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *JourneyGroupBy) StringsX(ctx context.Context) []string
- type JourneyMutation
- func (m *JourneyMutation) AddAvgDurationMs(i int64)
- func (m *JourneyMutation) AddConversionRate(f float64)
- func (m *JourneyMutation) AddConvertedSessions(i int64)
- func (m *JourneyMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *JourneyMutation) AddField(name string, value ent.Value) error
- func (m *JourneyMutation) AddSessionIDs(ids ...uuid.UUID)
- func (m *JourneyMutation) AddTimeoutMinutes(i int)
- func (m *JourneyMutation) AddTotalSessions(i int64)
- func (m *JourneyMutation) AddedAvgDurationMs() (r int64, exists bool)
- func (m *JourneyMutation) AddedConversionRate() (r float64, exists bool)
- func (m *JourneyMutation) AddedConvertedSessions() (r int64, exists bool)
- func (m *JourneyMutation) AddedEdges() []string
- func (m *JourneyMutation) AddedField(name string) (ent.Value, bool)
- func (m *JourneyMutation) AddedFields() []string
- func (m *JourneyMutation) AddedIDs(name string) []ent.Value
- func (m *JourneyMutation) AddedTimeoutMinutes() (r int, exists bool)
- func (m *JourneyMutation) AddedTotalSessions() (r int64, exists bool)
- func (m *JourneyMutation) AppendEntryConditions(i []interface{})
- func (m *JourneyMutation) AppendExitConditions(i []interface{})
- func (m *JourneyMutation) AppendSteps(i []interface{})
- func (m *JourneyMutation) AppendedEntryConditions() ([]interface{}, bool)
- func (m *JourneyMutation) AppendedExitConditions() ([]interface{}, bool)
- func (m *JourneyMutation) AppendedSteps() ([]interface{}, bool)
- func (m *JourneyMutation) AvgDurationMs() (r int64, exists bool)
- func (m *JourneyMutation) ClearDescription()
- func (m *JourneyMutation) ClearEdge(name string) error
- func (m *JourneyMutation) ClearEntryConditions()
- func (m *JourneyMutation) ClearEvents()
- func (m *JourneyMutation) ClearExitConditions()
- func (m *JourneyMutation) ClearField(name string) error
- func (m *JourneyMutation) ClearProject()
- func (m *JourneyMutation) ClearSessions()
- func (m *JourneyMutation) ClearSteps()
- func (m *JourneyMutation) ClearedEdges() []string
- func (m *JourneyMutation) ClearedFields() []string
- func (m JourneyMutation) Client() *Client
- func (m *JourneyMutation) ConversionRate() (r float64, exists bool)
- func (m *JourneyMutation) ConvertedSessions() (r int64, exists bool)
- func (m *JourneyMutation) CreatedAt() (r time.Time, exists bool)
- func (m *JourneyMutation) Description() (r string, exists bool)
- func (m *JourneyMutation) DescriptionCleared() bool
- func (m *JourneyMutation) EdgeCleared(name string) bool
- func (m *JourneyMutation) EntryConditions() (r []interface{}, exists bool)
- func (m *JourneyMutation) EntryConditionsCleared() bool
- func (m *JourneyMutation) EventsCleared() bool
- func (m *JourneyMutation) EventsIDs() (ids []uuid.UUID)
- func (m *JourneyMutation) ExitConditions() (r []interface{}, exists bool)
- func (m *JourneyMutation) ExitConditionsCleared() bool
- func (m *JourneyMutation) Field(name string) (ent.Value, bool)
- func (m *JourneyMutation) FieldCleared(name string) bool
- func (m *JourneyMutation) Fields() []string
- func (m *JourneyMutation) ID() (id uuid.UUID, exists bool)
- func (m *JourneyMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *JourneyMutation) IsActive() (r bool, exists bool)
- func (m *JourneyMutation) Name() (r string, exists bool)
- func (m *JourneyMutation) OldAvgDurationMs(ctx context.Context) (v int64, err error)
- func (m *JourneyMutation) OldConversionRate(ctx context.Context) (v float64, err error)
- func (m *JourneyMutation) OldConvertedSessions(ctx context.Context) (v int64, err error)
- func (m *JourneyMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *JourneyMutation) OldDescription(ctx context.Context) (v string, err error)
- func (m *JourneyMutation) OldEntryConditions(ctx context.Context) (v []interface{}, err error)
- func (m *JourneyMutation) OldExitConditions(ctx context.Context) (v []interface{}, err error)
- func (m *JourneyMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *JourneyMutation) OldIsActive(ctx context.Context) (v bool, err error)
- func (m *JourneyMutation) OldName(ctx context.Context) (v string, err error)
- func (m *JourneyMutation) OldOrgID(ctx context.Context) (v uuid.UUID, err error)
- func (m *JourneyMutation) OldProjectID(ctx context.Context) (v uuid.UUID, err error)
- func (m *JourneyMutation) OldSteps(ctx context.Context) (v []interface{}, err error)
- func (m *JourneyMutation) OldTimeoutMinutes(ctx context.Context) (v int, err error)
- func (m *JourneyMutation) OldTotalSessions(ctx context.Context) (v int64, err error)
- func (m *JourneyMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *JourneyMutation) Op() Op
- func (m *JourneyMutation) OrgID() (r uuid.UUID, exists bool)
- func (m *JourneyMutation) ProjectCleared() bool
- func (m *JourneyMutation) ProjectID() (r uuid.UUID, exists bool)
- func (m *JourneyMutation) ProjectIDs() (ids []uuid.UUID)
- func (m *JourneyMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *JourneyMutation) RemoveSessionIDs(ids ...uuid.UUID)
- func (m *JourneyMutation) RemovedEdges() []string
- func (m *JourneyMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *JourneyMutation) RemovedIDs(name string) []ent.Value
- func (m *JourneyMutation) RemovedSessionsIDs() (ids []uuid.UUID)
- func (m *JourneyMutation) ResetAvgDurationMs()
- func (m *JourneyMutation) ResetConversionRate()
- func (m *JourneyMutation) ResetConvertedSessions()
- func (m *JourneyMutation) ResetCreatedAt()
- func (m *JourneyMutation) ResetDescription()
- func (m *JourneyMutation) ResetEdge(name string) error
- func (m *JourneyMutation) ResetEntryConditions()
- func (m *JourneyMutation) ResetEvents()
- func (m *JourneyMutation) ResetExitConditions()
- func (m *JourneyMutation) ResetField(name string) error
- func (m *JourneyMutation) ResetIsActive()
- func (m *JourneyMutation) ResetName()
- func (m *JourneyMutation) ResetOrgID()
- func (m *JourneyMutation) ResetProject()
- func (m *JourneyMutation) ResetProjectID()
- func (m *JourneyMutation) ResetSessions()
- func (m *JourneyMutation) ResetSteps()
- func (m *JourneyMutation) ResetTimeoutMinutes()
- func (m *JourneyMutation) ResetTotalSessions()
- func (m *JourneyMutation) ResetUpdatedAt()
- func (m *JourneyMutation) SessionsCleared() bool
- func (m *JourneyMutation) SessionsIDs() (ids []uuid.UUID)
- func (m *JourneyMutation) SetAvgDurationMs(i int64)
- func (m *JourneyMutation) SetConversionRate(f float64)
- func (m *JourneyMutation) SetConvertedSessions(i int64)
- func (m *JourneyMutation) SetCreatedAt(t time.Time)
- func (m *JourneyMutation) SetDescription(s string)
- func (m *JourneyMutation) SetEntryConditions(i []interface{})
- func (m *JourneyMutation) SetExitConditions(i []interface{})
- func (m *JourneyMutation) SetField(name string, value ent.Value) error
- func (m *JourneyMutation) SetID(id uuid.UUID)
- func (m *JourneyMutation) SetIsActive(b bool)
- func (m *JourneyMutation) SetName(s string)
- func (m *JourneyMutation) SetOp(op Op)
- func (m *JourneyMutation) SetOrgID(u uuid.UUID)
- func (m *JourneyMutation) SetProjectID(u uuid.UUID)
- func (m *JourneyMutation) SetSteps(i []interface{})
- func (m *JourneyMutation) SetTimeoutMinutes(i int)
- func (m *JourneyMutation) SetTotalSessions(i int64)
- func (m *JourneyMutation) SetUpdatedAt(t time.Time)
- func (m *JourneyMutation) Steps() (r []interface{}, exists bool)
- func (m *JourneyMutation) StepsCleared() bool
- func (m *JourneyMutation) TimeoutMinutes() (r int, exists bool)
- func (m *JourneyMutation) TotalSessions() (r int64, exists bool)
- func (m JourneyMutation) Tx() (*Tx, error)
- func (m *JourneyMutation) Type() string
- func (m *JourneyMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *JourneyMutation) Where(ps ...predicate.Journey)
- func (m *JourneyMutation) WhereP(ps ...func(*sql.Selector))
- type JourneyQuery
- func (_q *JourneyQuery) Aggregate(fns ...AggregateFunc) *JourneySelect
- func (_q *JourneyQuery) All(ctx context.Context) ([]*Journey, error)
- func (_q *JourneyQuery) AllX(ctx context.Context) []*Journey
- func (_q *JourneyQuery) Clone() *JourneyQuery
- func (_q *JourneyQuery) Count(ctx context.Context) (int, error)
- func (_q *JourneyQuery) CountX(ctx context.Context) int
- func (_q *JourneyQuery) Exist(ctx context.Context) (bool, error)
- func (_q *JourneyQuery) ExistX(ctx context.Context) bool
- func (_q *JourneyQuery) First(ctx context.Context) (*Journey, error)
- func (_q *JourneyQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *JourneyQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (_q *JourneyQuery) FirstX(ctx context.Context) *Journey
- func (_q *JourneyQuery) GroupBy(field string, fields ...string) *JourneyGroupBy
- func (_q *JourneyQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (_q *JourneyQuery) IDsX(ctx context.Context) []uuid.UUID
- func (_q *JourneyQuery) Limit(limit int) *JourneyQuery
- func (_q *JourneyQuery) Offset(offset int) *JourneyQuery
- func (_q *JourneyQuery) Only(ctx context.Context) (*Journey, error)
- func (_q *JourneyQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *JourneyQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (_q *JourneyQuery) OnlyX(ctx context.Context) *Journey
- func (_q *JourneyQuery) Order(o ...journey.OrderOption) *JourneyQuery
- func (_q *JourneyQuery) QueryEvents() *EventQuery
- func (_q *JourneyQuery) QueryProject() *ProjectQuery
- func (_q *JourneyQuery) QuerySessions() *SessionQuery
- func (_q *JourneyQuery) Select(fields ...string) *JourneySelect
- func (_q *JourneyQuery) Unique(unique bool) *JourneyQuery
- func (_q *JourneyQuery) Where(ps ...predicate.Journey) *JourneyQuery
- func (_q *JourneyQuery) WithEvents(opts ...func(*EventQuery)) *JourneyQuery
- func (_q *JourneyQuery) WithProject(opts ...func(*ProjectQuery)) *JourneyQuery
- func (_q *JourneyQuery) WithSessions(opts ...func(*SessionQuery)) *JourneyQuery
- type JourneySelect
- func (_s *JourneySelect) Aggregate(fns ...AggregateFunc) *JourneySelect
- func (s *JourneySelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *JourneySelect) BoolX(ctx context.Context) bool
- func (s *JourneySelect) Bools(ctx context.Context) ([]bool, error)
- func (s *JourneySelect) BoolsX(ctx context.Context) []bool
- func (s *JourneySelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *JourneySelect) Float64X(ctx context.Context) float64
- func (s *JourneySelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *JourneySelect) Float64sX(ctx context.Context) []float64
- func (s *JourneySelect) Int(ctx context.Context) (_ int, err error)
- func (s *JourneySelect) IntX(ctx context.Context) int
- func (s *JourneySelect) Ints(ctx context.Context) ([]int, error)
- func (s *JourneySelect) IntsX(ctx context.Context) []int
- func (_s *JourneySelect) Scan(ctx context.Context, v any) error
- func (s *JourneySelect) ScanX(ctx context.Context, v any)
- func (s *JourneySelect) String(ctx context.Context) (_ string, err error)
- func (s *JourneySelect) StringX(ctx context.Context) string
- func (s *JourneySelect) Strings(ctx context.Context) ([]string, error)
- func (s *JourneySelect) StringsX(ctx context.Context) []string
- type JourneyUpdate
- func (_u *JourneyUpdate) AddAvgDurationMs(v int64) *JourneyUpdate
- func (_u *JourneyUpdate) AddConversionRate(v float64) *JourneyUpdate
- func (_u *JourneyUpdate) AddConvertedSessions(v int64) *JourneyUpdate
- func (_u *JourneyUpdate) AddEventIDs(ids ...uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) AddEvents(v ...*Event) *JourneyUpdate
- func (_u *JourneyUpdate) AddSessionIDs(ids ...uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) AddSessions(v ...*Session) *JourneyUpdate
- func (_u *JourneyUpdate) AddTimeoutMinutes(v int) *JourneyUpdate
- func (_u *JourneyUpdate) AddTotalSessions(v int64) *JourneyUpdate
- func (_u *JourneyUpdate) AppendEntryConditions(v []interface{}) *JourneyUpdate
- func (_u *JourneyUpdate) AppendExitConditions(v []interface{}) *JourneyUpdate
- func (_u *JourneyUpdate) AppendSteps(v []interface{}) *JourneyUpdate
- func (_u *JourneyUpdate) ClearDescription() *JourneyUpdate
- func (_u *JourneyUpdate) ClearEntryConditions() *JourneyUpdate
- func (_u *JourneyUpdate) ClearEvents() *JourneyUpdate
- func (_u *JourneyUpdate) ClearExitConditions() *JourneyUpdate
- func (_u *JourneyUpdate) ClearProject() *JourneyUpdate
- func (_u *JourneyUpdate) ClearSessions() *JourneyUpdate
- func (_u *JourneyUpdate) ClearSteps() *JourneyUpdate
- func (_u *JourneyUpdate) Exec(ctx context.Context) error
- func (_u *JourneyUpdate) ExecX(ctx context.Context)
- func (_u *JourneyUpdate) Mutation() *JourneyMutation
- func (_u *JourneyUpdate) RemoveEventIDs(ids ...uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) RemoveEvents(v ...*Event) *JourneyUpdate
- func (_u *JourneyUpdate) RemoveSessionIDs(ids ...uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) RemoveSessions(v ...*Session) *JourneyUpdate
- func (_u *JourneyUpdate) Save(ctx context.Context) (int, error)
- func (_u *JourneyUpdate) SaveX(ctx context.Context) int
- func (_u *JourneyUpdate) SetAvgDurationMs(v int64) *JourneyUpdate
- func (_u *JourneyUpdate) SetConversionRate(v float64) *JourneyUpdate
- func (_u *JourneyUpdate) SetConvertedSessions(v int64) *JourneyUpdate
- func (_u *JourneyUpdate) SetDescription(v string) *JourneyUpdate
- func (_u *JourneyUpdate) SetEntryConditions(v []interface{}) *JourneyUpdate
- func (_u *JourneyUpdate) SetExitConditions(v []interface{}) *JourneyUpdate
- func (_u *JourneyUpdate) SetIsActive(v bool) *JourneyUpdate
- func (_u *JourneyUpdate) SetName(v string) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableAvgDurationMs(v *int64) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableConversionRate(v *float64) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableConvertedSessions(v *int64) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableDescription(v *string) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableIsActive(v *bool) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableName(v *string) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableOrgID(v *uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableProjectID(v *uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableTimeoutMinutes(v *int) *JourneyUpdate
- func (_u *JourneyUpdate) SetNillableTotalSessions(v *int64) *JourneyUpdate
- func (_u *JourneyUpdate) SetOrgID(v uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) SetProject(v *Project) *JourneyUpdate
- func (_u *JourneyUpdate) SetProjectID(v uuid.UUID) *JourneyUpdate
- func (_u *JourneyUpdate) SetSteps(v []interface{}) *JourneyUpdate
- func (_u *JourneyUpdate) SetTimeoutMinutes(v int) *JourneyUpdate
- func (_u *JourneyUpdate) SetTotalSessions(v int64) *JourneyUpdate
- func (_u *JourneyUpdate) SetUpdatedAt(v time.Time) *JourneyUpdate
- func (_u *JourneyUpdate) Where(ps ...predicate.Journey) *JourneyUpdate
- type JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddAvgDurationMs(v int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddConversionRate(v float64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddConvertedSessions(v int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddEventIDs(ids ...uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddEvents(v ...*Event) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddSessionIDs(ids ...uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddSessions(v ...*Session) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddTimeoutMinutes(v int) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AddTotalSessions(v int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AppendEntryConditions(v []interface{}) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AppendExitConditions(v []interface{}) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) AppendSteps(v []interface{}) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearDescription() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearEntryConditions() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearEvents() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearExitConditions() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearProject() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearSessions() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) ClearSteps() *JourneyUpdateOne
- func (_u *JourneyUpdateOne) Exec(ctx context.Context) error
- func (_u *JourneyUpdateOne) ExecX(ctx context.Context)
- func (_u *JourneyUpdateOne) Mutation() *JourneyMutation
- func (_u *JourneyUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) RemoveEvents(v ...*Event) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) RemoveSessionIDs(ids ...uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) RemoveSessions(v ...*Session) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) Save(ctx context.Context) (*Journey, error)
- func (_u *JourneyUpdateOne) SaveX(ctx context.Context) *Journey
- func (_u *JourneyUpdateOne) Select(field string, fields ...string) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetAvgDurationMs(v int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetConversionRate(v float64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetConvertedSessions(v int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetDescription(v string) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetEntryConditions(v []interface{}) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetExitConditions(v []interface{}) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetIsActive(v bool) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetName(v string) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableAvgDurationMs(v *int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableConversionRate(v *float64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableConvertedSessions(v *int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableDescription(v *string) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableIsActive(v *bool) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableName(v *string) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableOrgID(v *uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableProjectID(v *uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableTimeoutMinutes(v *int) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetNillableTotalSessions(v *int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetOrgID(v uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetProject(v *Project) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetProjectID(v uuid.UUID) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetSteps(v []interface{}) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetTimeoutMinutes(v int) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetTotalSessions(v int64) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) SetUpdatedAt(v time.Time) *JourneyUpdateOne
- func (_u *JourneyUpdateOne) Where(ps ...predicate.Journey) *JourneyUpdateOne
- type Journeys
- type MutateFunc
- type Mutation
- type Mutator
- type NotFoundError
- type NotLoadedError
- type NotSingularError
- type Op
- type Option
- type OrderFunc
- type Organization
- type OrganizationClient
- func (c *OrganizationClient) Create() *OrganizationCreate
- func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk
- func (c *OrganizationClient) Delete() *OrganizationDelete
- func (c *OrganizationClient) DeleteOne(_m *Organization) *OrganizationDeleteOne
- func (c *OrganizationClient) DeleteOneID(id uuid.UUID) *OrganizationDeleteOne
- func (c *OrganizationClient) Get(ctx context.Context, id uuid.UUID) (*Organization, error)
- func (c *OrganizationClient) GetX(ctx context.Context, id uuid.UUID) *Organization
- func (c *OrganizationClient) Hooks() []Hook
- func (c *OrganizationClient) Intercept(interceptors ...Interceptor)
- func (c *OrganizationClient) Interceptors() []Interceptor
- func (c *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk
- func (c *OrganizationClient) Query() *OrganizationQuery
- func (c *OrganizationClient) QueryProjects(_m *Organization) *ProjectQuery
- func (c *OrganizationClient) Update() *OrganizationUpdate
- func (c *OrganizationClient) UpdateOne(_m *Organization) *OrganizationUpdateOne
- func (c *OrganizationClient) UpdateOneID(id uuid.UUID) *OrganizationUpdateOne
- func (c *OrganizationClient) Use(hooks ...Hook)
- type OrganizationCreate
- func (_c *OrganizationCreate) AddProjectIDs(ids ...uuid.UUID) *OrganizationCreate
- func (_c *OrganizationCreate) AddProjects(v ...*Project) *OrganizationCreate
- func (_c *OrganizationCreate) Exec(ctx context.Context) error
- func (_c *OrganizationCreate) ExecX(ctx context.Context)
- func (_c *OrganizationCreate) Mutation() *OrganizationMutation
- func (_c *OrganizationCreate) Save(ctx context.Context) (*Organization, error)
- func (_c *OrganizationCreate) SaveX(ctx context.Context) *Organization
- func (_c *OrganizationCreate) SetCreatedAt(v time.Time) *OrganizationCreate
- func (_c *OrganizationCreate) SetID(v uuid.UUID) *OrganizationCreate
- func (_c *OrganizationCreate) SetName(v string) *OrganizationCreate
- func (_c *OrganizationCreate) SetNillableCreatedAt(v *time.Time) *OrganizationCreate
- func (_c *OrganizationCreate) SetNillableID(v *uuid.UUID) *OrganizationCreate
- func (_c *OrganizationCreate) SetNillableUpdatedAt(v *time.Time) *OrganizationCreate
- func (_c *OrganizationCreate) SetSlug(v string) *OrganizationCreate
- func (_c *OrganizationCreate) SetUpdatedAt(v time.Time) *OrganizationCreate
- type OrganizationCreateBulk
- type OrganizationDelete
- type OrganizationDeleteOne
- type OrganizationEdges
- type OrganizationGroupBy
- func (_g *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy
- func (s *OrganizationGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationGroupBy) BoolX(ctx context.Context) bool
- func (s *OrganizationGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationGroupBy) BoolsX(ctx context.Context) []bool
- func (s *OrganizationGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationGroupBy) Float64X(ctx context.Context) float64
- func (s *OrganizationGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationGroupBy) Float64sX(ctx context.Context) []float64
- func (s *OrganizationGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationGroupBy) IntX(ctx context.Context) int
- func (s *OrganizationGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationGroupBy) IntsX(ctx context.Context) []int
- func (_g *OrganizationGroupBy) Scan(ctx context.Context, v any) error
- func (s *OrganizationGroupBy) ScanX(ctx context.Context, v any)
- func (s *OrganizationGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationGroupBy) StringX(ctx context.Context) string
- func (s *OrganizationGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationGroupBy) StringsX(ctx context.Context) []string
- type OrganizationMutation
- func (m *OrganizationMutation) AddField(name string, value ent.Value) error
- func (m *OrganizationMutation) AddProjectIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) AddedEdges() []string
- func (m *OrganizationMutation) AddedField(name string) (ent.Value, bool)
- func (m *OrganizationMutation) AddedFields() []string
- func (m *OrganizationMutation) AddedIDs(name string) []ent.Value
- func (m *OrganizationMutation) ClearEdge(name string) error
- func (m *OrganizationMutation) ClearField(name string) error
- func (m *OrganizationMutation) ClearProjects()
- func (m *OrganizationMutation) ClearedEdges() []string
- func (m *OrganizationMutation) ClearedFields() []string
- func (m OrganizationMutation) Client() *Client
- func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)
- func (m *OrganizationMutation) EdgeCleared(name string) bool
- func (m *OrganizationMutation) Field(name string) (ent.Value, bool)
- func (m *OrganizationMutation) FieldCleared(name string) bool
- func (m *OrganizationMutation) Fields() []string
- func (m *OrganizationMutation) ID() (id uuid.UUID, exists bool)
- func (m *OrganizationMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *OrganizationMutation) Name() (r string, exists bool)
- func (m *OrganizationMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldSlug(ctx context.Context) (v string, err error)
- func (m *OrganizationMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *OrganizationMutation) Op() Op
- func (m *OrganizationMutation) ProjectsCleared() bool
- func (m *OrganizationMutation) ProjectsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) RemoveProjectIDs(ids ...uuid.UUID)
- func (m *OrganizationMutation) RemovedEdges() []string
- func (m *OrganizationMutation) RemovedIDs(name string) []ent.Value
- func (m *OrganizationMutation) RemovedProjectsIDs() (ids []uuid.UUID)
- func (m *OrganizationMutation) ResetCreatedAt()
- func (m *OrganizationMutation) ResetEdge(name string) error
- func (m *OrganizationMutation) ResetField(name string) error
- func (m *OrganizationMutation) ResetName()
- func (m *OrganizationMutation) ResetProjects()
- func (m *OrganizationMutation) ResetSlug()
- func (m *OrganizationMutation) ResetUpdatedAt()
- func (m *OrganizationMutation) SetCreatedAt(t time.Time)
- func (m *OrganizationMutation) SetField(name string, value ent.Value) error
- func (m *OrganizationMutation) SetID(id uuid.UUID)
- func (m *OrganizationMutation) SetName(s string)
- func (m *OrganizationMutation) SetOp(op Op)
- func (m *OrganizationMutation) SetSlug(s string)
- func (m *OrganizationMutation) SetUpdatedAt(t time.Time)
- func (m *OrganizationMutation) Slug() (r string, exists bool)
- func (m OrganizationMutation) Tx() (*Tx, error)
- func (m *OrganizationMutation) Type() string
- func (m *OrganizationMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *OrganizationMutation) Where(ps ...predicate.Organization)
- func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))
- type OrganizationQuery
- func (_q *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect
- func (_q *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)
- func (_q *OrganizationQuery) AllX(ctx context.Context) []*Organization
- func (_q *OrganizationQuery) Clone() *OrganizationQuery
- func (_q *OrganizationQuery) Count(ctx context.Context) (int, error)
- func (_q *OrganizationQuery) CountX(ctx context.Context) int
- func (_q *OrganizationQuery) Exist(ctx context.Context) (bool, error)
- func (_q *OrganizationQuery) ExistX(ctx context.Context) bool
- func (_q *OrganizationQuery) First(ctx context.Context) (*Organization, error)
- func (_q *OrganizationQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *OrganizationQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (_q *OrganizationQuery) FirstX(ctx context.Context) *Organization
- func (_q *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy
- func (_q *OrganizationQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (_q *OrganizationQuery) IDsX(ctx context.Context) []uuid.UUID
- func (_q *OrganizationQuery) Limit(limit int) *OrganizationQuery
- func (_q *OrganizationQuery) Offset(offset int) *OrganizationQuery
- func (_q *OrganizationQuery) Only(ctx context.Context) (*Organization, error)
- func (_q *OrganizationQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *OrganizationQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (_q *OrganizationQuery) OnlyX(ctx context.Context) *Organization
- func (_q *OrganizationQuery) Order(o ...organization.OrderOption) *OrganizationQuery
- func (_q *OrganizationQuery) QueryProjects() *ProjectQuery
- func (_q *OrganizationQuery) Select(fields ...string) *OrganizationSelect
- func (_q *OrganizationQuery) Unique(unique bool) *OrganizationQuery
- func (_q *OrganizationQuery) Where(ps ...predicate.Organization) *OrganizationQuery
- func (_q *OrganizationQuery) WithProjects(opts ...func(*ProjectQuery)) *OrganizationQuery
- type OrganizationSelect
- func (_s *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect
- func (s *OrganizationSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *OrganizationSelect) BoolX(ctx context.Context) bool
- func (s *OrganizationSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *OrganizationSelect) BoolsX(ctx context.Context) []bool
- func (s *OrganizationSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *OrganizationSelect) Float64X(ctx context.Context) float64
- func (s *OrganizationSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *OrganizationSelect) Float64sX(ctx context.Context) []float64
- func (s *OrganizationSelect) Int(ctx context.Context) (_ int, err error)
- func (s *OrganizationSelect) IntX(ctx context.Context) int
- func (s *OrganizationSelect) Ints(ctx context.Context) ([]int, error)
- func (s *OrganizationSelect) IntsX(ctx context.Context) []int
- func (_s *OrganizationSelect) Scan(ctx context.Context, v any) error
- func (s *OrganizationSelect) ScanX(ctx context.Context, v any)
- func (s *OrganizationSelect) String(ctx context.Context) (_ string, err error)
- func (s *OrganizationSelect) StringX(ctx context.Context) string
- func (s *OrganizationSelect) Strings(ctx context.Context) ([]string, error)
- func (s *OrganizationSelect) StringsX(ctx context.Context) []string
- type OrganizationUpdate
- func (_u *OrganizationUpdate) AddProjectIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (_u *OrganizationUpdate) AddProjects(v ...*Project) *OrganizationUpdate
- func (_u *OrganizationUpdate) ClearProjects() *OrganizationUpdate
- func (_u *OrganizationUpdate) Exec(ctx context.Context) error
- func (_u *OrganizationUpdate) ExecX(ctx context.Context)
- func (_u *OrganizationUpdate) Mutation() *OrganizationMutation
- func (_u *OrganizationUpdate) RemoveProjectIDs(ids ...uuid.UUID) *OrganizationUpdate
- func (_u *OrganizationUpdate) RemoveProjects(v ...*Project) *OrganizationUpdate
- func (_u *OrganizationUpdate) Save(ctx context.Context) (int, error)
- func (_u *OrganizationUpdate) SaveX(ctx context.Context) int
- func (_u *OrganizationUpdate) SetName(v string) *OrganizationUpdate
- func (_u *OrganizationUpdate) SetNillableName(v *string) *OrganizationUpdate
- func (_u *OrganizationUpdate) SetNillableSlug(v *string) *OrganizationUpdate
- func (_u *OrganizationUpdate) SetSlug(v string) *OrganizationUpdate
- func (_u *OrganizationUpdate) SetUpdatedAt(v time.Time) *OrganizationUpdate
- func (_u *OrganizationUpdate) Where(ps ...predicate.Organization) *OrganizationUpdate
- type OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) AddProjectIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) AddProjects(v ...*Project) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) ClearProjects() *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) Exec(ctx context.Context) error
- func (_u *OrganizationUpdateOne) ExecX(ctx context.Context)
- func (_u *OrganizationUpdateOne) Mutation() *OrganizationMutation
- func (_u *OrganizationUpdateOne) RemoveProjectIDs(ids ...uuid.UUID) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) RemoveProjects(v ...*Project) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error)
- func (_u *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization
- func (_u *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) SetName(v string) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) SetNillableName(v *string) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) SetNillableSlug(v *string) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) SetSlug(v string) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) SetUpdatedAt(v time.Time) *OrganizationUpdateOne
- func (_u *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne
- type Organizations
- type Policy
- type Project
- func (_m *Project) QueryEvents() *EventQuery
- func (_m *Project) QueryJourneys() *JourneyQuery
- func (_m *Project) QueryOrganization() *OrganizationQuery
- func (_m *Project) QuerySessions() *SessionQuery
- func (_m *Project) String() string
- func (_m *Project) Unwrap() *Project
- func (_m *Project) Update() *ProjectUpdateOne
- func (_m *Project) Value(name string) (ent.Value, error)
- type ProjectClient
- func (c *ProjectClient) Create() *ProjectCreate
- func (c *ProjectClient) CreateBulk(builders ...*ProjectCreate) *ProjectCreateBulk
- func (c *ProjectClient) Delete() *ProjectDelete
- func (c *ProjectClient) DeleteOne(_m *Project) *ProjectDeleteOne
- func (c *ProjectClient) DeleteOneID(id uuid.UUID) *ProjectDeleteOne
- func (c *ProjectClient) Get(ctx context.Context, id uuid.UUID) (*Project, error)
- func (c *ProjectClient) GetX(ctx context.Context, id uuid.UUID) *Project
- func (c *ProjectClient) Hooks() []Hook
- func (c *ProjectClient) Intercept(interceptors ...Interceptor)
- func (c *ProjectClient) Interceptors() []Interceptor
- func (c *ProjectClient) MapCreateBulk(slice any, setFunc func(*ProjectCreate, int)) *ProjectCreateBulk
- func (c *ProjectClient) Query() *ProjectQuery
- func (c *ProjectClient) QueryEvents(_m *Project) *EventQuery
- func (c *ProjectClient) QueryJourneys(_m *Project) *JourneyQuery
- func (c *ProjectClient) QueryOrganization(_m *Project) *OrganizationQuery
- func (c *ProjectClient) QuerySessions(_m *Project) *SessionQuery
- func (c *ProjectClient) Update() *ProjectUpdate
- func (c *ProjectClient) UpdateOne(_m *Project) *ProjectUpdateOne
- func (c *ProjectClient) UpdateOneID(id uuid.UUID) *ProjectUpdateOne
- func (c *ProjectClient) Use(hooks ...Hook)
- type ProjectCreate
- func (_c *ProjectCreate) AddEventIDs(ids ...uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) AddEvents(v ...*Event) *ProjectCreate
- func (_c *ProjectCreate) AddJourneyIDs(ids ...uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) AddJourneys(v ...*Journey) *ProjectCreate
- func (_c *ProjectCreate) AddSessionIDs(ids ...uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) AddSessions(v ...*Session) *ProjectCreate
- func (_c *ProjectCreate) Exec(ctx context.Context) error
- func (_c *ProjectCreate) ExecX(ctx context.Context)
- func (_c *ProjectCreate) Mutation() *ProjectMutation
- func (_c *ProjectCreate) Save(ctx context.Context) (*Project, error)
- func (_c *ProjectCreate) SaveX(ctx context.Context) *Project
- func (_c *ProjectCreate) SetAPIKey(v string) *ProjectCreate
- func (_c *ProjectCreate) SetCreatedAt(v time.Time) *ProjectCreate
- func (_c *ProjectCreate) SetID(v uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) SetName(v string) *ProjectCreate
- func (_c *ProjectCreate) SetNillableCreatedAt(v *time.Time) *ProjectCreate
- func (_c *ProjectCreate) SetNillableID(v *uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) SetNillableUpdatedAt(v *time.Time) *ProjectCreate
- func (_c *ProjectCreate) SetOrgID(v uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) SetOrganization(v *Organization) *ProjectCreate
- func (_c *ProjectCreate) SetOrganizationID(id uuid.UUID) *ProjectCreate
- func (_c *ProjectCreate) SetSettings(v map[string]interface{}) *ProjectCreate
- func (_c *ProjectCreate) SetSlug(v string) *ProjectCreate
- func (_c *ProjectCreate) SetUpdatedAt(v time.Time) *ProjectCreate
- type ProjectCreateBulk
- type ProjectDelete
- type ProjectDeleteOne
- type ProjectEdges
- type ProjectGroupBy
- func (_g *ProjectGroupBy) Aggregate(fns ...AggregateFunc) *ProjectGroupBy
- func (s *ProjectGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProjectGroupBy) BoolX(ctx context.Context) bool
- func (s *ProjectGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *ProjectGroupBy) BoolsX(ctx context.Context) []bool
- func (s *ProjectGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProjectGroupBy) Float64X(ctx context.Context) float64
- func (s *ProjectGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProjectGroupBy) Float64sX(ctx context.Context) []float64
- func (s *ProjectGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *ProjectGroupBy) IntX(ctx context.Context) int
- func (s *ProjectGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *ProjectGroupBy) IntsX(ctx context.Context) []int
- func (_g *ProjectGroupBy) Scan(ctx context.Context, v any) error
- func (s *ProjectGroupBy) ScanX(ctx context.Context, v any)
- func (s *ProjectGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *ProjectGroupBy) StringX(ctx context.Context) string
- func (s *ProjectGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *ProjectGroupBy) StringsX(ctx context.Context) []string
- type ProjectMutation
- func (m *ProjectMutation) APIKey() (r string, exists bool)
- func (m *ProjectMutation) AddEventIDs(ids ...uuid.UUID)
- func (m *ProjectMutation) AddField(name string, value ent.Value) error
- func (m *ProjectMutation) AddJourneyIDs(ids ...uuid.UUID)
- func (m *ProjectMutation) AddSessionIDs(ids ...uuid.UUID)
- func (m *ProjectMutation) AddedEdges() []string
- func (m *ProjectMutation) AddedField(name string) (ent.Value, bool)
- func (m *ProjectMutation) AddedFields() []string
- func (m *ProjectMutation) AddedIDs(name string) []ent.Value
- func (m *ProjectMutation) ClearEdge(name string) error
- func (m *ProjectMutation) ClearEvents()
- func (m *ProjectMutation) ClearField(name string) error
- func (m *ProjectMutation) ClearJourneys()
- func (m *ProjectMutation) ClearOrganization()
- func (m *ProjectMutation) ClearSessions()
- func (m *ProjectMutation) ClearSettings()
- func (m *ProjectMutation) ClearedEdges() []string
- func (m *ProjectMutation) ClearedFields() []string
- func (m ProjectMutation) Client() *Client
- func (m *ProjectMutation) CreatedAt() (r time.Time, exists bool)
- func (m *ProjectMutation) EdgeCleared(name string) bool
- func (m *ProjectMutation) EventsCleared() bool
- func (m *ProjectMutation) EventsIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) Field(name string) (ent.Value, bool)
- func (m *ProjectMutation) FieldCleared(name string) bool
- func (m *ProjectMutation) Fields() []string
- func (m *ProjectMutation) ID() (id uuid.UUID, exists bool)
- func (m *ProjectMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *ProjectMutation) JourneysCleared() bool
- func (m *ProjectMutation) JourneysIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) Name() (r string, exists bool)
- func (m *ProjectMutation) OldAPIKey(ctx context.Context) (v string, err error)
- func (m *ProjectMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProjectMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *ProjectMutation) OldName(ctx context.Context) (v string, err error)
- func (m *ProjectMutation) OldOrgID(ctx context.Context) (v uuid.UUID, err error)
- func (m *ProjectMutation) OldSettings(ctx context.Context) (v map[string]interface{}, err error)
- func (m *ProjectMutation) OldSlug(ctx context.Context) (v string, err error)
- func (m *ProjectMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *ProjectMutation) Op() Op
- func (m *ProjectMutation) OrgID() (r uuid.UUID, exists bool)
- func (m *ProjectMutation) OrganizationCleared() bool
- func (m *ProjectMutation) OrganizationID() (id uuid.UUID, exists bool)
- func (m *ProjectMutation) OrganizationIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) RemoveEventIDs(ids ...uuid.UUID)
- func (m *ProjectMutation) RemoveJourneyIDs(ids ...uuid.UUID)
- func (m *ProjectMutation) RemoveSessionIDs(ids ...uuid.UUID)
- func (m *ProjectMutation) RemovedEdges() []string
- func (m *ProjectMutation) RemovedEventsIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) RemovedIDs(name string) []ent.Value
- func (m *ProjectMutation) RemovedJourneysIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) RemovedSessionsIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) ResetAPIKey()
- func (m *ProjectMutation) ResetCreatedAt()
- func (m *ProjectMutation) ResetEdge(name string) error
- func (m *ProjectMutation) ResetEvents()
- func (m *ProjectMutation) ResetField(name string) error
- func (m *ProjectMutation) ResetJourneys()
- func (m *ProjectMutation) ResetName()
- func (m *ProjectMutation) ResetOrgID()
- func (m *ProjectMutation) ResetOrganization()
- func (m *ProjectMutation) ResetSessions()
- func (m *ProjectMutation) ResetSettings()
- func (m *ProjectMutation) ResetSlug()
- func (m *ProjectMutation) ResetUpdatedAt()
- func (m *ProjectMutation) SessionsCleared() bool
- func (m *ProjectMutation) SessionsIDs() (ids []uuid.UUID)
- func (m *ProjectMutation) SetAPIKey(s string)
- func (m *ProjectMutation) SetCreatedAt(t time.Time)
- func (m *ProjectMutation) SetField(name string, value ent.Value) error
- func (m *ProjectMutation) SetID(id uuid.UUID)
- func (m *ProjectMutation) SetName(s string)
- func (m *ProjectMutation) SetOp(op Op)
- func (m *ProjectMutation) SetOrgID(u uuid.UUID)
- func (m *ProjectMutation) SetOrganizationID(id uuid.UUID)
- func (m *ProjectMutation) SetSettings(value map[string]interface{})
- func (m *ProjectMutation) SetSlug(s string)
- func (m *ProjectMutation) SetUpdatedAt(t time.Time)
- func (m *ProjectMutation) Settings() (r map[string]interface{}, exists bool)
- func (m *ProjectMutation) SettingsCleared() bool
- func (m *ProjectMutation) Slug() (r string, exists bool)
- func (m ProjectMutation) Tx() (*Tx, error)
- func (m *ProjectMutation) Type() string
- func (m *ProjectMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *ProjectMutation) Where(ps ...predicate.Project)
- func (m *ProjectMutation) WhereP(ps ...func(*sql.Selector))
- type ProjectQuery
- func (_q *ProjectQuery) Aggregate(fns ...AggregateFunc) *ProjectSelect
- func (_q *ProjectQuery) All(ctx context.Context) ([]*Project, error)
- func (_q *ProjectQuery) AllX(ctx context.Context) []*Project
- func (_q *ProjectQuery) Clone() *ProjectQuery
- func (_q *ProjectQuery) Count(ctx context.Context) (int, error)
- func (_q *ProjectQuery) CountX(ctx context.Context) int
- func (_q *ProjectQuery) Exist(ctx context.Context) (bool, error)
- func (_q *ProjectQuery) ExistX(ctx context.Context) bool
- func (_q *ProjectQuery) First(ctx context.Context) (*Project, error)
- func (_q *ProjectQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *ProjectQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (_q *ProjectQuery) FirstX(ctx context.Context) *Project
- func (_q *ProjectQuery) GroupBy(field string, fields ...string) *ProjectGroupBy
- func (_q *ProjectQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (_q *ProjectQuery) IDsX(ctx context.Context) []uuid.UUID
- func (_q *ProjectQuery) Limit(limit int) *ProjectQuery
- func (_q *ProjectQuery) Offset(offset int) *ProjectQuery
- func (_q *ProjectQuery) Only(ctx context.Context) (*Project, error)
- func (_q *ProjectQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *ProjectQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (_q *ProjectQuery) OnlyX(ctx context.Context) *Project
- func (_q *ProjectQuery) Order(o ...project.OrderOption) *ProjectQuery
- func (_q *ProjectQuery) QueryEvents() *EventQuery
- func (_q *ProjectQuery) QueryJourneys() *JourneyQuery
- func (_q *ProjectQuery) QueryOrganization() *OrganizationQuery
- func (_q *ProjectQuery) QuerySessions() *SessionQuery
- func (_q *ProjectQuery) Select(fields ...string) *ProjectSelect
- func (_q *ProjectQuery) Unique(unique bool) *ProjectQuery
- func (_q *ProjectQuery) Where(ps ...predicate.Project) *ProjectQuery
- func (_q *ProjectQuery) WithEvents(opts ...func(*EventQuery)) *ProjectQuery
- func (_q *ProjectQuery) WithJourneys(opts ...func(*JourneyQuery)) *ProjectQuery
- func (_q *ProjectQuery) WithOrganization(opts ...func(*OrganizationQuery)) *ProjectQuery
- func (_q *ProjectQuery) WithSessions(opts ...func(*SessionQuery)) *ProjectQuery
- type ProjectSelect
- func (_s *ProjectSelect) Aggregate(fns ...AggregateFunc) *ProjectSelect
- func (s *ProjectSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *ProjectSelect) BoolX(ctx context.Context) bool
- func (s *ProjectSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *ProjectSelect) BoolsX(ctx context.Context) []bool
- func (s *ProjectSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *ProjectSelect) Float64X(ctx context.Context) float64
- func (s *ProjectSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *ProjectSelect) Float64sX(ctx context.Context) []float64
- func (s *ProjectSelect) Int(ctx context.Context) (_ int, err error)
- func (s *ProjectSelect) IntX(ctx context.Context) int
- func (s *ProjectSelect) Ints(ctx context.Context) ([]int, error)
- func (s *ProjectSelect) IntsX(ctx context.Context) []int
- func (_s *ProjectSelect) Scan(ctx context.Context, v any) error
- func (s *ProjectSelect) ScanX(ctx context.Context, v any)
- func (s *ProjectSelect) String(ctx context.Context) (_ string, err error)
- func (s *ProjectSelect) StringX(ctx context.Context) string
- func (s *ProjectSelect) Strings(ctx context.Context) ([]string, error)
- func (s *ProjectSelect) StringsX(ctx context.Context) []string
- type ProjectUpdate
- func (_u *ProjectUpdate) AddEventIDs(ids ...uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) AddEvents(v ...*Event) *ProjectUpdate
- func (_u *ProjectUpdate) AddJourneyIDs(ids ...uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) AddJourneys(v ...*Journey) *ProjectUpdate
- func (_u *ProjectUpdate) AddSessionIDs(ids ...uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) AddSessions(v ...*Session) *ProjectUpdate
- func (_u *ProjectUpdate) ClearEvents() *ProjectUpdate
- func (_u *ProjectUpdate) ClearJourneys() *ProjectUpdate
- func (_u *ProjectUpdate) ClearOrganization() *ProjectUpdate
- func (_u *ProjectUpdate) ClearSessions() *ProjectUpdate
- func (_u *ProjectUpdate) ClearSettings() *ProjectUpdate
- func (_u *ProjectUpdate) Exec(ctx context.Context) error
- func (_u *ProjectUpdate) ExecX(ctx context.Context)
- func (_u *ProjectUpdate) Mutation() *ProjectMutation
- func (_u *ProjectUpdate) RemoveEventIDs(ids ...uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) RemoveEvents(v ...*Event) *ProjectUpdate
- func (_u *ProjectUpdate) RemoveJourneyIDs(ids ...uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) RemoveJourneys(v ...*Journey) *ProjectUpdate
- func (_u *ProjectUpdate) RemoveSessionIDs(ids ...uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) RemoveSessions(v ...*Session) *ProjectUpdate
- func (_u *ProjectUpdate) Save(ctx context.Context) (int, error)
- func (_u *ProjectUpdate) SaveX(ctx context.Context) int
- func (_u *ProjectUpdate) SetAPIKey(v string) *ProjectUpdate
- func (_u *ProjectUpdate) SetName(v string) *ProjectUpdate
- func (_u *ProjectUpdate) SetNillableAPIKey(v *string) *ProjectUpdate
- func (_u *ProjectUpdate) SetNillableName(v *string) *ProjectUpdate
- func (_u *ProjectUpdate) SetNillableOrgID(v *uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) SetNillableSlug(v *string) *ProjectUpdate
- func (_u *ProjectUpdate) SetOrgID(v uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) SetOrganization(v *Organization) *ProjectUpdate
- func (_u *ProjectUpdate) SetOrganizationID(id uuid.UUID) *ProjectUpdate
- func (_u *ProjectUpdate) SetSettings(v map[string]interface{}) *ProjectUpdate
- func (_u *ProjectUpdate) SetSlug(v string) *ProjectUpdate
- func (_u *ProjectUpdate) SetUpdatedAt(v time.Time) *ProjectUpdate
- func (_u *ProjectUpdate) Where(ps ...predicate.Project) *ProjectUpdate
- type ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddEventIDs(ids ...uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddEvents(v ...*Event) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddJourneyIDs(ids ...uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddJourneys(v ...*Journey) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddSessionIDs(ids ...uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) AddSessions(v ...*Session) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearEvents() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearJourneys() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearOrganization() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearSessions() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) ClearSettings() *ProjectUpdateOne
- func (_u *ProjectUpdateOne) Exec(ctx context.Context) error
- func (_u *ProjectUpdateOne) ExecX(ctx context.Context)
- func (_u *ProjectUpdateOne) Mutation() *ProjectMutation
- func (_u *ProjectUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) RemoveEvents(v ...*Event) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) RemoveJourneyIDs(ids ...uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) RemoveJourneys(v ...*Journey) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) RemoveSessionIDs(ids ...uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) RemoveSessions(v ...*Session) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) Save(ctx context.Context) (*Project, error)
- func (_u *ProjectUpdateOne) SaveX(ctx context.Context) *Project
- func (_u *ProjectUpdateOne) Select(field string, fields ...string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetAPIKey(v string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetName(v string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetNillableAPIKey(v *string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetNillableName(v *string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetNillableOrgID(v *uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetNillableSlug(v *string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetOrgID(v uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetOrganization(v *Organization) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetOrganizationID(id uuid.UUID) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetSettings(v map[string]interface{}) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetSlug(v string) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) SetUpdatedAt(v time.Time) *ProjectUpdateOne
- func (_u *ProjectUpdateOne) Where(ps ...predicate.Project) *ProjectUpdateOne
- type Projects
- type Querier
- type QuerierFunc
- type Query
- type QueryContext
- type RollbackFunc
- type RollbackHook
- type Rollbacker
- type Session
- type SessionClient
- func (c *SessionClient) Create() *SessionCreate
- func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
- func (c *SessionClient) Delete() *SessionDelete
- func (c *SessionClient) DeleteOne(_m *Session) *SessionDeleteOne
- func (c *SessionClient) DeleteOneID(id uuid.UUID) *SessionDeleteOne
- func (c *SessionClient) Get(ctx context.Context, id uuid.UUID) (*Session, error)
- func (c *SessionClient) GetX(ctx context.Context, id uuid.UUID) *Session
- func (c *SessionClient) Hooks() []Hook
- func (c *SessionClient) Intercept(interceptors ...Interceptor)
- func (c *SessionClient) Interceptors() []Interceptor
- func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk
- func (c *SessionClient) Query() *SessionQuery
- func (c *SessionClient) QueryJourney(_m *Session) *JourneyQuery
- func (c *SessionClient) QueryProject(_m *Session) *ProjectQuery
- func (c *SessionClient) Update() *SessionUpdate
- func (c *SessionClient) UpdateOne(_m *Session) *SessionUpdateOne
- func (c *SessionClient) UpdateOneID(id uuid.UUID) *SessionUpdateOne
- func (c *SessionClient) Use(hooks ...Hook)
- type SessionCreate
- func (_c *SessionCreate) Exec(ctx context.Context) error
- func (_c *SessionCreate) ExecX(ctx context.Context)
- func (_c *SessionCreate) Mutation() *SessionMutation
- func (_c *SessionCreate) Save(ctx context.Context) (*Session, error)
- func (_c *SessionCreate) SaveX(ctx context.Context) *Session
- func (_c *SessionCreate) SetBrowser(v string) *SessionCreate
- func (_c *SessionCreate) SetCity(v string) *SessionCreate
- func (_c *SessionCreate) SetConversionStatus(v string) *SessionCreate
- func (_c *SessionCreate) SetCountry(v string) *SessionCreate
- func (_c *SessionCreate) SetCreatedAt(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetDeviceType(v string) *SessionCreate
- func (_c *SessionCreate) SetDurationMs(v int64) *SessionCreate
- func (_c *SessionCreate) SetEndedAt(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetEntryPage(v string) *SessionCreate
- func (_c *SessionCreate) SetEventCount(v int) *SessionCreate
- func (_c *SessionCreate) SetExitPage(v string) *SessionCreate
- func (_c *SessionCreate) SetID(v uuid.UUID) *SessionCreate
- func (_c *SessionCreate) SetJourney(v *Journey) *SessionCreate
- func (_c *SessionCreate) SetJourneyID(v uuid.UUID) *SessionCreate
- func (_c *SessionCreate) SetLastJourneyStepID(v string) *SessionCreate
- func (_c *SessionCreate) SetNillableBrowser(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableCity(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableConversionStatus(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableCountry(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableCreatedAt(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableDeviceType(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableDurationMs(v *int64) *SessionCreate
- func (_c *SessionCreate) SetNillableEndedAt(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableEntryPage(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableEventCount(v *int) *SessionCreate
- func (_c *SessionCreate) SetNillableExitPage(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableID(v *uuid.UUID) *SessionCreate
- func (_c *SessionCreate) SetNillableJourneyID(v *uuid.UUID) *SessionCreate
- func (_c *SessionCreate) SetNillableLastJourneyStepID(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableOs(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillablePageCount(v *int) *SessionCreate
- func (_c *SessionCreate) SetNillableRegion(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableUpdatedAt(v *time.Time) *SessionCreate
- func (_c *SessionCreate) SetNillableUserAgent(v *string) *SessionCreate
- func (_c *SessionCreate) SetNillableUserID(v *string) *SessionCreate
- func (_c *SessionCreate) SetOrgID(v uuid.UUID) *SessionCreate
- func (_c *SessionCreate) SetOs(v string) *SessionCreate
- func (_c *SessionCreate) SetPageCount(v int) *SessionCreate
- func (_c *SessionCreate) SetProject(v *Project) *SessionCreate
- func (_c *SessionCreate) SetProjectID(v uuid.UUID) *SessionCreate
- func (_c *SessionCreate) SetRegion(v string) *SessionCreate
- func (_c *SessionCreate) SetSessionID(v string) *SessionCreate
- func (_c *SessionCreate) SetStartedAt(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetUpdatedAt(v time.Time) *SessionCreate
- func (_c *SessionCreate) SetUserAgent(v string) *SessionCreate
- func (_c *SessionCreate) SetUserID(v string) *SessionCreate
- type SessionCreateBulk
- type SessionDelete
- type SessionDeleteOne
- type SessionEdges
- type SessionGroupBy
- func (_g *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
- func (s *SessionGroupBy) Bool(ctx context.Context) (_ bool, err error)
- func (s *SessionGroupBy) BoolX(ctx context.Context) bool
- func (s *SessionGroupBy) Bools(ctx context.Context) ([]bool, error)
- func (s *SessionGroupBy) BoolsX(ctx context.Context) []bool
- func (s *SessionGroupBy) Float64(ctx context.Context) (_ float64, err error)
- func (s *SessionGroupBy) Float64X(ctx context.Context) float64
- func (s *SessionGroupBy) Float64s(ctx context.Context) ([]float64, error)
- func (s *SessionGroupBy) Float64sX(ctx context.Context) []float64
- func (s *SessionGroupBy) Int(ctx context.Context) (_ int, err error)
- func (s *SessionGroupBy) IntX(ctx context.Context) int
- func (s *SessionGroupBy) Ints(ctx context.Context) ([]int, error)
- func (s *SessionGroupBy) IntsX(ctx context.Context) []int
- func (_g *SessionGroupBy) Scan(ctx context.Context, v any) error
- func (s *SessionGroupBy) ScanX(ctx context.Context, v any)
- func (s *SessionGroupBy) String(ctx context.Context) (_ string, err error)
- func (s *SessionGroupBy) StringX(ctx context.Context) string
- func (s *SessionGroupBy) Strings(ctx context.Context) ([]string, error)
- func (s *SessionGroupBy) StringsX(ctx context.Context) []string
- type SessionMutation
- func (m *SessionMutation) AddDurationMs(i int64)
- func (m *SessionMutation) AddEventCount(i int)
- func (m *SessionMutation) AddField(name string, value ent.Value) error
- func (m *SessionMutation) AddPageCount(i int)
- func (m *SessionMutation) AddedDurationMs() (r int64, exists bool)
- func (m *SessionMutation) AddedEdges() []string
- func (m *SessionMutation) AddedEventCount() (r int, exists bool)
- func (m *SessionMutation) AddedField(name string) (ent.Value, bool)
- func (m *SessionMutation) AddedFields() []string
- func (m *SessionMutation) AddedIDs(name string) []ent.Value
- func (m *SessionMutation) AddedPageCount() (r int, exists bool)
- func (m *SessionMutation) Browser() (r string, exists bool)
- func (m *SessionMutation) BrowserCleared() bool
- func (m *SessionMutation) City() (r string, exists bool)
- func (m *SessionMutation) CityCleared() bool
- func (m *SessionMutation) ClearBrowser()
- func (m *SessionMutation) ClearCity()
- func (m *SessionMutation) ClearConversionStatus()
- func (m *SessionMutation) ClearCountry()
- func (m *SessionMutation) ClearDeviceType()
- func (m *SessionMutation) ClearEdge(name string) error
- func (m *SessionMutation) ClearEndedAt()
- func (m *SessionMutation) ClearEntryPage()
- func (m *SessionMutation) ClearExitPage()
- func (m *SessionMutation) ClearField(name string) error
- func (m *SessionMutation) ClearJourney()
- func (m *SessionMutation) ClearJourneyID()
- func (m *SessionMutation) ClearLastJourneyStepID()
- func (m *SessionMutation) ClearOs()
- func (m *SessionMutation) ClearProject()
- func (m *SessionMutation) ClearRegion()
- func (m *SessionMutation) ClearUserAgent()
- func (m *SessionMutation) ClearUserID()
- func (m *SessionMutation) ClearedEdges() []string
- func (m *SessionMutation) ClearedFields() []string
- func (m SessionMutation) Client() *Client
- func (m *SessionMutation) ConversionStatus() (r string, exists bool)
- func (m *SessionMutation) ConversionStatusCleared() bool
- func (m *SessionMutation) Country() (r string, exists bool)
- func (m *SessionMutation) CountryCleared() bool
- func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)
- func (m *SessionMutation) DeviceType() (r string, exists bool)
- func (m *SessionMutation) DeviceTypeCleared() bool
- func (m *SessionMutation) DurationMs() (r int64, exists bool)
- func (m *SessionMutation) EdgeCleared(name string) bool
- func (m *SessionMutation) EndedAt() (r time.Time, exists bool)
- func (m *SessionMutation) EndedAtCleared() bool
- func (m *SessionMutation) EntryPage() (r string, exists bool)
- func (m *SessionMutation) EntryPageCleared() bool
- func (m *SessionMutation) EventCount() (r int, exists bool)
- func (m *SessionMutation) ExitPage() (r string, exists bool)
- func (m *SessionMutation) ExitPageCleared() bool
- func (m *SessionMutation) Field(name string) (ent.Value, bool)
- func (m *SessionMutation) FieldCleared(name string) bool
- func (m *SessionMutation) Fields() []string
- func (m *SessionMutation) ID() (id uuid.UUID, exists bool)
- func (m *SessionMutation) IDs(ctx context.Context) ([]uuid.UUID, error)
- func (m *SessionMutation) JourneyCleared() bool
- func (m *SessionMutation) JourneyID() (r uuid.UUID, exists bool)
- func (m *SessionMutation) JourneyIDCleared() bool
- func (m *SessionMutation) JourneyIDs() (ids []uuid.UUID)
- func (m *SessionMutation) LastJourneyStepID() (r string, exists bool)
- func (m *SessionMutation) LastJourneyStepIDCleared() bool
- func (m *SessionMutation) OldBrowser(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldCity(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldConversionStatus(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldCountry(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldCreatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldDeviceType(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldDurationMs(ctx context.Context) (v int64, err error)
- func (m *SessionMutation) OldEndedAt(ctx context.Context) (v *time.Time, err error)
- func (m *SessionMutation) OldEntryPage(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldEventCount(ctx context.Context) (v int, err error)
- func (m *SessionMutation) OldExitPage(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldField(ctx context.Context, name string) (ent.Value, error)
- func (m *SessionMutation) OldJourneyID(ctx context.Context) (v *uuid.UUID, err error)
- func (m *SessionMutation) OldLastJourneyStepID(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldOrgID(ctx context.Context) (v uuid.UUID, err error)
- func (m *SessionMutation) OldOs(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldPageCount(ctx context.Context) (v int, err error)
- func (m *SessionMutation) OldProjectID(ctx context.Context) (v uuid.UUID, err error)
- func (m *SessionMutation) OldRegion(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldSessionID(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldStartedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldUpdatedAt(ctx context.Context) (v time.Time, err error)
- func (m *SessionMutation) OldUserAgent(ctx context.Context) (v string, err error)
- func (m *SessionMutation) OldUserID(ctx context.Context) (v string, err error)
- func (m *SessionMutation) Op() Op
- func (m *SessionMutation) OrgID() (r uuid.UUID, exists bool)
- func (m *SessionMutation) Os() (r string, exists bool)
- func (m *SessionMutation) OsCleared() bool
- func (m *SessionMutation) PageCount() (r int, exists bool)
- func (m *SessionMutation) ProjectCleared() bool
- func (m *SessionMutation) ProjectID() (r uuid.UUID, exists bool)
- func (m *SessionMutation) ProjectIDs() (ids []uuid.UUID)
- func (m *SessionMutation) Region() (r string, exists bool)
- func (m *SessionMutation) RegionCleared() bool
- func (m *SessionMutation) RemovedEdges() []string
- func (m *SessionMutation) RemovedIDs(name string) []ent.Value
- func (m *SessionMutation) ResetBrowser()
- func (m *SessionMutation) ResetCity()
- func (m *SessionMutation) ResetConversionStatus()
- func (m *SessionMutation) ResetCountry()
- func (m *SessionMutation) ResetCreatedAt()
- func (m *SessionMutation) ResetDeviceType()
- func (m *SessionMutation) ResetDurationMs()
- func (m *SessionMutation) ResetEdge(name string) error
- func (m *SessionMutation) ResetEndedAt()
- func (m *SessionMutation) ResetEntryPage()
- func (m *SessionMutation) ResetEventCount()
- func (m *SessionMutation) ResetExitPage()
- func (m *SessionMutation) ResetField(name string) error
- func (m *SessionMutation) ResetJourney()
- func (m *SessionMutation) ResetJourneyID()
- func (m *SessionMutation) ResetLastJourneyStepID()
- func (m *SessionMutation) ResetOrgID()
- func (m *SessionMutation) ResetOs()
- func (m *SessionMutation) ResetPageCount()
- func (m *SessionMutation) ResetProject()
- func (m *SessionMutation) ResetProjectID()
- func (m *SessionMutation) ResetRegion()
- func (m *SessionMutation) ResetSessionID()
- func (m *SessionMutation) ResetStartedAt()
- func (m *SessionMutation) ResetUpdatedAt()
- func (m *SessionMutation) ResetUserAgent()
- func (m *SessionMutation) ResetUserID()
- func (m *SessionMutation) SessionID() (r string, exists bool)
- func (m *SessionMutation) SetBrowser(s string)
- func (m *SessionMutation) SetCity(s string)
- func (m *SessionMutation) SetConversionStatus(s string)
- func (m *SessionMutation) SetCountry(s string)
- func (m *SessionMutation) SetCreatedAt(t time.Time)
- func (m *SessionMutation) SetDeviceType(s string)
- func (m *SessionMutation) SetDurationMs(i int64)
- func (m *SessionMutation) SetEndedAt(t time.Time)
- func (m *SessionMutation) SetEntryPage(s string)
- func (m *SessionMutation) SetEventCount(i int)
- func (m *SessionMutation) SetExitPage(s string)
- func (m *SessionMutation) SetField(name string, value ent.Value) error
- func (m *SessionMutation) SetID(id uuid.UUID)
- func (m *SessionMutation) SetJourneyID(u uuid.UUID)
- func (m *SessionMutation) SetLastJourneyStepID(s string)
- func (m *SessionMutation) SetOp(op Op)
- func (m *SessionMutation) SetOrgID(u uuid.UUID)
- func (m *SessionMutation) SetOs(s string)
- func (m *SessionMutation) SetPageCount(i int)
- func (m *SessionMutation) SetProjectID(u uuid.UUID)
- func (m *SessionMutation) SetRegion(s string)
- func (m *SessionMutation) SetSessionID(s string)
- func (m *SessionMutation) SetStartedAt(t time.Time)
- func (m *SessionMutation) SetUpdatedAt(t time.Time)
- func (m *SessionMutation) SetUserAgent(s string)
- func (m *SessionMutation) SetUserID(s string)
- func (m *SessionMutation) StartedAt() (r time.Time, exists bool)
- func (m SessionMutation) Tx() (*Tx, error)
- func (m *SessionMutation) Type() string
- func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)
- func (m *SessionMutation) UserAgent() (r string, exists bool)
- func (m *SessionMutation) UserAgentCleared() bool
- func (m *SessionMutation) UserID() (r string, exists bool)
- func (m *SessionMutation) UserIDCleared() bool
- func (m *SessionMutation) Where(ps ...predicate.Session)
- func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))
- type SessionQuery
- func (_q *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect
- func (_q *SessionQuery) All(ctx context.Context) ([]*Session, error)
- func (_q *SessionQuery) AllX(ctx context.Context) []*Session
- func (_q *SessionQuery) Clone() *SessionQuery
- func (_q *SessionQuery) Count(ctx context.Context) (int, error)
- func (_q *SessionQuery) CountX(ctx context.Context) int
- func (_q *SessionQuery) Exist(ctx context.Context) (bool, error)
- func (_q *SessionQuery) ExistX(ctx context.Context) bool
- func (_q *SessionQuery) First(ctx context.Context) (*Session, error)
- func (_q *SessionQuery) FirstID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *SessionQuery) FirstIDX(ctx context.Context) uuid.UUID
- func (_q *SessionQuery) FirstX(ctx context.Context) *Session
- func (_q *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
- func (_q *SessionQuery) IDs(ctx context.Context) (ids []uuid.UUID, err error)
- func (_q *SessionQuery) IDsX(ctx context.Context) []uuid.UUID
- func (_q *SessionQuery) Limit(limit int) *SessionQuery
- func (_q *SessionQuery) Offset(offset int) *SessionQuery
- func (_q *SessionQuery) Only(ctx context.Context) (*Session, error)
- func (_q *SessionQuery) OnlyID(ctx context.Context) (id uuid.UUID, err error)
- func (_q *SessionQuery) OnlyIDX(ctx context.Context) uuid.UUID
- func (_q *SessionQuery) OnlyX(ctx context.Context) *Session
- func (_q *SessionQuery) Order(o ...session.OrderOption) *SessionQuery
- func (_q *SessionQuery) QueryJourney() *JourneyQuery
- func (_q *SessionQuery) QueryProject() *ProjectQuery
- func (_q *SessionQuery) Select(fields ...string) *SessionSelect
- func (_q *SessionQuery) Unique(unique bool) *SessionQuery
- func (_q *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
- func (_q *SessionQuery) WithJourney(opts ...func(*JourneyQuery)) *SessionQuery
- func (_q *SessionQuery) WithProject(opts ...func(*ProjectQuery)) *SessionQuery
- type SessionSelect
- func (_s *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect
- func (s *SessionSelect) Bool(ctx context.Context) (_ bool, err error)
- func (s *SessionSelect) BoolX(ctx context.Context) bool
- func (s *SessionSelect) Bools(ctx context.Context) ([]bool, error)
- func (s *SessionSelect) BoolsX(ctx context.Context) []bool
- func (s *SessionSelect) Float64(ctx context.Context) (_ float64, err error)
- func (s *SessionSelect) Float64X(ctx context.Context) float64
- func (s *SessionSelect) Float64s(ctx context.Context) ([]float64, error)
- func (s *SessionSelect) Float64sX(ctx context.Context) []float64
- func (s *SessionSelect) Int(ctx context.Context) (_ int, err error)
- func (s *SessionSelect) IntX(ctx context.Context) int
- func (s *SessionSelect) Ints(ctx context.Context) ([]int, error)
- func (s *SessionSelect) IntsX(ctx context.Context) []int
- func (_s *SessionSelect) Scan(ctx context.Context, v any) error
- func (s *SessionSelect) ScanX(ctx context.Context, v any)
- func (s *SessionSelect) String(ctx context.Context) (_ string, err error)
- func (s *SessionSelect) StringX(ctx context.Context) string
- func (s *SessionSelect) Strings(ctx context.Context) ([]string, error)
- func (s *SessionSelect) StringsX(ctx context.Context) []string
- type SessionUpdate
- func (_u *SessionUpdate) AddDurationMs(v int64) *SessionUpdate
- func (_u *SessionUpdate) AddEventCount(v int) *SessionUpdate
- func (_u *SessionUpdate) AddPageCount(v int) *SessionUpdate
- func (_u *SessionUpdate) ClearBrowser() *SessionUpdate
- func (_u *SessionUpdate) ClearCity() *SessionUpdate
- func (_u *SessionUpdate) ClearConversionStatus() *SessionUpdate
- func (_u *SessionUpdate) ClearCountry() *SessionUpdate
- func (_u *SessionUpdate) ClearDeviceType() *SessionUpdate
- func (_u *SessionUpdate) ClearEndedAt() *SessionUpdate
- func (_u *SessionUpdate) ClearEntryPage() *SessionUpdate
- func (_u *SessionUpdate) ClearExitPage() *SessionUpdate
- func (_u *SessionUpdate) ClearJourney() *SessionUpdate
- func (_u *SessionUpdate) ClearJourneyID() *SessionUpdate
- func (_u *SessionUpdate) ClearLastJourneyStepID() *SessionUpdate
- func (_u *SessionUpdate) ClearOs() *SessionUpdate
- func (_u *SessionUpdate) ClearProject() *SessionUpdate
- func (_u *SessionUpdate) ClearRegion() *SessionUpdate
- func (_u *SessionUpdate) ClearUserAgent() *SessionUpdate
- func (_u *SessionUpdate) ClearUserID() *SessionUpdate
- func (_u *SessionUpdate) Exec(ctx context.Context) error
- func (_u *SessionUpdate) ExecX(ctx context.Context)
- func (_u *SessionUpdate) Mutation() *SessionMutation
- func (_u *SessionUpdate) Save(ctx context.Context) (int, error)
- func (_u *SessionUpdate) SaveX(ctx context.Context) int
- func (_u *SessionUpdate) SetBrowser(v string) *SessionUpdate
- func (_u *SessionUpdate) SetCity(v string) *SessionUpdate
- func (_u *SessionUpdate) SetConversionStatus(v string) *SessionUpdate
- func (_u *SessionUpdate) SetCountry(v string) *SessionUpdate
- func (_u *SessionUpdate) SetDeviceType(v string) *SessionUpdate
- func (_u *SessionUpdate) SetDurationMs(v int64) *SessionUpdate
- func (_u *SessionUpdate) SetEndedAt(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetEntryPage(v string) *SessionUpdate
- func (_u *SessionUpdate) SetEventCount(v int) *SessionUpdate
- func (_u *SessionUpdate) SetExitPage(v string) *SessionUpdate
- func (_u *SessionUpdate) SetJourney(v *Journey) *SessionUpdate
- func (_u *SessionUpdate) SetJourneyID(v uuid.UUID) *SessionUpdate
- func (_u *SessionUpdate) SetLastJourneyStepID(v string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableBrowser(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableCity(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableConversionStatus(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableCountry(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableDeviceType(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableDurationMs(v *int64) *SessionUpdate
- func (_u *SessionUpdate) SetNillableEndedAt(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableEntryPage(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableEventCount(v *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableExitPage(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableJourneyID(v *uuid.UUID) *SessionUpdate
- func (_u *SessionUpdate) SetNillableLastJourneyStepID(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableOrgID(v *uuid.UUID) *SessionUpdate
- func (_u *SessionUpdate) SetNillableOs(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillablePageCount(v *int) *SessionUpdate
- func (_u *SessionUpdate) SetNillableProjectID(v *uuid.UUID) *SessionUpdate
- func (_u *SessionUpdate) SetNillableRegion(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableSessionID(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableStartedAt(v *time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetNillableUserAgent(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetNillableUserID(v *string) *SessionUpdate
- func (_u *SessionUpdate) SetOrgID(v uuid.UUID) *SessionUpdate
- func (_u *SessionUpdate) SetOs(v string) *SessionUpdate
- func (_u *SessionUpdate) SetPageCount(v int) *SessionUpdate
- func (_u *SessionUpdate) SetProject(v *Project) *SessionUpdate
- func (_u *SessionUpdate) SetProjectID(v uuid.UUID) *SessionUpdate
- func (_u *SessionUpdate) SetRegion(v string) *SessionUpdate
- func (_u *SessionUpdate) SetSessionID(v string) *SessionUpdate
- func (_u *SessionUpdate) SetStartedAt(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetUpdatedAt(v time.Time) *SessionUpdate
- func (_u *SessionUpdate) SetUserAgent(v string) *SessionUpdate
- func (_u *SessionUpdate) SetUserID(v string) *SessionUpdate
- func (_u *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
- type SessionUpdateOne
- func (_u *SessionUpdateOne) AddDurationMs(v int64) *SessionUpdateOne
- func (_u *SessionUpdateOne) AddEventCount(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) AddPageCount(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearBrowser() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearCity() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearConversionStatus() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearCountry() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearDeviceType() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearEndedAt() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearEntryPage() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearExitPage() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearJourney() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearJourneyID() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearLastJourneyStepID() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearOs() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearProject() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearRegion() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearUserAgent() *SessionUpdateOne
- func (_u *SessionUpdateOne) ClearUserID() *SessionUpdateOne
- func (_u *SessionUpdateOne) Exec(ctx context.Context) error
- func (_u *SessionUpdateOne) ExecX(ctx context.Context)
- func (_u *SessionUpdateOne) Mutation() *SessionMutation
- func (_u *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
- func (_u *SessionUpdateOne) SaveX(ctx context.Context) *Session
- func (_u *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetBrowser(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetCity(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetConversionStatus(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetCountry(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetDeviceType(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetDurationMs(v int64) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetEndedAt(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetEntryPage(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetEventCount(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetExitPage(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetJourney(v *Journey) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetJourneyID(v uuid.UUID) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetLastJourneyStepID(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableBrowser(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableCity(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableConversionStatus(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableCountry(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableDeviceType(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableDurationMs(v *int64) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableEndedAt(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableEntryPage(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableEventCount(v *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableExitPage(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableJourneyID(v *uuid.UUID) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableLastJourneyStepID(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableOrgID(v *uuid.UUID) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableOs(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillablePageCount(v *int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableProjectID(v *uuid.UUID) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableRegion(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableSessionID(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableStartedAt(v *time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableUserAgent(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetNillableUserID(v *string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetOrgID(v uuid.UUID) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetOs(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetPageCount(v int) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetProject(v *Project) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetProjectID(v uuid.UUID) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetRegion(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetSessionID(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetStartedAt(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetUpdatedAt(v time.Time) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetUserAgent(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) SetUserID(v string) *SessionUpdateOne
- func (_u *SessionUpdateOne) Where(ps ...predicate.Session) *SessionUpdateOne
- type Sessions
- type TraverseFunc
- type Traverser
- type Tx
- type ValidationError
- type Value
Constants ¶
const ( // Operation types. OpCreate = ent.OpCreate OpDelete = ent.OpDelete OpDeleteOne = ent.OpDeleteOne OpUpdate = ent.OpUpdate OpUpdateOne = ent.OpUpdateOne // Node types. TypeEvent = "Event" TypeJourney = "Journey" TypeOrganization = "Organization" TypeProject = "Project" TypeSession = "Session" )
Variables ¶
var ErrTxStarted = errors.New("ent: cannot start a transaction within a transaction")
ErrTxStarted is returned when trying to start a new transaction from a transactional client.
Functions ¶
func IsConstraintError ¶
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
func IsNotFound ¶
IsNotFound returns a boolean indicating whether the error is a not found error.
func IsNotLoaded ¶
IsNotLoaded returns a boolean indicating whether the error is a not loaded error.
func IsNotSingular ¶
IsNotSingular returns a boolean indicating whether the error is a not singular error.
func IsValidationError ¶
IsValidationError returns a boolean indicating whether the error is a validation error.
func NewContext ¶
NewContext returns a new context with the given Client attached.
Types ¶
type AggregateFunc ¶
AggregateFunc applies an aggregation step on the group-by traversal/selector.
func As ¶
func As(fn AggregateFunc, end string) AggregateFunc
As is a pseudo aggregation function for renaming another other functions with custom names. For example:
GroupBy(field1, field2). Aggregate(ent.As(ent.Sum(field1), "sum_field1"), (ent.As(ent.Sum(field2), "sum_field2")). Scan(ctx, &v)
func Count ¶
func Count() AggregateFunc
Count applies the "count" aggregation function on each group.
func Max ¶
func Max(field string) AggregateFunc
Max applies the "max" aggregation function on the given field of each group.
func Mean ¶
func Mean(field string) AggregateFunc
Mean applies the "mean" aggregation function on the given field of each group.
func Min ¶
func Min(field string) AggregateFunc
Min applies the "min" aggregation function on the given field of each group.
func Sum ¶
func Sum(field string) AggregateFunc
Sum applies the "sum" aggregation function on the given field of each group.
type Client ¶
type Client struct {
// Schema is the client for creating, migrating and dropping schema.
Schema *migrate.Schema
// Event is the client for interacting with the Event builders.
Event *EventClient
// Journey is the client for interacting with the Journey builders.
Journey *JourneyClient
// Organization is the client for interacting with the Organization builders.
Organization *OrganizationClient
// Project is the client for interacting with the Project builders.
Project *ProjectClient
// Session is the client for interacting with the Session builders.
Session *SessionClient
// contains filtered or unexported fields
}
Client is the client that holds all ent builders.
func FromContext ¶
FromContext returns a Client stored inside a context, or nil if there isn't one.
func Open ¶
Open opens a database/sql.DB specified by the driver name and the data source name, and returns a new client attached to it. Optional parameters can be added for configuring the client.
func (*Client) Debug ¶
Debug returns a new debug-client. It's used to get verbose logging on specific operations.
client.Debug(). Event. Query(). Count(ctx)
func (*Client) Intercept ¶
func (c *Client) Intercept(interceptors ...Interceptor)
Intercept adds the query interceptors to all the entity clients. In order to add interceptors to a specific client, call: `client.Node.Intercept(...)`.
type CommitFunc ¶
The CommitFunc type is an adapter to allow the use of ordinary function as a Committer. If f is a function with the appropriate signature, CommitFunc(f) is a Committer that calls f.
type CommitHook ¶
CommitHook defines the "commit middleware". A function that gets a Committer and returns a Committer. For example:
hook := func(next ent.Committer) ent.Committer {
return ent.CommitFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Commit(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type ConstraintError ¶
type ConstraintError struct {
// contains filtered or unexported fields
}
ConstraintError returns when trying to create/update one or more entities and one or more of their constraints failed. For example, violation of edge or field uniqueness.
func (ConstraintError) Error ¶
func (e ConstraintError) Error() string
Error implements the error interface.
func (*ConstraintError) Unwrap ¶
func (e *ConstraintError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
type Event ¶
type Event struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// OrgID holds the value of the "org_id" field.
OrgID uuid.UUID `json:"org_id,omitempty"`
// ProjectID holds the value of the "project_id" field.
ProjectID uuid.UUID `json:"project_id,omitempty"`
// EventID holds the value of the "event_id" field.
EventID string `json:"event_id,omitempty"`
// SessionID holds the value of the "session_id" field.
SessionID string `json:"session_id,omitempty"`
// UserID holds the value of the "user_id" field.
UserID string `json:"user_id,omitempty"`
// EventType holds the value of the "event_type" field.
EventType event.EventType `json:"event_type,omitempty"`
// EventName holds the value of the "event_name" field.
EventName string `json:"event_name,omitempty"`
// Timestamp holds the value of the "timestamp" field.
Timestamp time.Time `json:"timestamp,omitempty"`
// Sequence holds the value of the "sequence" field.
Sequence int64 `json:"sequence,omitempty"`
// PagePath holds the value of the "page_path" field.
PagePath string `json:"page_path,omitempty"`
// PageTitle holds the value of the "page_title" field.
PageTitle string `json:"page_title,omitempty"`
// PageURL holds the value of the "page_url" field.
PageURL string `json:"page_url,omitempty"`
// PageReferrer holds the value of the "page_referrer" field.
PageReferrer string `json:"page_referrer,omitempty"`
// UIComponentName holds the value of the "ui_component_name" field.
UIComponentName string `json:"ui_component_name,omitempty"`
// UIComponentPath holds the value of the "ui_component_path" field.
UIComponentPath string `json:"ui_component_path,omitempty"`
// UIComponentType holds the value of the "ui_component_type" field.
UIComponentType string `json:"ui_component_type,omitempty"`
// UIAction holds the value of the "ui_action" field.
UIAction string `json:"ui_action,omitempty"`
// UIElement holds the value of the "ui_element" field.
UIElement string `json:"ui_element,omitempty"`
// UIElementText holds the value of the "ui_element_text" field.
UIElementText string `json:"ui_element_text,omitempty"`
// UIViewport holds the value of the "ui_viewport" field.
UIViewport string `json:"ui_viewport,omitempty"`
// UIScrollPosition holds the value of the "ui_scroll_position" field.
UIScrollPosition float64 `json:"ui_scroll_position,omitempty"`
// UIStateKey holds the value of the "ui_state_key" field.
UIStateKey string `json:"ui_state_key,omitempty"`
// UIStateBefore holds the value of the "ui_state_before" field.
UIStateBefore string `json:"ui_state_before,omitempty"`
// UIStateAfter holds the value of the "ui_state_after" field.
UIStateAfter string `json:"ui_state_after,omitempty"`
// UIStateChangeType holds the value of the "ui_state_change_type" field.
UIStateChangeType string `json:"ui_state_change_type,omitempty"`
// JourneyID holds the value of the "journey_id" field.
JourneyID *uuid.UUID `json:"journey_id,omitempty"`
// JourneyStepID holds the value of the "journey_step_id" field.
JourneyStepID string `json:"journey_step_id,omitempty"`
// JourneyStepName holds the value of the "journey_step_name" field.
JourneyStepName string `json:"journey_step_name,omitempty"`
// ConversionStatus holds the value of the "conversion_status" field.
ConversionStatus string `json:"conversion_status,omitempty"`
// APIMethod holds the value of the "api_method" field.
APIMethod string `json:"api_method,omitempty"`
// APIPath holds the value of the "api_path" field.
APIPath string `json:"api_path,omitempty"`
// APIStatusCode holds the value of the "api_status_code" field.
APIStatusCode int `json:"api_status_code,omitempty"`
// APIDurationMs holds the value of the "api_duration_ms" field.
APIDurationMs int64 `json:"api_duration_ms,omitempty"`
// ErrorType holds the value of the "error_type" field.
ErrorType string `json:"error_type,omitempty"`
// ErrorMessage holds the value of the "error_message" field.
ErrorMessage string `json:"error_message,omitempty"`
// ErrorStack holds the value of the "error_stack" field.
ErrorStack string `json:"error_stack,omitempty"`
// ErrorComponent holds the value of the "error_component" field.
ErrorComponent string `json:"error_component,omitempty"`
// PerformanceLcpMs holds the value of the "performance_lcp_ms" field.
PerformanceLcpMs float64 `json:"performance_lcp_ms,omitempty"`
// PerformanceFidMs holds the value of the "performance_fid_ms" field.
PerformanceFidMs float64 `json:"performance_fid_ms,omitempty"`
// PerformanceCls holds the value of the "performance_cls" field.
PerformanceCls float64 `json:"performance_cls,omitempty"`
// PerformanceTtfbMs holds the value of the "performance_ttfb_ms" field.
PerformanceTtfbMs float64 `json:"performance_ttfb_ms,omitempty"`
// SnapshotURL holds the value of the "snapshot_url" field.
SnapshotURL string `json:"snapshot_url,omitempty"`
// SnapshotViewport holds the value of the "snapshot_viewport" field.
SnapshotViewport string `json:"snapshot_viewport,omitempty"`
// DurationMs holds the value of the "duration_ms" field.
DurationMs int64 `json:"duration_ms,omitempty"`
// Metadata holds the value of the "metadata" field.
Metadata map[string]interface{} `json:"metadata,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the EventQuery when eager-loading is set.
Edges EventEdges `json:"edges"`
// contains filtered or unexported fields
}
Event is the model entity for the Event schema.
func (*Event) QueryJourney ¶
func (_m *Event) QueryJourney() *JourneyQuery
QueryJourney queries the "journey" edge of the Event entity.
func (*Event) QueryProject ¶
func (_m *Event) QueryProject() *ProjectQuery
QueryProject queries the "project" edge of the Event entity.
func (*Event) Unwrap ¶
Unwrap unwraps the Event 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 (*Event) Update ¶
func (_m *Event) Update() *EventUpdateOne
Update returns a builder for updating this Event. Note that you need to call Event.Unwrap() before calling this method if this Event was returned from a transaction, and the transaction was committed or rolled back.
type EventClient ¶
type EventClient struct {
// contains filtered or unexported fields
}
EventClient is a client for the Event schema.
func NewEventClient ¶
func NewEventClient(c config) *EventClient
NewEventClient returns a client for the Event from the given config.
func (*EventClient) Create ¶
func (c *EventClient) Create() *EventCreate
Create returns a builder for creating a Event entity.
func (*EventClient) CreateBulk ¶
func (c *EventClient) CreateBulk(builders ...*EventCreate) *EventCreateBulk
CreateBulk returns a builder for creating a bulk of Event entities.
func (*EventClient) Delete ¶
func (c *EventClient) Delete() *EventDelete
Delete returns a delete builder for Event.
func (*EventClient) DeleteOne ¶
func (c *EventClient) DeleteOne(_m *Event) *EventDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*EventClient) DeleteOneID ¶
func (c *EventClient) DeleteOneID(id uuid.UUID) *EventDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*EventClient) Intercept ¶
func (c *EventClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `event.Intercept(f(g(h())))`.
func (*EventClient) Interceptors ¶
func (c *EventClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*EventClient) MapCreateBulk ¶
func (c *EventClient) MapCreateBulk(slice any, setFunc func(*EventCreate, int)) *EventCreateBulk
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 (*EventClient) Query ¶
func (c *EventClient) Query() *EventQuery
Query returns a query builder for Event.
func (*EventClient) QueryJourney ¶
func (c *EventClient) QueryJourney(_m *Event) *JourneyQuery
QueryJourney queries the journey edge of a Event.
func (*EventClient) QueryProject ¶
func (c *EventClient) QueryProject(_m *Event) *ProjectQuery
QueryProject queries the project edge of a Event.
func (*EventClient) Update ¶
func (c *EventClient) Update() *EventUpdate
Update returns an update builder for Event.
func (*EventClient) UpdateOne ¶
func (c *EventClient) UpdateOne(_m *Event) *EventUpdateOne
UpdateOne returns an update builder for the given entity.
func (*EventClient) UpdateOneID ¶
func (c *EventClient) UpdateOneID(id uuid.UUID) *EventUpdateOne
UpdateOneID returns an update builder for the given id.
func (*EventClient) Use ¶
func (c *EventClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `event.Hooks(f(g(h())))`.
type EventCreate ¶
type EventCreate struct {
// contains filtered or unexported fields
}
EventCreate is the builder for creating a Event entity.
func (*EventCreate) Exec ¶
func (_c *EventCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*EventCreate) ExecX ¶
func (_c *EventCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventCreate) Mutation ¶
func (_c *EventCreate) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventCreate) Save ¶
func (_c *EventCreate) Save(ctx context.Context) (*Event, error)
Save creates the Event in the database.
func (*EventCreate) SaveX ¶
func (_c *EventCreate) SaveX(ctx context.Context) *Event
SaveX calls Save and panics if Save returns an error.
func (*EventCreate) SetAPIDurationMs ¶
func (_c *EventCreate) SetAPIDurationMs(v int64) *EventCreate
SetAPIDurationMs sets the "api_duration_ms" field.
func (*EventCreate) SetAPIMethod ¶
func (_c *EventCreate) SetAPIMethod(v string) *EventCreate
SetAPIMethod sets the "api_method" field.
func (*EventCreate) SetAPIPath ¶
func (_c *EventCreate) SetAPIPath(v string) *EventCreate
SetAPIPath sets the "api_path" field.
func (*EventCreate) SetAPIStatusCode ¶
func (_c *EventCreate) SetAPIStatusCode(v int) *EventCreate
SetAPIStatusCode sets the "api_status_code" field.
func (*EventCreate) SetConversionStatus ¶
func (_c *EventCreate) SetConversionStatus(v string) *EventCreate
SetConversionStatus sets the "conversion_status" field.
func (*EventCreate) SetCreatedAt ¶
func (_c *EventCreate) SetCreatedAt(v time.Time) *EventCreate
SetCreatedAt sets the "created_at" field.
func (*EventCreate) SetDurationMs ¶
func (_c *EventCreate) SetDurationMs(v int64) *EventCreate
SetDurationMs sets the "duration_ms" field.
func (*EventCreate) SetErrorComponent ¶
func (_c *EventCreate) SetErrorComponent(v string) *EventCreate
SetErrorComponent sets the "error_component" field.
func (*EventCreate) SetErrorMessage ¶
func (_c *EventCreate) SetErrorMessage(v string) *EventCreate
SetErrorMessage sets the "error_message" field.
func (*EventCreate) SetErrorStack ¶
func (_c *EventCreate) SetErrorStack(v string) *EventCreate
SetErrorStack sets the "error_stack" field.
func (*EventCreate) SetErrorType ¶
func (_c *EventCreate) SetErrorType(v string) *EventCreate
SetErrorType sets the "error_type" field.
func (*EventCreate) SetEventID ¶
func (_c *EventCreate) SetEventID(v string) *EventCreate
SetEventID sets the "event_id" field.
func (*EventCreate) SetEventName ¶
func (_c *EventCreate) SetEventName(v string) *EventCreate
SetEventName sets the "event_name" field.
func (*EventCreate) SetEventType ¶
func (_c *EventCreate) SetEventType(v event.EventType) *EventCreate
SetEventType sets the "event_type" field.
func (*EventCreate) SetID ¶
func (_c *EventCreate) SetID(v uuid.UUID) *EventCreate
SetID sets the "id" field.
func (*EventCreate) SetJourney ¶
func (_c *EventCreate) SetJourney(v *Journey) *EventCreate
SetJourney sets the "journey" edge to the Journey entity.
func (*EventCreate) SetJourneyID ¶
func (_c *EventCreate) SetJourneyID(v uuid.UUID) *EventCreate
SetJourneyID sets the "journey_id" field.
func (*EventCreate) SetJourneyStepID ¶
func (_c *EventCreate) SetJourneyStepID(v string) *EventCreate
SetJourneyStepID sets the "journey_step_id" field.
func (*EventCreate) SetJourneyStepName ¶
func (_c *EventCreate) SetJourneyStepName(v string) *EventCreate
SetJourneyStepName sets the "journey_step_name" field.
func (*EventCreate) SetMetadata ¶
func (_c *EventCreate) SetMetadata(v map[string]interface{}) *EventCreate
SetMetadata sets the "metadata" field.
func (*EventCreate) SetNillableAPIDurationMs ¶
func (_c *EventCreate) SetNillableAPIDurationMs(v *int64) *EventCreate
SetNillableAPIDurationMs sets the "api_duration_ms" field if the given value is not nil.
func (*EventCreate) SetNillableAPIMethod ¶
func (_c *EventCreate) SetNillableAPIMethod(v *string) *EventCreate
SetNillableAPIMethod sets the "api_method" field if the given value is not nil.
func (*EventCreate) SetNillableAPIPath ¶
func (_c *EventCreate) SetNillableAPIPath(v *string) *EventCreate
SetNillableAPIPath sets the "api_path" field if the given value is not nil.
func (*EventCreate) SetNillableAPIStatusCode ¶
func (_c *EventCreate) SetNillableAPIStatusCode(v *int) *EventCreate
SetNillableAPIStatusCode sets the "api_status_code" field if the given value is not nil.
func (*EventCreate) SetNillableConversionStatus ¶
func (_c *EventCreate) SetNillableConversionStatus(v *string) *EventCreate
SetNillableConversionStatus sets the "conversion_status" field if the given value is not nil.
func (*EventCreate) SetNillableCreatedAt ¶
func (_c *EventCreate) SetNillableCreatedAt(v *time.Time) *EventCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*EventCreate) SetNillableDurationMs ¶
func (_c *EventCreate) SetNillableDurationMs(v *int64) *EventCreate
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*EventCreate) SetNillableErrorComponent ¶
func (_c *EventCreate) SetNillableErrorComponent(v *string) *EventCreate
SetNillableErrorComponent sets the "error_component" field if the given value is not nil.
func (*EventCreate) SetNillableErrorMessage ¶
func (_c *EventCreate) SetNillableErrorMessage(v *string) *EventCreate
SetNillableErrorMessage sets the "error_message" field if the given value is not nil.
func (*EventCreate) SetNillableErrorStack ¶
func (_c *EventCreate) SetNillableErrorStack(v *string) *EventCreate
SetNillableErrorStack sets the "error_stack" field if the given value is not nil.
func (*EventCreate) SetNillableErrorType ¶
func (_c *EventCreate) SetNillableErrorType(v *string) *EventCreate
SetNillableErrorType sets the "error_type" field if the given value is not nil.
func (*EventCreate) SetNillableEventName ¶
func (_c *EventCreate) SetNillableEventName(v *string) *EventCreate
SetNillableEventName sets the "event_name" field if the given value is not nil.
func (*EventCreate) SetNillableID ¶
func (_c *EventCreate) SetNillableID(v *uuid.UUID) *EventCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*EventCreate) SetNillableJourneyID ¶
func (_c *EventCreate) SetNillableJourneyID(v *uuid.UUID) *EventCreate
SetNillableJourneyID sets the "journey_id" field if the given value is not nil.
func (*EventCreate) SetNillableJourneyStepID ¶
func (_c *EventCreate) SetNillableJourneyStepID(v *string) *EventCreate
SetNillableJourneyStepID sets the "journey_step_id" field if the given value is not nil.
func (*EventCreate) SetNillableJourneyStepName ¶
func (_c *EventCreate) SetNillableJourneyStepName(v *string) *EventCreate
SetNillableJourneyStepName sets the "journey_step_name" field if the given value is not nil.
func (*EventCreate) SetNillablePagePath ¶
func (_c *EventCreate) SetNillablePagePath(v *string) *EventCreate
SetNillablePagePath sets the "page_path" field if the given value is not nil.
func (*EventCreate) SetNillablePageReferrer ¶
func (_c *EventCreate) SetNillablePageReferrer(v *string) *EventCreate
SetNillablePageReferrer sets the "page_referrer" field if the given value is not nil.
func (*EventCreate) SetNillablePageTitle ¶
func (_c *EventCreate) SetNillablePageTitle(v *string) *EventCreate
SetNillablePageTitle sets the "page_title" field if the given value is not nil.
func (*EventCreate) SetNillablePageURL ¶
func (_c *EventCreate) SetNillablePageURL(v *string) *EventCreate
SetNillablePageURL sets the "page_url" field if the given value is not nil.
func (*EventCreate) SetNillablePerformanceCls ¶
func (_c *EventCreate) SetNillablePerformanceCls(v *float64) *EventCreate
SetNillablePerformanceCls sets the "performance_cls" field if the given value is not nil.
func (*EventCreate) SetNillablePerformanceFidMs ¶
func (_c *EventCreate) SetNillablePerformanceFidMs(v *float64) *EventCreate
SetNillablePerformanceFidMs sets the "performance_fid_ms" field if the given value is not nil.
func (*EventCreate) SetNillablePerformanceLcpMs ¶
func (_c *EventCreate) SetNillablePerformanceLcpMs(v *float64) *EventCreate
SetNillablePerformanceLcpMs sets the "performance_lcp_ms" field if the given value is not nil.
func (*EventCreate) SetNillablePerformanceTtfbMs ¶
func (_c *EventCreate) SetNillablePerformanceTtfbMs(v *float64) *EventCreate
SetNillablePerformanceTtfbMs sets the "performance_ttfb_ms" field if the given value is not nil.
func (*EventCreate) SetNillableSequence ¶
func (_c *EventCreate) SetNillableSequence(v *int64) *EventCreate
SetNillableSequence sets the "sequence" field if the given value is not nil.
func (*EventCreate) SetNillableSnapshotURL ¶
func (_c *EventCreate) SetNillableSnapshotURL(v *string) *EventCreate
SetNillableSnapshotURL sets the "snapshot_url" field if the given value is not nil.
func (*EventCreate) SetNillableSnapshotViewport ¶
func (_c *EventCreate) SetNillableSnapshotViewport(v *string) *EventCreate
SetNillableSnapshotViewport sets the "snapshot_viewport" field if the given value is not nil.
func (*EventCreate) SetNillableUIAction ¶
func (_c *EventCreate) SetNillableUIAction(v *string) *EventCreate
SetNillableUIAction sets the "ui_action" field if the given value is not nil.
func (*EventCreate) SetNillableUIComponentName ¶
func (_c *EventCreate) SetNillableUIComponentName(v *string) *EventCreate
SetNillableUIComponentName sets the "ui_component_name" field if the given value is not nil.
func (*EventCreate) SetNillableUIComponentPath ¶
func (_c *EventCreate) SetNillableUIComponentPath(v *string) *EventCreate
SetNillableUIComponentPath sets the "ui_component_path" field if the given value is not nil.
func (*EventCreate) SetNillableUIComponentType ¶
func (_c *EventCreate) SetNillableUIComponentType(v *string) *EventCreate
SetNillableUIComponentType sets the "ui_component_type" field if the given value is not nil.
func (*EventCreate) SetNillableUIElement ¶
func (_c *EventCreate) SetNillableUIElement(v *string) *EventCreate
SetNillableUIElement sets the "ui_element" field if the given value is not nil.
func (*EventCreate) SetNillableUIElementText ¶
func (_c *EventCreate) SetNillableUIElementText(v *string) *EventCreate
SetNillableUIElementText sets the "ui_element_text" field if the given value is not nil.
func (*EventCreate) SetNillableUIScrollPosition ¶
func (_c *EventCreate) SetNillableUIScrollPosition(v *float64) *EventCreate
SetNillableUIScrollPosition sets the "ui_scroll_position" field if the given value is not nil.
func (*EventCreate) SetNillableUIStateAfter ¶
func (_c *EventCreate) SetNillableUIStateAfter(v *string) *EventCreate
SetNillableUIStateAfter sets the "ui_state_after" field if the given value is not nil.
func (*EventCreate) SetNillableUIStateBefore ¶
func (_c *EventCreate) SetNillableUIStateBefore(v *string) *EventCreate
SetNillableUIStateBefore sets the "ui_state_before" field if the given value is not nil.
func (*EventCreate) SetNillableUIStateChangeType ¶
func (_c *EventCreate) SetNillableUIStateChangeType(v *string) *EventCreate
SetNillableUIStateChangeType sets the "ui_state_change_type" field if the given value is not nil.
func (*EventCreate) SetNillableUIStateKey ¶
func (_c *EventCreate) SetNillableUIStateKey(v *string) *EventCreate
SetNillableUIStateKey sets the "ui_state_key" field if the given value is not nil.
func (*EventCreate) SetNillableUIViewport ¶
func (_c *EventCreate) SetNillableUIViewport(v *string) *EventCreate
SetNillableUIViewport sets the "ui_viewport" field if the given value is not nil.
func (*EventCreate) SetNillableUserID ¶
func (_c *EventCreate) SetNillableUserID(v *string) *EventCreate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*EventCreate) SetOrgID ¶
func (_c *EventCreate) SetOrgID(v uuid.UUID) *EventCreate
SetOrgID sets the "org_id" field.
func (*EventCreate) SetPagePath ¶
func (_c *EventCreate) SetPagePath(v string) *EventCreate
SetPagePath sets the "page_path" field.
func (*EventCreate) SetPageReferrer ¶
func (_c *EventCreate) SetPageReferrer(v string) *EventCreate
SetPageReferrer sets the "page_referrer" field.
func (*EventCreate) SetPageTitle ¶
func (_c *EventCreate) SetPageTitle(v string) *EventCreate
SetPageTitle sets the "page_title" field.
func (*EventCreate) SetPageURL ¶
func (_c *EventCreate) SetPageURL(v string) *EventCreate
SetPageURL sets the "page_url" field.
func (*EventCreate) SetPerformanceCls ¶
func (_c *EventCreate) SetPerformanceCls(v float64) *EventCreate
SetPerformanceCls sets the "performance_cls" field.
func (*EventCreate) SetPerformanceFidMs ¶
func (_c *EventCreate) SetPerformanceFidMs(v float64) *EventCreate
SetPerformanceFidMs sets the "performance_fid_ms" field.
func (*EventCreate) SetPerformanceLcpMs ¶
func (_c *EventCreate) SetPerformanceLcpMs(v float64) *EventCreate
SetPerformanceLcpMs sets the "performance_lcp_ms" field.
func (*EventCreate) SetPerformanceTtfbMs ¶
func (_c *EventCreate) SetPerformanceTtfbMs(v float64) *EventCreate
SetPerformanceTtfbMs sets the "performance_ttfb_ms" field.
func (*EventCreate) SetProject ¶
func (_c *EventCreate) SetProject(v *Project) *EventCreate
SetProject sets the "project" edge to the Project entity.
func (*EventCreate) SetProjectID ¶
func (_c *EventCreate) SetProjectID(v uuid.UUID) *EventCreate
SetProjectID sets the "project_id" field.
func (*EventCreate) SetSequence ¶
func (_c *EventCreate) SetSequence(v int64) *EventCreate
SetSequence sets the "sequence" field.
func (*EventCreate) SetSessionID ¶
func (_c *EventCreate) SetSessionID(v string) *EventCreate
SetSessionID sets the "session_id" field.
func (*EventCreate) SetSnapshotURL ¶
func (_c *EventCreate) SetSnapshotURL(v string) *EventCreate
SetSnapshotURL sets the "snapshot_url" field.
func (*EventCreate) SetSnapshotViewport ¶
func (_c *EventCreate) SetSnapshotViewport(v string) *EventCreate
SetSnapshotViewport sets the "snapshot_viewport" field.
func (*EventCreate) SetTimestamp ¶
func (_c *EventCreate) SetTimestamp(v time.Time) *EventCreate
SetTimestamp sets the "timestamp" field.
func (*EventCreate) SetUIAction ¶
func (_c *EventCreate) SetUIAction(v string) *EventCreate
SetUIAction sets the "ui_action" field.
func (*EventCreate) SetUIComponentName ¶
func (_c *EventCreate) SetUIComponentName(v string) *EventCreate
SetUIComponentName sets the "ui_component_name" field.
func (*EventCreate) SetUIComponentPath ¶
func (_c *EventCreate) SetUIComponentPath(v string) *EventCreate
SetUIComponentPath sets the "ui_component_path" field.
func (*EventCreate) SetUIComponentType ¶
func (_c *EventCreate) SetUIComponentType(v string) *EventCreate
SetUIComponentType sets the "ui_component_type" field.
func (*EventCreate) SetUIElement ¶
func (_c *EventCreate) SetUIElement(v string) *EventCreate
SetUIElement sets the "ui_element" field.
func (*EventCreate) SetUIElementText ¶
func (_c *EventCreate) SetUIElementText(v string) *EventCreate
SetUIElementText sets the "ui_element_text" field.
func (*EventCreate) SetUIScrollPosition ¶
func (_c *EventCreate) SetUIScrollPosition(v float64) *EventCreate
SetUIScrollPosition sets the "ui_scroll_position" field.
func (*EventCreate) SetUIStateAfter ¶
func (_c *EventCreate) SetUIStateAfter(v string) *EventCreate
SetUIStateAfter sets the "ui_state_after" field.
func (*EventCreate) SetUIStateBefore ¶
func (_c *EventCreate) SetUIStateBefore(v string) *EventCreate
SetUIStateBefore sets the "ui_state_before" field.
func (*EventCreate) SetUIStateChangeType ¶
func (_c *EventCreate) SetUIStateChangeType(v string) *EventCreate
SetUIStateChangeType sets the "ui_state_change_type" field.
func (*EventCreate) SetUIStateKey ¶
func (_c *EventCreate) SetUIStateKey(v string) *EventCreate
SetUIStateKey sets the "ui_state_key" field.
func (*EventCreate) SetUIViewport ¶
func (_c *EventCreate) SetUIViewport(v string) *EventCreate
SetUIViewport sets the "ui_viewport" field.
func (*EventCreate) SetUserID ¶
func (_c *EventCreate) SetUserID(v string) *EventCreate
SetUserID sets the "user_id" field.
type EventCreateBulk ¶
type EventCreateBulk struct {
// contains filtered or unexported fields
}
EventCreateBulk is the builder for creating many Event entities in bulk.
func (*EventCreateBulk) Exec ¶
func (_c *EventCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*EventCreateBulk) ExecX ¶
func (_c *EventCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type EventDelete ¶
type EventDelete struct {
// contains filtered or unexported fields
}
EventDelete is the builder for deleting a Event entity.
func (*EventDelete) Exec ¶
func (_d *EventDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*EventDelete) ExecX ¶
func (_d *EventDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*EventDelete) Where ¶
func (_d *EventDelete) Where(ps ...predicate.Event) *EventDelete
Where appends a list predicates to the EventDelete builder.
type EventDeleteOne ¶
type EventDeleteOne struct {
// contains filtered or unexported fields
}
EventDeleteOne is the builder for deleting a single Event entity.
func (*EventDeleteOne) Exec ¶
func (_d *EventDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*EventDeleteOne) ExecX ¶
func (_d *EventDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventDeleteOne) Where ¶
func (_d *EventDeleteOne) Where(ps ...predicate.Event) *EventDeleteOne
Where appends a list predicates to the EventDelete builder.
type EventEdges ¶
type EventEdges struct {
// Project holds the value of the project edge.
Project *Project `json:"project,omitempty"`
// Journey holds the value of the journey edge.
Journey *Journey `json:"journey,omitempty"`
// contains filtered or unexported fields
}
EventEdges holds the relations/edges for other nodes in the graph.
func (EventEdges) JourneyOrErr ¶
func (e EventEdges) JourneyOrErr() (*Journey, error)
JourneyOrErr returns the Journey value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (EventEdges) ProjectOrErr ¶
func (e EventEdges) ProjectOrErr() (*Project, error)
ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type EventGroupBy ¶
type EventGroupBy struct {
// contains filtered or unexported fields
}
EventGroupBy is the group-by builder for Event entities.
func (*EventGroupBy) Aggregate ¶
func (_g *EventGroupBy) Aggregate(fns ...AggregateFunc) *EventGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*EventGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EventGroupBy) Scan ¶
func (_g *EventGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EventGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EventMutation ¶
type EventMutation struct {
// contains filtered or unexported fields
}
EventMutation represents an operation that mutates the Event nodes in the graph.
func (*EventMutation) APIDurationMs ¶
func (m *EventMutation) APIDurationMs() (r int64, exists bool)
APIDurationMs returns the value of the "api_duration_ms" field in the mutation.
func (*EventMutation) APIDurationMsCleared ¶
func (m *EventMutation) APIDurationMsCleared() bool
APIDurationMsCleared returns if the "api_duration_ms" field was cleared in this mutation.
func (*EventMutation) APIMethod ¶
func (m *EventMutation) APIMethod() (r string, exists bool)
APIMethod returns the value of the "api_method" field in the mutation.
func (*EventMutation) APIMethodCleared ¶
func (m *EventMutation) APIMethodCleared() bool
APIMethodCleared returns if the "api_method" field was cleared in this mutation.
func (*EventMutation) APIPath ¶
func (m *EventMutation) APIPath() (r string, exists bool)
APIPath returns the value of the "api_path" field in the mutation.
func (*EventMutation) APIPathCleared ¶
func (m *EventMutation) APIPathCleared() bool
APIPathCleared returns if the "api_path" field was cleared in this mutation.
func (*EventMutation) APIStatusCode ¶
func (m *EventMutation) APIStatusCode() (r int, exists bool)
APIStatusCode returns the value of the "api_status_code" field in the mutation.
func (*EventMutation) APIStatusCodeCleared ¶
func (m *EventMutation) APIStatusCodeCleared() bool
APIStatusCodeCleared returns if the "api_status_code" field was cleared in this mutation.
func (*EventMutation) AddAPIDurationMs ¶
func (m *EventMutation) AddAPIDurationMs(i int64)
AddAPIDurationMs adds i to the "api_duration_ms" field.
func (*EventMutation) AddAPIStatusCode ¶
func (m *EventMutation) AddAPIStatusCode(i int)
AddAPIStatusCode adds i to the "api_status_code" field.
func (*EventMutation) AddDurationMs ¶
func (m *EventMutation) AddDurationMs(i int64)
AddDurationMs adds i to the "duration_ms" field.
func (*EventMutation) AddField ¶
func (m *EventMutation) 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 (*EventMutation) AddPerformanceCls ¶
func (m *EventMutation) AddPerformanceCls(f float64)
AddPerformanceCls adds f to the "performance_cls" field.
func (*EventMutation) AddPerformanceFidMs ¶
func (m *EventMutation) AddPerformanceFidMs(f float64)
AddPerformanceFidMs adds f to the "performance_fid_ms" field.
func (*EventMutation) AddPerformanceLcpMs ¶
func (m *EventMutation) AddPerformanceLcpMs(f float64)
AddPerformanceLcpMs adds f to the "performance_lcp_ms" field.
func (*EventMutation) AddPerformanceTtfbMs ¶
func (m *EventMutation) AddPerformanceTtfbMs(f float64)
AddPerformanceTtfbMs adds f to the "performance_ttfb_ms" field.
func (*EventMutation) AddSequence ¶
func (m *EventMutation) AddSequence(i int64)
AddSequence adds i to the "sequence" field.
func (*EventMutation) AddUIScrollPosition ¶
func (m *EventMutation) AddUIScrollPosition(f float64)
AddUIScrollPosition adds f to the "ui_scroll_position" field.
func (*EventMutation) AddedAPIDurationMs ¶
func (m *EventMutation) AddedAPIDurationMs() (r int64, exists bool)
AddedAPIDurationMs returns the value that was added to the "api_duration_ms" field in this mutation.
func (*EventMutation) AddedAPIStatusCode ¶
func (m *EventMutation) AddedAPIStatusCode() (r int, exists bool)
AddedAPIStatusCode returns the value that was added to the "api_status_code" field in this mutation.
func (*EventMutation) AddedDurationMs ¶
func (m *EventMutation) AddedDurationMs() (r int64, exists bool)
AddedDurationMs returns the value that was added to the "duration_ms" field in this mutation.
func (*EventMutation) AddedEdges ¶
func (m *EventMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*EventMutation) AddedField ¶
func (m *EventMutation) 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 (*EventMutation) AddedFields ¶
func (m *EventMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*EventMutation) AddedIDs ¶
func (m *EventMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*EventMutation) AddedPerformanceCls ¶
func (m *EventMutation) AddedPerformanceCls() (r float64, exists bool)
AddedPerformanceCls returns the value that was added to the "performance_cls" field in this mutation.
func (*EventMutation) AddedPerformanceFidMs ¶
func (m *EventMutation) AddedPerformanceFidMs() (r float64, exists bool)
AddedPerformanceFidMs returns the value that was added to the "performance_fid_ms" field in this mutation.
func (*EventMutation) AddedPerformanceLcpMs ¶
func (m *EventMutation) AddedPerformanceLcpMs() (r float64, exists bool)
AddedPerformanceLcpMs returns the value that was added to the "performance_lcp_ms" field in this mutation.
func (*EventMutation) AddedPerformanceTtfbMs ¶
func (m *EventMutation) AddedPerformanceTtfbMs() (r float64, exists bool)
AddedPerformanceTtfbMs returns the value that was added to the "performance_ttfb_ms" field in this mutation.
func (*EventMutation) AddedSequence ¶
func (m *EventMutation) AddedSequence() (r int64, exists bool)
AddedSequence returns the value that was added to the "sequence" field in this mutation.
func (*EventMutation) AddedUIScrollPosition ¶
func (m *EventMutation) AddedUIScrollPosition() (r float64, exists bool)
AddedUIScrollPosition returns the value that was added to the "ui_scroll_position" field in this mutation.
func (*EventMutation) ClearAPIDurationMs ¶
func (m *EventMutation) ClearAPIDurationMs()
ClearAPIDurationMs clears the value of the "api_duration_ms" field.
func (*EventMutation) ClearAPIMethod ¶
func (m *EventMutation) ClearAPIMethod()
ClearAPIMethod clears the value of the "api_method" field.
func (*EventMutation) ClearAPIPath ¶
func (m *EventMutation) ClearAPIPath()
ClearAPIPath clears the value of the "api_path" field.
func (*EventMutation) ClearAPIStatusCode ¶
func (m *EventMutation) ClearAPIStatusCode()
ClearAPIStatusCode clears the value of the "api_status_code" field.
func (*EventMutation) ClearConversionStatus ¶
func (m *EventMutation) ClearConversionStatus()
ClearConversionStatus clears the value of the "conversion_status" field.
func (*EventMutation) ClearDurationMs ¶
func (m *EventMutation) ClearDurationMs()
ClearDurationMs clears the value of the "duration_ms" field.
func (*EventMutation) ClearEdge ¶
func (m *EventMutation) 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 (*EventMutation) ClearErrorComponent ¶
func (m *EventMutation) ClearErrorComponent()
ClearErrorComponent clears the value of the "error_component" field.
func (*EventMutation) ClearErrorMessage ¶
func (m *EventMutation) ClearErrorMessage()
ClearErrorMessage clears the value of the "error_message" field.
func (*EventMutation) ClearErrorStack ¶
func (m *EventMutation) ClearErrorStack()
ClearErrorStack clears the value of the "error_stack" field.
func (*EventMutation) ClearErrorType ¶
func (m *EventMutation) ClearErrorType()
ClearErrorType clears the value of the "error_type" field.
func (*EventMutation) ClearEventName ¶
func (m *EventMutation) ClearEventName()
ClearEventName clears the value of the "event_name" field.
func (*EventMutation) ClearField ¶
func (m *EventMutation) 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 (*EventMutation) ClearJourney ¶
func (m *EventMutation) ClearJourney()
ClearJourney clears the "journey" edge to the Journey entity.
func (*EventMutation) ClearJourneyID ¶
func (m *EventMutation) ClearJourneyID()
ClearJourneyID clears the value of the "journey_id" field.
func (*EventMutation) ClearJourneyStepID ¶
func (m *EventMutation) ClearJourneyStepID()
ClearJourneyStepID clears the value of the "journey_step_id" field.
func (*EventMutation) ClearJourneyStepName ¶
func (m *EventMutation) ClearJourneyStepName()
ClearJourneyStepName clears the value of the "journey_step_name" field.
func (*EventMutation) ClearMetadata ¶
func (m *EventMutation) ClearMetadata()
ClearMetadata clears the value of the "metadata" field.
func (*EventMutation) ClearPagePath ¶
func (m *EventMutation) ClearPagePath()
ClearPagePath clears the value of the "page_path" field.
func (*EventMutation) ClearPageReferrer ¶
func (m *EventMutation) ClearPageReferrer()
ClearPageReferrer clears the value of the "page_referrer" field.
func (*EventMutation) ClearPageTitle ¶
func (m *EventMutation) ClearPageTitle()
ClearPageTitle clears the value of the "page_title" field.
func (*EventMutation) ClearPageURL ¶
func (m *EventMutation) ClearPageURL()
ClearPageURL clears the value of the "page_url" field.
func (*EventMutation) ClearPerformanceCls ¶
func (m *EventMutation) ClearPerformanceCls()
ClearPerformanceCls clears the value of the "performance_cls" field.
func (*EventMutation) ClearPerformanceFidMs ¶
func (m *EventMutation) ClearPerformanceFidMs()
ClearPerformanceFidMs clears the value of the "performance_fid_ms" field.
func (*EventMutation) ClearPerformanceLcpMs ¶
func (m *EventMutation) ClearPerformanceLcpMs()
ClearPerformanceLcpMs clears the value of the "performance_lcp_ms" field.
func (*EventMutation) ClearPerformanceTtfbMs ¶
func (m *EventMutation) ClearPerformanceTtfbMs()
ClearPerformanceTtfbMs clears the value of the "performance_ttfb_ms" field.
func (*EventMutation) ClearProject ¶
func (m *EventMutation) ClearProject()
ClearProject clears the "project" edge to the Project entity.
func (*EventMutation) ClearSnapshotURL ¶
func (m *EventMutation) ClearSnapshotURL()
ClearSnapshotURL clears the value of the "snapshot_url" field.
func (*EventMutation) ClearSnapshotViewport ¶
func (m *EventMutation) ClearSnapshotViewport()
ClearSnapshotViewport clears the value of the "snapshot_viewport" field.
func (*EventMutation) ClearUIAction ¶
func (m *EventMutation) ClearUIAction()
ClearUIAction clears the value of the "ui_action" field.
func (*EventMutation) ClearUIComponentName ¶
func (m *EventMutation) ClearUIComponentName()
ClearUIComponentName clears the value of the "ui_component_name" field.
func (*EventMutation) ClearUIComponentPath ¶
func (m *EventMutation) ClearUIComponentPath()
ClearUIComponentPath clears the value of the "ui_component_path" field.
func (*EventMutation) ClearUIComponentType ¶
func (m *EventMutation) ClearUIComponentType()
ClearUIComponentType clears the value of the "ui_component_type" field.
func (*EventMutation) ClearUIElement ¶
func (m *EventMutation) ClearUIElement()
ClearUIElement clears the value of the "ui_element" field.
func (*EventMutation) ClearUIElementText ¶
func (m *EventMutation) ClearUIElementText()
ClearUIElementText clears the value of the "ui_element_text" field.
func (*EventMutation) ClearUIScrollPosition ¶
func (m *EventMutation) ClearUIScrollPosition()
ClearUIScrollPosition clears the value of the "ui_scroll_position" field.
func (*EventMutation) ClearUIStateAfter ¶
func (m *EventMutation) ClearUIStateAfter()
ClearUIStateAfter clears the value of the "ui_state_after" field.
func (*EventMutation) ClearUIStateBefore ¶
func (m *EventMutation) ClearUIStateBefore()
ClearUIStateBefore clears the value of the "ui_state_before" field.
func (*EventMutation) ClearUIStateChangeType ¶
func (m *EventMutation) ClearUIStateChangeType()
ClearUIStateChangeType clears the value of the "ui_state_change_type" field.
func (*EventMutation) ClearUIStateKey ¶
func (m *EventMutation) ClearUIStateKey()
ClearUIStateKey clears the value of the "ui_state_key" field.
func (*EventMutation) ClearUIViewport ¶
func (m *EventMutation) ClearUIViewport()
ClearUIViewport clears the value of the "ui_viewport" field.
func (*EventMutation) ClearUserID ¶
func (m *EventMutation) ClearUserID()
ClearUserID clears the value of the "user_id" field.
func (*EventMutation) ClearedEdges ¶
func (m *EventMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*EventMutation) ClearedFields ¶
func (m *EventMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (EventMutation) Client ¶
func (m EventMutation) 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 (*EventMutation) ConversionStatus ¶
func (m *EventMutation) ConversionStatus() (r string, exists bool)
ConversionStatus returns the value of the "conversion_status" field in the mutation.
func (*EventMutation) ConversionStatusCleared ¶
func (m *EventMutation) ConversionStatusCleared() bool
ConversionStatusCleared returns if the "conversion_status" field was cleared in this mutation.
func (*EventMutation) CreatedAt ¶
func (m *EventMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*EventMutation) DurationMs ¶
func (m *EventMutation) DurationMs() (r int64, exists bool)
DurationMs returns the value of the "duration_ms" field in the mutation.
func (*EventMutation) DurationMsCleared ¶
func (m *EventMutation) DurationMsCleared() bool
DurationMsCleared returns if the "duration_ms" field was cleared in this mutation.
func (*EventMutation) EdgeCleared ¶
func (m *EventMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*EventMutation) ErrorComponent ¶
func (m *EventMutation) ErrorComponent() (r string, exists bool)
ErrorComponent returns the value of the "error_component" field in the mutation.
func (*EventMutation) ErrorComponentCleared ¶
func (m *EventMutation) ErrorComponentCleared() bool
ErrorComponentCleared returns if the "error_component" field was cleared in this mutation.
func (*EventMutation) ErrorMessage ¶
func (m *EventMutation) ErrorMessage() (r string, exists bool)
ErrorMessage returns the value of the "error_message" field in the mutation.
func (*EventMutation) ErrorMessageCleared ¶
func (m *EventMutation) ErrorMessageCleared() bool
ErrorMessageCleared returns if the "error_message" field was cleared in this mutation.
func (*EventMutation) ErrorStack ¶
func (m *EventMutation) ErrorStack() (r string, exists bool)
ErrorStack returns the value of the "error_stack" field in the mutation.
func (*EventMutation) ErrorStackCleared ¶
func (m *EventMutation) ErrorStackCleared() bool
ErrorStackCleared returns if the "error_stack" field was cleared in this mutation.
func (*EventMutation) ErrorType ¶
func (m *EventMutation) ErrorType() (r string, exists bool)
ErrorType returns the value of the "error_type" field in the mutation.
func (*EventMutation) ErrorTypeCleared ¶
func (m *EventMutation) ErrorTypeCleared() bool
ErrorTypeCleared returns if the "error_type" field was cleared in this mutation.
func (*EventMutation) EventID ¶
func (m *EventMutation) EventID() (r string, exists bool)
EventID returns the value of the "event_id" field in the mutation.
func (*EventMutation) EventName ¶
func (m *EventMutation) EventName() (r string, exists bool)
EventName returns the value of the "event_name" field in the mutation.
func (*EventMutation) EventNameCleared ¶
func (m *EventMutation) EventNameCleared() bool
EventNameCleared returns if the "event_name" field was cleared in this mutation.
func (*EventMutation) EventType ¶
func (m *EventMutation) EventType() (r event.EventType, exists bool)
EventType returns the value of the "event_type" field in the mutation.
func (*EventMutation) Field ¶
func (m *EventMutation) 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 (*EventMutation) FieldCleared ¶
func (m *EventMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*EventMutation) Fields ¶
func (m *EventMutation) 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 (*EventMutation) ID ¶
func (m *EventMutation) ID() (id uuid.UUID, 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 (*EventMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*EventMutation) JourneyCleared ¶
func (m *EventMutation) JourneyCleared() bool
JourneyCleared reports if the "journey" edge to the Journey entity was cleared.
func (*EventMutation) JourneyID ¶
func (m *EventMutation) JourneyID() (r uuid.UUID, exists bool)
JourneyID returns the value of the "journey_id" field in the mutation.
func (*EventMutation) JourneyIDCleared ¶
func (m *EventMutation) JourneyIDCleared() bool
JourneyIDCleared returns if the "journey_id" field was cleared in this mutation.
func (*EventMutation) JourneyIDs ¶
func (m *EventMutation) JourneyIDs() (ids []uuid.UUID)
JourneyIDs returns the "journey" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use JourneyID instead. It exists only for internal usage by the builders.
func (*EventMutation) JourneyStepID ¶
func (m *EventMutation) JourneyStepID() (r string, exists bool)
JourneyStepID returns the value of the "journey_step_id" field in the mutation.
func (*EventMutation) JourneyStepIDCleared ¶
func (m *EventMutation) JourneyStepIDCleared() bool
JourneyStepIDCleared returns if the "journey_step_id" field was cleared in this mutation.
func (*EventMutation) JourneyStepName ¶
func (m *EventMutation) JourneyStepName() (r string, exists bool)
JourneyStepName returns the value of the "journey_step_name" field in the mutation.
func (*EventMutation) JourneyStepNameCleared ¶
func (m *EventMutation) JourneyStepNameCleared() bool
JourneyStepNameCleared returns if the "journey_step_name" field was cleared in this mutation.
func (*EventMutation) Metadata ¶
func (m *EventMutation) Metadata() (r map[string]interface{}, exists bool)
Metadata returns the value of the "metadata" field in the mutation.
func (*EventMutation) MetadataCleared ¶
func (m *EventMutation) MetadataCleared() bool
MetadataCleared returns if the "metadata" field was cleared in this mutation.
func (*EventMutation) OldAPIDurationMs ¶
func (m *EventMutation) OldAPIDurationMs(ctx context.Context) (v int64, err error)
OldAPIDurationMs returns the old "api_duration_ms" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldAPIMethod ¶
func (m *EventMutation) OldAPIMethod(ctx context.Context) (v string, err error)
OldAPIMethod returns the old "api_method" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldAPIPath ¶
func (m *EventMutation) OldAPIPath(ctx context.Context) (v string, err error)
OldAPIPath returns the old "api_path" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldAPIStatusCode ¶
func (m *EventMutation) OldAPIStatusCode(ctx context.Context) (v int, err error)
OldAPIStatusCode returns the old "api_status_code" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldConversionStatus ¶
func (m *EventMutation) OldConversionStatus(ctx context.Context) (v string, err error)
OldConversionStatus returns the old "conversion_status" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldDurationMs ¶
func (m *EventMutation) OldDurationMs(ctx context.Context) (v int64, err error)
OldDurationMs returns the old "duration_ms" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldErrorComponent ¶
func (m *EventMutation) OldErrorComponent(ctx context.Context) (v string, err error)
OldErrorComponent returns the old "error_component" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldErrorMessage ¶
func (m *EventMutation) OldErrorMessage(ctx context.Context) (v string, err error)
OldErrorMessage returns the old "error_message" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldErrorStack ¶
func (m *EventMutation) OldErrorStack(ctx context.Context) (v string, err error)
OldErrorStack returns the old "error_stack" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldErrorType ¶
func (m *EventMutation) OldErrorType(ctx context.Context) (v string, err error)
OldErrorType returns the old "error_type" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldEventID ¶
func (m *EventMutation) OldEventID(ctx context.Context) (v string, err error)
OldEventID returns the old "event_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldEventName ¶
func (m *EventMutation) OldEventName(ctx context.Context) (v string, err error)
OldEventName returns the old "event_name" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldEventType ¶
OldEventType returns the old "event_type" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*EventMutation) OldJourneyID ¶
OldJourneyID returns the old "journey_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldJourneyStepID ¶
func (m *EventMutation) OldJourneyStepID(ctx context.Context) (v string, err error)
OldJourneyStepID returns the old "journey_step_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldJourneyStepName ¶
func (m *EventMutation) OldJourneyStepName(ctx context.Context) (v string, err error)
OldJourneyStepName returns the old "journey_step_name" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldMetadata ¶
func (m *EventMutation) OldMetadata(ctx context.Context) (v map[string]interface{}, err error)
OldMetadata returns the old "metadata" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldOrgID ¶
OldOrgID returns the old "org_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPagePath ¶
func (m *EventMutation) OldPagePath(ctx context.Context) (v string, err error)
OldPagePath returns the old "page_path" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPageReferrer ¶
func (m *EventMutation) OldPageReferrer(ctx context.Context) (v string, err error)
OldPageReferrer returns the old "page_referrer" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPageTitle ¶
func (m *EventMutation) OldPageTitle(ctx context.Context) (v string, err error)
OldPageTitle returns the old "page_title" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPageURL ¶
func (m *EventMutation) OldPageURL(ctx context.Context) (v string, err error)
OldPageURL returns the old "page_url" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPerformanceCls ¶
func (m *EventMutation) OldPerformanceCls(ctx context.Context) (v float64, err error)
OldPerformanceCls returns the old "performance_cls" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPerformanceFidMs ¶
func (m *EventMutation) OldPerformanceFidMs(ctx context.Context) (v float64, err error)
OldPerformanceFidMs returns the old "performance_fid_ms" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPerformanceLcpMs ¶
func (m *EventMutation) OldPerformanceLcpMs(ctx context.Context) (v float64, err error)
OldPerformanceLcpMs returns the old "performance_lcp_ms" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldPerformanceTtfbMs ¶
func (m *EventMutation) OldPerformanceTtfbMs(ctx context.Context) (v float64, err error)
OldPerformanceTtfbMs returns the old "performance_ttfb_ms" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldProjectID ¶
OldProjectID returns the old "project_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldSequence ¶
func (m *EventMutation) OldSequence(ctx context.Context) (v int64, err error)
OldSequence returns the old "sequence" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldSessionID ¶
func (m *EventMutation) OldSessionID(ctx context.Context) (v string, err error)
OldSessionID returns the old "session_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldSnapshotURL ¶
func (m *EventMutation) OldSnapshotURL(ctx context.Context) (v string, err error)
OldSnapshotURL returns the old "snapshot_url" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldSnapshotViewport ¶
func (m *EventMutation) OldSnapshotViewport(ctx context.Context) (v string, err error)
OldSnapshotViewport returns the old "snapshot_viewport" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldTimestamp ¶
OldTimestamp returns the old "timestamp" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIAction ¶
func (m *EventMutation) OldUIAction(ctx context.Context) (v string, err error)
OldUIAction returns the old "ui_action" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIComponentName ¶
func (m *EventMutation) OldUIComponentName(ctx context.Context) (v string, err error)
OldUIComponentName returns the old "ui_component_name" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIComponentPath ¶
func (m *EventMutation) OldUIComponentPath(ctx context.Context) (v string, err error)
OldUIComponentPath returns the old "ui_component_path" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIComponentType ¶
func (m *EventMutation) OldUIComponentType(ctx context.Context) (v string, err error)
OldUIComponentType returns the old "ui_component_type" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIElement ¶
func (m *EventMutation) OldUIElement(ctx context.Context) (v string, err error)
OldUIElement returns the old "ui_element" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIElementText ¶
func (m *EventMutation) OldUIElementText(ctx context.Context) (v string, err error)
OldUIElementText returns the old "ui_element_text" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIScrollPosition ¶
func (m *EventMutation) OldUIScrollPosition(ctx context.Context) (v float64, err error)
OldUIScrollPosition returns the old "ui_scroll_position" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIStateAfter ¶
func (m *EventMutation) OldUIStateAfter(ctx context.Context) (v string, err error)
OldUIStateAfter returns the old "ui_state_after" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIStateBefore ¶
func (m *EventMutation) OldUIStateBefore(ctx context.Context) (v string, err error)
OldUIStateBefore returns the old "ui_state_before" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIStateChangeType ¶
func (m *EventMutation) OldUIStateChangeType(ctx context.Context) (v string, err error)
OldUIStateChangeType returns the old "ui_state_change_type" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIStateKey ¶
func (m *EventMutation) OldUIStateKey(ctx context.Context) (v string, err error)
OldUIStateKey returns the old "ui_state_key" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUIViewport ¶
func (m *EventMutation) OldUIViewport(ctx context.Context) (v string, err error)
OldUIViewport returns the old "ui_viewport" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OldUserID ¶
func (m *EventMutation) OldUserID(ctx context.Context) (v string, err error)
OldUserID returns the old "user_id" field's value of the Event entity. If the Event object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*EventMutation) OrgID ¶
func (m *EventMutation) OrgID() (r uuid.UUID, exists bool)
OrgID returns the value of the "org_id" field in the mutation.
func (*EventMutation) PagePath ¶
func (m *EventMutation) PagePath() (r string, exists bool)
PagePath returns the value of the "page_path" field in the mutation.
func (*EventMutation) PagePathCleared ¶
func (m *EventMutation) PagePathCleared() bool
PagePathCleared returns if the "page_path" field was cleared in this mutation.
func (*EventMutation) PageReferrer ¶
func (m *EventMutation) PageReferrer() (r string, exists bool)
PageReferrer returns the value of the "page_referrer" field in the mutation.
func (*EventMutation) PageReferrerCleared ¶
func (m *EventMutation) PageReferrerCleared() bool
PageReferrerCleared returns if the "page_referrer" field was cleared in this mutation.
func (*EventMutation) PageTitle ¶
func (m *EventMutation) PageTitle() (r string, exists bool)
PageTitle returns the value of the "page_title" field in the mutation.
func (*EventMutation) PageTitleCleared ¶
func (m *EventMutation) PageTitleCleared() bool
PageTitleCleared returns if the "page_title" field was cleared in this mutation.
func (*EventMutation) PageURL ¶
func (m *EventMutation) PageURL() (r string, exists bool)
PageURL returns the value of the "page_url" field in the mutation.
func (*EventMutation) PageURLCleared ¶
func (m *EventMutation) PageURLCleared() bool
PageURLCleared returns if the "page_url" field was cleared in this mutation.
func (*EventMutation) PerformanceCls ¶
func (m *EventMutation) PerformanceCls() (r float64, exists bool)
PerformanceCls returns the value of the "performance_cls" field in the mutation.
func (*EventMutation) PerformanceClsCleared ¶
func (m *EventMutation) PerformanceClsCleared() bool
PerformanceClsCleared returns if the "performance_cls" field was cleared in this mutation.
func (*EventMutation) PerformanceFidMs ¶
func (m *EventMutation) PerformanceFidMs() (r float64, exists bool)
PerformanceFidMs returns the value of the "performance_fid_ms" field in the mutation.
func (*EventMutation) PerformanceFidMsCleared ¶
func (m *EventMutation) PerformanceFidMsCleared() bool
PerformanceFidMsCleared returns if the "performance_fid_ms" field was cleared in this mutation.
func (*EventMutation) PerformanceLcpMs ¶
func (m *EventMutation) PerformanceLcpMs() (r float64, exists bool)
PerformanceLcpMs returns the value of the "performance_lcp_ms" field in the mutation.
func (*EventMutation) PerformanceLcpMsCleared ¶
func (m *EventMutation) PerformanceLcpMsCleared() bool
PerformanceLcpMsCleared returns if the "performance_lcp_ms" field was cleared in this mutation.
func (*EventMutation) PerformanceTtfbMs ¶
func (m *EventMutation) PerformanceTtfbMs() (r float64, exists bool)
PerformanceTtfbMs returns the value of the "performance_ttfb_ms" field in the mutation.
func (*EventMutation) PerformanceTtfbMsCleared ¶
func (m *EventMutation) PerformanceTtfbMsCleared() bool
PerformanceTtfbMsCleared returns if the "performance_ttfb_ms" field was cleared in this mutation.
func (*EventMutation) ProjectCleared ¶
func (m *EventMutation) ProjectCleared() bool
ProjectCleared reports if the "project" edge to the Project entity was cleared.
func (*EventMutation) ProjectID ¶
func (m *EventMutation) ProjectID() (r uuid.UUID, exists bool)
ProjectID returns the value of the "project_id" field in the mutation.
func (*EventMutation) ProjectIDs ¶
func (m *EventMutation) ProjectIDs() (ids []uuid.UUID)
ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.
func (*EventMutation) RemovedEdges ¶
func (m *EventMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*EventMutation) RemovedIDs ¶
func (m *EventMutation) 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 (*EventMutation) ResetAPIDurationMs ¶
func (m *EventMutation) ResetAPIDurationMs()
ResetAPIDurationMs resets all changes to the "api_duration_ms" field.
func (*EventMutation) ResetAPIMethod ¶
func (m *EventMutation) ResetAPIMethod()
ResetAPIMethod resets all changes to the "api_method" field.
func (*EventMutation) ResetAPIPath ¶
func (m *EventMutation) ResetAPIPath()
ResetAPIPath resets all changes to the "api_path" field.
func (*EventMutation) ResetAPIStatusCode ¶
func (m *EventMutation) ResetAPIStatusCode()
ResetAPIStatusCode resets all changes to the "api_status_code" field.
func (*EventMutation) ResetConversionStatus ¶
func (m *EventMutation) ResetConversionStatus()
ResetConversionStatus resets all changes to the "conversion_status" field.
func (*EventMutation) ResetCreatedAt ¶
func (m *EventMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*EventMutation) ResetDurationMs ¶
func (m *EventMutation) ResetDurationMs()
ResetDurationMs resets all changes to the "duration_ms" field.
func (*EventMutation) ResetEdge ¶
func (m *EventMutation) 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 (*EventMutation) ResetErrorComponent ¶
func (m *EventMutation) ResetErrorComponent()
ResetErrorComponent resets all changes to the "error_component" field.
func (*EventMutation) ResetErrorMessage ¶
func (m *EventMutation) ResetErrorMessage()
ResetErrorMessage resets all changes to the "error_message" field.
func (*EventMutation) ResetErrorStack ¶
func (m *EventMutation) ResetErrorStack()
ResetErrorStack resets all changes to the "error_stack" field.
func (*EventMutation) ResetErrorType ¶
func (m *EventMutation) ResetErrorType()
ResetErrorType resets all changes to the "error_type" field.
func (*EventMutation) ResetEventID ¶
func (m *EventMutation) ResetEventID()
ResetEventID resets all changes to the "event_id" field.
func (*EventMutation) ResetEventName ¶
func (m *EventMutation) ResetEventName()
ResetEventName resets all changes to the "event_name" field.
func (*EventMutation) ResetEventType ¶
func (m *EventMutation) ResetEventType()
ResetEventType resets all changes to the "event_type" field.
func (*EventMutation) ResetField ¶
func (m *EventMutation) 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 (*EventMutation) ResetJourney ¶
func (m *EventMutation) ResetJourney()
ResetJourney resets all changes to the "journey" edge.
func (*EventMutation) ResetJourneyID ¶
func (m *EventMutation) ResetJourneyID()
ResetJourneyID resets all changes to the "journey_id" field.
func (*EventMutation) ResetJourneyStepID ¶
func (m *EventMutation) ResetJourneyStepID()
ResetJourneyStepID resets all changes to the "journey_step_id" field.
func (*EventMutation) ResetJourneyStepName ¶
func (m *EventMutation) ResetJourneyStepName()
ResetJourneyStepName resets all changes to the "journey_step_name" field.
func (*EventMutation) ResetMetadata ¶
func (m *EventMutation) ResetMetadata()
ResetMetadata resets all changes to the "metadata" field.
func (*EventMutation) ResetOrgID ¶
func (m *EventMutation) ResetOrgID()
ResetOrgID resets all changes to the "org_id" field.
func (*EventMutation) ResetPagePath ¶
func (m *EventMutation) ResetPagePath()
ResetPagePath resets all changes to the "page_path" field.
func (*EventMutation) ResetPageReferrer ¶
func (m *EventMutation) ResetPageReferrer()
ResetPageReferrer resets all changes to the "page_referrer" field.
func (*EventMutation) ResetPageTitle ¶
func (m *EventMutation) ResetPageTitle()
ResetPageTitle resets all changes to the "page_title" field.
func (*EventMutation) ResetPageURL ¶
func (m *EventMutation) ResetPageURL()
ResetPageURL resets all changes to the "page_url" field.
func (*EventMutation) ResetPerformanceCls ¶
func (m *EventMutation) ResetPerformanceCls()
ResetPerformanceCls resets all changes to the "performance_cls" field.
func (*EventMutation) ResetPerformanceFidMs ¶
func (m *EventMutation) ResetPerformanceFidMs()
ResetPerformanceFidMs resets all changes to the "performance_fid_ms" field.
func (*EventMutation) ResetPerformanceLcpMs ¶
func (m *EventMutation) ResetPerformanceLcpMs()
ResetPerformanceLcpMs resets all changes to the "performance_lcp_ms" field.
func (*EventMutation) ResetPerformanceTtfbMs ¶
func (m *EventMutation) ResetPerformanceTtfbMs()
ResetPerformanceTtfbMs resets all changes to the "performance_ttfb_ms" field.
func (*EventMutation) ResetProject ¶
func (m *EventMutation) ResetProject()
ResetProject resets all changes to the "project" edge.
func (*EventMutation) ResetProjectID ¶
func (m *EventMutation) ResetProjectID()
ResetProjectID resets all changes to the "project_id" field.
func (*EventMutation) ResetSequence ¶
func (m *EventMutation) ResetSequence()
ResetSequence resets all changes to the "sequence" field.
func (*EventMutation) ResetSessionID ¶
func (m *EventMutation) ResetSessionID()
ResetSessionID resets all changes to the "session_id" field.
func (*EventMutation) ResetSnapshotURL ¶
func (m *EventMutation) ResetSnapshotURL()
ResetSnapshotURL resets all changes to the "snapshot_url" field.
func (*EventMutation) ResetSnapshotViewport ¶
func (m *EventMutation) ResetSnapshotViewport()
ResetSnapshotViewport resets all changes to the "snapshot_viewport" field.
func (*EventMutation) ResetTimestamp ¶
func (m *EventMutation) ResetTimestamp()
ResetTimestamp resets all changes to the "timestamp" field.
func (*EventMutation) ResetUIAction ¶
func (m *EventMutation) ResetUIAction()
ResetUIAction resets all changes to the "ui_action" field.
func (*EventMutation) ResetUIComponentName ¶
func (m *EventMutation) ResetUIComponentName()
ResetUIComponentName resets all changes to the "ui_component_name" field.
func (*EventMutation) ResetUIComponentPath ¶
func (m *EventMutation) ResetUIComponentPath()
ResetUIComponentPath resets all changes to the "ui_component_path" field.
func (*EventMutation) ResetUIComponentType ¶
func (m *EventMutation) ResetUIComponentType()
ResetUIComponentType resets all changes to the "ui_component_type" field.
func (*EventMutation) ResetUIElement ¶
func (m *EventMutation) ResetUIElement()
ResetUIElement resets all changes to the "ui_element" field.
func (*EventMutation) ResetUIElementText ¶
func (m *EventMutation) ResetUIElementText()
ResetUIElementText resets all changes to the "ui_element_text" field.
func (*EventMutation) ResetUIScrollPosition ¶
func (m *EventMutation) ResetUIScrollPosition()
ResetUIScrollPosition resets all changes to the "ui_scroll_position" field.
func (*EventMutation) ResetUIStateAfter ¶
func (m *EventMutation) ResetUIStateAfter()
ResetUIStateAfter resets all changes to the "ui_state_after" field.
func (*EventMutation) ResetUIStateBefore ¶
func (m *EventMutation) ResetUIStateBefore()
ResetUIStateBefore resets all changes to the "ui_state_before" field.
func (*EventMutation) ResetUIStateChangeType ¶
func (m *EventMutation) ResetUIStateChangeType()
ResetUIStateChangeType resets all changes to the "ui_state_change_type" field.
func (*EventMutation) ResetUIStateKey ¶
func (m *EventMutation) ResetUIStateKey()
ResetUIStateKey resets all changes to the "ui_state_key" field.
func (*EventMutation) ResetUIViewport ¶
func (m *EventMutation) ResetUIViewport()
ResetUIViewport resets all changes to the "ui_viewport" field.
func (*EventMutation) ResetUserID ¶
func (m *EventMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*EventMutation) Sequence ¶
func (m *EventMutation) Sequence() (r int64, exists bool)
Sequence returns the value of the "sequence" field in the mutation.
func (*EventMutation) SessionID ¶
func (m *EventMutation) SessionID() (r string, exists bool)
SessionID returns the value of the "session_id" field in the mutation.
func (*EventMutation) SetAPIDurationMs ¶
func (m *EventMutation) SetAPIDurationMs(i int64)
SetAPIDurationMs sets the "api_duration_ms" field.
func (*EventMutation) SetAPIMethod ¶
func (m *EventMutation) SetAPIMethod(s string)
SetAPIMethod sets the "api_method" field.
func (*EventMutation) SetAPIPath ¶
func (m *EventMutation) SetAPIPath(s string)
SetAPIPath sets the "api_path" field.
func (*EventMutation) SetAPIStatusCode ¶
func (m *EventMutation) SetAPIStatusCode(i int)
SetAPIStatusCode sets the "api_status_code" field.
func (*EventMutation) SetConversionStatus ¶
func (m *EventMutation) SetConversionStatus(s string)
SetConversionStatus sets the "conversion_status" field.
func (*EventMutation) SetCreatedAt ¶
func (m *EventMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*EventMutation) SetDurationMs ¶
func (m *EventMutation) SetDurationMs(i int64)
SetDurationMs sets the "duration_ms" field.
func (*EventMutation) SetErrorComponent ¶
func (m *EventMutation) SetErrorComponent(s string)
SetErrorComponent sets the "error_component" field.
func (*EventMutation) SetErrorMessage ¶
func (m *EventMutation) SetErrorMessage(s string)
SetErrorMessage sets the "error_message" field.
func (*EventMutation) SetErrorStack ¶
func (m *EventMutation) SetErrorStack(s string)
SetErrorStack sets the "error_stack" field.
func (*EventMutation) SetErrorType ¶
func (m *EventMutation) SetErrorType(s string)
SetErrorType sets the "error_type" field.
func (*EventMutation) SetEventID ¶
func (m *EventMutation) SetEventID(s string)
SetEventID sets the "event_id" field.
func (*EventMutation) SetEventName ¶
func (m *EventMutation) SetEventName(s string)
SetEventName sets the "event_name" field.
func (*EventMutation) SetEventType ¶
func (m *EventMutation) SetEventType(et event.EventType)
SetEventType sets the "event_type" field.
func (*EventMutation) SetField ¶
func (m *EventMutation) 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 (*EventMutation) SetID ¶
func (m *EventMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Event entities.
func (*EventMutation) SetJourneyID ¶
func (m *EventMutation) SetJourneyID(u uuid.UUID)
SetJourneyID sets the "journey_id" field.
func (*EventMutation) SetJourneyStepID ¶
func (m *EventMutation) SetJourneyStepID(s string)
SetJourneyStepID sets the "journey_step_id" field.
func (*EventMutation) SetJourneyStepName ¶
func (m *EventMutation) SetJourneyStepName(s string)
SetJourneyStepName sets the "journey_step_name" field.
func (*EventMutation) SetMetadata ¶
func (m *EventMutation) SetMetadata(value map[string]interface{})
SetMetadata sets the "metadata" field.
func (*EventMutation) SetOp ¶
func (m *EventMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*EventMutation) SetOrgID ¶
func (m *EventMutation) SetOrgID(u uuid.UUID)
SetOrgID sets the "org_id" field.
func (*EventMutation) SetPagePath ¶
func (m *EventMutation) SetPagePath(s string)
SetPagePath sets the "page_path" field.
func (*EventMutation) SetPageReferrer ¶
func (m *EventMutation) SetPageReferrer(s string)
SetPageReferrer sets the "page_referrer" field.
func (*EventMutation) SetPageTitle ¶
func (m *EventMutation) SetPageTitle(s string)
SetPageTitle sets the "page_title" field.
func (*EventMutation) SetPageURL ¶
func (m *EventMutation) SetPageURL(s string)
SetPageURL sets the "page_url" field.
func (*EventMutation) SetPerformanceCls ¶
func (m *EventMutation) SetPerformanceCls(f float64)
SetPerformanceCls sets the "performance_cls" field.
func (*EventMutation) SetPerformanceFidMs ¶
func (m *EventMutation) SetPerformanceFidMs(f float64)
SetPerformanceFidMs sets the "performance_fid_ms" field.
func (*EventMutation) SetPerformanceLcpMs ¶
func (m *EventMutation) SetPerformanceLcpMs(f float64)
SetPerformanceLcpMs sets the "performance_lcp_ms" field.
func (*EventMutation) SetPerformanceTtfbMs ¶
func (m *EventMutation) SetPerformanceTtfbMs(f float64)
SetPerformanceTtfbMs sets the "performance_ttfb_ms" field.
func (*EventMutation) SetProjectID ¶
func (m *EventMutation) SetProjectID(u uuid.UUID)
SetProjectID sets the "project_id" field.
func (*EventMutation) SetSequence ¶
func (m *EventMutation) SetSequence(i int64)
SetSequence sets the "sequence" field.
func (*EventMutation) SetSessionID ¶
func (m *EventMutation) SetSessionID(s string)
SetSessionID sets the "session_id" field.
func (*EventMutation) SetSnapshotURL ¶
func (m *EventMutation) SetSnapshotURL(s string)
SetSnapshotURL sets the "snapshot_url" field.
func (*EventMutation) SetSnapshotViewport ¶
func (m *EventMutation) SetSnapshotViewport(s string)
SetSnapshotViewport sets the "snapshot_viewport" field.
func (*EventMutation) SetTimestamp ¶
func (m *EventMutation) SetTimestamp(t time.Time)
SetTimestamp sets the "timestamp" field.
func (*EventMutation) SetUIAction ¶
func (m *EventMutation) SetUIAction(s string)
SetUIAction sets the "ui_action" field.
func (*EventMutation) SetUIComponentName ¶
func (m *EventMutation) SetUIComponentName(s string)
SetUIComponentName sets the "ui_component_name" field.
func (*EventMutation) SetUIComponentPath ¶
func (m *EventMutation) SetUIComponentPath(s string)
SetUIComponentPath sets the "ui_component_path" field.
func (*EventMutation) SetUIComponentType ¶
func (m *EventMutation) SetUIComponentType(s string)
SetUIComponentType sets the "ui_component_type" field.
func (*EventMutation) SetUIElement ¶
func (m *EventMutation) SetUIElement(s string)
SetUIElement sets the "ui_element" field.
func (*EventMutation) SetUIElementText ¶
func (m *EventMutation) SetUIElementText(s string)
SetUIElementText sets the "ui_element_text" field.
func (*EventMutation) SetUIScrollPosition ¶
func (m *EventMutation) SetUIScrollPosition(f float64)
SetUIScrollPosition sets the "ui_scroll_position" field.
func (*EventMutation) SetUIStateAfter ¶
func (m *EventMutation) SetUIStateAfter(s string)
SetUIStateAfter sets the "ui_state_after" field.
func (*EventMutation) SetUIStateBefore ¶
func (m *EventMutation) SetUIStateBefore(s string)
SetUIStateBefore sets the "ui_state_before" field.
func (*EventMutation) SetUIStateChangeType ¶
func (m *EventMutation) SetUIStateChangeType(s string)
SetUIStateChangeType sets the "ui_state_change_type" field.
func (*EventMutation) SetUIStateKey ¶
func (m *EventMutation) SetUIStateKey(s string)
SetUIStateKey sets the "ui_state_key" field.
func (*EventMutation) SetUIViewport ¶
func (m *EventMutation) SetUIViewport(s string)
SetUIViewport sets the "ui_viewport" field.
func (*EventMutation) SetUserID ¶
func (m *EventMutation) SetUserID(s string)
SetUserID sets the "user_id" field.
func (*EventMutation) SnapshotURL ¶
func (m *EventMutation) SnapshotURL() (r string, exists bool)
SnapshotURL returns the value of the "snapshot_url" field in the mutation.
func (*EventMutation) SnapshotURLCleared ¶
func (m *EventMutation) SnapshotURLCleared() bool
SnapshotURLCleared returns if the "snapshot_url" field was cleared in this mutation.
func (*EventMutation) SnapshotViewport ¶
func (m *EventMutation) SnapshotViewport() (r string, exists bool)
SnapshotViewport returns the value of the "snapshot_viewport" field in the mutation.
func (*EventMutation) SnapshotViewportCleared ¶
func (m *EventMutation) SnapshotViewportCleared() bool
SnapshotViewportCleared returns if the "snapshot_viewport" field was cleared in this mutation.
func (*EventMutation) Timestamp ¶
func (m *EventMutation) Timestamp() (r time.Time, exists bool)
Timestamp returns the value of the "timestamp" field in the mutation.
func (EventMutation) Tx ¶
func (m EventMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*EventMutation) Type ¶
func (m *EventMutation) Type() string
Type returns the node type of this mutation (Event).
func (*EventMutation) UIAction ¶
func (m *EventMutation) UIAction() (r string, exists bool)
UIAction returns the value of the "ui_action" field in the mutation.
func (*EventMutation) UIActionCleared ¶
func (m *EventMutation) UIActionCleared() bool
UIActionCleared returns if the "ui_action" field was cleared in this mutation.
func (*EventMutation) UIComponentName ¶
func (m *EventMutation) UIComponentName() (r string, exists bool)
UIComponentName returns the value of the "ui_component_name" field in the mutation.
func (*EventMutation) UIComponentNameCleared ¶
func (m *EventMutation) UIComponentNameCleared() bool
UIComponentNameCleared returns if the "ui_component_name" field was cleared in this mutation.
func (*EventMutation) UIComponentPath ¶
func (m *EventMutation) UIComponentPath() (r string, exists bool)
UIComponentPath returns the value of the "ui_component_path" field in the mutation.
func (*EventMutation) UIComponentPathCleared ¶
func (m *EventMutation) UIComponentPathCleared() bool
UIComponentPathCleared returns if the "ui_component_path" field was cleared in this mutation.
func (*EventMutation) UIComponentType ¶
func (m *EventMutation) UIComponentType() (r string, exists bool)
UIComponentType returns the value of the "ui_component_type" field in the mutation.
func (*EventMutation) UIComponentTypeCleared ¶
func (m *EventMutation) UIComponentTypeCleared() bool
UIComponentTypeCleared returns if the "ui_component_type" field was cleared in this mutation.
func (*EventMutation) UIElement ¶
func (m *EventMutation) UIElement() (r string, exists bool)
UIElement returns the value of the "ui_element" field in the mutation.
func (*EventMutation) UIElementCleared ¶
func (m *EventMutation) UIElementCleared() bool
UIElementCleared returns if the "ui_element" field was cleared in this mutation.
func (*EventMutation) UIElementText ¶
func (m *EventMutation) UIElementText() (r string, exists bool)
UIElementText returns the value of the "ui_element_text" field in the mutation.
func (*EventMutation) UIElementTextCleared ¶
func (m *EventMutation) UIElementTextCleared() bool
UIElementTextCleared returns if the "ui_element_text" field was cleared in this mutation.
func (*EventMutation) UIScrollPosition ¶
func (m *EventMutation) UIScrollPosition() (r float64, exists bool)
UIScrollPosition returns the value of the "ui_scroll_position" field in the mutation.
func (*EventMutation) UIScrollPositionCleared ¶
func (m *EventMutation) UIScrollPositionCleared() bool
UIScrollPositionCleared returns if the "ui_scroll_position" field was cleared in this mutation.
func (*EventMutation) UIStateAfter ¶
func (m *EventMutation) UIStateAfter() (r string, exists bool)
UIStateAfter returns the value of the "ui_state_after" field in the mutation.
func (*EventMutation) UIStateAfterCleared ¶
func (m *EventMutation) UIStateAfterCleared() bool
UIStateAfterCleared returns if the "ui_state_after" field was cleared in this mutation.
func (*EventMutation) UIStateBefore ¶
func (m *EventMutation) UIStateBefore() (r string, exists bool)
UIStateBefore returns the value of the "ui_state_before" field in the mutation.
func (*EventMutation) UIStateBeforeCleared ¶
func (m *EventMutation) UIStateBeforeCleared() bool
UIStateBeforeCleared returns if the "ui_state_before" field was cleared in this mutation.
func (*EventMutation) UIStateChangeType ¶
func (m *EventMutation) UIStateChangeType() (r string, exists bool)
UIStateChangeType returns the value of the "ui_state_change_type" field in the mutation.
func (*EventMutation) UIStateChangeTypeCleared ¶
func (m *EventMutation) UIStateChangeTypeCleared() bool
UIStateChangeTypeCleared returns if the "ui_state_change_type" field was cleared in this mutation.
func (*EventMutation) UIStateKey ¶
func (m *EventMutation) UIStateKey() (r string, exists bool)
UIStateKey returns the value of the "ui_state_key" field in the mutation.
func (*EventMutation) UIStateKeyCleared ¶
func (m *EventMutation) UIStateKeyCleared() bool
UIStateKeyCleared returns if the "ui_state_key" field was cleared in this mutation.
func (*EventMutation) UIViewport ¶
func (m *EventMutation) UIViewport() (r string, exists bool)
UIViewport returns the value of the "ui_viewport" field in the mutation.
func (*EventMutation) UIViewportCleared ¶
func (m *EventMutation) UIViewportCleared() bool
UIViewportCleared returns if the "ui_viewport" field was cleared in this mutation.
func (*EventMutation) UserID ¶
func (m *EventMutation) UserID() (r string, exists bool)
UserID returns the value of the "user_id" field in the mutation.
func (*EventMutation) UserIDCleared ¶
func (m *EventMutation) UserIDCleared() bool
UserIDCleared returns if the "user_id" field was cleared in this mutation.
func (*EventMutation) Where ¶
func (m *EventMutation) Where(ps ...predicate.Event)
Where appends a list predicates to the EventMutation builder.
func (*EventMutation) WhereP ¶
func (m *EventMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the EventMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type EventQuery ¶
type EventQuery struct {
// contains filtered or unexported fields
}
EventQuery is the builder for querying Event entities.
func (*EventQuery) Aggregate ¶
func (_q *EventQuery) Aggregate(fns ...AggregateFunc) *EventSelect
Aggregate returns a EventSelect configured with the given aggregations.
func (*EventQuery) All ¶
func (_q *EventQuery) All(ctx context.Context) ([]*Event, error)
All executes the query and returns a list of Events.
func (*EventQuery) AllX ¶
func (_q *EventQuery) AllX(ctx context.Context) []*Event
AllX is like All, but panics if an error occurs.
func (*EventQuery) Clone ¶
func (_q *EventQuery) Clone() *EventQuery
Clone returns a duplicate of the EventQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*EventQuery) Count ¶
func (_q *EventQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*EventQuery) CountX ¶
func (_q *EventQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*EventQuery) Exist ¶
func (_q *EventQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*EventQuery) ExistX ¶
func (_q *EventQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*EventQuery) First ¶
func (_q *EventQuery) First(ctx context.Context) (*Event, error)
First returns the first Event entity from the query. Returns a *NotFoundError when no Event was found.
func (*EventQuery) FirstID ¶
FirstID returns the first Event ID from the query. Returns a *NotFoundError when no Event ID was found.
func (*EventQuery) FirstIDX ¶
func (_q *EventQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*EventQuery) FirstX ¶
func (_q *EventQuery) FirstX(ctx context.Context) *Event
FirstX is like First, but panics if an error occurs.
func (*EventQuery) GroupBy ¶
func (_q *EventQuery) GroupBy(field string, fields ...string) *EventGroupBy
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Event.Query().
GroupBy(event.FieldOrgID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*EventQuery) IDsX ¶
func (_q *EventQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*EventQuery) Limit ¶
func (_q *EventQuery) Limit(limit int) *EventQuery
Limit the number of records to be returned by this query.
func (*EventQuery) Offset ¶
func (_q *EventQuery) Offset(offset int) *EventQuery
Offset to start from.
func (*EventQuery) Only ¶
func (_q *EventQuery) Only(ctx context.Context) (*Event, error)
Only returns a single Event entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Event entity is found. Returns a *NotFoundError when no Event entities are found.
func (*EventQuery) OnlyID ¶
OnlyID is like Only, but returns the only Event ID in the query. Returns a *NotSingularError when more than one Event ID is found. Returns a *NotFoundError when no entities are found.
func (*EventQuery) OnlyIDX ¶
func (_q *EventQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*EventQuery) OnlyX ¶
func (_q *EventQuery) OnlyX(ctx context.Context) *Event
OnlyX is like Only, but panics if an error occurs.
func (*EventQuery) Order ¶
func (_q *EventQuery) Order(o ...event.OrderOption) *EventQuery
Order specifies how the records should be ordered.
func (*EventQuery) QueryJourney ¶
func (_q *EventQuery) QueryJourney() *JourneyQuery
QueryJourney chains the current query on the "journey" edge.
func (*EventQuery) QueryProject ¶
func (_q *EventQuery) QueryProject() *ProjectQuery
QueryProject chains the current query on the "project" edge.
func (*EventQuery) Select ¶
func (_q *EventQuery) Select(fields ...string) *EventSelect
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
}
client.Event.Query().
Select(event.FieldOrgID).
Scan(ctx, &v)
func (*EventQuery) Unique ¶
func (_q *EventQuery) Unique(unique bool) *EventQuery
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 (*EventQuery) Where ¶
func (_q *EventQuery) Where(ps ...predicate.Event) *EventQuery
Where adds a new predicate for the EventQuery builder.
func (*EventQuery) WithJourney ¶
func (_q *EventQuery) WithJourney(opts ...func(*JourneyQuery)) *EventQuery
WithJourney tells the query-builder to eager-load the nodes that are connected to the "journey" edge. The optional arguments are used to configure the query builder of the edge.
func (*EventQuery) WithProject ¶
func (_q *EventQuery) WithProject(opts ...func(*ProjectQuery)) *EventQuery
WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.
type EventSelect ¶
type EventSelect struct {
*EventQuery
// contains filtered or unexported fields
}
EventSelect is the builder for selecting fields of Event entities.
func (*EventSelect) Aggregate ¶
func (_s *EventSelect) Aggregate(fns ...AggregateFunc) *EventSelect
Aggregate adds the given aggregation functions to the selector query.
func (*EventSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*EventSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*EventSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*EventSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*EventSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*EventSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*EventSelect) Scan ¶
func (_s *EventSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*EventSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type EventUpdate ¶
type EventUpdate struct {
// contains filtered or unexported fields
}
EventUpdate is the builder for updating Event entities.
func (*EventUpdate) AddAPIDurationMs ¶
func (_u *EventUpdate) AddAPIDurationMs(v int64) *EventUpdate
AddAPIDurationMs adds value to the "api_duration_ms" field.
func (*EventUpdate) AddAPIStatusCode ¶
func (_u *EventUpdate) AddAPIStatusCode(v int) *EventUpdate
AddAPIStatusCode adds value to the "api_status_code" field.
func (*EventUpdate) AddDurationMs ¶
func (_u *EventUpdate) AddDurationMs(v int64) *EventUpdate
AddDurationMs adds value to the "duration_ms" field.
func (*EventUpdate) AddPerformanceCls ¶
func (_u *EventUpdate) AddPerformanceCls(v float64) *EventUpdate
AddPerformanceCls adds value to the "performance_cls" field.
func (*EventUpdate) AddPerformanceFidMs ¶
func (_u *EventUpdate) AddPerformanceFidMs(v float64) *EventUpdate
AddPerformanceFidMs adds value to the "performance_fid_ms" field.
func (*EventUpdate) AddPerformanceLcpMs ¶
func (_u *EventUpdate) AddPerformanceLcpMs(v float64) *EventUpdate
AddPerformanceLcpMs adds value to the "performance_lcp_ms" field.
func (*EventUpdate) AddPerformanceTtfbMs ¶
func (_u *EventUpdate) AddPerformanceTtfbMs(v float64) *EventUpdate
AddPerformanceTtfbMs adds value to the "performance_ttfb_ms" field.
func (*EventUpdate) AddSequence ¶
func (_u *EventUpdate) AddSequence(v int64) *EventUpdate
AddSequence adds value to the "sequence" field.
func (*EventUpdate) AddUIScrollPosition ¶
func (_u *EventUpdate) AddUIScrollPosition(v float64) *EventUpdate
AddUIScrollPosition adds value to the "ui_scroll_position" field.
func (*EventUpdate) ClearAPIDurationMs ¶
func (_u *EventUpdate) ClearAPIDurationMs() *EventUpdate
ClearAPIDurationMs clears the value of the "api_duration_ms" field.
func (*EventUpdate) ClearAPIMethod ¶
func (_u *EventUpdate) ClearAPIMethod() *EventUpdate
ClearAPIMethod clears the value of the "api_method" field.
func (*EventUpdate) ClearAPIPath ¶
func (_u *EventUpdate) ClearAPIPath() *EventUpdate
ClearAPIPath clears the value of the "api_path" field.
func (*EventUpdate) ClearAPIStatusCode ¶
func (_u *EventUpdate) ClearAPIStatusCode() *EventUpdate
ClearAPIStatusCode clears the value of the "api_status_code" field.
func (*EventUpdate) ClearConversionStatus ¶
func (_u *EventUpdate) ClearConversionStatus() *EventUpdate
ClearConversionStatus clears the value of the "conversion_status" field.
func (*EventUpdate) ClearDurationMs ¶
func (_u *EventUpdate) ClearDurationMs() *EventUpdate
ClearDurationMs clears the value of the "duration_ms" field.
func (*EventUpdate) ClearErrorComponent ¶
func (_u *EventUpdate) ClearErrorComponent() *EventUpdate
ClearErrorComponent clears the value of the "error_component" field.
func (*EventUpdate) ClearErrorMessage ¶
func (_u *EventUpdate) ClearErrorMessage() *EventUpdate
ClearErrorMessage clears the value of the "error_message" field.
func (*EventUpdate) ClearErrorStack ¶
func (_u *EventUpdate) ClearErrorStack() *EventUpdate
ClearErrorStack clears the value of the "error_stack" field.
func (*EventUpdate) ClearErrorType ¶
func (_u *EventUpdate) ClearErrorType() *EventUpdate
ClearErrorType clears the value of the "error_type" field.
func (*EventUpdate) ClearEventName ¶
func (_u *EventUpdate) ClearEventName() *EventUpdate
ClearEventName clears the value of the "event_name" field.
func (*EventUpdate) ClearJourney ¶
func (_u *EventUpdate) ClearJourney() *EventUpdate
ClearJourney clears the "journey" edge to the Journey entity.
func (*EventUpdate) ClearJourneyID ¶
func (_u *EventUpdate) ClearJourneyID() *EventUpdate
ClearJourneyID clears the value of the "journey_id" field.
func (*EventUpdate) ClearJourneyStepID ¶
func (_u *EventUpdate) ClearJourneyStepID() *EventUpdate
ClearJourneyStepID clears the value of the "journey_step_id" field.
func (*EventUpdate) ClearJourneyStepName ¶
func (_u *EventUpdate) ClearJourneyStepName() *EventUpdate
ClearJourneyStepName clears the value of the "journey_step_name" field.
func (*EventUpdate) ClearMetadata ¶
func (_u *EventUpdate) ClearMetadata() *EventUpdate
ClearMetadata clears the value of the "metadata" field.
func (*EventUpdate) ClearPagePath ¶
func (_u *EventUpdate) ClearPagePath() *EventUpdate
ClearPagePath clears the value of the "page_path" field.
func (*EventUpdate) ClearPageReferrer ¶
func (_u *EventUpdate) ClearPageReferrer() *EventUpdate
ClearPageReferrer clears the value of the "page_referrer" field.
func (*EventUpdate) ClearPageTitle ¶
func (_u *EventUpdate) ClearPageTitle() *EventUpdate
ClearPageTitle clears the value of the "page_title" field.
func (*EventUpdate) ClearPageURL ¶
func (_u *EventUpdate) ClearPageURL() *EventUpdate
ClearPageURL clears the value of the "page_url" field.
func (*EventUpdate) ClearPerformanceCls ¶
func (_u *EventUpdate) ClearPerformanceCls() *EventUpdate
ClearPerformanceCls clears the value of the "performance_cls" field.
func (*EventUpdate) ClearPerformanceFidMs ¶
func (_u *EventUpdate) ClearPerformanceFidMs() *EventUpdate
ClearPerformanceFidMs clears the value of the "performance_fid_ms" field.
func (*EventUpdate) ClearPerformanceLcpMs ¶
func (_u *EventUpdate) ClearPerformanceLcpMs() *EventUpdate
ClearPerformanceLcpMs clears the value of the "performance_lcp_ms" field.
func (*EventUpdate) ClearPerformanceTtfbMs ¶
func (_u *EventUpdate) ClearPerformanceTtfbMs() *EventUpdate
ClearPerformanceTtfbMs clears the value of the "performance_ttfb_ms" field.
func (*EventUpdate) ClearProject ¶
func (_u *EventUpdate) ClearProject() *EventUpdate
ClearProject clears the "project" edge to the Project entity.
func (*EventUpdate) ClearSnapshotURL ¶
func (_u *EventUpdate) ClearSnapshotURL() *EventUpdate
ClearSnapshotURL clears the value of the "snapshot_url" field.
func (*EventUpdate) ClearSnapshotViewport ¶
func (_u *EventUpdate) ClearSnapshotViewport() *EventUpdate
ClearSnapshotViewport clears the value of the "snapshot_viewport" field.
func (*EventUpdate) ClearUIAction ¶
func (_u *EventUpdate) ClearUIAction() *EventUpdate
ClearUIAction clears the value of the "ui_action" field.
func (*EventUpdate) ClearUIComponentName ¶
func (_u *EventUpdate) ClearUIComponentName() *EventUpdate
ClearUIComponentName clears the value of the "ui_component_name" field.
func (*EventUpdate) ClearUIComponentPath ¶
func (_u *EventUpdate) ClearUIComponentPath() *EventUpdate
ClearUIComponentPath clears the value of the "ui_component_path" field.
func (*EventUpdate) ClearUIComponentType ¶
func (_u *EventUpdate) ClearUIComponentType() *EventUpdate
ClearUIComponentType clears the value of the "ui_component_type" field.
func (*EventUpdate) ClearUIElement ¶
func (_u *EventUpdate) ClearUIElement() *EventUpdate
ClearUIElement clears the value of the "ui_element" field.
func (*EventUpdate) ClearUIElementText ¶
func (_u *EventUpdate) ClearUIElementText() *EventUpdate
ClearUIElementText clears the value of the "ui_element_text" field.
func (*EventUpdate) ClearUIScrollPosition ¶
func (_u *EventUpdate) ClearUIScrollPosition() *EventUpdate
ClearUIScrollPosition clears the value of the "ui_scroll_position" field.
func (*EventUpdate) ClearUIStateAfter ¶
func (_u *EventUpdate) ClearUIStateAfter() *EventUpdate
ClearUIStateAfter clears the value of the "ui_state_after" field.
func (*EventUpdate) ClearUIStateBefore ¶
func (_u *EventUpdate) ClearUIStateBefore() *EventUpdate
ClearUIStateBefore clears the value of the "ui_state_before" field.
func (*EventUpdate) ClearUIStateChangeType ¶
func (_u *EventUpdate) ClearUIStateChangeType() *EventUpdate
ClearUIStateChangeType clears the value of the "ui_state_change_type" field.
func (*EventUpdate) ClearUIStateKey ¶
func (_u *EventUpdate) ClearUIStateKey() *EventUpdate
ClearUIStateKey clears the value of the "ui_state_key" field.
func (*EventUpdate) ClearUIViewport ¶
func (_u *EventUpdate) ClearUIViewport() *EventUpdate
ClearUIViewport clears the value of the "ui_viewport" field.
func (*EventUpdate) ClearUserID ¶
func (_u *EventUpdate) ClearUserID() *EventUpdate
ClearUserID clears the value of the "user_id" field.
func (*EventUpdate) Exec ¶
func (_u *EventUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*EventUpdate) ExecX ¶
func (_u *EventUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpdate) Mutation ¶
func (_u *EventUpdate) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventUpdate) Save ¶
func (_u *EventUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*EventUpdate) SaveX ¶
func (_u *EventUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*EventUpdate) SetAPIDurationMs ¶
func (_u *EventUpdate) SetAPIDurationMs(v int64) *EventUpdate
SetAPIDurationMs sets the "api_duration_ms" field.
func (*EventUpdate) SetAPIMethod ¶
func (_u *EventUpdate) SetAPIMethod(v string) *EventUpdate
SetAPIMethod sets the "api_method" field.
func (*EventUpdate) SetAPIPath ¶
func (_u *EventUpdate) SetAPIPath(v string) *EventUpdate
SetAPIPath sets the "api_path" field.
func (*EventUpdate) SetAPIStatusCode ¶
func (_u *EventUpdate) SetAPIStatusCode(v int) *EventUpdate
SetAPIStatusCode sets the "api_status_code" field.
func (*EventUpdate) SetConversionStatus ¶
func (_u *EventUpdate) SetConversionStatus(v string) *EventUpdate
SetConversionStatus sets the "conversion_status" field.
func (*EventUpdate) SetDurationMs ¶
func (_u *EventUpdate) SetDurationMs(v int64) *EventUpdate
SetDurationMs sets the "duration_ms" field.
func (*EventUpdate) SetErrorComponent ¶
func (_u *EventUpdate) SetErrorComponent(v string) *EventUpdate
SetErrorComponent sets the "error_component" field.
func (*EventUpdate) SetErrorMessage ¶
func (_u *EventUpdate) SetErrorMessage(v string) *EventUpdate
SetErrorMessage sets the "error_message" field.
func (*EventUpdate) SetErrorStack ¶
func (_u *EventUpdate) SetErrorStack(v string) *EventUpdate
SetErrorStack sets the "error_stack" field.
func (*EventUpdate) SetErrorType ¶
func (_u *EventUpdate) SetErrorType(v string) *EventUpdate
SetErrorType sets the "error_type" field.
func (*EventUpdate) SetEventID ¶
func (_u *EventUpdate) SetEventID(v string) *EventUpdate
SetEventID sets the "event_id" field.
func (*EventUpdate) SetEventName ¶
func (_u *EventUpdate) SetEventName(v string) *EventUpdate
SetEventName sets the "event_name" field.
func (*EventUpdate) SetEventType ¶
func (_u *EventUpdate) SetEventType(v event.EventType) *EventUpdate
SetEventType sets the "event_type" field.
func (*EventUpdate) SetJourney ¶
func (_u *EventUpdate) SetJourney(v *Journey) *EventUpdate
SetJourney sets the "journey" edge to the Journey entity.
func (*EventUpdate) SetJourneyID ¶
func (_u *EventUpdate) SetJourneyID(v uuid.UUID) *EventUpdate
SetJourneyID sets the "journey_id" field.
func (*EventUpdate) SetJourneyStepID ¶
func (_u *EventUpdate) SetJourneyStepID(v string) *EventUpdate
SetJourneyStepID sets the "journey_step_id" field.
func (*EventUpdate) SetJourneyStepName ¶
func (_u *EventUpdate) SetJourneyStepName(v string) *EventUpdate
SetJourneyStepName sets the "journey_step_name" field.
func (*EventUpdate) SetMetadata ¶
func (_u *EventUpdate) SetMetadata(v map[string]interface{}) *EventUpdate
SetMetadata sets the "metadata" field.
func (*EventUpdate) SetNillableAPIDurationMs ¶
func (_u *EventUpdate) SetNillableAPIDurationMs(v *int64) *EventUpdate
SetNillableAPIDurationMs sets the "api_duration_ms" field if the given value is not nil.
func (*EventUpdate) SetNillableAPIMethod ¶
func (_u *EventUpdate) SetNillableAPIMethod(v *string) *EventUpdate
SetNillableAPIMethod sets the "api_method" field if the given value is not nil.
func (*EventUpdate) SetNillableAPIPath ¶
func (_u *EventUpdate) SetNillableAPIPath(v *string) *EventUpdate
SetNillableAPIPath sets the "api_path" field if the given value is not nil.
func (*EventUpdate) SetNillableAPIStatusCode ¶
func (_u *EventUpdate) SetNillableAPIStatusCode(v *int) *EventUpdate
SetNillableAPIStatusCode sets the "api_status_code" field if the given value is not nil.
func (*EventUpdate) SetNillableConversionStatus ¶
func (_u *EventUpdate) SetNillableConversionStatus(v *string) *EventUpdate
SetNillableConversionStatus sets the "conversion_status" field if the given value is not nil.
func (*EventUpdate) SetNillableDurationMs ¶
func (_u *EventUpdate) SetNillableDurationMs(v *int64) *EventUpdate
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*EventUpdate) SetNillableErrorComponent ¶
func (_u *EventUpdate) SetNillableErrorComponent(v *string) *EventUpdate
SetNillableErrorComponent sets the "error_component" field if the given value is not nil.
func (*EventUpdate) SetNillableErrorMessage ¶
func (_u *EventUpdate) SetNillableErrorMessage(v *string) *EventUpdate
SetNillableErrorMessage sets the "error_message" field if the given value is not nil.
func (*EventUpdate) SetNillableErrorStack ¶
func (_u *EventUpdate) SetNillableErrorStack(v *string) *EventUpdate
SetNillableErrorStack sets the "error_stack" field if the given value is not nil.
func (*EventUpdate) SetNillableErrorType ¶
func (_u *EventUpdate) SetNillableErrorType(v *string) *EventUpdate
SetNillableErrorType sets the "error_type" field if the given value is not nil.
func (*EventUpdate) SetNillableEventID ¶
func (_u *EventUpdate) SetNillableEventID(v *string) *EventUpdate
SetNillableEventID sets the "event_id" field if the given value is not nil.
func (*EventUpdate) SetNillableEventName ¶
func (_u *EventUpdate) SetNillableEventName(v *string) *EventUpdate
SetNillableEventName sets the "event_name" field if the given value is not nil.
func (*EventUpdate) SetNillableEventType ¶
func (_u *EventUpdate) SetNillableEventType(v *event.EventType) *EventUpdate
SetNillableEventType sets the "event_type" field if the given value is not nil.
func (*EventUpdate) SetNillableJourneyID ¶
func (_u *EventUpdate) SetNillableJourneyID(v *uuid.UUID) *EventUpdate
SetNillableJourneyID sets the "journey_id" field if the given value is not nil.
func (*EventUpdate) SetNillableJourneyStepID ¶
func (_u *EventUpdate) SetNillableJourneyStepID(v *string) *EventUpdate
SetNillableJourneyStepID sets the "journey_step_id" field if the given value is not nil.
func (*EventUpdate) SetNillableJourneyStepName ¶
func (_u *EventUpdate) SetNillableJourneyStepName(v *string) *EventUpdate
SetNillableJourneyStepName sets the "journey_step_name" field if the given value is not nil.
func (*EventUpdate) SetNillableOrgID ¶
func (_u *EventUpdate) SetNillableOrgID(v *uuid.UUID) *EventUpdate
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*EventUpdate) SetNillablePagePath ¶
func (_u *EventUpdate) SetNillablePagePath(v *string) *EventUpdate
SetNillablePagePath sets the "page_path" field if the given value is not nil.
func (*EventUpdate) SetNillablePageReferrer ¶
func (_u *EventUpdate) SetNillablePageReferrer(v *string) *EventUpdate
SetNillablePageReferrer sets the "page_referrer" field if the given value is not nil.
func (*EventUpdate) SetNillablePageTitle ¶
func (_u *EventUpdate) SetNillablePageTitle(v *string) *EventUpdate
SetNillablePageTitle sets the "page_title" field if the given value is not nil.
func (*EventUpdate) SetNillablePageURL ¶
func (_u *EventUpdate) SetNillablePageURL(v *string) *EventUpdate
SetNillablePageURL sets the "page_url" field if the given value is not nil.
func (*EventUpdate) SetNillablePerformanceCls ¶
func (_u *EventUpdate) SetNillablePerformanceCls(v *float64) *EventUpdate
SetNillablePerformanceCls sets the "performance_cls" field if the given value is not nil.
func (*EventUpdate) SetNillablePerformanceFidMs ¶
func (_u *EventUpdate) SetNillablePerformanceFidMs(v *float64) *EventUpdate
SetNillablePerformanceFidMs sets the "performance_fid_ms" field if the given value is not nil.
func (*EventUpdate) SetNillablePerformanceLcpMs ¶
func (_u *EventUpdate) SetNillablePerformanceLcpMs(v *float64) *EventUpdate
SetNillablePerformanceLcpMs sets the "performance_lcp_ms" field if the given value is not nil.
func (*EventUpdate) SetNillablePerformanceTtfbMs ¶
func (_u *EventUpdate) SetNillablePerformanceTtfbMs(v *float64) *EventUpdate
SetNillablePerformanceTtfbMs sets the "performance_ttfb_ms" field if the given value is not nil.
func (*EventUpdate) SetNillableProjectID ¶
func (_u *EventUpdate) SetNillableProjectID(v *uuid.UUID) *EventUpdate
SetNillableProjectID sets the "project_id" field if the given value is not nil.
func (*EventUpdate) SetNillableSequence ¶
func (_u *EventUpdate) SetNillableSequence(v *int64) *EventUpdate
SetNillableSequence sets the "sequence" field if the given value is not nil.
func (*EventUpdate) SetNillableSessionID ¶
func (_u *EventUpdate) SetNillableSessionID(v *string) *EventUpdate
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*EventUpdate) SetNillableSnapshotURL ¶
func (_u *EventUpdate) SetNillableSnapshotURL(v *string) *EventUpdate
SetNillableSnapshotURL sets the "snapshot_url" field if the given value is not nil.
func (*EventUpdate) SetNillableSnapshotViewport ¶
func (_u *EventUpdate) SetNillableSnapshotViewport(v *string) *EventUpdate
SetNillableSnapshotViewport sets the "snapshot_viewport" field if the given value is not nil.
func (*EventUpdate) SetNillableTimestamp ¶
func (_u *EventUpdate) SetNillableTimestamp(v *time.Time) *EventUpdate
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*EventUpdate) SetNillableUIAction ¶
func (_u *EventUpdate) SetNillableUIAction(v *string) *EventUpdate
SetNillableUIAction sets the "ui_action" field if the given value is not nil.
func (*EventUpdate) SetNillableUIComponentName ¶
func (_u *EventUpdate) SetNillableUIComponentName(v *string) *EventUpdate
SetNillableUIComponentName sets the "ui_component_name" field if the given value is not nil.
func (*EventUpdate) SetNillableUIComponentPath ¶
func (_u *EventUpdate) SetNillableUIComponentPath(v *string) *EventUpdate
SetNillableUIComponentPath sets the "ui_component_path" field if the given value is not nil.
func (*EventUpdate) SetNillableUIComponentType ¶
func (_u *EventUpdate) SetNillableUIComponentType(v *string) *EventUpdate
SetNillableUIComponentType sets the "ui_component_type" field if the given value is not nil.
func (*EventUpdate) SetNillableUIElement ¶
func (_u *EventUpdate) SetNillableUIElement(v *string) *EventUpdate
SetNillableUIElement sets the "ui_element" field if the given value is not nil.
func (*EventUpdate) SetNillableUIElementText ¶
func (_u *EventUpdate) SetNillableUIElementText(v *string) *EventUpdate
SetNillableUIElementText sets the "ui_element_text" field if the given value is not nil.
func (*EventUpdate) SetNillableUIScrollPosition ¶
func (_u *EventUpdate) SetNillableUIScrollPosition(v *float64) *EventUpdate
SetNillableUIScrollPosition sets the "ui_scroll_position" field if the given value is not nil.
func (*EventUpdate) SetNillableUIStateAfter ¶
func (_u *EventUpdate) SetNillableUIStateAfter(v *string) *EventUpdate
SetNillableUIStateAfter sets the "ui_state_after" field if the given value is not nil.
func (*EventUpdate) SetNillableUIStateBefore ¶
func (_u *EventUpdate) SetNillableUIStateBefore(v *string) *EventUpdate
SetNillableUIStateBefore sets the "ui_state_before" field if the given value is not nil.
func (*EventUpdate) SetNillableUIStateChangeType ¶
func (_u *EventUpdate) SetNillableUIStateChangeType(v *string) *EventUpdate
SetNillableUIStateChangeType sets the "ui_state_change_type" field if the given value is not nil.
func (*EventUpdate) SetNillableUIStateKey ¶
func (_u *EventUpdate) SetNillableUIStateKey(v *string) *EventUpdate
SetNillableUIStateKey sets the "ui_state_key" field if the given value is not nil.
func (*EventUpdate) SetNillableUIViewport ¶
func (_u *EventUpdate) SetNillableUIViewport(v *string) *EventUpdate
SetNillableUIViewport sets the "ui_viewport" field if the given value is not nil.
func (*EventUpdate) SetNillableUserID ¶
func (_u *EventUpdate) SetNillableUserID(v *string) *EventUpdate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*EventUpdate) SetOrgID ¶
func (_u *EventUpdate) SetOrgID(v uuid.UUID) *EventUpdate
SetOrgID sets the "org_id" field.
func (*EventUpdate) SetPagePath ¶
func (_u *EventUpdate) SetPagePath(v string) *EventUpdate
SetPagePath sets the "page_path" field.
func (*EventUpdate) SetPageReferrer ¶
func (_u *EventUpdate) SetPageReferrer(v string) *EventUpdate
SetPageReferrer sets the "page_referrer" field.
func (*EventUpdate) SetPageTitle ¶
func (_u *EventUpdate) SetPageTitle(v string) *EventUpdate
SetPageTitle sets the "page_title" field.
func (*EventUpdate) SetPageURL ¶
func (_u *EventUpdate) SetPageURL(v string) *EventUpdate
SetPageURL sets the "page_url" field.
func (*EventUpdate) SetPerformanceCls ¶
func (_u *EventUpdate) SetPerformanceCls(v float64) *EventUpdate
SetPerformanceCls sets the "performance_cls" field.
func (*EventUpdate) SetPerformanceFidMs ¶
func (_u *EventUpdate) SetPerformanceFidMs(v float64) *EventUpdate
SetPerformanceFidMs sets the "performance_fid_ms" field.
func (*EventUpdate) SetPerformanceLcpMs ¶
func (_u *EventUpdate) SetPerformanceLcpMs(v float64) *EventUpdate
SetPerformanceLcpMs sets the "performance_lcp_ms" field.
func (*EventUpdate) SetPerformanceTtfbMs ¶
func (_u *EventUpdate) SetPerformanceTtfbMs(v float64) *EventUpdate
SetPerformanceTtfbMs sets the "performance_ttfb_ms" field.
func (*EventUpdate) SetProject ¶
func (_u *EventUpdate) SetProject(v *Project) *EventUpdate
SetProject sets the "project" edge to the Project entity.
func (*EventUpdate) SetProjectID ¶
func (_u *EventUpdate) SetProjectID(v uuid.UUID) *EventUpdate
SetProjectID sets the "project_id" field.
func (*EventUpdate) SetSequence ¶
func (_u *EventUpdate) SetSequence(v int64) *EventUpdate
SetSequence sets the "sequence" field.
func (*EventUpdate) SetSessionID ¶
func (_u *EventUpdate) SetSessionID(v string) *EventUpdate
SetSessionID sets the "session_id" field.
func (*EventUpdate) SetSnapshotURL ¶
func (_u *EventUpdate) SetSnapshotURL(v string) *EventUpdate
SetSnapshotURL sets the "snapshot_url" field.
func (*EventUpdate) SetSnapshotViewport ¶
func (_u *EventUpdate) SetSnapshotViewport(v string) *EventUpdate
SetSnapshotViewport sets the "snapshot_viewport" field.
func (*EventUpdate) SetTimestamp ¶
func (_u *EventUpdate) SetTimestamp(v time.Time) *EventUpdate
SetTimestamp sets the "timestamp" field.
func (*EventUpdate) SetUIAction ¶
func (_u *EventUpdate) SetUIAction(v string) *EventUpdate
SetUIAction sets the "ui_action" field.
func (*EventUpdate) SetUIComponentName ¶
func (_u *EventUpdate) SetUIComponentName(v string) *EventUpdate
SetUIComponentName sets the "ui_component_name" field.
func (*EventUpdate) SetUIComponentPath ¶
func (_u *EventUpdate) SetUIComponentPath(v string) *EventUpdate
SetUIComponentPath sets the "ui_component_path" field.
func (*EventUpdate) SetUIComponentType ¶
func (_u *EventUpdate) SetUIComponentType(v string) *EventUpdate
SetUIComponentType sets the "ui_component_type" field.
func (*EventUpdate) SetUIElement ¶
func (_u *EventUpdate) SetUIElement(v string) *EventUpdate
SetUIElement sets the "ui_element" field.
func (*EventUpdate) SetUIElementText ¶
func (_u *EventUpdate) SetUIElementText(v string) *EventUpdate
SetUIElementText sets the "ui_element_text" field.
func (*EventUpdate) SetUIScrollPosition ¶
func (_u *EventUpdate) SetUIScrollPosition(v float64) *EventUpdate
SetUIScrollPosition sets the "ui_scroll_position" field.
func (*EventUpdate) SetUIStateAfter ¶
func (_u *EventUpdate) SetUIStateAfter(v string) *EventUpdate
SetUIStateAfter sets the "ui_state_after" field.
func (*EventUpdate) SetUIStateBefore ¶
func (_u *EventUpdate) SetUIStateBefore(v string) *EventUpdate
SetUIStateBefore sets the "ui_state_before" field.
func (*EventUpdate) SetUIStateChangeType ¶
func (_u *EventUpdate) SetUIStateChangeType(v string) *EventUpdate
SetUIStateChangeType sets the "ui_state_change_type" field.
func (*EventUpdate) SetUIStateKey ¶
func (_u *EventUpdate) SetUIStateKey(v string) *EventUpdate
SetUIStateKey sets the "ui_state_key" field.
func (*EventUpdate) SetUIViewport ¶
func (_u *EventUpdate) SetUIViewport(v string) *EventUpdate
SetUIViewport sets the "ui_viewport" field.
func (*EventUpdate) SetUserID ¶
func (_u *EventUpdate) SetUserID(v string) *EventUpdate
SetUserID sets the "user_id" field.
func (*EventUpdate) Where ¶
func (_u *EventUpdate) Where(ps ...predicate.Event) *EventUpdate
Where appends a list predicates to the EventUpdate builder.
type EventUpdateOne ¶
type EventUpdateOne struct {
// contains filtered or unexported fields
}
EventUpdateOne is the builder for updating a single Event entity.
func (*EventUpdateOne) AddAPIDurationMs ¶
func (_u *EventUpdateOne) AddAPIDurationMs(v int64) *EventUpdateOne
AddAPIDurationMs adds value to the "api_duration_ms" field.
func (*EventUpdateOne) AddAPIStatusCode ¶
func (_u *EventUpdateOne) AddAPIStatusCode(v int) *EventUpdateOne
AddAPIStatusCode adds value to the "api_status_code" field.
func (*EventUpdateOne) AddDurationMs ¶
func (_u *EventUpdateOne) AddDurationMs(v int64) *EventUpdateOne
AddDurationMs adds value to the "duration_ms" field.
func (*EventUpdateOne) AddPerformanceCls ¶
func (_u *EventUpdateOne) AddPerformanceCls(v float64) *EventUpdateOne
AddPerformanceCls adds value to the "performance_cls" field.
func (*EventUpdateOne) AddPerformanceFidMs ¶
func (_u *EventUpdateOne) AddPerformanceFidMs(v float64) *EventUpdateOne
AddPerformanceFidMs adds value to the "performance_fid_ms" field.
func (*EventUpdateOne) AddPerformanceLcpMs ¶
func (_u *EventUpdateOne) AddPerformanceLcpMs(v float64) *EventUpdateOne
AddPerformanceLcpMs adds value to the "performance_lcp_ms" field.
func (*EventUpdateOne) AddPerformanceTtfbMs ¶
func (_u *EventUpdateOne) AddPerformanceTtfbMs(v float64) *EventUpdateOne
AddPerformanceTtfbMs adds value to the "performance_ttfb_ms" field.
func (*EventUpdateOne) AddSequence ¶
func (_u *EventUpdateOne) AddSequence(v int64) *EventUpdateOne
AddSequence adds value to the "sequence" field.
func (*EventUpdateOne) AddUIScrollPosition ¶
func (_u *EventUpdateOne) AddUIScrollPosition(v float64) *EventUpdateOne
AddUIScrollPosition adds value to the "ui_scroll_position" field.
func (*EventUpdateOne) ClearAPIDurationMs ¶
func (_u *EventUpdateOne) ClearAPIDurationMs() *EventUpdateOne
ClearAPIDurationMs clears the value of the "api_duration_ms" field.
func (*EventUpdateOne) ClearAPIMethod ¶
func (_u *EventUpdateOne) ClearAPIMethod() *EventUpdateOne
ClearAPIMethod clears the value of the "api_method" field.
func (*EventUpdateOne) ClearAPIPath ¶
func (_u *EventUpdateOne) ClearAPIPath() *EventUpdateOne
ClearAPIPath clears the value of the "api_path" field.
func (*EventUpdateOne) ClearAPIStatusCode ¶
func (_u *EventUpdateOne) ClearAPIStatusCode() *EventUpdateOne
ClearAPIStatusCode clears the value of the "api_status_code" field.
func (*EventUpdateOne) ClearConversionStatus ¶
func (_u *EventUpdateOne) ClearConversionStatus() *EventUpdateOne
ClearConversionStatus clears the value of the "conversion_status" field.
func (*EventUpdateOne) ClearDurationMs ¶
func (_u *EventUpdateOne) ClearDurationMs() *EventUpdateOne
ClearDurationMs clears the value of the "duration_ms" field.
func (*EventUpdateOne) ClearErrorComponent ¶
func (_u *EventUpdateOne) ClearErrorComponent() *EventUpdateOne
ClearErrorComponent clears the value of the "error_component" field.
func (*EventUpdateOne) ClearErrorMessage ¶
func (_u *EventUpdateOne) ClearErrorMessage() *EventUpdateOne
ClearErrorMessage clears the value of the "error_message" field.
func (*EventUpdateOne) ClearErrorStack ¶
func (_u *EventUpdateOne) ClearErrorStack() *EventUpdateOne
ClearErrorStack clears the value of the "error_stack" field.
func (*EventUpdateOne) ClearErrorType ¶
func (_u *EventUpdateOne) ClearErrorType() *EventUpdateOne
ClearErrorType clears the value of the "error_type" field.
func (*EventUpdateOne) ClearEventName ¶
func (_u *EventUpdateOne) ClearEventName() *EventUpdateOne
ClearEventName clears the value of the "event_name" field.
func (*EventUpdateOne) ClearJourney ¶
func (_u *EventUpdateOne) ClearJourney() *EventUpdateOne
ClearJourney clears the "journey" edge to the Journey entity.
func (*EventUpdateOne) ClearJourneyID ¶
func (_u *EventUpdateOne) ClearJourneyID() *EventUpdateOne
ClearJourneyID clears the value of the "journey_id" field.
func (*EventUpdateOne) ClearJourneyStepID ¶
func (_u *EventUpdateOne) ClearJourneyStepID() *EventUpdateOne
ClearJourneyStepID clears the value of the "journey_step_id" field.
func (*EventUpdateOne) ClearJourneyStepName ¶
func (_u *EventUpdateOne) ClearJourneyStepName() *EventUpdateOne
ClearJourneyStepName clears the value of the "journey_step_name" field.
func (*EventUpdateOne) ClearMetadata ¶
func (_u *EventUpdateOne) ClearMetadata() *EventUpdateOne
ClearMetadata clears the value of the "metadata" field.
func (*EventUpdateOne) ClearPagePath ¶
func (_u *EventUpdateOne) ClearPagePath() *EventUpdateOne
ClearPagePath clears the value of the "page_path" field.
func (*EventUpdateOne) ClearPageReferrer ¶
func (_u *EventUpdateOne) ClearPageReferrer() *EventUpdateOne
ClearPageReferrer clears the value of the "page_referrer" field.
func (*EventUpdateOne) ClearPageTitle ¶
func (_u *EventUpdateOne) ClearPageTitle() *EventUpdateOne
ClearPageTitle clears the value of the "page_title" field.
func (*EventUpdateOne) ClearPageURL ¶
func (_u *EventUpdateOne) ClearPageURL() *EventUpdateOne
ClearPageURL clears the value of the "page_url" field.
func (*EventUpdateOne) ClearPerformanceCls ¶
func (_u *EventUpdateOne) ClearPerformanceCls() *EventUpdateOne
ClearPerformanceCls clears the value of the "performance_cls" field.
func (*EventUpdateOne) ClearPerformanceFidMs ¶
func (_u *EventUpdateOne) ClearPerformanceFidMs() *EventUpdateOne
ClearPerformanceFidMs clears the value of the "performance_fid_ms" field.
func (*EventUpdateOne) ClearPerformanceLcpMs ¶
func (_u *EventUpdateOne) ClearPerformanceLcpMs() *EventUpdateOne
ClearPerformanceLcpMs clears the value of the "performance_lcp_ms" field.
func (*EventUpdateOne) ClearPerformanceTtfbMs ¶
func (_u *EventUpdateOne) ClearPerformanceTtfbMs() *EventUpdateOne
ClearPerformanceTtfbMs clears the value of the "performance_ttfb_ms" field.
func (*EventUpdateOne) ClearProject ¶
func (_u *EventUpdateOne) ClearProject() *EventUpdateOne
ClearProject clears the "project" edge to the Project entity.
func (*EventUpdateOne) ClearSnapshotURL ¶
func (_u *EventUpdateOne) ClearSnapshotURL() *EventUpdateOne
ClearSnapshotURL clears the value of the "snapshot_url" field.
func (*EventUpdateOne) ClearSnapshotViewport ¶
func (_u *EventUpdateOne) ClearSnapshotViewport() *EventUpdateOne
ClearSnapshotViewport clears the value of the "snapshot_viewport" field.
func (*EventUpdateOne) ClearUIAction ¶
func (_u *EventUpdateOne) ClearUIAction() *EventUpdateOne
ClearUIAction clears the value of the "ui_action" field.
func (*EventUpdateOne) ClearUIComponentName ¶
func (_u *EventUpdateOne) ClearUIComponentName() *EventUpdateOne
ClearUIComponentName clears the value of the "ui_component_name" field.
func (*EventUpdateOne) ClearUIComponentPath ¶
func (_u *EventUpdateOne) ClearUIComponentPath() *EventUpdateOne
ClearUIComponentPath clears the value of the "ui_component_path" field.
func (*EventUpdateOne) ClearUIComponentType ¶
func (_u *EventUpdateOne) ClearUIComponentType() *EventUpdateOne
ClearUIComponentType clears the value of the "ui_component_type" field.
func (*EventUpdateOne) ClearUIElement ¶
func (_u *EventUpdateOne) ClearUIElement() *EventUpdateOne
ClearUIElement clears the value of the "ui_element" field.
func (*EventUpdateOne) ClearUIElementText ¶
func (_u *EventUpdateOne) ClearUIElementText() *EventUpdateOne
ClearUIElementText clears the value of the "ui_element_text" field.
func (*EventUpdateOne) ClearUIScrollPosition ¶
func (_u *EventUpdateOne) ClearUIScrollPosition() *EventUpdateOne
ClearUIScrollPosition clears the value of the "ui_scroll_position" field.
func (*EventUpdateOne) ClearUIStateAfter ¶
func (_u *EventUpdateOne) ClearUIStateAfter() *EventUpdateOne
ClearUIStateAfter clears the value of the "ui_state_after" field.
func (*EventUpdateOne) ClearUIStateBefore ¶
func (_u *EventUpdateOne) ClearUIStateBefore() *EventUpdateOne
ClearUIStateBefore clears the value of the "ui_state_before" field.
func (*EventUpdateOne) ClearUIStateChangeType ¶
func (_u *EventUpdateOne) ClearUIStateChangeType() *EventUpdateOne
ClearUIStateChangeType clears the value of the "ui_state_change_type" field.
func (*EventUpdateOne) ClearUIStateKey ¶
func (_u *EventUpdateOne) ClearUIStateKey() *EventUpdateOne
ClearUIStateKey clears the value of the "ui_state_key" field.
func (*EventUpdateOne) ClearUIViewport ¶
func (_u *EventUpdateOne) ClearUIViewport() *EventUpdateOne
ClearUIViewport clears the value of the "ui_viewport" field.
func (*EventUpdateOne) ClearUserID ¶
func (_u *EventUpdateOne) ClearUserID() *EventUpdateOne
ClearUserID clears the value of the "user_id" field.
func (*EventUpdateOne) Exec ¶
func (_u *EventUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*EventUpdateOne) ExecX ¶
func (_u *EventUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*EventUpdateOne) Mutation ¶
func (_u *EventUpdateOne) Mutation() *EventMutation
Mutation returns the EventMutation object of the builder.
func (*EventUpdateOne) Save ¶
func (_u *EventUpdateOne) Save(ctx context.Context) (*Event, error)
Save executes the query and returns the updated Event entity.
func (*EventUpdateOne) SaveX ¶
func (_u *EventUpdateOne) SaveX(ctx context.Context) *Event
SaveX is like Save, but panics if an error occurs.
func (*EventUpdateOne) Select ¶
func (_u *EventUpdateOne) Select(field string, fields ...string) *EventUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*EventUpdateOne) SetAPIDurationMs ¶
func (_u *EventUpdateOne) SetAPIDurationMs(v int64) *EventUpdateOne
SetAPIDurationMs sets the "api_duration_ms" field.
func (*EventUpdateOne) SetAPIMethod ¶
func (_u *EventUpdateOne) SetAPIMethod(v string) *EventUpdateOne
SetAPIMethod sets the "api_method" field.
func (*EventUpdateOne) SetAPIPath ¶
func (_u *EventUpdateOne) SetAPIPath(v string) *EventUpdateOne
SetAPIPath sets the "api_path" field.
func (*EventUpdateOne) SetAPIStatusCode ¶
func (_u *EventUpdateOne) SetAPIStatusCode(v int) *EventUpdateOne
SetAPIStatusCode sets the "api_status_code" field.
func (*EventUpdateOne) SetConversionStatus ¶
func (_u *EventUpdateOne) SetConversionStatus(v string) *EventUpdateOne
SetConversionStatus sets the "conversion_status" field.
func (*EventUpdateOne) SetDurationMs ¶
func (_u *EventUpdateOne) SetDurationMs(v int64) *EventUpdateOne
SetDurationMs sets the "duration_ms" field.
func (*EventUpdateOne) SetErrorComponent ¶
func (_u *EventUpdateOne) SetErrorComponent(v string) *EventUpdateOne
SetErrorComponent sets the "error_component" field.
func (*EventUpdateOne) SetErrorMessage ¶
func (_u *EventUpdateOne) SetErrorMessage(v string) *EventUpdateOne
SetErrorMessage sets the "error_message" field.
func (*EventUpdateOne) SetErrorStack ¶
func (_u *EventUpdateOne) SetErrorStack(v string) *EventUpdateOne
SetErrorStack sets the "error_stack" field.
func (*EventUpdateOne) SetErrorType ¶
func (_u *EventUpdateOne) SetErrorType(v string) *EventUpdateOne
SetErrorType sets the "error_type" field.
func (*EventUpdateOne) SetEventID ¶
func (_u *EventUpdateOne) SetEventID(v string) *EventUpdateOne
SetEventID sets the "event_id" field.
func (*EventUpdateOne) SetEventName ¶
func (_u *EventUpdateOne) SetEventName(v string) *EventUpdateOne
SetEventName sets the "event_name" field.
func (*EventUpdateOne) SetEventType ¶
func (_u *EventUpdateOne) SetEventType(v event.EventType) *EventUpdateOne
SetEventType sets the "event_type" field.
func (*EventUpdateOne) SetJourney ¶
func (_u *EventUpdateOne) SetJourney(v *Journey) *EventUpdateOne
SetJourney sets the "journey" edge to the Journey entity.
func (*EventUpdateOne) SetJourneyID ¶
func (_u *EventUpdateOne) SetJourneyID(v uuid.UUID) *EventUpdateOne
SetJourneyID sets the "journey_id" field.
func (*EventUpdateOne) SetJourneyStepID ¶
func (_u *EventUpdateOne) SetJourneyStepID(v string) *EventUpdateOne
SetJourneyStepID sets the "journey_step_id" field.
func (*EventUpdateOne) SetJourneyStepName ¶
func (_u *EventUpdateOne) SetJourneyStepName(v string) *EventUpdateOne
SetJourneyStepName sets the "journey_step_name" field.
func (*EventUpdateOne) SetMetadata ¶
func (_u *EventUpdateOne) SetMetadata(v map[string]interface{}) *EventUpdateOne
SetMetadata sets the "metadata" field.
func (*EventUpdateOne) SetNillableAPIDurationMs ¶
func (_u *EventUpdateOne) SetNillableAPIDurationMs(v *int64) *EventUpdateOne
SetNillableAPIDurationMs sets the "api_duration_ms" field if the given value is not nil.
func (*EventUpdateOne) SetNillableAPIMethod ¶
func (_u *EventUpdateOne) SetNillableAPIMethod(v *string) *EventUpdateOne
SetNillableAPIMethod sets the "api_method" field if the given value is not nil.
func (*EventUpdateOne) SetNillableAPIPath ¶
func (_u *EventUpdateOne) SetNillableAPIPath(v *string) *EventUpdateOne
SetNillableAPIPath sets the "api_path" field if the given value is not nil.
func (*EventUpdateOne) SetNillableAPIStatusCode ¶
func (_u *EventUpdateOne) SetNillableAPIStatusCode(v *int) *EventUpdateOne
SetNillableAPIStatusCode sets the "api_status_code" field if the given value is not nil.
func (*EventUpdateOne) SetNillableConversionStatus ¶
func (_u *EventUpdateOne) SetNillableConversionStatus(v *string) *EventUpdateOne
SetNillableConversionStatus sets the "conversion_status" field if the given value is not nil.
func (*EventUpdateOne) SetNillableDurationMs ¶
func (_u *EventUpdateOne) SetNillableDurationMs(v *int64) *EventUpdateOne
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*EventUpdateOne) SetNillableErrorComponent ¶
func (_u *EventUpdateOne) SetNillableErrorComponent(v *string) *EventUpdateOne
SetNillableErrorComponent sets the "error_component" field if the given value is not nil.
func (*EventUpdateOne) SetNillableErrorMessage ¶
func (_u *EventUpdateOne) SetNillableErrorMessage(v *string) *EventUpdateOne
SetNillableErrorMessage sets the "error_message" field if the given value is not nil.
func (*EventUpdateOne) SetNillableErrorStack ¶
func (_u *EventUpdateOne) SetNillableErrorStack(v *string) *EventUpdateOne
SetNillableErrorStack sets the "error_stack" field if the given value is not nil.
func (*EventUpdateOne) SetNillableErrorType ¶
func (_u *EventUpdateOne) SetNillableErrorType(v *string) *EventUpdateOne
SetNillableErrorType sets the "error_type" field if the given value is not nil.
func (*EventUpdateOne) SetNillableEventID ¶
func (_u *EventUpdateOne) SetNillableEventID(v *string) *EventUpdateOne
SetNillableEventID sets the "event_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableEventName ¶
func (_u *EventUpdateOne) SetNillableEventName(v *string) *EventUpdateOne
SetNillableEventName sets the "event_name" field if the given value is not nil.
func (*EventUpdateOne) SetNillableEventType ¶
func (_u *EventUpdateOne) SetNillableEventType(v *event.EventType) *EventUpdateOne
SetNillableEventType sets the "event_type" field if the given value is not nil.
func (*EventUpdateOne) SetNillableJourneyID ¶
func (_u *EventUpdateOne) SetNillableJourneyID(v *uuid.UUID) *EventUpdateOne
SetNillableJourneyID sets the "journey_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableJourneyStepID ¶
func (_u *EventUpdateOne) SetNillableJourneyStepID(v *string) *EventUpdateOne
SetNillableJourneyStepID sets the "journey_step_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableJourneyStepName ¶
func (_u *EventUpdateOne) SetNillableJourneyStepName(v *string) *EventUpdateOne
SetNillableJourneyStepName sets the "journey_step_name" field if the given value is not nil.
func (*EventUpdateOne) SetNillableOrgID ¶
func (_u *EventUpdateOne) SetNillableOrgID(v *uuid.UUID) *EventUpdateOne
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePagePath ¶
func (_u *EventUpdateOne) SetNillablePagePath(v *string) *EventUpdateOne
SetNillablePagePath sets the "page_path" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePageReferrer ¶
func (_u *EventUpdateOne) SetNillablePageReferrer(v *string) *EventUpdateOne
SetNillablePageReferrer sets the "page_referrer" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePageTitle ¶
func (_u *EventUpdateOne) SetNillablePageTitle(v *string) *EventUpdateOne
SetNillablePageTitle sets the "page_title" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePageURL ¶
func (_u *EventUpdateOne) SetNillablePageURL(v *string) *EventUpdateOne
SetNillablePageURL sets the "page_url" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePerformanceCls ¶
func (_u *EventUpdateOne) SetNillablePerformanceCls(v *float64) *EventUpdateOne
SetNillablePerformanceCls sets the "performance_cls" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePerformanceFidMs ¶
func (_u *EventUpdateOne) SetNillablePerformanceFidMs(v *float64) *EventUpdateOne
SetNillablePerformanceFidMs sets the "performance_fid_ms" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePerformanceLcpMs ¶
func (_u *EventUpdateOne) SetNillablePerformanceLcpMs(v *float64) *EventUpdateOne
SetNillablePerformanceLcpMs sets the "performance_lcp_ms" field if the given value is not nil.
func (*EventUpdateOne) SetNillablePerformanceTtfbMs ¶
func (_u *EventUpdateOne) SetNillablePerformanceTtfbMs(v *float64) *EventUpdateOne
SetNillablePerformanceTtfbMs sets the "performance_ttfb_ms" field if the given value is not nil.
func (*EventUpdateOne) SetNillableProjectID ¶
func (_u *EventUpdateOne) SetNillableProjectID(v *uuid.UUID) *EventUpdateOne
SetNillableProjectID sets the "project_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableSequence ¶
func (_u *EventUpdateOne) SetNillableSequence(v *int64) *EventUpdateOne
SetNillableSequence sets the "sequence" field if the given value is not nil.
func (*EventUpdateOne) SetNillableSessionID ¶
func (_u *EventUpdateOne) SetNillableSessionID(v *string) *EventUpdateOne
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*EventUpdateOne) SetNillableSnapshotURL ¶
func (_u *EventUpdateOne) SetNillableSnapshotURL(v *string) *EventUpdateOne
SetNillableSnapshotURL sets the "snapshot_url" field if the given value is not nil.
func (*EventUpdateOne) SetNillableSnapshotViewport ¶
func (_u *EventUpdateOne) SetNillableSnapshotViewport(v *string) *EventUpdateOne
SetNillableSnapshotViewport sets the "snapshot_viewport" field if the given value is not nil.
func (*EventUpdateOne) SetNillableTimestamp ¶
func (_u *EventUpdateOne) SetNillableTimestamp(v *time.Time) *EventUpdateOne
SetNillableTimestamp sets the "timestamp" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIAction ¶
func (_u *EventUpdateOne) SetNillableUIAction(v *string) *EventUpdateOne
SetNillableUIAction sets the "ui_action" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIComponentName ¶
func (_u *EventUpdateOne) SetNillableUIComponentName(v *string) *EventUpdateOne
SetNillableUIComponentName sets the "ui_component_name" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIComponentPath ¶
func (_u *EventUpdateOne) SetNillableUIComponentPath(v *string) *EventUpdateOne
SetNillableUIComponentPath sets the "ui_component_path" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIComponentType ¶
func (_u *EventUpdateOne) SetNillableUIComponentType(v *string) *EventUpdateOne
SetNillableUIComponentType sets the "ui_component_type" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIElement ¶
func (_u *EventUpdateOne) SetNillableUIElement(v *string) *EventUpdateOne
SetNillableUIElement sets the "ui_element" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIElementText ¶
func (_u *EventUpdateOne) SetNillableUIElementText(v *string) *EventUpdateOne
SetNillableUIElementText sets the "ui_element_text" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIScrollPosition ¶
func (_u *EventUpdateOne) SetNillableUIScrollPosition(v *float64) *EventUpdateOne
SetNillableUIScrollPosition sets the "ui_scroll_position" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIStateAfter ¶
func (_u *EventUpdateOne) SetNillableUIStateAfter(v *string) *EventUpdateOne
SetNillableUIStateAfter sets the "ui_state_after" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIStateBefore ¶
func (_u *EventUpdateOne) SetNillableUIStateBefore(v *string) *EventUpdateOne
SetNillableUIStateBefore sets the "ui_state_before" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIStateChangeType ¶
func (_u *EventUpdateOne) SetNillableUIStateChangeType(v *string) *EventUpdateOne
SetNillableUIStateChangeType sets the "ui_state_change_type" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIStateKey ¶
func (_u *EventUpdateOne) SetNillableUIStateKey(v *string) *EventUpdateOne
SetNillableUIStateKey sets the "ui_state_key" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUIViewport ¶
func (_u *EventUpdateOne) SetNillableUIViewport(v *string) *EventUpdateOne
SetNillableUIViewport sets the "ui_viewport" field if the given value is not nil.
func (*EventUpdateOne) SetNillableUserID ¶
func (_u *EventUpdateOne) SetNillableUserID(v *string) *EventUpdateOne
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*EventUpdateOne) SetOrgID ¶
func (_u *EventUpdateOne) SetOrgID(v uuid.UUID) *EventUpdateOne
SetOrgID sets the "org_id" field.
func (*EventUpdateOne) SetPagePath ¶
func (_u *EventUpdateOne) SetPagePath(v string) *EventUpdateOne
SetPagePath sets the "page_path" field.
func (*EventUpdateOne) SetPageReferrer ¶
func (_u *EventUpdateOne) SetPageReferrer(v string) *EventUpdateOne
SetPageReferrer sets the "page_referrer" field.
func (*EventUpdateOne) SetPageTitle ¶
func (_u *EventUpdateOne) SetPageTitle(v string) *EventUpdateOne
SetPageTitle sets the "page_title" field.
func (*EventUpdateOne) SetPageURL ¶
func (_u *EventUpdateOne) SetPageURL(v string) *EventUpdateOne
SetPageURL sets the "page_url" field.
func (*EventUpdateOne) SetPerformanceCls ¶
func (_u *EventUpdateOne) SetPerformanceCls(v float64) *EventUpdateOne
SetPerformanceCls sets the "performance_cls" field.
func (*EventUpdateOne) SetPerformanceFidMs ¶
func (_u *EventUpdateOne) SetPerformanceFidMs(v float64) *EventUpdateOne
SetPerformanceFidMs sets the "performance_fid_ms" field.
func (*EventUpdateOne) SetPerformanceLcpMs ¶
func (_u *EventUpdateOne) SetPerformanceLcpMs(v float64) *EventUpdateOne
SetPerformanceLcpMs sets the "performance_lcp_ms" field.
func (*EventUpdateOne) SetPerformanceTtfbMs ¶
func (_u *EventUpdateOne) SetPerformanceTtfbMs(v float64) *EventUpdateOne
SetPerformanceTtfbMs sets the "performance_ttfb_ms" field.
func (*EventUpdateOne) SetProject ¶
func (_u *EventUpdateOne) SetProject(v *Project) *EventUpdateOne
SetProject sets the "project" edge to the Project entity.
func (*EventUpdateOne) SetProjectID ¶
func (_u *EventUpdateOne) SetProjectID(v uuid.UUID) *EventUpdateOne
SetProjectID sets the "project_id" field.
func (*EventUpdateOne) SetSequence ¶
func (_u *EventUpdateOne) SetSequence(v int64) *EventUpdateOne
SetSequence sets the "sequence" field.
func (*EventUpdateOne) SetSessionID ¶
func (_u *EventUpdateOne) SetSessionID(v string) *EventUpdateOne
SetSessionID sets the "session_id" field.
func (*EventUpdateOne) SetSnapshotURL ¶
func (_u *EventUpdateOne) SetSnapshotURL(v string) *EventUpdateOne
SetSnapshotURL sets the "snapshot_url" field.
func (*EventUpdateOne) SetSnapshotViewport ¶
func (_u *EventUpdateOne) SetSnapshotViewport(v string) *EventUpdateOne
SetSnapshotViewport sets the "snapshot_viewport" field.
func (*EventUpdateOne) SetTimestamp ¶
func (_u *EventUpdateOne) SetTimestamp(v time.Time) *EventUpdateOne
SetTimestamp sets the "timestamp" field.
func (*EventUpdateOne) SetUIAction ¶
func (_u *EventUpdateOne) SetUIAction(v string) *EventUpdateOne
SetUIAction sets the "ui_action" field.
func (*EventUpdateOne) SetUIComponentName ¶
func (_u *EventUpdateOne) SetUIComponentName(v string) *EventUpdateOne
SetUIComponentName sets the "ui_component_name" field.
func (*EventUpdateOne) SetUIComponentPath ¶
func (_u *EventUpdateOne) SetUIComponentPath(v string) *EventUpdateOne
SetUIComponentPath sets the "ui_component_path" field.
func (*EventUpdateOne) SetUIComponentType ¶
func (_u *EventUpdateOne) SetUIComponentType(v string) *EventUpdateOne
SetUIComponentType sets the "ui_component_type" field.
func (*EventUpdateOne) SetUIElement ¶
func (_u *EventUpdateOne) SetUIElement(v string) *EventUpdateOne
SetUIElement sets the "ui_element" field.
func (*EventUpdateOne) SetUIElementText ¶
func (_u *EventUpdateOne) SetUIElementText(v string) *EventUpdateOne
SetUIElementText sets the "ui_element_text" field.
func (*EventUpdateOne) SetUIScrollPosition ¶
func (_u *EventUpdateOne) SetUIScrollPosition(v float64) *EventUpdateOne
SetUIScrollPosition sets the "ui_scroll_position" field.
func (*EventUpdateOne) SetUIStateAfter ¶
func (_u *EventUpdateOne) SetUIStateAfter(v string) *EventUpdateOne
SetUIStateAfter sets the "ui_state_after" field.
func (*EventUpdateOne) SetUIStateBefore ¶
func (_u *EventUpdateOne) SetUIStateBefore(v string) *EventUpdateOne
SetUIStateBefore sets the "ui_state_before" field.
func (*EventUpdateOne) SetUIStateChangeType ¶
func (_u *EventUpdateOne) SetUIStateChangeType(v string) *EventUpdateOne
SetUIStateChangeType sets the "ui_state_change_type" field.
func (*EventUpdateOne) SetUIStateKey ¶
func (_u *EventUpdateOne) SetUIStateKey(v string) *EventUpdateOne
SetUIStateKey sets the "ui_state_key" field.
func (*EventUpdateOne) SetUIViewport ¶
func (_u *EventUpdateOne) SetUIViewport(v string) *EventUpdateOne
SetUIViewport sets the "ui_viewport" field.
func (*EventUpdateOne) SetUserID ¶
func (_u *EventUpdateOne) SetUserID(v string) *EventUpdateOne
SetUserID sets the "user_id" field.
func (*EventUpdateOne) Where ¶
func (_u *EventUpdateOne) Where(ps ...predicate.Event) *EventUpdateOne
Where appends a list predicates to the EventUpdate builder.
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 Journey ¶
type Journey struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// OrgID holds the value of the "org_id" field.
OrgID uuid.UUID `json:"org_id,omitempty"`
// ProjectID holds the value of the "project_id" field.
ProjectID uuid.UUID `json:"project_id,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Description holds the value of the "description" field.
Description string `json:"description,omitempty"`
// EntryConditions holds the value of the "entry_conditions" field.
EntryConditions []interface{} `json:"entry_conditions,omitempty"`
// ExitConditions holds the value of the "exit_conditions" field.
ExitConditions []interface{} `json:"exit_conditions,omitempty"`
// Steps holds the value of the "steps" field.
Steps []interface{} `json:"steps,omitempty"`
// TimeoutMinutes holds the value of the "timeout_minutes" field.
TimeoutMinutes int `json:"timeout_minutes,omitempty"`
// TotalSessions holds the value of the "total_sessions" field.
TotalSessions int64 `json:"total_sessions,omitempty"`
// ConvertedSessions holds the value of the "converted_sessions" field.
ConvertedSessions int64 `json:"converted_sessions,omitempty"`
// ConversionRate holds the value of the "conversion_rate" field.
ConversionRate float64 `json:"conversion_rate,omitempty"`
// AvgDurationMs holds the value of the "avg_duration_ms" field.
AvgDurationMs int64 `json:"avg_duration_ms,omitempty"`
// IsActive holds the value of the "is_active" field.
IsActive bool `json:"is_active,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the JourneyQuery when eager-loading is set.
Edges JourneyEdges `json:"edges"`
// contains filtered or unexported fields
}
Journey is the model entity for the Journey schema.
func (*Journey) QueryEvents ¶
func (_m *Journey) QueryEvents() *EventQuery
QueryEvents queries the "events" edge of the Journey entity.
func (*Journey) QueryProject ¶
func (_m *Journey) QueryProject() *ProjectQuery
QueryProject queries the "project" edge of the Journey entity.
func (*Journey) QuerySessions ¶
func (_m *Journey) QuerySessions() *SessionQuery
QuerySessions queries the "sessions" edge of the Journey entity.
func (*Journey) Unwrap ¶
Unwrap unwraps the Journey 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 (*Journey) Update ¶
func (_m *Journey) Update() *JourneyUpdateOne
Update returns a builder for updating this Journey. Note that you need to call Journey.Unwrap() before calling this method if this Journey was returned from a transaction, and the transaction was committed or rolled back.
type JourneyClient ¶
type JourneyClient struct {
// contains filtered or unexported fields
}
JourneyClient is a client for the Journey schema.
func NewJourneyClient ¶
func NewJourneyClient(c config) *JourneyClient
NewJourneyClient returns a client for the Journey from the given config.
func (*JourneyClient) Create ¶
func (c *JourneyClient) Create() *JourneyCreate
Create returns a builder for creating a Journey entity.
func (*JourneyClient) CreateBulk ¶
func (c *JourneyClient) CreateBulk(builders ...*JourneyCreate) *JourneyCreateBulk
CreateBulk returns a builder for creating a bulk of Journey entities.
func (*JourneyClient) Delete ¶
func (c *JourneyClient) Delete() *JourneyDelete
Delete returns a delete builder for Journey.
func (*JourneyClient) DeleteOne ¶
func (c *JourneyClient) DeleteOne(_m *Journey) *JourneyDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*JourneyClient) DeleteOneID ¶
func (c *JourneyClient) DeleteOneID(id uuid.UUID) *JourneyDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*JourneyClient) Hooks ¶
func (c *JourneyClient) Hooks() []Hook
Hooks returns the client hooks.
func (*JourneyClient) Intercept ¶
func (c *JourneyClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `journey.Intercept(f(g(h())))`.
func (*JourneyClient) Interceptors ¶
func (c *JourneyClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*JourneyClient) MapCreateBulk ¶
func (c *JourneyClient) MapCreateBulk(slice any, setFunc func(*JourneyCreate, int)) *JourneyCreateBulk
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 (*JourneyClient) Query ¶
func (c *JourneyClient) Query() *JourneyQuery
Query returns a query builder for Journey.
func (*JourneyClient) QueryEvents ¶
func (c *JourneyClient) QueryEvents(_m *Journey) *EventQuery
QueryEvents queries the events edge of a Journey.
func (*JourneyClient) QueryProject ¶
func (c *JourneyClient) QueryProject(_m *Journey) *ProjectQuery
QueryProject queries the project edge of a Journey.
func (*JourneyClient) QuerySessions ¶
func (c *JourneyClient) QuerySessions(_m *Journey) *SessionQuery
QuerySessions queries the sessions edge of a Journey.
func (*JourneyClient) Update ¶
func (c *JourneyClient) Update() *JourneyUpdate
Update returns an update builder for Journey.
func (*JourneyClient) UpdateOne ¶
func (c *JourneyClient) UpdateOne(_m *Journey) *JourneyUpdateOne
UpdateOne returns an update builder for the given entity.
func (*JourneyClient) UpdateOneID ¶
func (c *JourneyClient) UpdateOneID(id uuid.UUID) *JourneyUpdateOne
UpdateOneID returns an update builder for the given id.
func (*JourneyClient) Use ¶
func (c *JourneyClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `journey.Hooks(f(g(h())))`.
type JourneyCreate ¶
type JourneyCreate struct {
// contains filtered or unexported fields
}
JourneyCreate is the builder for creating a Journey entity.
func (*JourneyCreate) AddEventIDs ¶
func (_c *JourneyCreate) AddEventIDs(ids ...uuid.UUID) *JourneyCreate
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*JourneyCreate) AddEvents ¶
func (_c *JourneyCreate) AddEvents(v ...*Event) *JourneyCreate
AddEvents adds the "events" edges to the Event entity.
func (*JourneyCreate) AddSessionIDs ¶
func (_c *JourneyCreate) AddSessionIDs(ids ...uuid.UUID) *JourneyCreate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*JourneyCreate) AddSessions ¶
func (_c *JourneyCreate) AddSessions(v ...*Session) *JourneyCreate
AddSessions adds the "sessions" edges to the Session entity.
func (*JourneyCreate) Exec ¶
func (_c *JourneyCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*JourneyCreate) ExecX ¶
func (_c *JourneyCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*JourneyCreate) Mutation ¶
func (_c *JourneyCreate) Mutation() *JourneyMutation
Mutation returns the JourneyMutation object of the builder.
func (*JourneyCreate) Save ¶
func (_c *JourneyCreate) Save(ctx context.Context) (*Journey, error)
Save creates the Journey in the database.
func (*JourneyCreate) SaveX ¶
func (_c *JourneyCreate) SaveX(ctx context.Context) *Journey
SaveX calls Save and panics if Save returns an error.
func (*JourneyCreate) SetAvgDurationMs ¶
func (_c *JourneyCreate) SetAvgDurationMs(v int64) *JourneyCreate
SetAvgDurationMs sets the "avg_duration_ms" field.
func (*JourneyCreate) SetConversionRate ¶
func (_c *JourneyCreate) SetConversionRate(v float64) *JourneyCreate
SetConversionRate sets the "conversion_rate" field.
func (*JourneyCreate) SetConvertedSessions ¶
func (_c *JourneyCreate) SetConvertedSessions(v int64) *JourneyCreate
SetConvertedSessions sets the "converted_sessions" field.
func (*JourneyCreate) SetCreatedAt ¶
func (_c *JourneyCreate) SetCreatedAt(v time.Time) *JourneyCreate
SetCreatedAt sets the "created_at" field.
func (*JourneyCreate) SetDescription ¶
func (_c *JourneyCreate) SetDescription(v string) *JourneyCreate
SetDescription sets the "description" field.
func (*JourneyCreate) SetEntryConditions ¶
func (_c *JourneyCreate) SetEntryConditions(v []interface{}) *JourneyCreate
SetEntryConditions sets the "entry_conditions" field.
func (*JourneyCreate) SetExitConditions ¶
func (_c *JourneyCreate) SetExitConditions(v []interface{}) *JourneyCreate
SetExitConditions sets the "exit_conditions" field.
func (*JourneyCreate) SetID ¶
func (_c *JourneyCreate) SetID(v uuid.UUID) *JourneyCreate
SetID sets the "id" field.
func (*JourneyCreate) SetIsActive ¶
func (_c *JourneyCreate) SetIsActive(v bool) *JourneyCreate
SetIsActive sets the "is_active" field.
func (*JourneyCreate) SetName ¶
func (_c *JourneyCreate) SetName(v string) *JourneyCreate
SetName sets the "name" field.
func (*JourneyCreate) SetNillableAvgDurationMs ¶
func (_c *JourneyCreate) SetNillableAvgDurationMs(v *int64) *JourneyCreate
SetNillableAvgDurationMs sets the "avg_duration_ms" field if the given value is not nil.
func (*JourneyCreate) SetNillableConversionRate ¶
func (_c *JourneyCreate) SetNillableConversionRate(v *float64) *JourneyCreate
SetNillableConversionRate sets the "conversion_rate" field if the given value is not nil.
func (*JourneyCreate) SetNillableConvertedSessions ¶
func (_c *JourneyCreate) SetNillableConvertedSessions(v *int64) *JourneyCreate
SetNillableConvertedSessions sets the "converted_sessions" field if the given value is not nil.
func (*JourneyCreate) SetNillableCreatedAt ¶
func (_c *JourneyCreate) SetNillableCreatedAt(v *time.Time) *JourneyCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*JourneyCreate) SetNillableDescription ¶
func (_c *JourneyCreate) SetNillableDescription(v *string) *JourneyCreate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*JourneyCreate) SetNillableID ¶
func (_c *JourneyCreate) SetNillableID(v *uuid.UUID) *JourneyCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*JourneyCreate) SetNillableIsActive ¶
func (_c *JourneyCreate) SetNillableIsActive(v *bool) *JourneyCreate
SetNillableIsActive sets the "is_active" field if the given value is not nil.
func (*JourneyCreate) SetNillableTimeoutMinutes ¶
func (_c *JourneyCreate) SetNillableTimeoutMinutes(v *int) *JourneyCreate
SetNillableTimeoutMinutes sets the "timeout_minutes" field if the given value is not nil.
func (*JourneyCreate) SetNillableTotalSessions ¶
func (_c *JourneyCreate) SetNillableTotalSessions(v *int64) *JourneyCreate
SetNillableTotalSessions sets the "total_sessions" field if the given value is not nil.
func (*JourneyCreate) SetNillableUpdatedAt ¶
func (_c *JourneyCreate) SetNillableUpdatedAt(v *time.Time) *JourneyCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*JourneyCreate) SetOrgID ¶
func (_c *JourneyCreate) SetOrgID(v uuid.UUID) *JourneyCreate
SetOrgID sets the "org_id" field.
func (*JourneyCreate) SetProject ¶
func (_c *JourneyCreate) SetProject(v *Project) *JourneyCreate
SetProject sets the "project" edge to the Project entity.
func (*JourneyCreate) SetProjectID ¶
func (_c *JourneyCreate) SetProjectID(v uuid.UUID) *JourneyCreate
SetProjectID sets the "project_id" field.
func (*JourneyCreate) SetSteps ¶
func (_c *JourneyCreate) SetSteps(v []interface{}) *JourneyCreate
SetSteps sets the "steps" field.
func (*JourneyCreate) SetTimeoutMinutes ¶
func (_c *JourneyCreate) SetTimeoutMinutes(v int) *JourneyCreate
SetTimeoutMinutes sets the "timeout_minutes" field.
func (*JourneyCreate) SetTotalSessions ¶
func (_c *JourneyCreate) SetTotalSessions(v int64) *JourneyCreate
SetTotalSessions sets the "total_sessions" field.
func (*JourneyCreate) SetUpdatedAt ¶
func (_c *JourneyCreate) SetUpdatedAt(v time.Time) *JourneyCreate
SetUpdatedAt sets the "updated_at" field.
type JourneyCreateBulk ¶
type JourneyCreateBulk struct {
// contains filtered or unexported fields
}
JourneyCreateBulk is the builder for creating many Journey entities in bulk.
func (*JourneyCreateBulk) Exec ¶
func (_c *JourneyCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*JourneyCreateBulk) ExecX ¶
func (_c *JourneyCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type JourneyDelete ¶
type JourneyDelete struct {
// contains filtered or unexported fields
}
JourneyDelete is the builder for deleting a Journey entity.
func (*JourneyDelete) Exec ¶
func (_d *JourneyDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*JourneyDelete) ExecX ¶
func (_d *JourneyDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*JourneyDelete) Where ¶
func (_d *JourneyDelete) Where(ps ...predicate.Journey) *JourneyDelete
Where appends a list predicates to the JourneyDelete builder.
type JourneyDeleteOne ¶
type JourneyDeleteOne struct {
// contains filtered or unexported fields
}
JourneyDeleteOne is the builder for deleting a single Journey entity.
func (*JourneyDeleteOne) Exec ¶
func (_d *JourneyDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*JourneyDeleteOne) ExecX ¶
func (_d *JourneyDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*JourneyDeleteOne) Where ¶
func (_d *JourneyDeleteOne) Where(ps ...predicate.Journey) *JourneyDeleteOne
Where appends a list predicates to the JourneyDelete builder.
type JourneyEdges ¶
type JourneyEdges struct {
// Project holds the value of the project edge.
Project *Project `json:"project,omitempty"`
// Events holds the value of the events edge.
Events []*Event `json:"events,omitempty"`
// Sessions holds the value of the sessions edge.
Sessions []*Session `json:"sessions,omitempty"`
// contains filtered or unexported fields
}
JourneyEdges holds the relations/edges for other nodes in the graph.
func (JourneyEdges) EventsOrErr ¶
func (e JourneyEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
func (JourneyEdges) ProjectOrErr ¶
func (e JourneyEdges) ProjectOrErr() (*Project, error)
ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (JourneyEdges) SessionsOrErr ¶
func (e JourneyEdges) SessionsOrErr() ([]*Session, error)
SessionsOrErr returns the Sessions value or an error if the edge was not loaded in eager-loading.
type JourneyGroupBy ¶
type JourneyGroupBy struct {
// contains filtered or unexported fields
}
JourneyGroupBy is the group-by builder for Journey entities.
func (*JourneyGroupBy) Aggregate ¶
func (_g *JourneyGroupBy) Aggregate(fns ...AggregateFunc) *JourneyGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*JourneyGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*JourneyGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*JourneyGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*JourneyGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*JourneyGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*JourneyGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*JourneyGroupBy) Scan ¶
func (_g *JourneyGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*JourneyGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type JourneyMutation ¶
type JourneyMutation struct {
// contains filtered or unexported fields
}
JourneyMutation represents an operation that mutates the Journey nodes in the graph.
func (*JourneyMutation) AddAvgDurationMs ¶
func (m *JourneyMutation) AddAvgDurationMs(i int64)
AddAvgDurationMs adds i to the "avg_duration_ms" field.
func (*JourneyMutation) AddConversionRate ¶
func (m *JourneyMutation) AddConversionRate(f float64)
AddConversionRate adds f to the "conversion_rate" field.
func (*JourneyMutation) AddConvertedSessions ¶
func (m *JourneyMutation) AddConvertedSessions(i int64)
AddConvertedSessions adds i to the "converted_sessions" field.
func (*JourneyMutation) AddEventIDs ¶
func (m *JourneyMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the "events" edge to the Event entity by ids.
func (*JourneyMutation) AddField ¶
func (m *JourneyMutation) 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 (*JourneyMutation) AddSessionIDs ¶
func (m *JourneyMutation) AddSessionIDs(ids ...uuid.UUID)
AddSessionIDs adds the "sessions" edge to the Session entity by ids.
func (*JourneyMutation) AddTimeoutMinutes ¶
func (m *JourneyMutation) AddTimeoutMinutes(i int)
AddTimeoutMinutes adds i to the "timeout_minutes" field.
func (*JourneyMutation) AddTotalSessions ¶
func (m *JourneyMutation) AddTotalSessions(i int64)
AddTotalSessions adds i to the "total_sessions" field.
func (*JourneyMutation) AddedAvgDurationMs ¶
func (m *JourneyMutation) AddedAvgDurationMs() (r int64, exists bool)
AddedAvgDurationMs returns the value that was added to the "avg_duration_ms" field in this mutation.
func (*JourneyMutation) AddedConversionRate ¶
func (m *JourneyMutation) AddedConversionRate() (r float64, exists bool)
AddedConversionRate returns the value that was added to the "conversion_rate" field in this mutation.
func (*JourneyMutation) AddedConvertedSessions ¶
func (m *JourneyMutation) AddedConvertedSessions() (r int64, exists bool)
AddedConvertedSessions returns the value that was added to the "converted_sessions" field in this mutation.
func (*JourneyMutation) AddedEdges ¶
func (m *JourneyMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*JourneyMutation) AddedField ¶
func (m *JourneyMutation) 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 (*JourneyMutation) AddedFields ¶
func (m *JourneyMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*JourneyMutation) AddedIDs ¶
func (m *JourneyMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*JourneyMutation) AddedTimeoutMinutes ¶
func (m *JourneyMutation) AddedTimeoutMinutes() (r int, exists bool)
AddedTimeoutMinutes returns the value that was added to the "timeout_minutes" field in this mutation.
func (*JourneyMutation) AddedTotalSessions ¶
func (m *JourneyMutation) AddedTotalSessions() (r int64, exists bool)
AddedTotalSessions returns the value that was added to the "total_sessions" field in this mutation.
func (*JourneyMutation) AppendEntryConditions ¶
func (m *JourneyMutation) AppendEntryConditions(i []interface{})
AppendEntryConditions adds i to the "entry_conditions" field.
func (*JourneyMutation) AppendExitConditions ¶
func (m *JourneyMutation) AppendExitConditions(i []interface{})
AppendExitConditions adds i to the "exit_conditions" field.
func (*JourneyMutation) AppendSteps ¶
func (m *JourneyMutation) AppendSteps(i []interface{})
AppendSteps adds i to the "steps" field.
func (*JourneyMutation) AppendedEntryConditions ¶
func (m *JourneyMutation) AppendedEntryConditions() ([]interface{}, bool)
AppendedEntryConditions returns the list of values that were appended to the "entry_conditions" field in this mutation.
func (*JourneyMutation) AppendedExitConditions ¶
func (m *JourneyMutation) AppendedExitConditions() ([]interface{}, bool)
AppendedExitConditions returns the list of values that were appended to the "exit_conditions" field in this mutation.
func (*JourneyMutation) AppendedSteps ¶
func (m *JourneyMutation) AppendedSteps() ([]interface{}, bool)
AppendedSteps returns the list of values that were appended to the "steps" field in this mutation.
func (*JourneyMutation) AvgDurationMs ¶
func (m *JourneyMutation) AvgDurationMs() (r int64, exists bool)
AvgDurationMs returns the value of the "avg_duration_ms" field in the mutation.
func (*JourneyMutation) ClearDescription ¶
func (m *JourneyMutation) ClearDescription()
ClearDescription clears the value of the "description" field.
func (*JourneyMutation) ClearEdge ¶
func (m *JourneyMutation) 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 (*JourneyMutation) ClearEntryConditions ¶
func (m *JourneyMutation) ClearEntryConditions()
ClearEntryConditions clears the value of the "entry_conditions" field.
func (*JourneyMutation) ClearEvents ¶
func (m *JourneyMutation) ClearEvents()
ClearEvents clears the "events" edge to the Event entity.
func (*JourneyMutation) ClearExitConditions ¶
func (m *JourneyMutation) ClearExitConditions()
ClearExitConditions clears the value of the "exit_conditions" field.
func (*JourneyMutation) ClearField ¶
func (m *JourneyMutation) 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 (*JourneyMutation) ClearProject ¶
func (m *JourneyMutation) ClearProject()
ClearProject clears the "project" edge to the Project entity.
func (*JourneyMutation) ClearSessions ¶
func (m *JourneyMutation) ClearSessions()
ClearSessions clears the "sessions" edge to the Session entity.
func (*JourneyMutation) ClearSteps ¶
func (m *JourneyMutation) ClearSteps()
ClearSteps clears the value of the "steps" field.
func (*JourneyMutation) ClearedEdges ¶
func (m *JourneyMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*JourneyMutation) ClearedFields ¶
func (m *JourneyMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (JourneyMutation) Client ¶
func (m JourneyMutation) 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 (*JourneyMutation) ConversionRate ¶
func (m *JourneyMutation) ConversionRate() (r float64, exists bool)
ConversionRate returns the value of the "conversion_rate" field in the mutation.
func (*JourneyMutation) ConvertedSessions ¶
func (m *JourneyMutation) ConvertedSessions() (r int64, exists bool)
ConvertedSessions returns the value of the "converted_sessions" field in the mutation.
func (*JourneyMutation) CreatedAt ¶
func (m *JourneyMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*JourneyMutation) Description ¶
func (m *JourneyMutation) Description() (r string, exists bool)
Description returns the value of the "description" field in the mutation.
func (*JourneyMutation) DescriptionCleared ¶
func (m *JourneyMutation) DescriptionCleared() bool
DescriptionCleared returns if the "description" field was cleared in this mutation.
func (*JourneyMutation) EdgeCleared ¶
func (m *JourneyMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*JourneyMutation) EntryConditions ¶
func (m *JourneyMutation) EntryConditions() (r []interface{}, exists bool)
EntryConditions returns the value of the "entry_conditions" field in the mutation.
func (*JourneyMutation) EntryConditionsCleared ¶
func (m *JourneyMutation) EntryConditionsCleared() bool
EntryConditionsCleared returns if the "entry_conditions" field was cleared in this mutation.
func (*JourneyMutation) EventsCleared ¶
func (m *JourneyMutation) EventsCleared() bool
EventsCleared reports if the "events" edge to the Event entity was cleared.
func (*JourneyMutation) EventsIDs ¶
func (m *JourneyMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the "events" edge IDs in the mutation.
func (*JourneyMutation) ExitConditions ¶
func (m *JourneyMutation) ExitConditions() (r []interface{}, exists bool)
ExitConditions returns the value of the "exit_conditions" field in the mutation.
func (*JourneyMutation) ExitConditionsCleared ¶
func (m *JourneyMutation) ExitConditionsCleared() bool
ExitConditionsCleared returns if the "exit_conditions" field was cleared in this mutation.
func (*JourneyMutation) Field ¶
func (m *JourneyMutation) 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 (*JourneyMutation) FieldCleared ¶
func (m *JourneyMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*JourneyMutation) Fields ¶
func (m *JourneyMutation) 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 (*JourneyMutation) ID ¶
func (m *JourneyMutation) ID() (id uuid.UUID, 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 (*JourneyMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*JourneyMutation) IsActive ¶
func (m *JourneyMutation) IsActive() (r bool, exists bool)
IsActive returns the value of the "is_active" field in the mutation.
func (*JourneyMutation) Name ¶
func (m *JourneyMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*JourneyMutation) OldAvgDurationMs ¶
func (m *JourneyMutation) OldAvgDurationMs(ctx context.Context) (v int64, err error)
OldAvgDurationMs returns the old "avg_duration_ms" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldConversionRate ¶
func (m *JourneyMutation) OldConversionRate(ctx context.Context) (v float64, err error)
OldConversionRate returns the old "conversion_rate" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldConvertedSessions ¶
func (m *JourneyMutation) OldConvertedSessions(ctx context.Context) (v int64, err error)
OldConvertedSessions returns the old "converted_sessions" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldDescription ¶
func (m *JourneyMutation) OldDescription(ctx context.Context) (v string, err error)
OldDescription returns the old "description" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldEntryConditions ¶
func (m *JourneyMutation) OldEntryConditions(ctx context.Context) (v []interface{}, err error)
OldEntryConditions returns the old "entry_conditions" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldExitConditions ¶
func (m *JourneyMutation) OldExitConditions(ctx context.Context) (v []interface{}, err error)
OldExitConditions returns the old "exit_conditions" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*JourneyMutation) OldIsActive ¶
func (m *JourneyMutation) OldIsActive(ctx context.Context) (v bool, err error)
OldIsActive returns the old "is_active" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldName ¶
func (m *JourneyMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldOrgID ¶
OldOrgID returns the old "org_id" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldProjectID ¶
OldProjectID returns the old "project_id" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldSteps ¶
func (m *JourneyMutation) OldSteps(ctx context.Context) (v []interface{}, err error)
OldSteps returns the old "steps" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldTimeoutMinutes ¶
func (m *JourneyMutation) OldTimeoutMinutes(ctx context.Context) (v int, err error)
OldTimeoutMinutes returns the old "timeout_minutes" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldTotalSessions ¶
func (m *JourneyMutation) OldTotalSessions(ctx context.Context) (v int64, err error)
OldTotalSessions returns the old "total_sessions" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Journey entity. If the Journey object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*JourneyMutation) OrgID ¶
func (m *JourneyMutation) OrgID() (r uuid.UUID, exists bool)
OrgID returns the value of the "org_id" field in the mutation.
func (*JourneyMutation) ProjectCleared ¶
func (m *JourneyMutation) ProjectCleared() bool
ProjectCleared reports if the "project" edge to the Project entity was cleared.
func (*JourneyMutation) ProjectID ¶
func (m *JourneyMutation) ProjectID() (r uuid.UUID, exists bool)
ProjectID returns the value of the "project_id" field in the mutation.
func (*JourneyMutation) ProjectIDs ¶
func (m *JourneyMutation) ProjectIDs() (ids []uuid.UUID)
ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.
func (*JourneyMutation) RemoveEventIDs ¶
func (m *JourneyMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the "events" edge to the Event entity by IDs.
func (*JourneyMutation) RemoveSessionIDs ¶
func (m *JourneyMutation) RemoveSessionIDs(ids ...uuid.UUID)
RemoveSessionIDs removes the "sessions" edge to the Session entity by IDs.
func (*JourneyMutation) RemovedEdges ¶
func (m *JourneyMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*JourneyMutation) RemovedEventsIDs ¶
func (m *JourneyMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed IDs of the "events" edge to the Event entity.
func (*JourneyMutation) RemovedIDs ¶
func (m *JourneyMutation) 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 (*JourneyMutation) RemovedSessionsIDs ¶
func (m *JourneyMutation) RemovedSessionsIDs() (ids []uuid.UUID)
RemovedSessions returns the removed IDs of the "sessions" edge to the Session entity.
func (*JourneyMutation) ResetAvgDurationMs ¶
func (m *JourneyMutation) ResetAvgDurationMs()
ResetAvgDurationMs resets all changes to the "avg_duration_ms" field.
func (*JourneyMutation) ResetConversionRate ¶
func (m *JourneyMutation) ResetConversionRate()
ResetConversionRate resets all changes to the "conversion_rate" field.
func (*JourneyMutation) ResetConvertedSessions ¶
func (m *JourneyMutation) ResetConvertedSessions()
ResetConvertedSessions resets all changes to the "converted_sessions" field.
func (*JourneyMutation) ResetCreatedAt ¶
func (m *JourneyMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*JourneyMutation) ResetDescription ¶
func (m *JourneyMutation) ResetDescription()
ResetDescription resets all changes to the "description" field.
func (*JourneyMutation) ResetEdge ¶
func (m *JourneyMutation) 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 (*JourneyMutation) ResetEntryConditions ¶
func (m *JourneyMutation) ResetEntryConditions()
ResetEntryConditions resets all changes to the "entry_conditions" field.
func (*JourneyMutation) ResetEvents ¶
func (m *JourneyMutation) ResetEvents()
ResetEvents resets all changes to the "events" edge.
func (*JourneyMutation) ResetExitConditions ¶
func (m *JourneyMutation) ResetExitConditions()
ResetExitConditions resets all changes to the "exit_conditions" field.
func (*JourneyMutation) ResetField ¶
func (m *JourneyMutation) 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 (*JourneyMutation) ResetIsActive ¶
func (m *JourneyMutation) ResetIsActive()
ResetIsActive resets all changes to the "is_active" field.
func (*JourneyMutation) ResetName ¶
func (m *JourneyMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*JourneyMutation) ResetOrgID ¶
func (m *JourneyMutation) ResetOrgID()
ResetOrgID resets all changes to the "org_id" field.
func (*JourneyMutation) ResetProject ¶
func (m *JourneyMutation) ResetProject()
ResetProject resets all changes to the "project" edge.
func (*JourneyMutation) ResetProjectID ¶
func (m *JourneyMutation) ResetProjectID()
ResetProjectID resets all changes to the "project_id" field.
func (*JourneyMutation) ResetSessions ¶
func (m *JourneyMutation) ResetSessions()
ResetSessions resets all changes to the "sessions" edge.
func (*JourneyMutation) ResetSteps ¶
func (m *JourneyMutation) ResetSteps()
ResetSteps resets all changes to the "steps" field.
func (*JourneyMutation) ResetTimeoutMinutes ¶
func (m *JourneyMutation) ResetTimeoutMinutes()
ResetTimeoutMinutes resets all changes to the "timeout_minutes" field.
func (*JourneyMutation) ResetTotalSessions ¶
func (m *JourneyMutation) ResetTotalSessions()
ResetTotalSessions resets all changes to the "total_sessions" field.
func (*JourneyMutation) ResetUpdatedAt ¶
func (m *JourneyMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*JourneyMutation) SessionsCleared ¶
func (m *JourneyMutation) SessionsCleared() bool
SessionsCleared reports if the "sessions" edge to the Session entity was cleared.
func (*JourneyMutation) SessionsIDs ¶
func (m *JourneyMutation) SessionsIDs() (ids []uuid.UUID)
SessionsIDs returns the "sessions" edge IDs in the mutation.
func (*JourneyMutation) SetAvgDurationMs ¶
func (m *JourneyMutation) SetAvgDurationMs(i int64)
SetAvgDurationMs sets the "avg_duration_ms" field.
func (*JourneyMutation) SetConversionRate ¶
func (m *JourneyMutation) SetConversionRate(f float64)
SetConversionRate sets the "conversion_rate" field.
func (*JourneyMutation) SetConvertedSessions ¶
func (m *JourneyMutation) SetConvertedSessions(i int64)
SetConvertedSessions sets the "converted_sessions" field.
func (*JourneyMutation) SetCreatedAt ¶
func (m *JourneyMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*JourneyMutation) SetDescription ¶
func (m *JourneyMutation) SetDescription(s string)
SetDescription sets the "description" field.
func (*JourneyMutation) SetEntryConditions ¶
func (m *JourneyMutation) SetEntryConditions(i []interface{})
SetEntryConditions sets the "entry_conditions" field.
func (*JourneyMutation) SetExitConditions ¶
func (m *JourneyMutation) SetExitConditions(i []interface{})
SetExitConditions sets the "exit_conditions" field.
func (*JourneyMutation) SetField ¶
func (m *JourneyMutation) 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 (*JourneyMutation) SetID ¶
func (m *JourneyMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Journey entities.
func (*JourneyMutation) SetIsActive ¶
func (m *JourneyMutation) SetIsActive(b bool)
SetIsActive sets the "is_active" field.
func (*JourneyMutation) SetName ¶
func (m *JourneyMutation) SetName(s string)
SetName sets the "name" field.
func (*JourneyMutation) SetOp ¶
func (m *JourneyMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*JourneyMutation) SetOrgID ¶
func (m *JourneyMutation) SetOrgID(u uuid.UUID)
SetOrgID sets the "org_id" field.
func (*JourneyMutation) SetProjectID ¶
func (m *JourneyMutation) SetProjectID(u uuid.UUID)
SetProjectID sets the "project_id" field.
func (*JourneyMutation) SetSteps ¶
func (m *JourneyMutation) SetSteps(i []interface{})
SetSteps sets the "steps" field.
func (*JourneyMutation) SetTimeoutMinutes ¶
func (m *JourneyMutation) SetTimeoutMinutes(i int)
SetTimeoutMinutes sets the "timeout_minutes" field.
func (*JourneyMutation) SetTotalSessions ¶
func (m *JourneyMutation) SetTotalSessions(i int64)
SetTotalSessions sets the "total_sessions" field.
func (*JourneyMutation) SetUpdatedAt ¶
func (m *JourneyMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*JourneyMutation) Steps ¶
func (m *JourneyMutation) Steps() (r []interface{}, exists bool)
Steps returns the value of the "steps" field in the mutation.
func (*JourneyMutation) StepsCleared ¶
func (m *JourneyMutation) StepsCleared() bool
StepsCleared returns if the "steps" field was cleared in this mutation.
func (*JourneyMutation) TimeoutMinutes ¶
func (m *JourneyMutation) TimeoutMinutes() (r int, exists bool)
TimeoutMinutes returns the value of the "timeout_minutes" field in the mutation.
func (*JourneyMutation) TotalSessions ¶
func (m *JourneyMutation) TotalSessions() (r int64, exists bool)
TotalSessions returns the value of the "total_sessions" field in the mutation.
func (JourneyMutation) Tx ¶
func (m JourneyMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*JourneyMutation) Type ¶
func (m *JourneyMutation) Type() string
Type returns the node type of this mutation (Journey).
func (*JourneyMutation) UpdatedAt ¶
func (m *JourneyMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*JourneyMutation) Where ¶
func (m *JourneyMutation) Where(ps ...predicate.Journey)
Where appends a list predicates to the JourneyMutation builder.
func (*JourneyMutation) WhereP ¶
func (m *JourneyMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the JourneyMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type JourneyQuery ¶
type JourneyQuery struct {
// contains filtered or unexported fields
}
JourneyQuery is the builder for querying Journey entities.
func (*JourneyQuery) Aggregate ¶
func (_q *JourneyQuery) Aggregate(fns ...AggregateFunc) *JourneySelect
Aggregate returns a JourneySelect configured with the given aggregations.
func (*JourneyQuery) All ¶
func (_q *JourneyQuery) All(ctx context.Context) ([]*Journey, error)
All executes the query and returns a list of Journeys.
func (*JourneyQuery) AllX ¶
func (_q *JourneyQuery) AllX(ctx context.Context) []*Journey
AllX is like All, but panics if an error occurs.
func (*JourneyQuery) Clone ¶
func (_q *JourneyQuery) Clone() *JourneyQuery
Clone returns a duplicate of the JourneyQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*JourneyQuery) Count ¶
func (_q *JourneyQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*JourneyQuery) CountX ¶
func (_q *JourneyQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*JourneyQuery) Exist ¶
func (_q *JourneyQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*JourneyQuery) ExistX ¶
func (_q *JourneyQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*JourneyQuery) First ¶
func (_q *JourneyQuery) First(ctx context.Context) (*Journey, error)
First returns the first Journey entity from the query. Returns a *NotFoundError when no Journey was found.
func (*JourneyQuery) FirstID ¶
FirstID returns the first Journey ID from the query. Returns a *NotFoundError when no Journey ID was found.
func (*JourneyQuery) FirstIDX ¶
func (_q *JourneyQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*JourneyQuery) FirstX ¶
func (_q *JourneyQuery) FirstX(ctx context.Context) *Journey
FirstX is like First, but panics if an error occurs.
func (*JourneyQuery) GroupBy ¶
func (_q *JourneyQuery) GroupBy(field string, fields ...string) *JourneyGroupBy
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Journey.Query().
GroupBy(journey.FieldOrgID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*JourneyQuery) IDsX ¶
func (_q *JourneyQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*JourneyQuery) Limit ¶
func (_q *JourneyQuery) Limit(limit int) *JourneyQuery
Limit the number of records to be returned by this query.
func (*JourneyQuery) Offset ¶
func (_q *JourneyQuery) Offset(offset int) *JourneyQuery
Offset to start from.
func (*JourneyQuery) Only ¶
func (_q *JourneyQuery) Only(ctx context.Context) (*Journey, error)
Only returns a single Journey entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Journey entity is found. Returns a *NotFoundError when no Journey entities are found.
func (*JourneyQuery) OnlyID ¶
OnlyID is like Only, but returns the only Journey ID in the query. Returns a *NotSingularError when more than one Journey ID is found. Returns a *NotFoundError when no entities are found.
func (*JourneyQuery) OnlyIDX ¶
func (_q *JourneyQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*JourneyQuery) OnlyX ¶
func (_q *JourneyQuery) OnlyX(ctx context.Context) *Journey
OnlyX is like Only, but panics if an error occurs.
func (*JourneyQuery) Order ¶
func (_q *JourneyQuery) Order(o ...journey.OrderOption) *JourneyQuery
Order specifies how the records should be ordered.
func (*JourneyQuery) QueryEvents ¶
func (_q *JourneyQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the "events" edge.
func (*JourneyQuery) QueryProject ¶
func (_q *JourneyQuery) QueryProject() *ProjectQuery
QueryProject chains the current query on the "project" edge.
func (*JourneyQuery) QuerySessions ¶
func (_q *JourneyQuery) QuerySessions() *SessionQuery
QuerySessions chains the current query on the "sessions" edge.
func (*JourneyQuery) Select ¶
func (_q *JourneyQuery) Select(fields ...string) *JourneySelect
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
}
client.Journey.Query().
Select(journey.FieldOrgID).
Scan(ctx, &v)
func (*JourneyQuery) Unique ¶
func (_q *JourneyQuery) Unique(unique bool) *JourneyQuery
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 (*JourneyQuery) Where ¶
func (_q *JourneyQuery) Where(ps ...predicate.Journey) *JourneyQuery
Where adds a new predicate for the JourneyQuery builder.
func (*JourneyQuery) WithEvents ¶
func (_q *JourneyQuery) WithEvents(opts ...func(*EventQuery)) *JourneyQuery
WithEvents tells the query-builder to eager-load the nodes that are connected to the "events" edge. The optional arguments are used to configure the query builder of the edge.
func (*JourneyQuery) WithProject ¶
func (_q *JourneyQuery) WithProject(opts ...func(*ProjectQuery)) *JourneyQuery
WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.
func (*JourneyQuery) WithSessions ¶
func (_q *JourneyQuery) WithSessions(opts ...func(*SessionQuery)) *JourneyQuery
WithSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge. The optional arguments are used to configure the query builder of the edge.
type JourneySelect ¶
type JourneySelect struct {
*JourneyQuery
// contains filtered or unexported fields
}
JourneySelect is the builder for selecting fields of Journey entities.
func (*JourneySelect) Aggregate ¶
func (_s *JourneySelect) Aggregate(fns ...AggregateFunc) *JourneySelect
Aggregate adds the given aggregation functions to the selector query.
func (*JourneySelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*JourneySelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*JourneySelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*JourneySelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*JourneySelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*JourneySelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*JourneySelect) Scan ¶
func (_s *JourneySelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*JourneySelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type JourneyUpdate ¶
type JourneyUpdate struct {
// contains filtered or unexported fields
}
JourneyUpdate is the builder for updating Journey entities.
func (*JourneyUpdate) AddAvgDurationMs ¶
func (_u *JourneyUpdate) AddAvgDurationMs(v int64) *JourneyUpdate
AddAvgDurationMs adds value to the "avg_duration_ms" field.
func (*JourneyUpdate) AddConversionRate ¶
func (_u *JourneyUpdate) AddConversionRate(v float64) *JourneyUpdate
AddConversionRate adds value to the "conversion_rate" field.
func (*JourneyUpdate) AddConvertedSessions ¶
func (_u *JourneyUpdate) AddConvertedSessions(v int64) *JourneyUpdate
AddConvertedSessions adds value to the "converted_sessions" field.
func (*JourneyUpdate) AddEventIDs ¶
func (_u *JourneyUpdate) AddEventIDs(ids ...uuid.UUID) *JourneyUpdate
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*JourneyUpdate) AddEvents ¶
func (_u *JourneyUpdate) AddEvents(v ...*Event) *JourneyUpdate
AddEvents adds the "events" edges to the Event entity.
func (*JourneyUpdate) AddSessionIDs ¶
func (_u *JourneyUpdate) AddSessionIDs(ids ...uuid.UUID) *JourneyUpdate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*JourneyUpdate) AddSessions ¶
func (_u *JourneyUpdate) AddSessions(v ...*Session) *JourneyUpdate
AddSessions adds the "sessions" edges to the Session entity.
func (*JourneyUpdate) AddTimeoutMinutes ¶
func (_u *JourneyUpdate) AddTimeoutMinutes(v int) *JourneyUpdate
AddTimeoutMinutes adds value to the "timeout_minutes" field.
func (*JourneyUpdate) AddTotalSessions ¶
func (_u *JourneyUpdate) AddTotalSessions(v int64) *JourneyUpdate
AddTotalSessions adds value to the "total_sessions" field.
func (*JourneyUpdate) AppendEntryConditions ¶
func (_u *JourneyUpdate) AppendEntryConditions(v []interface{}) *JourneyUpdate
AppendEntryConditions appends value to the "entry_conditions" field.
func (*JourneyUpdate) AppendExitConditions ¶
func (_u *JourneyUpdate) AppendExitConditions(v []interface{}) *JourneyUpdate
AppendExitConditions appends value to the "exit_conditions" field.
func (*JourneyUpdate) AppendSteps ¶
func (_u *JourneyUpdate) AppendSteps(v []interface{}) *JourneyUpdate
AppendSteps appends value to the "steps" field.
func (*JourneyUpdate) ClearDescription ¶
func (_u *JourneyUpdate) ClearDescription() *JourneyUpdate
ClearDescription clears the value of the "description" field.
func (*JourneyUpdate) ClearEntryConditions ¶
func (_u *JourneyUpdate) ClearEntryConditions() *JourneyUpdate
ClearEntryConditions clears the value of the "entry_conditions" field.
func (*JourneyUpdate) ClearEvents ¶
func (_u *JourneyUpdate) ClearEvents() *JourneyUpdate
ClearEvents clears all "events" edges to the Event entity.
func (*JourneyUpdate) ClearExitConditions ¶
func (_u *JourneyUpdate) ClearExitConditions() *JourneyUpdate
ClearExitConditions clears the value of the "exit_conditions" field.
func (*JourneyUpdate) ClearProject ¶
func (_u *JourneyUpdate) ClearProject() *JourneyUpdate
ClearProject clears the "project" edge to the Project entity.
func (*JourneyUpdate) ClearSessions ¶
func (_u *JourneyUpdate) ClearSessions() *JourneyUpdate
ClearSessions clears all "sessions" edges to the Session entity.
func (*JourneyUpdate) ClearSteps ¶
func (_u *JourneyUpdate) ClearSteps() *JourneyUpdate
ClearSteps clears the value of the "steps" field.
func (*JourneyUpdate) Exec ¶
func (_u *JourneyUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*JourneyUpdate) ExecX ¶
func (_u *JourneyUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*JourneyUpdate) Mutation ¶
func (_u *JourneyUpdate) Mutation() *JourneyMutation
Mutation returns the JourneyMutation object of the builder.
func (*JourneyUpdate) RemoveEventIDs ¶
func (_u *JourneyUpdate) RemoveEventIDs(ids ...uuid.UUID) *JourneyUpdate
RemoveEventIDs removes the "events" edge to Event entities by IDs.
func (*JourneyUpdate) RemoveEvents ¶
func (_u *JourneyUpdate) RemoveEvents(v ...*Event) *JourneyUpdate
RemoveEvents removes "events" edges to Event entities.
func (*JourneyUpdate) RemoveSessionIDs ¶
func (_u *JourneyUpdate) RemoveSessionIDs(ids ...uuid.UUID) *JourneyUpdate
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*JourneyUpdate) RemoveSessions ¶
func (_u *JourneyUpdate) RemoveSessions(v ...*Session) *JourneyUpdate
RemoveSessions removes "sessions" edges to Session entities.
func (*JourneyUpdate) Save ¶
func (_u *JourneyUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*JourneyUpdate) SaveX ¶
func (_u *JourneyUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*JourneyUpdate) SetAvgDurationMs ¶
func (_u *JourneyUpdate) SetAvgDurationMs(v int64) *JourneyUpdate
SetAvgDurationMs sets the "avg_duration_ms" field.
func (*JourneyUpdate) SetConversionRate ¶
func (_u *JourneyUpdate) SetConversionRate(v float64) *JourneyUpdate
SetConversionRate sets the "conversion_rate" field.
func (*JourneyUpdate) SetConvertedSessions ¶
func (_u *JourneyUpdate) SetConvertedSessions(v int64) *JourneyUpdate
SetConvertedSessions sets the "converted_sessions" field.
func (*JourneyUpdate) SetDescription ¶
func (_u *JourneyUpdate) SetDescription(v string) *JourneyUpdate
SetDescription sets the "description" field.
func (*JourneyUpdate) SetEntryConditions ¶
func (_u *JourneyUpdate) SetEntryConditions(v []interface{}) *JourneyUpdate
SetEntryConditions sets the "entry_conditions" field.
func (*JourneyUpdate) SetExitConditions ¶
func (_u *JourneyUpdate) SetExitConditions(v []interface{}) *JourneyUpdate
SetExitConditions sets the "exit_conditions" field.
func (*JourneyUpdate) SetIsActive ¶
func (_u *JourneyUpdate) SetIsActive(v bool) *JourneyUpdate
SetIsActive sets the "is_active" field.
func (*JourneyUpdate) SetName ¶
func (_u *JourneyUpdate) SetName(v string) *JourneyUpdate
SetName sets the "name" field.
func (*JourneyUpdate) SetNillableAvgDurationMs ¶
func (_u *JourneyUpdate) SetNillableAvgDurationMs(v *int64) *JourneyUpdate
SetNillableAvgDurationMs sets the "avg_duration_ms" field if the given value is not nil.
func (*JourneyUpdate) SetNillableConversionRate ¶
func (_u *JourneyUpdate) SetNillableConversionRate(v *float64) *JourneyUpdate
SetNillableConversionRate sets the "conversion_rate" field if the given value is not nil.
func (*JourneyUpdate) SetNillableConvertedSessions ¶
func (_u *JourneyUpdate) SetNillableConvertedSessions(v *int64) *JourneyUpdate
SetNillableConvertedSessions sets the "converted_sessions" field if the given value is not nil.
func (*JourneyUpdate) SetNillableDescription ¶
func (_u *JourneyUpdate) SetNillableDescription(v *string) *JourneyUpdate
SetNillableDescription sets the "description" field if the given value is not nil.
func (*JourneyUpdate) SetNillableIsActive ¶
func (_u *JourneyUpdate) SetNillableIsActive(v *bool) *JourneyUpdate
SetNillableIsActive sets the "is_active" field if the given value is not nil.
func (*JourneyUpdate) SetNillableName ¶
func (_u *JourneyUpdate) SetNillableName(v *string) *JourneyUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*JourneyUpdate) SetNillableOrgID ¶
func (_u *JourneyUpdate) SetNillableOrgID(v *uuid.UUID) *JourneyUpdate
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*JourneyUpdate) SetNillableProjectID ¶
func (_u *JourneyUpdate) SetNillableProjectID(v *uuid.UUID) *JourneyUpdate
SetNillableProjectID sets the "project_id" field if the given value is not nil.
func (*JourneyUpdate) SetNillableTimeoutMinutes ¶
func (_u *JourneyUpdate) SetNillableTimeoutMinutes(v *int) *JourneyUpdate
SetNillableTimeoutMinutes sets the "timeout_minutes" field if the given value is not nil.
func (*JourneyUpdate) SetNillableTotalSessions ¶
func (_u *JourneyUpdate) SetNillableTotalSessions(v *int64) *JourneyUpdate
SetNillableTotalSessions sets the "total_sessions" field if the given value is not nil.
func (*JourneyUpdate) SetOrgID ¶
func (_u *JourneyUpdate) SetOrgID(v uuid.UUID) *JourneyUpdate
SetOrgID sets the "org_id" field.
func (*JourneyUpdate) SetProject ¶
func (_u *JourneyUpdate) SetProject(v *Project) *JourneyUpdate
SetProject sets the "project" edge to the Project entity.
func (*JourneyUpdate) SetProjectID ¶
func (_u *JourneyUpdate) SetProjectID(v uuid.UUID) *JourneyUpdate
SetProjectID sets the "project_id" field.
func (*JourneyUpdate) SetSteps ¶
func (_u *JourneyUpdate) SetSteps(v []interface{}) *JourneyUpdate
SetSteps sets the "steps" field.
func (*JourneyUpdate) SetTimeoutMinutes ¶
func (_u *JourneyUpdate) SetTimeoutMinutes(v int) *JourneyUpdate
SetTimeoutMinutes sets the "timeout_minutes" field.
func (*JourneyUpdate) SetTotalSessions ¶
func (_u *JourneyUpdate) SetTotalSessions(v int64) *JourneyUpdate
SetTotalSessions sets the "total_sessions" field.
func (*JourneyUpdate) SetUpdatedAt ¶
func (_u *JourneyUpdate) SetUpdatedAt(v time.Time) *JourneyUpdate
SetUpdatedAt sets the "updated_at" field.
func (*JourneyUpdate) Where ¶
func (_u *JourneyUpdate) Where(ps ...predicate.Journey) *JourneyUpdate
Where appends a list predicates to the JourneyUpdate builder.
type JourneyUpdateOne ¶
type JourneyUpdateOne struct {
// contains filtered or unexported fields
}
JourneyUpdateOne is the builder for updating a single Journey entity.
func (*JourneyUpdateOne) AddAvgDurationMs ¶
func (_u *JourneyUpdateOne) AddAvgDurationMs(v int64) *JourneyUpdateOne
AddAvgDurationMs adds value to the "avg_duration_ms" field.
func (*JourneyUpdateOne) AddConversionRate ¶
func (_u *JourneyUpdateOne) AddConversionRate(v float64) *JourneyUpdateOne
AddConversionRate adds value to the "conversion_rate" field.
func (*JourneyUpdateOne) AddConvertedSessions ¶
func (_u *JourneyUpdateOne) AddConvertedSessions(v int64) *JourneyUpdateOne
AddConvertedSessions adds value to the "converted_sessions" field.
func (*JourneyUpdateOne) AddEventIDs ¶
func (_u *JourneyUpdateOne) AddEventIDs(ids ...uuid.UUID) *JourneyUpdateOne
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*JourneyUpdateOne) AddEvents ¶
func (_u *JourneyUpdateOne) AddEvents(v ...*Event) *JourneyUpdateOne
AddEvents adds the "events" edges to the Event entity.
func (*JourneyUpdateOne) AddSessionIDs ¶
func (_u *JourneyUpdateOne) AddSessionIDs(ids ...uuid.UUID) *JourneyUpdateOne
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*JourneyUpdateOne) AddSessions ¶
func (_u *JourneyUpdateOne) AddSessions(v ...*Session) *JourneyUpdateOne
AddSessions adds the "sessions" edges to the Session entity.
func (*JourneyUpdateOne) AddTimeoutMinutes ¶
func (_u *JourneyUpdateOne) AddTimeoutMinutes(v int) *JourneyUpdateOne
AddTimeoutMinutes adds value to the "timeout_minutes" field.
func (*JourneyUpdateOne) AddTotalSessions ¶
func (_u *JourneyUpdateOne) AddTotalSessions(v int64) *JourneyUpdateOne
AddTotalSessions adds value to the "total_sessions" field.
func (*JourneyUpdateOne) AppendEntryConditions ¶
func (_u *JourneyUpdateOne) AppendEntryConditions(v []interface{}) *JourneyUpdateOne
AppendEntryConditions appends value to the "entry_conditions" field.
func (*JourneyUpdateOne) AppendExitConditions ¶
func (_u *JourneyUpdateOne) AppendExitConditions(v []interface{}) *JourneyUpdateOne
AppendExitConditions appends value to the "exit_conditions" field.
func (*JourneyUpdateOne) AppendSteps ¶
func (_u *JourneyUpdateOne) AppendSteps(v []interface{}) *JourneyUpdateOne
AppendSteps appends value to the "steps" field.
func (*JourneyUpdateOne) ClearDescription ¶
func (_u *JourneyUpdateOne) ClearDescription() *JourneyUpdateOne
ClearDescription clears the value of the "description" field.
func (*JourneyUpdateOne) ClearEntryConditions ¶
func (_u *JourneyUpdateOne) ClearEntryConditions() *JourneyUpdateOne
ClearEntryConditions clears the value of the "entry_conditions" field.
func (*JourneyUpdateOne) ClearEvents ¶
func (_u *JourneyUpdateOne) ClearEvents() *JourneyUpdateOne
ClearEvents clears all "events" edges to the Event entity.
func (*JourneyUpdateOne) ClearExitConditions ¶
func (_u *JourneyUpdateOne) ClearExitConditions() *JourneyUpdateOne
ClearExitConditions clears the value of the "exit_conditions" field.
func (*JourneyUpdateOne) ClearProject ¶
func (_u *JourneyUpdateOne) ClearProject() *JourneyUpdateOne
ClearProject clears the "project" edge to the Project entity.
func (*JourneyUpdateOne) ClearSessions ¶
func (_u *JourneyUpdateOne) ClearSessions() *JourneyUpdateOne
ClearSessions clears all "sessions" edges to the Session entity.
func (*JourneyUpdateOne) ClearSteps ¶
func (_u *JourneyUpdateOne) ClearSteps() *JourneyUpdateOne
ClearSteps clears the value of the "steps" field.
func (*JourneyUpdateOne) Exec ¶
func (_u *JourneyUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*JourneyUpdateOne) ExecX ¶
func (_u *JourneyUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*JourneyUpdateOne) Mutation ¶
func (_u *JourneyUpdateOne) Mutation() *JourneyMutation
Mutation returns the JourneyMutation object of the builder.
func (*JourneyUpdateOne) RemoveEventIDs ¶
func (_u *JourneyUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *JourneyUpdateOne
RemoveEventIDs removes the "events" edge to Event entities by IDs.
func (*JourneyUpdateOne) RemoveEvents ¶
func (_u *JourneyUpdateOne) RemoveEvents(v ...*Event) *JourneyUpdateOne
RemoveEvents removes "events" edges to Event entities.
func (*JourneyUpdateOne) RemoveSessionIDs ¶
func (_u *JourneyUpdateOne) RemoveSessionIDs(ids ...uuid.UUID) *JourneyUpdateOne
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*JourneyUpdateOne) RemoveSessions ¶
func (_u *JourneyUpdateOne) RemoveSessions(v ...*Session) *JourneyUpdateOne
RemoveSessions removes "sessions" edges to Session entities.
func (*JourneyUpdateOne) Save ¶
func (_u *JourneyUpdateOne) Save(ctx context.Context) (*Journey, error)
Save executes the query and returns the updated Journey entity.
func (*JourneyUpdateOne) SaveX ¶
func (_u *JourneyUpdateOne) SaveX(ctx context.Context) *Journey
SaveX is like Save, but panics if an error occurs.
func (*JourneyUpdateOne) Select ¶
func (_u *JourneyUpdateOne) Select(field string, fields ...string) *JourneyUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*JourneyUpdateOne) SetAvgDurationMs ¶
func (_u *JourneyUpdateOne) SetAvgDurationMs(v int64) *JourneyUpdateOne
SetAvgDurationMs sets the "avg_duration_ms" field.
func (*JourneyUpdateOne) SetConversionRate ¶
func (_u *JourneyUpdateOne) SetConversionRate(v float64) *JourneyUpdateOne
SetConversionRate sets the "conversion_rate" field.
func (*JourneyUpdateOne) SetConvertedSessions ¶
func (_u *JourneyUpdateOne) SetConvertedSessions(v int64) *JourneyUpdateOne
SetConvertedSessions sets the "converted_sessions" field.
func (*JourneyUpdateOne) SetDescription ¶
func (_u *JourneyUpdateOne) SetDescription(v string) *JourneyUpdateOne
SetDescription sets the "description" field.
func (*JourneyUpdateOne) SetEntryConditions ¶
func (_u *JourneyUpdateOne) SetEntryConditions(v []interface{}) *JourneyUpdateOne
SetEntryConditions sets the "entry_conditions" field.
func (*JourneyUpdateOne) SetExitConditions ¶
func (_u *JourneyUpdateOne) SetExitConditions(v []interface{}) *JourneyUpdateOne
SetExitConditions sets the "exit_conditions" field.
func (*JourneyUpdateOne) SetIsActive ¶
func (_u *JourneyUpdateOne) SetIsActive(v bool) *JourneyUpdateOne
SetIsActive sets the "is_active" field.
func (*JourneyUpdateOne) SetName ¶
func (_u *JourneyUpdateOne) SetName(v string) *JourneyUpdateOne
SetName sets the "name" field.
func (*JourneyUpdateOne) SetNillableAvgDurationMs ¶
func (_u *JourneyUpdateOne) SetNillableAvgDurationMs(v *int64) *JourneyUpdateOne
SetNillableAvgDurationMs sets the "avg_duration_ms" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableConversionRate ¶
func (_u *JourneyUpdateOne) SetNillableConversionRate(v *float64) *JourneyUpdateOne
SetNillableConversionRate sets the "conversion_rate" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableConvertedSessions ¶
func (_u *JourneyUpdateOne) SetNillableConvertedSessions(v *int64) *JourneyUpdateOne
SetNillableConvertedSessions sets the "converted_sessions" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableDescription ¶
func (_u *JourneyUpdateOne) SetNillableDescription(v *string) *JourneyUpdateOne
SetNillableDescription sets the "description" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableIsActive ¶
func (_u *JourneyUpdateOne) SetNillableIsActive(v *bool) *JourneyUpdateOne
SetNillableIsActive sets the "is_active" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableName ¶
func (_u *JourneyUpdateOne) SetNillableName(v *string) *JourneyUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableOrgID ¶
func (_u *JourneyUpdateOne) SetNillableOrgID(v *uuid.UUID) *JourneyUpdateOne
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableProjectID ¶
func (_u *JourneyUpdateOne) SetNillableProjectID(v *uuid.UUID) *JourneyUpdateOne
SetNillableProjectID sets the "project_id" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableTimeoutMinutes ¶
func (_u *JourneyUpdateOne) SetNillableTimeoutMinutes(v *int) *JourneyUpdateOne
SetNillableTimeoutMinutes sets the "timeout_minutes" field if the given value is not nil.
func (*JourneyUpdateOne) SetNillableTotalSessions ¶
func (_u *JourneyUpdateOne) SetNillableTotalSessions(v *int64) *JourneyUpdateOne
SetNillableTotalSessions sets the "total_sessions" field if the given value is not nil.
func (*JourneyUpdateOne) SetOrgID ¶
func (_u *JourneyUpdateOne) SetOrgID(v uuid.UUID) *JourneyUpdateOne
SetOrgID sets the "org_id" field.
func (*JourneyUpdateOne) SetProject ¶
func (_u *JourneyUpdateOne) SetProject(v *Project) *JourneyUpdateOne
SetProject sets the "project" edge to the Project entity.
func (*JourneyUpdateOne) SetProjectID ¶
func (_u *JourneyUpdateOne) SetProjectID(v uuid.UUID) *JourneyUpdateOne
SetProjectID sets the "project_id" field.
func (*JourneyUpdateOne) SetSteps ¶
func (_u *JourneyUpdateOne) SetSteps(v []interface{}) *JourneyUpdateOne
SetSteps sets the "steps" field.
func (*JourneyUpdateOne) SetTimeoutMinutes ¶
func (_u *JourneyUpdateOne) SetTimeoutMinutes(v int) *JourneyUpdateOne
SetTimeoutMinutes sets the "timeout_minutes" field.
func (*JourneyUpdateOne) SetTotalSessions ¶
func (_u *JourneyUpdateOne) SetTotalSessions(v int64) *JourneyUpdateOne
SetTotalSessions sets the "total_sessions" field.
func (*JourneyUpdateOne) SetUpdatedAt ¶
func (_u *JourneyUpdateOne) SetUpdatedAt(v time.Time) *JourneyUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*JourneyUpdateOne) Where ¶
func (_u *JourneyUpdateOne) Where(ps ...predicate.Journey) *JourneyUpdateOne
Where appends a list predicates to the JourneyUpdate builder.
type MutateFunc ¶
type MutateFunc = ent.MutateFunc
ent aliases to avoid import conflicts in user's code.
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
NotFoundError returns when trying to fetch a specific entity and it was not found in the database.
func (*NotFoundError) Error ¶
func (e *NotFoundError) Error() string
Error implements the error interface.
type NotLoadedError ¶
type NotLoadedError struct {
// contains filtered or unexported fields
}
NotLoadedError returns when trying to get a node that was not loaded by the query.
func (*NotLoadedError) Error ¶
func (e *NotLoadedError) Error() string
Error implements the error interface.
type NotSingularError ¶
type NotSingularError struct {
// contains filtered or unexported fields
}
NotSingularError returns when trying to fetch a singular entity and more then one was found in the database.
func (*NotSingularError) Error ¶
func (e *NotSingularError) Error() string
Error implements the error interface.
type OrderFunc ¶
OrderFunc applies an ordering on the sql selector. Deprecated: Use Asc/Desc functions or the package builders instead.
type Organization ¶
type Organization struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Slug holds the value of the "slug" field.
Slug string `json:"slug,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the OrganizationQuery when eager-loading is set.
Edges OrganizationEdges `json:"edges"`
// contains filtered or unexported fields
}
Organization is the model entity for the Organization schema.
func (*Organization) QueryProjects ¶
func (_m *Organization) QueryProjects() *ProjectQuery
QueryProjects queries the "projects" edge of the Organization entity.
func (*Organization) String ¶
func (_m *Organization) String() string
String implements the fmt.Stringer.
func (*Organization) Unwrap ¶
func (_m *Organization) Unwrap() *Organization
Unwrap unwraps the Organization 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 (*Organization) Update ¶
func (_m *Organization) Update() *OrganizationUpdateOne
Update returns a builder for updating this Organization. Note that you need to call Organization.Unwrap() before calling this method if this Organization was returned from a transaction, and the transaction was committed or rolled back.
type OrganizationClient ¶
type OrganizationClient struct {
// contains filtered or unexported fields
}
OrganizationClient is a client for the Organization schema.
func NewOrganizationClient ¶
func NewOrganizationClient(c config) *OrganizationClient
NewOrganizationClient returns a client for the Organization from the given config.
func (*OrganizationClient) Create ¶
func (c *OrganizationClient) Create() *OrganizationCreate
Create returns a builder for creating a Organization entity.
func (*OrganizationClient) CreateBulk ¶
func (c *OrganizationClient) CreateBulk(builders ...*OrganizationCreate) *OrganizationCreateBulk
CreateBulk returns a builder for creating a bulk of Organization entities.
func (*OrganizationClient) Delete ¶
func (c *OrganizationClient) Delete() *OrganizationDelete
Delete returns a delete builder for Organization.
func (*OrganizationClient) DeleteOne ¶
func (c *OrganizationClient) DeleteOne(_m *Organization) *OrganizationDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*OrganizationClient) DeleteOneID ¶
func (c *OrganizationClient) DeleteOneID(id uuid.UUID) *OrganizationDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*OrganizationClient) Get ¶
func (c *OrganizationClient) Get(ctx context.Context, id uuid.UUID) (*Organization, error)
Get returns a Organization entity by its id.
func (*OrganizationClient) GetX ¶
func (c *OrganizationClient) GetX(ctx context.Context, id uuid.UUID) *Organization
GetX is like Get, but panics if an error occurs.
func (*OrganizationClient) Hooks ¶
func (c *OrganizationClient) Hooks() []Hook
Hooks returns the client hooks.
func (*OrganizationClient) Intercept ¶
func (c *OrganizationClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `organization.Intercept(f(g(h())))`.
func (*OrganizationClient) Interceptors ¶
func (c *OrganizationClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*OrganizationClient) MapCreateBulk ¶
func (c *OrganizationClient) MapCreateBulk(slice any, setFunc func(*OrganizationCreate, int)) *OrganizationCreateBulk
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 (*OrganizationClient) Query ¶
func (c *OrganizationClient) Query() *OrganizationQuery
Query returns a query builder for Organization.
func (*OrganizationClient) QueryProjects ¶
func (c *OrganizationClient) QueryProjects(_m *Organization) *ProjectQuery
QueryProjects queries the projects edge of a Organization.
func (*OrganizationClient) Update ¶
func (c *OrganizationClient) Update() *OrganizationUpdate
Update returns an update builder for Organization.
func (*OrganizationClient) UpdateOne ¶
func (c *OrganizationClient) UpdateOne(_m *Organization) *OrganizationUpdateOne
UpdateOne returns an update builder for the given entity.
func (*OrganizationClient) UpdateOneID ¶
func (c *OrganizationClient) UpdateOneID(id uuid.UUID) *OrganizationUpdateOne
UpdateOneID returns an update builder for the given id.
func (*OrganizationClient) Use ¶
func (c *OrganizationClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `organization.Hooks(f(g(h())))`.
type OrganizationCreate ¶
type OrganizationCreate struct {
// contains filtered or unexported fields
}
OrganizationCreate is the builder for creating a Organization entity.
func (*OrganizationCreate) AddProjectIDs ¶
func (_c *OrganizationCreate) AddProjectIDs(ids ...uuid.UUID) *OrganizationCreate
AddProjectIDs adds the "projects" edge to the Project entity by IDs.
func (*OrganizationCreate) AddProjects ¶
func (_c *OrganizationCreate) AddProjects(v ...*Project) *OrganizationCreate
AddProjects adds the "projects" edges to the Project entity.
func (*OrganizationCreate) Exec ¶
func (_c *OrganizationCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationCreate) ExecX ¶
func (_c *OrganizationCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationCreate) Mutation ¶
func (_c *OrganizationCreate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationCreate) Save ¶
func (_c *OrganizationCreate) Save(ctx context.Context) (*Organization, error)
Save creates the Organization in the database.
func (*OrganizationCreate) SaveX ¶
func (_c *OrganizationCreate) SaveX(ctx context.Context) *Organization
SaveX calls Save and panics if Save returns an error.
func (*OrganizationCreate) SetCreatedAt ¶
func (_c *OrganizationCreate) SetCreatedAt(v time.Time) *OrganizationCreate
SetCreatedAt sets the "created_at" field.
func (*OrganizationCreate) SetID ¶
func (_c *OrganizationCreate) SetID(v uuid.UUID) *OrganizationCreate
SetID sets the "id" field.
func (*OrganizationCreate) SetName ¶
func (_c *OrganizationCreate) SetName(v string) *OrganizationCreate
SetName sets the "name" field.
func (*OrganizationCreate) SetNillableCreatedAt ¶
func (_c *OrganizationCreate) SetNillableCreatedAt(v *time.Time) *OrganizationCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*OrganizationCreate) SetNillableID ¶
func (_c *OrganizationCreate) SetNillableID(v *uuid.UUID) *OrganizationCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*OrganizationCreate) SetNillableUpdatedAt ¶
func (_c *OrganizationCreate) SetNillableUpdatedAt(v *time.Time) *OrganizationCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*OrganizationCreate) SetSlug ¶
func (_c *OrganizationCreate) SetSlug(v string) *OrganizationCreate
SetSlug sets the "slug" field.
func (*OrganizationCreate) SetUpdatedAt ¶
func (_c *OrganizationCreate) SetUpdatedAt(v time.Time) *OrganizationCreate
SetUpdatedAt sets the "updated_at" field.
type OrganizationCreateBulk ¶
type OrganizationCreateBulk struct {
// contains filtered or unexported fields
}
OrganizationCreateBulk is the builder for creating many Organization entities in bulk.
func (*OrganizationCreateBulk) Exec ¶
func (_c *OrganizationCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationCreateBulk) ExecX ¶
func (_c *OrganizationCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationCreateBulk) Save ¶
func (_c *OrganizationCreateBulk) Save(ctx context.Context) ([]*Organization, error)
Save creates the Organization entities in the database.
func (*OrganizationCreateBulk) SaveX ¶
func (_c *OrganizationCreateBulk) SaveX(ctx context.Context) []*Organization
SaveX is like Save, but panics if an error occurs.
type OrganizationDelete ¶
type OrganizationDelete struct {
// contains filtered or unexported fields
}
OrganizationDelete is the builder for deleting a Organization entity.
func (*OrganizationDelete) Exec ¶
func (_d *OrganizationDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*OrganizationDelete) ExecX ¶
func (_d *OrganizationDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationDelete) Where ¶
func (_d *OrganizationDelete) Where(ps ...predicate.Organization) *OrganizationDelete
Where appends a list predicates to the OrganizationDelete builder.
type OrganizationDeleteOne ¶
type OrganizationDeleteOne struct {
// contains filtered or unexported fields
}
OrganizationDeleteOne is the builder for deleting a single Organization entity.
func (*OrganizationDeleteOne) Exec ¶
func (_d *OrganizationDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*OrganizationDeleteOne) ExecX ¶
func (_d *OrganizationDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationDeleteOne) Where ¶
func (_d *OrganizationDeleteOne) Where(ps ...predicate.Organization) *OrganizationDeleteOne
Where appends a list predicates to the OrganizationDelete builder.
type OrganizationEdges ¶
type OrganizationEdges struct {
// Projects holds the value of the projects edge.
Projects []*Project `json:"projects,omitempty"`
// contains filtered or unexported fields
}
OrganizationEdges holds the relations/edges for other nodes in the graph.
func (OrganizationEdges) ProjectsOrErr ¶
func (e OrganizationEdges) ProjectsOrErr() ([]*Project, error)
ProjectsOrErr returns the Projects value or an error if the edge was not loaded in eager-loading.
type OrganizationGroupBy ¶
type OrganizationGroupBy struct {
// contains filtered or unexported fields
}
OrganizationGroupBy is the group-by builder for Organization entities.
func (*OrganizationGroupBy) Aggregate ¶
func (_g *OrganizationGroupBy) Aggregate(fns ...AggregateFunc) *OrganizationGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*OrganizationGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationGroupBy) Scan ¶
func (_g *OrganizationGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationMutation ¶
type OrganizationMutation struct {
// contains filtered or unexported fields
}
OrganizationMutation represents an operation that mutates the Organization nodes in the graph.
func (*OrganizationMutation) AddField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) AddProjectIDs ¶
func (m *OrganizationMutation) AddProjectIDs(ids ...uuid.UUID)
AddProjectIDs adds the "projects" edge to the Project entity by ids.
func (*OrganizationMutation) AddedEdges ¶
func (m *OrganizationMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*OrganizationMutation) AddedField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) AddedFields ¶
func (m *OrganizationMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*OrganizationMutation) AddedIDs ¶
func (m *OrganizationMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*OrganizationMutation) ClearEdge ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ClearProjects ¶
func (m *OrganizationMutation) ClearProjects()
ClearProjects clears the "projects" edge to the Project entity.
func (*OrganizationMutation) ClearedEdges ¶
func (m *OrganizationMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*OrganizationMutation) ClearedFields ¶
func (m *OrganizationMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (OrganizationMutation) Client ¶
func (m OrganizationMutation) 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 (*OrganizationMutation) CreatedAt ¶
func (m *OrganizationMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*OrganizationMutation) EdgeCleared ¶
func (m *OrganizationMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*OrganizationMutation) Field ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) FieldCleared ¶
func (m *OrganizationMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*OrganizationMutation) Fields ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ID ¶
func (m *OrganizationMutation) ID() (id uuid.UUID, 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 (*OrganizationMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*OrganizationMutation) Name ¶
func (m *OrganizationMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*OrganizationMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OrganizationMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*OrganizationMutation) OldName ¶
func (m *OrganizationMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OrganizationMutation) OldSlug ¶
func (m *OrganizationMutation) OldSlug(ctx context.Context) (v string, err error)
OldSlug returns the old "slug" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OrganizationMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Organization entity. If the Organization object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*OrganizationMutation) Op ¶
func (m *OrganizationMutation) Op() Op
Op returns the operation name.
func (*OrganizationMutation) ProjectsCleared ¶
func (m *OrganizationMutation) ProjectsCleared() bool
ProjectsCleared reports if the "projects" edge to the Project entity was cleared.
func (*OrganizationMutation) ProjectsIDs ¶
func (m *OrganizationMutation) ProjectsIDs() (ids []uuid.UUID)
ProjectsIDs returns the "projects" edge IDs in the mutation.
func (*OrganizationMutation) RemoveProjectIDs ¶
func (m *OrganizationMutation) RemoveProjectIDs(ids ...uuid.UUID)
RemoveProjectIDs removes the "projects" edge to the Project entity by IDs.
func (*OrganizationMutation) RemovedEdges ¶
func (m *OrganizationMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*OrganizationMutation) RemovedIDs ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) RemovedProjectsIDs ¶
func (m *OrganizationMutation) RemovedProjectsIDs() (ids []uuid.UUID)
RemovedProjects returns the removed IDs of the "projects" edge to the Project entity.
func (*OrganizationMutation) ResetCreatedAt ¶
func (m *OrganizationMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*OrganizationMutation) ResetEdge ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) ResetName ¶
func (m *OrganizationMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*OrganizationMutation) ResetProjects ¶
func (m *OrganizationMutation) ResetProjects()
ResetProjects resets all changes to the "projects" edge.
func (*OrganizationMutation) ResetSlug ¶
func (m *OrganizationMutation) ResetSlug()
ResetSlug resets all changes to the "slug" field.
func (*OrganizationMutation) ResetUpdatedAt ¶
func (m *OrganizationMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*OrganizationMutation) SetCreatedAt ¶
func (m *OrganizationMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*OrganizationMutation) SetField ¶
func (m *OrganizationMutation) 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 (*OrganizationMutation) SetID ¶
func (m *OrganizationMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Organization entities.
func (*OrganizationMutation) SetName ¶
func (m *OrganizationMutation) SetName(s string)
SetName sets the "name" field.
func (*OrganizationMutation) SetOp ¶
func (m *OrganizationMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*OrganizationMutation) SetSlug ¶
func (m *OrganizationMutation) SetSlug(s string)
SetSlug sets the "slug" field.
func (*OrganizationMutation) SetUpdatedAt ¶
func (m *OrganizationMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationMutation) Slug ¶
func (m *OrganizationMutation) Slug() (r string, exists bool)
Slug returns the value of the "slug" field in the mutation.
func (OrganizationMutation) Tx ¶
func (m OrganizationMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*OrganizationMutation) Type ¶
func (m *OrganizationMutation) Type() string
Type returns the node type of this mutation (Organization).
func (*OrganizationMutation) UpdatedAt ¶
func (m *OrganizationMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*OrganizationMutation) Where ¶
func (m *OrganizationMutation) Where(ps ...predicate.Organization)
Where appends a list predicates to the OrganizationMutation builder.
func (*OrganizationMutation) WhereP ¶
func (m *OrganizationMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the OrganizationMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type OrganizationQuery ¶
type OrganizationQuery struct {
// contains filtered or unexported fields
}
OrganizationQuery is the builder for querying Organization entities.
func (*OrganizationQuery) Aggregate ¶
func (_q *OrganizationQuery) Aggregate(fns ...AggregateFunc) *OrganizationSelect
Aggregate returns a OrganizationSelect configured with the given aggregations.
func (*OrganizationQuery) All ¶
func (_q *OrganizationQuery) All(ctx context.Context) ([]*Organization, error)
All executes the query and returns a list of Organizations.
func (*OrganizationQuery) AllX ¶
func (_q *OrganizationQuery) AllX(ctx context.Context) []*Organization
AllX is like All, but panics if an error occurs.
func (*OrganizationQuery) Clone ¶
func (_q *OrganizationQuery) Clone() *OrganizationQuery
Clone returns a duplicate of the OrganizationQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*OrganizationQuery) Count ¶
func (_q *OrganizationQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*OrganizationQuery) CountX ¶
func (_q *OrganizationQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*OrganizationQuery) Exist ¶
func (_q *OrganizationQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*OrganizationQuery) ExistX ¶
func (_q *OrganizationQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*OrganizationQuery) First ¶
func (_q *OrganizationQuery) First(ctx context.Context) (*Organization, error)
First returns the first Organization entity from the query. Returns a *NotFoundError when no Organization was found.
func (*OrganizationQuery) FirstID ¶
FirstID returns the first Organization ID from the query. Returns a *NotFoundError when no Organization ID was found.
func (*OrganizationQuery) FirstIDX ¶
func (_q *OrganizationQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*OrganizationQuery) FirstX ¶
func (_q *OrganizationQuery) FirstX(ctx context.Context) *Organization
FirstX is like First, but panics if an error occurs.
func (*OrganizationQuery) GroupBy ¶
func (_q *OrganizationQuery) GroupBy(field string, fields ...string) *OrganizationGroupBy
GroupBy is used to group vertices by one or more fields/columns. It is often used with aggregate functions, like: count, max, mean, min, sum.
Example:
var v []struct {
Name string `json:"name,omitempty"`
Count int `json:"count,omitempty"`
}
client.Organization.Query().
GroupBy(organization.FieldName).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*OrganizationQuery) IDsX ¶
func (_q *OrganizationQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*OrganizationQuery) Limit ¶
func (_q *OrganizationQuery) Limit(limit int) *OrganizationQuery
Limit the number of records to be returned by this query.
func (*OrganizationQuery) Offset ¶
func (_q *OrganizationQuery) Offset(offset int) *OrganizationQuery
Offset to start from.
func (*OrganizationQuery) Only ¶
func (_q *OrganizationQuery) Only(ctx context.Context) (*Organization, error)
Only returns a single Organization entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Organization entity is found. Returns a *NotFoundError when no Organization entities are found.
func (*OrganizationQuery) OnlyID ¶
OnlyID is like Only, but returns the only Organization ID in the query. Returns a *NotSingularError when more than one Organization ID is found. Returns a *NotFoundError when no entities are found.
func (*OrganizationQuery) OnlyIDX ¶
func (_q *OrganizationQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*OrganizationQuery) OnlyX ¶
func (_q *OrganizationQuery) OnlyX(ctx context.Context) *Organization
OnlyX is like Only, but panics if an error occurs.
func (*OrganizationQuery) Order ¶
func (_q *OrganizationQuery) Order(o ...organization.OrderOption) *OrganizationQuery
Order specifies how the records should be ordered.
func (*OrganizationQuery) QueryProjects ¶
func (_q *OrganizationQuery) QueryProjects() *ProjectQuery
QueryProjects chains the current query on the "projects" edge.
func (*OrganizationQuery) Select ¶
func (_q *OrganizationQuery) Select(fields ...string) *OrganizationSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity.
Example:
var v []struct {
Name string `json:"name,omitempty"`
}
client.Organization.Query().
Select(organization.FieldName).
Scan(ctx, &v)
func (*OrganizationQuery) Unique ¶
func (_q *OrganizationQuery) Unique(unique bool) *OrganizationQuery
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 (*OrganizationQuery) Where ¶
func (_q *OrganizationQuery) Where(ps ...predicate.Organization) *OrganizationQuery
Where adds a new predicate for the OrganizationQuery builder.
func (*OrganizationQuery) WithProjects ¶
func (_q *OrganizationQuery) WithProjects(opts ...func(*ProjectQuery)) *OrganizationQuery
WithProjects tells the query-builder to eager-load the nodes that are connected to the "projects" edge. The optional arguments are used to configure the query builder of the edge.
type OrganizationSelect ¶
type OrganizationSelect struct {
*OrganizationQuery
// contains filtered or unexported fields
}
OrganizationSelect is the builder for selecting fields of Organization entities.
func (*OrganizationSelect) Aggregate ¶
func (_s *OrganizationSelect) Aggregate(fns ...AggregateFunc) *OrganizationSelect
Aggregate adds the given aggregation functions to the selector query.
func (*OrganizationSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*OrganizationSelect) Scan ¶
func (_s *OrganizationSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*OrganizationSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type OrganizationUpdate ¶
type OrganizationUpdate struct {
// contains filtered or unexported fields
}
OrganizationUpdate is the builder for updating Organization entities.
func (*OrganizationUpdate) AddProjectIDs ¶
func (_u *OrganizationUpdate) AddProjectIDs(ids ...uuid.UUID) *OrganizationUpdate
AddProjectIDs adds the "projects" edge to the Project entity by IDs.
func (*OrganizationUpdate) AddProjects ¶
func (_u *OrganizationUpdate) AddProjects(v ...*Project) *OrganizationUpdate
AddProjects adds the "projects" edges to the Project entity.
func (*OrganizationUpdate) ClearProjects ¶
func (_u *OrganizationUpdate) ClearProjects() *OrganizationUpdate
ClearProjects clears all "projects" edges to the Project entity.
func (*OrganizationUpdate) Exec ¶
func (_u *OrganizationUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*OrganizationUpdate) ExecX ¶
func (_u *OrganizationUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationUpdate) Mutation ¶
func (_u *OrganizationUpdate) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdate) RemoveProjectIDs ¶
func (_u *OrganizationUpdate) RemoveProjectIDs(ids ...uuid.UUID) *OrganizationUpdate
RemoveProjectIDs removes the "projects" edge to Project entities by IDs.
func (*OrganizationUpdate) RemoveProjects ¶
func (_u *OrganizationUpdate) RemoveProjects(v ...*Project) *OrganizationUpdate
RemoveProjects removes "projects" edges to Project entities.
func (*OrganizationUpdate) Save ¶
func (_u *OrganizationUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*OrganizationUpdate) SaveX ¶
func (_u *OrganizationUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*OrganizationUpdate) SetName ¶
func (_u *OrganizationUpdate) SetName(v string) *OrganizationUpdate
SetName sets the "name" field.
func (*OrganizationUpdate) SetNillableName ¶
func (_u *OrganizationUpdate) SetNillableName(v *string) *OrganizationUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*OrganizationUpdate) SetNillableSlug ¶
func (_u *OrganizationUpdate) SetNillableSlug(v *string) *OrganizationUpdate
SetNillableSlug sets the "slug" field if the given value is not nil.
func (*OrganizationUpdate) SetSlug ¶
func (_u *OrganizationUpdate) SetSlug(v string) *OrganizationUpdate
SetSlug sets the "slug" field.
func (*OrganizationUpdate) SetUpdatedAt ¶
func (_u *OrganizationUpdate) SetUpdatedAt(v time.Time) *OrganizationUpdate
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationUpdate) Where ¶
func (_u *OrganizationUpdate) Where(ps ...predicate.Organization) *OrganizationUpdate
Where appends a list predicates to the OrganizationUpdate builder.
type OrganizationUpdateOne ¶
type OrganizationUpdateOne struct {
// contains filtered or unexported fields
}
OrganizationUpdateOne is the builder for updating a single Organization entity.
func (*OrganizationUpdateOne) AddProjectIDs ¶
func (_u *OrganizationUpdateOne) AddProjectIDs(ids ...uuid.UUID) *OrganizationUpdateOne
AddProjectIDs adds the "projects" edge to the Project entity by IDs.
func (*OrganizationUpdateOne) AddProjects ¶
func (_u *OrganizationUpdateOne) AddProjects(v ...*Project) *OrganizationUpdateOne
AddProjects adds the "projects" edges to the Project entity.
func (*OrganizationUpdateOne) ClearProjects ¶
func (_u *OrganizationUpdateOne) ClearProjects() *OrganizationUpdateOne
ClearProjects clears all "projects" edges to the Project entity.
func (*OrganizationUpdateOne) Exec ¶
func (_u *OrganizationUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*OrganizationUpdateOne) ExecX ¶
func (_u *OrganizationUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*OrganizationUpdateOne) Mutation ¶
func (_u *OrganizationUpdateOne) Mutation() *OrganizationMutation
Mutation returns the OrganizationMutation object of the builder.
func (*OrganizationUpdateOne) RemoveProjectIDs ¶
func (_u *OrganizationUpdateOne) RemoveProjectIDs(ids ...uuid.UUID) *OrganizationUpdateOne
RemoveProjectIDs removes the "projects" edge to Project entities by IDs.
func (*OrganizationUpdateOne) RemoveProjects ¶
func (_u *OrganizationUpdateOne) RemoveProjects(v ...*Project) *OrganizationUpdateOne
RemoveProjects removes "projects" edges to Project entities.
func (*OrganizationUpdateOne) Save ¶
func (_u *OrganizationUpdateOne) Save(ctx context.Context) (*Organization, error)
Save executes the query and returns the updated Organization entity.
func (*OrganizationUpdateOne) SaveX ¶
func (_u *OrganizationUpdateOne) SaveX(ctx context.Context) *Organization
SaveX is like Save, but panics if an error occurs.
func (*OrganizationUpdateOne) Select ¶
func (_u *OrganizationUpdateOne) Select(field string, fields ...string) *OrganizationUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*OrganizationUpdateOne) SetName ¶
func (_u *OrganizationUpdateOne) SetName(v string) *OrganizationUpdateOne
SetName sets the "name" field.
func (*OrganizationUpdateOne) SetNillableName ¶
func (_u *OrganizationUpdateOne) SetNillableName(v *string) *OrganizationUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*OrganizationUpdateOne) SetNillableSlug ¶
func (_u *OrganizationUpdateOne) SetNillableSlug(v *string) *OrganizationUpdateOne
SetNillableSlug sets the "slug" field if the given value is not nil.
func (*OrganizationUpdateOne) SetSlug ¶
func (_u *OrganizationUpdateOne) SetSlug(v string) *OrganizationUpdateOne
SetSlug sets the "slug" field.
func (*OrganizationUpdateOne) SetUpdatedAt ¶
func (_u *OrganizationUpdateOne) SetUpdatedAt(v time.Time) *OrganizationUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*OrganizationUpdateOne) Where ¶
func (_u *OrganizationUpdateOne) Where(ps ...predicate.Organization) *OrganizationUpdateOne
Where appends a list predicates to the OrganizationUpdate builder.
type Organizations ¶
type Organizations []*Organization
Organizations is a parsable slice of Organization.
type Project ¶
type Project struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// OrgID holds the value of the "org_id" field.
OrgID uuid.UUID `json:"org_id,omitempty"`
// Name holds the value of the "name" field.
Name string `json:"name,omitempty"`
// Slug holds the value of the "slug" field.
Slug string `json:"slug,omitempty"`
// APIKey holds the value of the "api_key" field.
APIKey string `json:"-"`
// Settings holds the value of the "settings" field.
Settings map[string]interface{} `json:"settings,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the ProjectQuery when eager-loading is set.
Edges ProjectEdges `json:"edges"`
// contains filtered or unexported fields
}
Project is the model entity for the Project schema.
func (*Project) QueryEvents ¶
func (_m *Project) QueryEvents() *EventQuery
QueryEvents queries the "events" edge of the Project entity.
func (*Project) QueryJourneys ¶
func (_m *Project) QueryJourneys() *JourneyQuery
QueryJourneys queries the "journeys" edge of the Project entity.
func (*Project) QueryOrganization ¶
func (_m *Project) QueryOrganization() *OrganizationQuery
QueryOrganization queries the "organization" edge of the Project entity.
func (*Project) QuerySessions ¶
func (_m *Project) QuerySessions() *SessionQuery
QuerySessions queries the "sessions" edge of the Project entity.
func (*Project) Unwrap ¶
Unwrap unwraps the Project 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 (*Project) Update ¶
func (_m *Project) Update() *ProjectUpdateOne
Update returns a builder for updating this Project. Note that you need to call Project.Unwrap() before calling this method if this Project was returned from a transaction, and the transaction was committed or rolled back.
type ProjectClient ¶
type ProjectClient struct {
// contains filtered or unexported fields
}
ProjectClient is a client for the Project schema.
func NewProjectClient ¶
func NewProjectClient(c config) *ProjectClient
NewProjectClient returns a client for the Project from the given config.
func (*ProjectClient) Create ¶
func (c *ProjectClient) Create() *ProjectCreate
Create returns a builder for creating a Project entity.
func (*ProjectClient) CreateBulk ¶
func (c *ProjectClient) CreateBulk(builders ...*ProjectCreate) *ProjectCreateBulk
CreateBulk returns a builder for creating a bulk of Project entities.
func (*ProjectClient) Delete ¶
func (c *ProjectClient) Delete() *ProjectDelete
Delete returns a delete builder for Project.
func (*ProjectClient) DeleteOne ¶
func (c *ProjectClient) DeleteOne(_m *Project) *ProjectDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*ProjectClient) DeleteOneID ¶
func (c *ProjectClient) DeleteOneID(id uuid.UUID) *ProjectDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*ProjectClient) Hooks ¶
func (c *ProjectClient) Hooks() []Hook
Hooks returns the client hooks.
func (*ProjectClient) Intercept ¶
func (c *ProjectClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `project.Intercept(f(g(h())))`.
func (*ProjectClient) Interceptors ¶
func (c *ProjectClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*ProjectClient) MapCreateBulk ¶
func (c *ProjectClient) MapCreateBulk(slice any, setFunc func(*ProjectCreate, int)) *ProjectCreateBulk
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 (*ProjectClient) Query ¶
func (c *ProjectClient) Query() *ProjectQuery
Query returns a query builder for Project.
func (*ProjectClient) QueryEvents ¶
func (c *ProjectClient) QueryEvents(_m *Project) *EventQuery
QueryEvents queries the events edge of a Project.
func (*ProjectClient) QueryJourneys ¶
func (c *ProjectClient) QueryJourneys(_m *Project) *JourneyQuery
QueryJourneys queries the journeys edge of a Project.
func (*ProjectClient) QueryOrganization ¶
func (c *ProjectClient) QueryOrganization(_m *Project) *OrganizationQuery
QueryOrganization queries the organization edge of a Project.
func (*ProjectClient) QuerySessions ¶
func (c *ProjectClient) QuerySessions(_m *Project) *SessionQuery
QuerySessions queries the sessions edge of a Project.
func (*ProjectClient) Update ¶
func (c *ProjectClient) Update() *ProjectUpdate
Update returns an update builder for Project.
func (*ProjectClient) UpdateOne ¶
func (c *ProjectClient) UpdateOne(_m *Project) *ProjectUpdateOne
UpdateOne returns an update builder for the given entity.
func (*ProjectClient) UpdateOneID ¶
func (c *ProjectClient) UpdateOneID(id uuid.UUID) *ProjectUpdateOne
UpdateOneID returns an update builder for the given id.
func (*ProjectClient) Use ¶
func (c *ProjectClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `project.Hooks(f(g(h())))`.
type ProjectCreate ¶
type ProjectCreate struct {
// contains filtered or unexported fields
}
ProjectCreate is the builder for creating a Project entity.
func (*ProjectCreate) AddEventIDs ¶
func (_c *ProjectCreate) AddEventIDs(ids ...uuid.UUID) *ProjectCreate
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*ProjectCreate) AddEvents ¶
func (_c *ProjectCreate) AddEvents(v ...*Event) *ProjectCreate
AddEvents adds the "events" edges to the Event entity.
func (*ProjectCreate) AddJourneyIDs ¶
func (_c *ProjectCreate) AddJourneyIDs(ids ...uuid.UUID) *ProjectCreate
AddJourneyIDs adds the "journeys" edge to the Journey entity by IDs.
func (*ProjectCreate) AddJourneys ¶
func (_c *ProjectCreate) AddJourneys(v ...*Journey) *ProjectCreate
AddJourneys adds the "journeys" edges to the Journey entity.
func (*ProjectCreate) AddSessionIDs ¶
func (_c *ProjectCreate) AddSessionIDs(ids ...uuid.UUID) *ProjectCreate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*ProjectCreate) AddSessions ¶
func (_c *ProjectCreate) AddSessions(v ...*Session) *ProjectCreate
AddSessions adds the "sessions" edges to the Session entity.
func (*ProjectCreate) Exec ¶
func (_c *ProjectCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectCreate) ExecX ¶
func (_c *ProjectCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectCreate) Mutation ¶
func (_c *ProjectCreate) Mutation() *ProjectMutation
Mutation returns the ProjectMutation object of the builder.
func (*ProjectCreate) Save ¶
func (_c *ProjectCreate) Save(ctx context.Context) (*Project, error)
Save creates the Project in the database.
func (*ProjectCreate) SaveX ¶
func (_c *ProjectCreate) SaveX(ctx context.Context) *Project
SaveX calls Save and panics if Save returns an error.
func (*ProjectCreate) SetAPIKey ¶
func (_c *ProjectCreate) SetAPIKey(v string) *ProjectCreate
SetAPIKey sets the "api_key" field.
func (*ProjectCreate) SetCreatedAt ¶
func (_c *ProjectCreate) SetCreatedAt(v time.Time) *ProjectCreate
SetCreatedAt sets the "created_at" field.
func (*ProjectCreate) SetID ¶
func (_c *ProjectCreate) SetID(v uuid.UUID) *ProjectCreate
SetID sets the "id" field.
func (*ProjectCreate) SetName ¶
func (_c *ProjectCreate) SetName(v string) *ProjectCreate
SetName sets the "name" field.
func (*ProjectCreate) SetNillableCreatedAt ¶
func (_c *ProjectCreate) SetNillableCreatedAt(v *time.Time) *ProjectCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*ProjectCreate) SetNillableID ¶
func (_c *ProjectCreate) SetNillableID(v *uuid.UUID) *ProjectCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*ProjectCreate) SetNillableUpdatedAt ¶
func (_c *ProjectCreate) SetNillableUpdatedAt(v *time.Time) *ProjectCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*ProjectCreate) SetOrgID ¶
func (_c *ProjectCreate) SetOrgID(v uuid.UUID) *ProjectCreate
SetOrgID sets the "org_id" field.
func (*ProjectCreate) SetOrganization ¶
func (_c *ProjectCreate) SetOrganization(v *Organization) *ProjectCreate
SetOrganization sets the "organization" edge to the Organization entity.
func (*ProjectCreate) SetOrganizationID ¶
func (_c *ProjectCreate) SetOrganizationID(id uuid.UUID) *ProjectCreate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*ProjectCreate) SetSettings ¶
func (_c *ProjectCreate) SetSettings(v map[string]interface{}) *ProjectCreate
SetSettings sets the "settings" field.
func (*ProjectCreate) SetSlug ¶
func (_c *ProjectCreate) SetSlug(v string) *ProjectCreate
SetSlug sets the "slug" field.
func (*ProjectCreate) SetUpdatedAt ¶
func (_c *ProjectCreate) SetUpdatedAt(v time.Time) *ProjectCreate
SetUpdatedAt sets the "updated_at" field.
type ProjectCreateBulk ¶
type ProjectCreateBulk struct {
// contains filtered or unexported fields
}
ProjectCreateBulk is the builder for creating many Project entities in bulk.
func (*ProjectCreateBulk) Exec ¶
func (_c *ProjectCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectCreateBulk) ExecX ¶
func (_c *ProjectCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type ProjectDelete ¶
type ProjectDelete struct {
// contains filtered or unexported fields
}
ProjectDelete is the builder for deleting a Project entity.
func (*ProjectDelete) Exec ¶
func (_d *ProjectDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*ProjectDelete) ExecX ¶
func (_d *ProjectDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*ProjectDelete) Where ¶
func (_d *ProjectDelete) Where(ps ...predicate.Project) *ProjectDelete
Where appends a list predicates to the ProjectDelete builder.
type ProjectDeleteOne ¶
type ProjectDeleteOne struct {
// contains filtered or unexported fields
}
ProjectDeleteOne is the builder for deleting a single Project entity.
func (*ProjectDeleteOne) Exec ¶
func (_d *ProjectDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*ProjectDeleteOne) ExecX ¶
func (_d *ProjectDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectDeleteOne) Where ¶
func (_d *ProjectDeleteOne) Where(ps ...predicate.Project) *ProjectDeleteOne
Where appends a list predicates to the ProjectDelete builder.
type ProjectEdges ¶
type ProjectEdges struct {
// Organization holds the value of the organization edge.
Organization *Organization `json:"organization,omitempty"`
// Events holds the value of the events edge.
Events []*Event `json:"events,omitempty"`
// Sessions holds the value of the sessions edge.
Sessions []*Session `json:"sessions,omitempty"`
// Journeys holds the value of the journeys edge.
Journeys []*Journey `json:"journeys,omitempty"`
// contains filtered or unexported fields
}
ProjectEdges holds the relations/edges for other nodes in the graph.
func (ProjectEdges) EventsOrErr ¶
func (e ProjectEdges) EventsOrErr() ([]*Event, error)
EventsOrErr returns the Events value or an error if the edge was not loaded in eager-loading.
func (ProjectEdges) JourneysOrErr ¶
func (e ProjectEdges) JourneysOrErr() ([]*Journey, error)
JourneysOrErr returns the Journeys value or an error if the edge was not loaded in eager-loading.
func (ProjectEdges) OrganizationOrErr ¶
func (e ProjectEdges) OrganizationOrErr() (*Organization, error)
OrganizationOrErr returns the Organization value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (ProjectEdges) SessionsOrErr ¶
func (e ProjectEdges) SessionsOrErr() ([]*Session, error)
SessionsOrErr returns the Sessions value or an error if the edge was not loaded in eager-loading.
type ProjectGroupBy ¶
type ProjectGroupBy struct {
// contains filtered or unexported fields
}
ProjectGroupBy is the group-by builder for Project entities.
func (*ProjectGroupBy) Aggregate ¶
func (_g *ProjectGroupBy) Aggregate(fns ...AggregateFunc) *ProjectGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*ProjectGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProjectGroupBy) Scan ¶
func (_g *ProjectGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProjectGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProjectMutation ¶
type ProjectMutation struct {
// contains filtered or unexported fields
}
ProjectMutation represents an operation that mutates the Project nodes in the graph.
func (*ProjectMutation) APIKey ¶
func (m *ProjectMutation) APIKey() (r string, exists bool)
APIKey returns the value of the "api_key" field in the mutation.
func (*ProjectMutation) AddEventIDs ¶
func (m *ProjectMutation) AddEventIDs(ids ...uuid.UUID)
AddEventIDs adds the "events" edge to the Event entity by ids.
func (*ProjectMutation) AddField ¶
func (m *ProjectMutation) 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 (*ProjectMutation) AddJourneyIDs ¶
func (m *ProjectMutation) AddJourneyIDs(ids ...uuid.UUID)
AddJourneyIDs adds the "journeys" edge to the Journey entity by ids.
func (*ProjectMutation) AddSessionIDs ¶
func (m *ProjectMutation) AddSessionIDs(ids ...uuid.UUID)
AddSessionIDs adds the "sessions" edge to the Session entity by ids.
func (*ProjectMutation) AddedEdges ¶
func (m *ProjectMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*ProjectMutation) AddedField ¶
func (m *ProjectMutation) 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 (*ProjectMutation) AddedFields ¶
func (m *ProjectMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*ProjectMutation) AddedIDs ¶
func (m *ProjectMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*ProjectMutation) ClearEdge ¶
func (m *ProjectMutation) 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 (*ProjectMutation) ClearEvents ¶
func (m *ProjectMutation) ClearEvents()
ClearEvents clears the "events" edge to the Event entity.
func (*ProjectMutation) ClearField ¶
func (m *ProjectMutation) 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 (*ProjectMutation) ClearJourneys ¶
func (m *ProjectMutation) ClearJourneys()
ClearJourneys clears the "journeys" edge to the Journey entity.
func (*ProjectMutation) ClearOrganization ¶
func (m *ProjectMutation) ClearOrganization()
ClearOrganization clears the "organization" edge to the Organization entity.
func (*ProjectMutation) ClearSessions ¶
func (m *ProjectMutation) ClearSessions()
ClearSessions clears the "sessions" edge to the Session entity.
func (*ProjectMutation) ClearSettings ¶
func (m *ProjectMutation) ClearSettings()
ClearSettings clears the value of the "settings" field.
func (*ProjectMutation) ClearedEdges ¶
func (m *ProjectMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*ProjectMutation) ClearedFields ¶
func (m *ProjectMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (ProjectMutation) Client ¶
func (m ProjectMutation) 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 (*ProjectMutation) CreatedAt ¶
func (m *ProjectMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*ProjectMutation) EdgeCleared ¶
func (m *ProjectMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*ProjectMutation) EventsCleared ¶
func (m *ProjectMutation) EventsCleared() bool
EventsCleared reports if the "events" edge to the Event entity was cleared.
func (*ProjectMutation) EventsIDs ¶
func (m *ProjectMutation) EventsIDs() (ids []uuid.UUID)
EventsIDs returns the "events" edge IDs in the mutation.
func (*ProjectMutation) Field ¶
func (m *ProjectMutation) 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 (*ProjectMutation) FieldCleared ¶
func (m *ProjectMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*ProjectMutation) Fields ¶
func (m *ProjectMutation) 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 (*ProjectMutation) ID ¶
func (m *ProjectMutation) ID() (id uuid.UUID, 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 (*ProjectMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*ProjectMutation) JourneysCleared ¶
func (m *ProjectMutation) JourneysCleared() bool
JourneysCleared reports if the "journeys" edge to the Journey entity was cleared.
func (*ProjectMutation) JourneysIDs ¶
func (m *ProjectMutation) JourneysIDs() (ids []uuid.UUID)
JourneysIDs returns the "journeys" edge IDs in the mutation.
func (*ProjectMutation) Name ¶
func (m *ProjectMutation) Name() (r string, exists bool)
Name returns the value of the "name" field in the mutation.
func (*ProjectMutation) OldAPIKey ¶
func (m *ProjectMutation) OldAPIKey(ctx context.Context) (v string, err error)
OldAPIKey returns the old "api_key" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*ProjectMutation) OldName ¶
func (m *ProjectMutation) OldName(ctx context.Context) (v string, err error)
OldName returns the old "name" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldOrgID ¶
OldOrgID returns the old "org_id" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldSettings ¶
func (m *ProjectMutation) OldSettings(ctx context.Context) (v map[string]interface{}, err error)
OldSettings returns the old "settings" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldSlug ¶
func (m *ProjectMutation) OldSlug(ctx context.Context) (v string, err error)
OldSlug returns the old "slug" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Project entity. If the Project object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*ProjectMutation) OrgID ¶
func (m *ProjectMutation) OrgID() (r uuid.UUID, exists bool)
OrgID returns the value of the "org_id" field in the mutation.
func (*ProjectMutation) OrganizationCleared ¶
func (m *ProjectMutation) OrganizationCleared() bool
OrganizationCleared reports if the "organization" edge to the Organization entity was cleared.
func (*ProjectMutation) OrganizationID ¶
func (m *ProjectMutation) OrganizationID() (id uuid.UUID, exists bool)
OrganizationID returns the "organization" edge ID in the mutation.
func (*ProjectMutation) OrganizationIDs ¶
func (m *ProjectMutation) OrganizationIDs() (ids []uuid.UUID)
OrganizationIDs returns the "organization" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OrganizationID instead. It exists only for internal usage by the builders.
func (*ProjectMutation) RemoveEventIDs ¶
func (m *ProjectMutation) RemoveEventIDs(ids ...uuid.UUID)
RemoveEventIDs removes the "events" edge to the Event entity by IDs.
func (*ProjectMutation) RemoveJourneyIDs ¶
func (m *ProjectMutation) RemoveJourneyIDs(ids ...uuid.UUID)
RemoveJourneyIDs removes the "journeys" edge to the Journey entity by IDs.
func (*ProjectMutation) RemoveSessionIDs ¶
func (m *ProjectMutation) RemoveSessionIDs(ids ...uuid.UUID)
RemoveSessionIDs removes the "sessions" edge to the Session entity by IDs.
func (*ProjectMutation) RemovedEdges ¶
func (m *ProjectMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*ProjectMutation) RemovedEventsIDs ¶
func (m *ProjectMutation) RemovedEventsIDs() (ids []uuid.UUID)
RemovedEvents returns the removed IDs of the "events" edge to the Event entity.
func (*ProjectMutation) RemovedIDs ¶
func (m *ProjectMutation) 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 (*ProjectMutation) RemovedJourneysIDs ¶
func (m *ProjectMutation) RemovedJourneysIDs() (ids []uuid.UUID)
RemovedJourneys returns the removed IDs of the "journeys" edge to the Journey entity.
func (*ProjectMutation) RemovedSessionsIDs ¶
func (m *ProjectMutation) RemovedSessionsIDs() (ids []uuid.UUID)
RemovedSessions returns the removed IDs of the "sessions" edge to the Session entity.
func (*ProjectMutation) ResetAPIKey ¶
func (m *ProjectMutation) ResetAPIKey()
ResetAPIKey resets all changes to the "api_key" field.
func (*ProjectMutation) ResetCreatedAt ¶
func (m *ProjectMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*ProjectMutation) ResetEdge ¶
func (m *ProjectMutation) 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 (*ProjectMutation) ResetEvents ¶
func (m *ProjectMutation) ResetEvents()
ResetEvents resets all changes to the "events" edge.
func (*ProjectMutation) ResetField ¶
func (m *ProjectMutation) 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 (*ProjectMutation) ResetJourneys ¶
func (m *ProjectMutation) ResetJourneys()
ResetJourneys resets all changes to the "journeys" edge.
func (*ProjectMutation) ResetName ¶
func (m *ProjectMutation) ResetName()
ResetName resets all changes to the "name" field.
func (*ProjectMutation) ResetOrgID ¶
func (m *ProjectMutation) ResetOrgID()
ResetOrgID resets all changes to the "org_id" field.
func (*ProjectMutation) ResetOrganization ¶
func (m *ProjectMutation) ResetOrganization()
ResetOrganization resets all changes to the "organization" edge.
func (*ProjectMutation) ResetSessions ¶
func (m *ProjectMutation) ResetSessions()
ResetSessions resets all changes to the "sessions" edge.
func (*ProjectMutation) ResetSettings ¶
func (m *ProjectMutation) ResetSettings()
ResetSettings resets all changes to the "settings" field.
func (*ProjectMutation) ResetSlug ¶
func (m *ProjectMutation) ResetSlug()
ResetSlug resets all changes to the "slug" field.
func (*ProjectMutation) ResetUpdatedAt ¶
func (m *ProjectMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*ProjectMutation) SessionsCleared ¶
func (m *ProjectMutation) SessionsCleared() bool
SessionsCleared reports if the "sessions" edge to the Session entity was cleared.
func (*ProjectMutation) SessionsIDs ¶
func (m *ProjectMutation) SessionsIDs() (ids []uuid.UUID)
SessionsIDs returns the "sessions" edge IDs in the mutation.
func (*ProjectMutation) SetAPIKey ¶
func (m *ProjectMutation) SetAPIKey(s string)
SetAPIKey sets the "api_key" field.
func (*ProjectMutation) SetCreatedAt ¶
func (m *ProjectMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*ProjectMutation) SetField ¶
func (m *ProjectMutation) 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 (*ProjectMutation) SetID ¶
func (m *ProjectMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Project entities.
func (*ProjectMutation) SetName ¶
func (m *ProjectMutation) SetName(s string)
SetName sets the "name" field.
func (*ProjectMutation) SetOp ¶
func (m *ProjectMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*ProjectMutation) SetOrgID ¶
func (m *ProjectMutation) SetOrgID(u uuid.UUID)
SetOrgID sets the "org_id" field.
func (*ProjectMutation) SetOrganizationID ¶
func (m *ProjectMutation) SetOrganizationID(id uuid.UUID)
SetOrganizationID sets the "organization" edge to the Organization entity by id.
func (*ProjectMutation) SetSettings ¶
func (m *ProjectMutation) SetSettings(value map[string]interface{})
SetSettings sets the "settings" field.
func (*ProjectMutation) SetSlug ¶
func (m *ProjectMutation) SetSlug(s string)
SetSlug sets the "slug" field.
func (*ProjectMutation) SetUpdatedAt ¶
func (m *ProjectMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*ProjectMutation) Settings ¶
func (m *ProjectMutation) Settings() (r map[string]interface{}, exists bool)
Settings returns the value of the "settings" field in the mutation.
func (*ProjectMutation) SettingsCleared ¶
func (m *ProjectMutation) SettingsCleared() bool
SettingsCleared returns if the "settings" field was cleared in this mutation.
func (*ProjectMutation) Slug ¶
func (m *ProjectMutation) Slug() (r string, exists bool)
Slug returns the value of the "slug" field in the mutation.
func (ProjectMutation) Tx ¶
func (m ProjectMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*ProjectMutation) Type ¶
func (m *ProjectMutation) Type() string
Type returns the node type of this mutation (Project).
func (*ProjectMutation) UpdatedAt ¶
func (m *ProjectMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*ProjectMutation) Where ¶
func (m *ProjectMutation) Where(ps ...predicate.Project)
Where appends a list predicates to the ProjectMutation builder.
func (*ProjectMutation) WhereP ¶
func (m *ProjectMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the ProjectMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type ProjectQuery ¶
type ProjectQuery struct {
// contains filtered or unexported fields
}
ProjectQuery is the builder for querying Project entities.
func (*ProjectQuery) Aggregate ¶
func (_q *ProjectQuery) Aggregate(fns ...AggregateFunc) *ProjectSelect
Aggregate returns a ProjectSelect configured with the given aggregations.
func (*ProjectQuery) All ¶
func (_q *ProjectQuery) All(ctx context.Context) ([]*Project, error)
All executes the query and returns a list of Projects.
func (*ProjectQuery) AllX ¶
func (_q *ProjectQuery) AllX(ctx context.Context) []*Project
AllX is like All, but panics if an error occurs.
func (*ProjectQuery) Clone ¶
func (_q *ProjectQuery) Clone() *ProjectQuery
Clone returns a duplicate of the ProjectQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*ProjectQuery) Count ¶
func (_q *ProjectQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*ProjectQuery) CountX ¶
func (_q *ProjectQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*ProjectQuery) Exist ¶
func (_q *ProjectQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*ProjectQuery) ExistX ¶
func (_q *ProjectQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*ProjectQuery) First ¶
func (_q *ProjectQuery) First(ctx context.Context) (*Project, error)
First returns the first Project entity from the query. Returns a *NotFoundError when no Project was found.
func (*ProjectQuery) FirstID ¶
FirstID returns the first Project ID from the query. Returns a *NotFoundError when no Project ID was found.
func (*ProjectQuery) FirstIDX ¶
func (_q *ProjectQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*ProjectQuery) FirstX ¶
func (_q *ProjectQuery) FirstX(ctx context.Context) *Project
FirstX is like First, but panics if an error occurs.
func (*ProjectQuery) GroupBy ¶
func (_q *ProjectQuery) GroupBy(field string, fields ...string) *ProjectGroupBy
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Project.Query().
GroupBy(project.FieldOrgID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*ProjectQuery) IDsX ¶
func (_q *ProjectQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*ProjectQuery) Limit ¶
func (_q *ProjectQuery) Limit(limit int) *ProjectQuery
Limit the number of records to be returned by this query.
func (*ProjectQuery) Offset ¶
func (_q *ProjectQuery) Offset(offset int) *ProjectQuery
Offset to start from.
func (*ProjectQuery) Only ¶
func (_q *ProjectQuery) Only(ctx context.Context) (*Project, error)
Only returns a single Project entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Project entity is found. Returns a *NotFoundError when no Project entities are found.
func (*ProjectQuery) OnlyID ¶
OnlyID is like Only, but returns the only Project ID in the query. Returns a *NotSingularError when more than one Project ID is found. Returns a *NotFoundError when no entities are found.
func (*ProjectQuery) OnlyIDX ¶
func (_q *ProjectQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*ProjectQuery) OnlyX ¶
func (_q *ProjectQuery) OnlyX(ctx context.Context) *Project
OnlyX is like Only, but panics if an error occurs.
func (*ProjectQuery) Order ¶
func (_q *ProjectQuery) Order(o ...project.OrderOption) *ProjectQuery
Order specifies how the records should be ordered.
func (*ProjectQuery) QueryEvents ¶
func (_q *ProjectQuery) QueryEvents() *EventQuery
QueryEvents chains the current query on the "events" edge.
func (*ProjectQuery) QueryJourneys ¶
func (_q *ProjectQuery) QueryJourneys() *JourneyQuery
QueryJourneys chains the current query on the "journeys" edge.
func (*ProjectQuery) QueryOrganization ¶
func (_q *ProjectQuery) QueryOrganization() *OrganizationQuery
QueryOrganization chains the current query on the "organization" edge.
func (*ProjectQuery) QuerySessions ¶
func (_q *ProjectQuery) QuerySessions() *SessionQuery
QuerySessions chains the current query on the "sessions" edge.
func (*ProjectQuery) Select ¶
func (_q *ProjectQuery) Select(fields ...string) *ProjectSelect
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
}
client.Project.Query().
Select(project.FieldOrgID).
Scan(ctx, &v)
func (*ProjectQuery) Unique ¶
func (_q *ProjectQuery) Unique(unique bool) *ProjectQuery
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 (*ProjectQuery) Where ¶
func (_q *ProjectQuery) Where(ps ...predicate.Project) *ProjectQuery
Where adds a new predicate for the ProjectQuery builder.
func (*ProjectQuery) WithEvents ¶
func (_q *ProjectQuery) WithEvents(opts ...func(*EventQuery)) *ProjectQuery
WithEvents tells the query-builder to eager-load the nodes that are connected to the "events" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProjectQuery) WithJourneys ¶
func (_q *ProjectQuery) WithJourneys(opts ...func(*JourneyQuery)) *ProjectQuery
WithJourneys tells the query-builder to eager-load the nodes that are connected to the "journeys" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProjectQuery) WithOrganization ¶
func (_q *ProjectQuery) WithOrganization(opts ...func(*OrganizationQuery)) *ProjectQuery
WithOrganization tells the query-builder to eager-load the nodes that are connected to the "organization" edge. The optional arguments are used to configure the query builder of the edge.
func (*ProjectQuery) WithSessions ¶
func (_q *ProjectQuery) WithSessions(opts ...func(*SessionQuery)) *ProjectQuery
WithSessions tells the query-builder to eager-load the nodes that are connected to the "sessions" edge. The optional arguments are used to configure the query builder of the edge.
type ProjectSelect ¶
type ProjectSelect struct {
*ProjectQuery
// contains filtered or unexported fields
}
ProjectSelect is the builder for selecting fields of Project entities.
func (*ProjectSelect) Aggregate ¶
func (_s *ProjectSelect) Aggregate(fns ...AggregateFunc) *ProjectSelect
Aggregate adds the given aggregation functions to the selector query.
func (*ProjectSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*ProjectSelect) Scan ¶
func (_s *ProjectSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*ProjectSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type ProjectUpdate ¶
type ProjectUpdate struct {
// contains filtered or unexported fields
}
ProjectUpdate is the builder for updating Project entities.
func (*ProjectUpdate) AddEventIDs ¶
func (_u *ProjectUpdate) AddEventIDs(ids ...uuid.UUID) *ProjectUpdate
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*ProjectUpdate) AddEvents ¶
func (_u *ProjectUpdate) AddEvents(v ...*Event) *ProjectUpdate
AddEvents adds the "events" edges to the Event entity.
func (*ProjectUpdate) AddJourneyIDs ¶
func (_u *ProjectUpdate) AddJourneyIDs(ids ...uuid.UUID) *ProjectUpdate
AddJourneyIDs adds the "journeys" edge to the Journey entity by IDs.
func (*ProjectUpdate) AddJourneys ¶
func (_u *ProjectUpdate) AddJourneys(v ...*Journey) *ProjectUpdate
AddJourneys adds the "journeys" edges to the Journey entity.
func (*ProjectUpdate) AddSessionIDs ¶
func (_u *ProjectUpdate) AddSessionIDs(ids ...uuid.UUID) *ProjectUpdate
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*ProjectUpdate) AddSessions ¶
func (_u *ProjectUpdate) AddSessions(v ...*Session) *ProjectUpdate
AddSessions adds the "sessions" edges to the Session entity.
func (*ProjectUpdate) ClearEvents ¶
func (_u *ProjectUpdate) ClearEvents() *ProjectUpdate
ClearEvents clears all "events" edges to the Event entity.
func (*ProjectUpdate) ClearJourneys ¶
func (_u *ProjectUpdate) ClearJourneys() *ProjectUpdate
ClearJourneys clears all "journeys" edges to the Journey entity.
func (*ProjectUpdate) ClearOrganization ¶
func (_u *ProjectUpdate) ClearOrganization() *ProjectUpdate
ClearOrganization clears the "organization" edge to the Organization entity.
func (*ProjectUpdate) ClearSessions ¶
func (_u *ProjectUpdate) ClearSessions() *ProjectUpdate
ClearSessions clears all "sessions" edges to the Session entity.
func (*ProjectUpdate) ClearSettings ¶
func (_u *ProjectUpdate) ClearSettings() *ProjectUpdate
ClearSettings clears the value of the "settings" field.
func (*ProjectUpdate) Exec ¶
func (_u *ProjectUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*ProjectUpdate) ExecX ¶
func (_u *ProjectUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectUpdate) Mutation ¶
func (_u *ProjectUpdate) Mutation() *ProjectMutation
Mutation returns the ProjectMutation object of the builder.
func (*ProjectUpdate) RemoveEventIDs ¶
func (_u *ProjectUpdate) RemoveEventIDs(ids ...uuid.UUID) *ProjectUpdate
RemoveEventIDs removes the "events" edge to Event entities by IDs.
func (*ProjectUpdate) RemoveEvents ¶
func (_u *ProjectUpdate) RemoveEvents(v ...*Event) *ProjectUpdate
RemoveEvents removes "events" edges to Event entities.
func (*ProjectUpdate) RemoveJourneyIDs ¶
func (_u *ProjectUpdate) RemoveJourneyIDs(ids ...uuid.UUID) *ProjectUpdate
RemoveJourneyIDs removes the "journeys" edge to Journey entities by IDs.
func (*ProjectUpdate) RemoveJourneys ¶
func (_u *ProjectUpdate) RemoveJourneys(v ...*Journey) *ProjectUpdate
RemoveJourneys removes "journeys" edges to Journey entities.
func (*ProjectUpdate) RemoveSessionIDs ¶
func (_u *ProjectUpdate) RemoveSessionIDs(ids ...uuid.UUID) *ProjectUpdate
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*ProjectUpdate) RemoveSessions ¶
func (_u *ProjectUpdate) RemoveSessions(v ...*Session) *ProjectUpdate
RemoveSessions removes "sessions" edges to Session entities.
func (*ProjectUpdate) Save ¶
func (_u *ProjectUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*ProjectUpdate) SaveX ¶
func (_u *ProjectUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*ProjectUpdate) SetAPIKey ¶
func (_u *ProjectUpdate) SetAPIKey(v string) *ProjectUpdate
SetAPIKey sets the "api_key" field.
func (*ProjectUpdate) SetName ¶
func (_u *ProjectUpdate) SetName(v string) *ProjectUpdate
SetName sets the "name" field.
func (*ProjectUpdate) SetNillableAPIKey ¶
func (_u *ProjectUpdate) SetNillableAPIKey(v *string) *ProjectUpdate
SetNillableAPIKey sets the "api_key" field if the given value is not nil.
func (*ProjectUpdate) SetNillableName ¶
func (_u *ProjectUpdate) SetNillableName(v *string) *ProjectUpdate
SetNillableName sets the "name" field if the given value is not nil.
func (*ProjectUpdate) SetNillableOrgID ¶
func (_u *ProjectUpdate) SetNillableOrgID(v *uuid.UUID) *ProjectUpdate
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*ProjectUpdate) SetNillableSlug ¶
func (_u *ProjectUpdate) SetNillableSlug(v *string) *ProjectUpdate
SetNillableSlug sets the "slug" field if the given value is not nil.
func (*ProjectUpdate) SetOrgID ¶
func (_u *ProjectUpdate) SetOrgID(v uuid.UUID) *ProjectUpdate
SetOrgID sets the "org_id" field.
func (*ProjectUpdate) SetOrganization ¶
func (_u *ProjectUpdate) SetOrganization(v *Organization) *ProjectUpdate
SetOrganization sets the "organization" edge to the Organization entity.
func (*ProjectUpdate) SetOrganizationID ¶
func (_u *ProjectUpdate) SetOrganizationID(id uuid.UUID) *ProjectUpdate
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*ProjectUpdate) SetSettings ¶
func (_u *ProjectUpdate) SetSettings(v map[string]interface{}) *ProjectUpdate
SetSettings sets the "settings" field.
func (*ProjectUpdate) SetSlug ¶
func (_u *ProjectUpdate) SetSlug(v string) *ProjectUpdate
SetSlug sets the "slug" field.
func (*ProjectUpdate) SetUpdatedAt ¶
func (_u *ProjectUpdate) SetUpdatedAt(v time.Time) *ProjectUpdate
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpdate) Where ¶
func (_u *ProjectUpdate) Where(ps ...predicate.Project) *ProjectUpdate
Where appends a list predicates to the ProjectUpdate builder.
type ProjectUpdateOne ¶
type ProjectUpdateOne struct {
// contains filtered or unexported fields
}
ProjectUpdateOne is the builder for updating a single Project entity.
func (*ProjectUpdateOne) AddEventIDs ¶
func (_u *ProjectUpdateOne) AddEventIDs(ids ...uuid.UUID) *ProjectUpdateOne
AddEventIDs adds the "events" edge to the Event entity by IDs.
func (*ProjectUpdateOne) AddEvents ¶
func (_u *ProjectUpdateOne) AddEvents(v ...*Event) *ProjectUpdateOne
AddEvents adds the "events" edges to the Event entity.
func (*ProjectUpdateOne) AddJourneyIDs ¶
func (_u *ProjectUpdateOne) AddJourneyIDs(ids ...uuid.UUID) *ProjectUpdateOne
AddJourneyIDs adds the "journeys" edge to the Journey entity by IDs.
func (*ProjectUpdateOne) AddJourneys ¶
func (_u *ProjectUpdateOne) AddJourneys(v ...*Journey) *ProjectUpdateOne
AddJourneys adds the "journeys" edges to the Journey entity.
func (*ProjectUpdateOne) AddSessionIDs ¶
func (_u *ProjectUpdateOne) AddSessionIDs(ids ...uuid.UUID) *ProjectUpdateOne
AddSessionIDs adds the "sessions" edge to the Session entity by IDs.
func (*ProjectUpdateOne) AddSessions ¶
func (_u *ProjectUpdateOne) AddSessions(v ...*Session) *ProjectUpdateOne
AddSessions adds the "sessions" edges to the Session entity.
func (*ProjectUpdateOne) ClearEvents ¶
func (_u *ProjectUpdateOne) ClearEvents() *ProjectUpdateOne
ClearEvents clears all "events" edges to the Event entity.
func (*ProjectUpdateOne) ClearJourneys ¶
func (_u *ProjectUpdateOne) ClearJourneys() *ProjectUpdateOne
ClearJourneys clears all "journeys" edges to the Journey entity.
func (*ProjectUpdateOne) ClearOrganization ¶
func (_u *ProjectUpdateOne) ClearOrganization() *ProjectUpdateOne
ClearOrganization clears the "organization" edge to the Organization entity.
func (*ProjectUpdateOne) ClearSessions ¶
func (_u *ProjectUpdateOne) ClearSessions() *ProjectUpdateOne
ClearSessions clears all "sessions" edges to the Session entity.
func (*ProjectUpdateOne) ClearSettings ¶
func (_u *ProjectUpdateOne) ClearSettings() *ProjectUpdateOne
ClearSettings clears the value of the "settings" field.
func (*ProjectUpdateOne) Exec ¶
func (_u *ProjectUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*ProjectUpdateOne) ExecX ¶
func (_u *ProjectUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*ProjectUpdateOne) Mutation ¶
func (_u *ProjectUpdateOne) Mutation() *ProjectMutation
Mutation returns the ProjectMutation object of the builder.
func (*ProjectUpdateOne) RemoveEventIDs ¶
func (_u *ProjectUpdateOne) RemoveEventIDs(ids ...uuid.UUID) *ProjectUpdateOne
RemoveEventIDs removes the "events" edge to Event entities by IDs.
func (*ProjectUpdateOne) RemoveEvents ¶
func (_u *ProjectUpdateOne) RemoveEvents(v ...*Event) *ProjectUpdateOne
RemoveEvents removes "events" edges to Event entities.
func (*ProjectUpdateOne) RemoveJourneyIDs ¶
func (_u *ProjectUpdateOne) RemoveJourneyIDs(ids ...uuid.UUID) *ProjectUpdateOne
RemoveJourneyIDs removes the "journeys" edge to Journey entities by IDs.
func (*ProjectUpdateOne) RemoveJourneys ¶
func (_u *ProjectUpdateOne) RemoveJourneys(v ...*Journey) *ProjectUpdateOne
RemoveJourneys removes "journeys" edges to Journey entities.
func (*ProjectUpdateOne) RemoveSessionIDs ¶
func (_u *ProjectUpdateOne) RemoveSessionIDs(ids ...uuid.UUID) *ProjectUpdateOne
RemoveSessionIDs removes the "sessions" edge to Session entities by IDs.
func (*ProjectUpdateOne) RemoveSessions ¶
func (_u *ProjectUpdateOne) RemoveSessions(v ...*Session) *ProjectUpdateOne
RemoveSessions removes "sessions" edges to Session entities.
func (*ProjectUpdateOne) Save ¶
func (_u *ProjectUpdateOne) Save(ctx context.Context) (*Project, error)
Save executes the query and returns the updated Project entity.
func (*ProjectUpdateOne) SaveX ¶
func (_u *ProjectUpdateOne) SaveX(ctx context.Context) *Project
SaveX is like Save, but panics if an error occurs.
func (*ProjectUpdateOne) Select ¶
func (_u *ProjectUpdateOne) Select(field string, fields ...string) *ProjectUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*ProjectUpdateOne) SetAPIKey ¶
func (_u *ProjectUpdateOne) SetAPIKey(v string) *ProjectUpdateOne
SetAPIKey sets the "api_key" field.
func (*ProjectUpdateOne) SetName ¶
func (_u *ProjectUpdateOne) SetName(v string) *ProjectUpdateOne
SetName sets the "name" field.
func (*ProjectUpdateOne) SetNillableAPIKey ¶
func (_u *ProjectUpdateOne) SetNillableAPIKey(v *string) *ProjectUpdateOne
SetNillableAPIKey sets the "api_key" field if the given value is not nil.
func (*ProjectUpdateOne) SetNillableName ¶
func (_u *ProjectUpdateOne) SetNillableName(v *string) *ProjectUpdateOne
SetNillableName sets the "name" field if the given value is not nil.
func (*ProjectUpdateOne) SetNillableOrgID ¶
func (_u *ProjectUpdateOne) SetNillableOrgID(v *uuid.UUID) *ProjectUpdateOne
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*ProjectUpdateOne) SetNillableSlug ¶
func (_u *ProjectUpdateOne) SetNillableSlug(v *string) *ProjectUpdateOne
SetNillableSlug sets the "slug" field if the given value is not nil.
func (*ProjectUpdateOne) SetOrgID ¶
func (_u *ProjectUpdateOne) SetOrgID(v uuid.UUID) *ProjectUpdateOne
SetOrgID sets the "org_id" field.
func (*ProjectUpdateOne) SetOrganization ¶
func (_u *ProjectUpdateOne) SetOrganization(v *Organization) *ProjectUpdateOne
SetOrganization sets the "organization" edge to the Organization entity.
func (*ProjectUpdateOne) SetOrganizationID ¶
func (_u *ProjectUpdateOne) SetOrganizationID(id uuid.UUID) *ProjectUpdateOne
SetOrganizationID sets the "organization" edge to the Organization entity by ID.
func (*ProjectUpdateOne) SetSettings ¶
func (_u *ProjectUpdateOne) SetSettings(v map[string]interface{}) *ProjectUpdateOne
SetSettings sets the "settings" field.
func (*ProjectUpdateOne) SetSlug ¶
func (_u *ProjectUpdateOne) SetSlug(v string) *ProjectUpdateOne
SetSlug sets the "slug" field.
func (*ProjectUpdateOne) SetUpdatedAt ¶
func (_u *ProjectUpdateOne) SetUpdatedAt(v time.Time) *ProjectUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*ProjectUpdateOne) Where ¶
func (_u *ProjectUpdateOne) Where(ps ...predicate.Project) *ProjectUpdateOne
Where appends a list predicates to the ProjectUpdate builder.
type QuerierFunc ¶
type QuerierFunc = ent.QuerierFunc
ent aliases to avoid import conflicts in user's code.
type QueryContext ¶
type QueryContext = ent.QueryContext
ent aliases to avoid import conflicts in user's code.
type RollbackFunc ¶
The RollbackFunc type is an adapter to allow the use of ordinary function as a Rollbacker. If f is a function with the appropriate signature, RollbackFunc(f) is a Rollbacker that calls f.
type RollbackHook ¶
type RollbackHook func(Rollbacker) Rollbacker
RollbackHook defines the "rollback middleware". A function that gets a Rollbacker and returns a Rollbacker. For example:
hook := func(next ent.Rollbacker) ent.Rollbacker {
return ent.RollbackFunc(func(ctx context.Context, tx *ent.Tx) error {
// Do some stuff before.
if err := next.Rollback(ctx, tx); err != nil {
return err
}
// Do some stuff after.
return nil
})
}
type Rollbacker ¶
Rollbacker is the interface that wraps the Rollback method.
type Session ¶
type Session struct {
// ID of the ent.
ID uuid.UUID `json:"id,omitempty"`
// OrgID holds the value of the "org_id" field.
OrgID uuid.UUID `json:"org_id,omitempty"`
// ProjectID holds the value of the "project_id" field.
ProjectID uuid.UUID `json:"project_id,omitempty"`
// SessionID holds the value of the "session_id" field.
SessionID string `json:"session_id,omitempty"`
// UserID holds the value of the "user_id" field.
UserID string `json:"user_id,omitempty"`
// StartedAt holds the value of the "started_at" field.
StartedAt time.Time `json:"started_at,omitempty"`
// EndedAt holds the value of the "ended_at" field.
EndedAt *time.Time `json:"ended_at,omitempty"`
// DurationMs holds the value of the "duration_ms" field.
DurationMs int64 `json:"duration_ms,omitempty"`
// EntryPage holds the value of the "entry_page" field.
EntryPage string `json:"entry_page,omitempty"`
// ExitPage holds the value of the "exit_page" field.
ExitPage string `json:"exit_page,omitempty"`
// PageCount holds the value of the "page_count" field.
PageCount int `json:"page_count,omitempty"`
// EventCount holds the value of the "event_count" field.
EventCount int `json:"event_count,omitempty"`
// JourneyID holds the value of the "journey_id" field.
JourneyID *uuid.UUID `json:"journey_id,omitempty"`
// LastJourneyStepID holds the value of the "last_journey_step_id" field.
LastJourneyStepID string `json:"last_journey_step_id,omitempty"`
// ConversionStatus holds the value of the "conversion_status" field.
ConversionStatus string `json:"conversion_status,omitempty"`
// UserAgent holds the value of the "user_agent" field.
UserAgent string `json:"user_agent,omitempty"`
// DeviceType holds the value of the "device_type" field.
DeviceType string `json:"device_type,omitempty"`
// Browser holds the value of the "browser" field.
Browser string `json:"browser,omitempty"`
// Os holds the value of the "os" field.
Os string `json:"os,omitempty"`
// Country holds the value of the "country" field.
Country string `json:"country,omitempty"`
// Region holds the value of the "region" field.
Region string `json:"region,omitempty"`
// City holds the value of the "city" field.
City string `json:"city,omitempty"`
// CreatedAt holds the value of the "created_at" field.
CreatedAt time.Time `json:"created_at,omitempty"`
// UpdatedAt holds the value of the "updated_at" field.
UpdatedAt time.Time `json:"updated_at,omitempty"`
// Edges holds the relations/edges for other nodes in the graph.
// The values are being populated by the SessionQuery when eager-loading is set.
Edges SessionEdges `json:"edges"`
// contains filtered or unexported fields
}
Session is the model entity for the Session schema.
func (*Session) QueryJourney ¶
func (_m *Session) QueryJourney() *JourneyQuery
QueryJourney queries the "journey" edge of the Session entity.
func (*Session) QueryProject ¶
func (_m *Session) QueryProject() *ProjectQuery
QueryProject queries the "project" edge of the Session entity.
func (*Session) Unwrap ¶
Unwrap unwraps the Session 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 (*Session) Update ¶
func (_m *Session) Update() *SessionUpdateOne
Update returns a builder for updating this Session. Note that you need to call Session.Unwrap() before calling this method if this Session was returned from a transaction, and the transaction was committed or rolled back.
type SessionClient ¶
type SessionClient struct {
// contains filtered or unexported fields
}
SessionClient is a client for the Session schema.
func NewSessionClient ¶
func NewSessionClient(c config) *SessionClient
NewSessionClient returns a client for the Session from the given config.
func (*SessionClient) Create ¶
func (c *SessionClient) Create() *SessionCreate
Create returns a builder for creating a Session entity.
func (*SessionClient) CreateBulk ¶
func (c *SessionClient) CreateBulk(builders ...*SessionCreate) *SessionCreateBulk
CreateBulk returns a builder for creating a bulk of Session entities.
func (*SessionClient) Delete ¶
func (c *SessionClient) Delete() *SessionDelete
Delete returns a delete builder for Session.
func (*SessionClient) DeleteOne ¶
func (c *SessionClient) DeleteOne(_m *Session) *SessionDeleteOne
DeleteOne returns a builder for deleting the given entity.
func (*SessionClient) DeleteOneID ¶
func (c *SessionClient) DeleteOneID(id uuid.UUID) *SessionDeleteOne
DeleteOneID returns a builder for deleting the given entity by its id.
func (*SessionClient) Hooks ¶
func (c *SessionClient) Hooks() []Hook
Hooks returns the client hooks.
func (*SessionClient) Intercept ¶
func (c *SessionClient) Intercept(interceptors ...Interceptor)
Intercept adds a list of query interceptors to the interceptors stack. A call to `Intercept(f, g, h)` equals to `session.Intercept(f(g(h())))`.
func (*SessionClient) Interceptors ¶
func (c *SessionClient) Interceptors() []Interceptor
Interceptors returns the client interceptors.
func (*SessionClient) MapCreateBulk ¶
func (c *SessionClient) MapCreateBulk(slice any, setFunc func(*SessionCreate, int)) *SessionCreateBulk
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 (*SessionClient) Query ¶
func (c *SessionClient) Query() *SessionQuery
Query returns a query builder for Session.
func (*SessionClient) QueryJourney ¶
func (c *SessionClient) QueryJourney(_m *Session) *JourneyQuery
QueryJourney queries the journey edge of a Session.
func (*SessionClient) QueryProject ¶
func (c *SessionClient) QueryProject(_m *Session) *ProjectQuery
QueryProject queries the project edge of a Session.
func (*SessionClient) Update ¶
func (c *SessionClient) Update() *SessionUpdate
Update returns an update builder for Session.
func (*SessionClient) UpdateOne ¶
func (c *SessionClient) UpdateOne(_m *Session) *SessionUpdateOne
UpdateOne returns an update builder for the given entity.
func (*SessionClient) UpdateOneID ¶
func (c *SessionClient) UpdateOneID(id uuid.UUID) *SessionUpdateOne
UpdateOneID returns an update builder for the given id.
func (*SessionClient) Use ¶
func (c *SessionClient) Use(hooks ...Hook)
Use adds a list of mutation hooks to the hooks stack. A call to `Use(f, g, h)` equals to `session.Hooks(f(g(h())))`.
type SessionCreate ¶
type SessionCreate struct {
// contains filtered or unexported fields
}
SessionCreate is the builder for creating a Session entity.
func (*SessionCreate) Exec ¶
func (_c *SessionCreate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionCreate) ExecX ¶
func (_c *SessionCreate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionCreate) Mutation ¶
func (_c *SessionCreate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionCreate) Save ¶
func (_c *SessionCreate) Save(ctx context.Context) (*Session, error)
Save creates the Session in the database.
func (*SessionCreate) SaveX ¶
func (_c *SessionCreate) SaveX(ctx context.Context) *Session
SaveX calls Save and panics if Save returns an error.
func (*SessionCreate) SetBrowser ¶
func (_c *SessionCreate) SetBrowser(v string) *SessionCreate
SetBrowser sets the "browser" field.
func (*SessionCreate) SetCity ¶
func (_c *SessionCreate) SetCity(v string) *SessionCreate
SetCity sets the "city" field.
func (*SessionCreate) SetConversionStatus ¶
func (_c *SessionCreate) SetConversionStatus(v string) *SessionCreate
SetConversionStatus sets the "conversion_status" field.
func (*SessionCreate) SetCountry ¶
func (_c *SessionCreate) SetCountry(v string) *SessionCreate
SetCountry sets the "country" field.
func (*SessionCreate) SetCreatedAt ¶
func (_c *SessionCreate) SetCreatedAt(v time.Time) *SessionCreate
SetCreatedAt sets the "created_at" field.
func (*SessionCreate) SetDeviceType ¶
func (_c *SessionCreate) SetDeviceType(v string) *SessionCreate
SetDeviceType sets the "device_type" field.
func (*SessionCreate) SetDurationMs ¶
func (_c *SessionCreate) SetDurationMs(v int64) *SessionCreate
SetDurationMs sets the "duration_ms" field.
func (*SessionCreate) SetEndedAt ¶
func (_c *SessionCreate) SetEndedAt(v time.Time) *SessionCreate
SetEndedAt sets the "ended_at" field.
func (*SessionCreate) SetEntryPage ¶
func (_c *SessionCreate) SetEntryPage(v string) *SessionCreate
SetEntryPage sets the "entry_page" field.
func (*SessionCreate) SetEventCount ¶
func (_c *SessionCreate) SetEventCount(v int) *SessionCreate
SetEventCount sets the "event_count" field.
func (*SessionCreate) SetExitPage ¶
func (_c *SessionCreate) SetExitPage(v string) *SessionCreate
SetExitPage sets the "exit_page" field.
func (*SessionCreate) SetID ¶
func (_c *SessionCreate) SetID(v uuid.UUID) *SessionCreate
SetID sets the "id" field.
func (*SessionCreate) SetJourney ¶
func (_c *SessionCreate) SetJourney(v *Journey) *SessionCreate
SetJourney sets the "journey" edge to the Journey entity.
func (*SessionCreate) SetJourneyID ¶
func (_c *SessionCreate) SetJourneyID(v uuid.UUID) *SessionCreate
SetJourneyID sets the "journey_id" field.
func (*SessionCreate) SetLastJourneyStepID ¶
func (_c *SessionCreate) SetLastJourneyStepID(v string) *SessionCreate
SetLastJourneyStepID sets the "last_journey_step_id" field.
func (*SessionCreate) SetNillableBrowser ¶
func (_c *SessionCreate) SetNillableBrowser(v *string) *SessionCreate
SetNillableBrowser sets the "browser" field if the given value is not nil.
func (*SessionCreate) SetNillableCity ¶
func (_c *SessionCreate) SetNillableCity(v *string) *SessionCreate
SetNillableCity sets the "city" field if the given value is not nil.
func (*SessionCreate) SetNillableConversionStatus ¶
func (_c *SessionCreate) SetNillableConversionStatus(v *string) *SessionCreate
SetNillableConversionStatus sets the "conversion_status" field if the given value is not nil.
func (*SessionCreate) SetNillableCountry ¶
func (_c *SessionCreate) SetNillableCountry(v *string) *SessionCreate
SetNillableCountry sets the "country" field if the given value is not nil.
func (*SessionCreate) SetNillableCreatedAt ¶
func (_c *SessionCreate) SetNillableCreatedAt(v *time.Time) *SessionCreate
SetNillableCreatedAt sets the "created_at" field if the given value is not nil.
func (*SessionCreate) SetNillableDeviceType ¶
func (_c *SessionCreate) SetNillableDeviceType(v *string) *SessionCreate
SetNillableDeviceType sets the "device_type" field if the given value is not nil.
func (*SessionCreate) SetNillableDurationMs ¶
func (_c *SessionCreate) SetNillableDurationMs(v *int64) *SessionCreate
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*SessionCreate) SetNillableEndedAt ¶
func (_c *SessionCreate) SetNillableEndedAt(v *time.Time) *SessionCreate
SetNillableEndedAt sets the "ended_at" field if the given value is not nil.
func (*SessionCreate) SetNillableEntryPage ¶
func (_c *SessionCreate) SetNillableEntryPage(v *string) *SessionCreate
SetNillableEntryPage sets the "entry_page" field if the given value is not nil.
func (*SessionCreate) SetNillableEventCount ¶
func (_c *SessionCreate) SetNillableEventCount(v *int) *SessionCreate
SetNillableEventCount sets the "event_count" field if the given value is not nil.
func (*SessionCreate) SetNillableExitPage ¶
func (_c *SessionCreate) SetNillableExitPage(v *string) *SessionCreate
SetNillableExitPage sets the "exit_page" field if the given value is not nil.
func (*SessionCreate) SetNillableID ¶
func (_c *SessionCreate) SetNillableID(v *uuid.UUID) *SessionCreate
SetNillableID sets the "id" field if the given value is not nil.
func (*SessionCreate) SetNillableJourneyID ¶
func (_c *SessionCreate) SetNillableJourneyID(v *uuid.UUID) *SessionCreate
SetNillableJourneyID sets the "journey_id" field if the given value is not nil.
func (*SessionCreate) SetNillableLastJourneyStepID ¶
func (_c *SessionCreate) SetNillableLastJourneyStepID(v *string) *SessionCreate
SetNillableLastJourneyStepID sets the "last_journey_step_id" field if the given value is not nil.
func (*SessionCreate) SetNillableOs ¶
func (_c *SessionCreate) SetNillableOs(v *string) *SessionCreate
SetNillableOs sets the "os" field if the given value is not nil.
func (*SessionCreate) SetNillablePageCount ¶
func (_c *SessionCreate) SetNillablePageCount(v *int) *SessionCreate
SetNillablePageCount sets the "page_count" field if the given value is not nil.
func (*SessionCreate) SetNillableRegion ¶
func (_c *SessionCreate) SetNillableRegion(v *string) *SessionCreate
SetNillableRegion sets the "region" field if the given value is not nil.
func (*SessionCreate) SetNillableUpdatedAt ¶
func (_c *SessionCreate) SetNillableUpdatedAt(v *time.Time) *SessionCreate
SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
func (*SessionCreate) SetNillableUserAgent ¶
func (_c *SessionCreate) SetNillableUserAgent(v *string) *SessionCreate
SetNillableUserAgent sets the "user_agent" field if the given value is not nil.
func (*SessionCreate) SetNillableUserID ¶
func (_c *SessionCreate) SetNillableUserID(v *string) *SessionCreate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*SessionCreate) SetOrgID ¶
func (_c *SessionCreate) SetOrgID(v uuid.UUID) *SessionCreate
SetOrgID sets the "org_id" field.
func (*SessionCreate) SetOs ¶
func (_c *SessionCreate) SetOs(v string) *SessionCreate
SetOs sets the "os" field.
func (*SessionCreate) SetPageCount ¶
func (_c *SessionCreate) SetPageCount(v int) *SessionCreate
SetPageCount sets the "page_count" field.
func (*SessionCreate) SetProject ¶
func (_c *SessionCreate) SetProject(v *Project) *SessionCreate
SetProject sets the "project" edge to the Project entity.
func (*SessionCreate) SetProjectID ¶
func (_c *SessionCreate) SetProjectID(v uuid.UUID) *SessionCreate
SetProjectID sets the "project_id" field.
func (*SessionCreate) SetRegion ¶
func (_c *SessionCreate) SetRegion(v string) *SessionCreate
SetRegion sets the "region" field.
func (*SessionCreate) SetSessionID ¶
func (_c *SessionCreate) SetSessionID(v string) *SessionCreate
SetSessionID sets the "session_id" field.
func (*SessionCreate) SetStartedAt ¶
func (_c *SessionCreate) SetStartedAt(v time.Time) *SessionCreate
SetStartedAt sets the "started_at" field.
func (*SessionCreate) SetUpdatedAt ¶
func (_c *SessionCreate) SetUpdatedAt(v time.Time) *SessionCreate
SetUpdatedAt sets the "updated_at" field.
func (*SessionCreate) SetUserAgent ¶
func (_c *SessionCreate) SetUserAgent(v string) *SessionCreate
SetUserAgent sets the "user_agent" field.
func (*SessionCreate) SetUserID ¶
func (_c *SessionCreate) SetUserID(v string) *SessionCreate
SetUserID sets the "user_id" field.
type SessionCreateBulk ¶
type SessionCreateBulk struct {
// contains filtered or unexported fields
}
SessionCreateBulk is the builder for creating many Session entities in bulk.
func (*SessionCreateBulk) Exec ¶
func (_c *SessionCreateBulk) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionCreateBulk) ExecX ¶
func (_c *SessionCreateBulk) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
type SessionDelete ¶
type SessionDelete struct {
// contains filtered or unexported fields
}
SessionDelete is the builder for deleting a Session entity.
func (*SessionDelete) Exec ¶
func (_d *SessionDelete) Exec(ctx context.Context) (int, error)
Exec executes the deletion query and returns how many vertices were deleted.
func (*SessionDelete) ExecX ¶
func (_d *SessionDelete) ExecX(ctx context.Context) int
ExecX is like Exec, but panics if an error occurs.
func (*SessionDelete) Where ¶
func (_d *SessionDelete) Where(ps ...predicate.Session) *SessionDelete
Where appends a list predicates to the SessionDelete builder.
type SessionDeleteOne ¶
type SessionDeleteOne struct {
// contains filtered or unexported fields
}
SessionDeleteOne is the builder for deleting a single Session entity.
func (*SessionDeleteOne) Exec ¶
func (_d *SessionDeleteOne) Exec(ctx context.Context) error
Exec executes the deletion query.
func (*SessionDeleteOne) ExecX ¶
func (_d *SessionDeleteOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionDeleteOne) Where ¶
func (_d *SessionDeleteOne) Where(ps ...predicate.Session) *SessionDeleteOne
Where appends a list predicates to the SessionDelete builder.
type SessionEdges ¶
type SessionEdges struct {
// Project holds the value of the project edge.
Project *Project `json:"project,omitempty"`
// Journey holds the value of the journey edge.
Journey *Journey `json:"journey,omitempty"`
// contains filtered or unexported fields
}
SessionEdges holds the relations/edges for other nodes in the graph.
func (SessionEdges) JourneyOrErr ¶
func (e SessionEdges) JourneyOrErr() (*Journey, error)
JourneyOrErr returns the Journey value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
func (SessionEdges) ProjectOrErr ¶
func (e SessionEdges) ProjectOrErr() (*Project, error)
ProjectOrErr returns the Project value or an error if the edge was not loaded in eager-loading, or loaded but was not found.
type SessionGroupBy ¶
type SessionGroupBy struct {
// contains filtered or unexported fields
}
SessionGroupBy is the group-by builder for Session entities.
func (*SessionGroupBy) Aggregate ¶
func (_g *SessionGroupBy) Aggregate(fns ...AggregateFunc) *SessionGroupBy
Aggregate adds the given aggregation functions to the group-by query.
func (*SessionGroupBy) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SessionGroupBy) Scan ¶
func (_g *SessionGroupBy) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SessionGroupBy) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SessionMutation ¶
type SessionMutation struct {
// contains filtered or unexported fields
}
SessionMutation represents an operation that mutates the Session nodes in the graph.
func (*SessionMutation) AddDurationMs ¶
func (m *SessionMutation) AddDurationMs(i int64)
AddDurationMs adds i to the "duration_ms" field.
func (*SessionMutation) AddEventCount ¶
func (m *SessionMutation) AddEventCount(i int)
AddEventCount adds i to the "event_count" field.
func (*SessionMutation) AddField ¶
func (m *SessionMutation) 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 (*SessionMutation) AddPageCount ¶
func (m *SessionMutation) AddPageCount(i int)
AddPageCount adds i to the "page_count" field.
func (*SessionMutation) AddedDurationMs ¶
func (m *SessionMutation) AddedDurationMs() (r int64, exists bool)
AddedDurationMs returns the value that was added to the "duration_ms" field in this mutation.
func (*SessionMutation) AddedEdges ¶
func (m *SessionMutation) AddedEdges() []string
AddedEdges returns all edge names that were set/added in this mutation.
func (*SessionMutation) AddedEventCount ¶
func (m *SessionMutation) AddedEventCount() (r int, exists bool)
AddedEventCount returns the value that was added to the "event_count" field in this mutation.
func (*SessionMutation) AddedField ¶
func (m *SessionMutation) 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 (*SessionMutation) AddedFields ¶
func (m *SessionMutation) AddedFields() []string
AddedFields returns all numeric fields that were incremented/decremented during this mutation.
func (*SessionMutation) AddedIDs ¶
func (m *SessionMutation) AddedIDs(name string) []ent.Value
AddedIDs returns all IDs (to other nodes) that were added for the given edge name in this mutation.
func (*SessionMutation) AddedPageCount ¶
func (m *SessionMutation) AddedPageCount() (r int, exists bool)
AddedPageCount returns the value that was added to the "page_count" field in this mutation.
func (*SessionMutation) Browser ¶
func (m *SessionMutation) Browser() (r string, exists bool)
Browser returns the value of the "browser" field in the mutation.
func (*SessionMutation) BrowserCleared ¶
func (m *SessionMutation) BrowserCleared() bool
BrowserCleared returns if the "browser" field was cleared in this mutation.
func (*SessionMutation) City ¶
func (m *SessionMutation) City() (r string, exists bool)
City returns the value of the "city" field in the mutation.
func (*SessionMutation) CityCleared ¶
func (m *SessionMutation) CityCleared() bool
CityCleared returns if the "city" field was cleared in this mutation.
func (*SessionMutation) ClearBrowser ¶
func (m *SessionMutation) ClearBrowser()
ClearBrowser clears the value of the "browser" field.
func (*SessionMutation) ClearCity ¶
func (m *SessionMutation) ClearCity()
ClearCity clears the value of the "city" field.
func (*SessionMutation) ClearConversionStatus ¶
func (m *SessionMutation) ClearConversionStatus()
ClearConversionStatus clears the value of the "conversion_status" field.
func (*SessionMutation) ClearCountry ¶
func (m *SessionMutation) ClearCountry()
ClearCountry clears the value of the "country" field.
func (*SessionMutation) ClearDeviceType ¶
func (m *SessionMutation) ClearDeviceType()
ClearDeviceType clears the value of the "device_type" field.
func (*SessionMutation) ClearEdge ¶
func (m *SessionMutation) 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 (*SessionMutation) ClearEndedAt ¶
func (m *SessionMutation) ClearEndedAt()
ClearEndedAt clears the value of the "ended_at" field.
func (*SessionMutation) ClearEntryPage ¶
func (m *SessionMutation) ClearEntryPage()
ClearEntryPage clears the value of the "entry_page" field.
func (*SessionMutation) ClearExitPage ¶
func (m *SessionMutation) ClearExitPage()
ClearExitPage clears the value of the "exit_page" field.
func (*SessionMutation) ClearField ¶
func (m *SessionMutation) 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 (*SessionMutation) ClearJourney ¶
func (m *SessionMutation) ClearJourney()
ClearJourney clears the "journey" edge to the Journey entity.
func (*SessionMutation) ClearJourneyID ¶
func (m *SessionMutation) ClearJourneyID()
ClearJourneyID clears the value of the "journey_id" field.
func (*SessionMutation) ClearLastJourneyStepID ¶
func (m *SessionMutation) ClearLastJourneyStepID()
ClearLastJourneyStepID clears the value of the "last_journey_step_id" field.
func (*SessionMutation) ClearOs ¶
func (m *SessionMutation) ClearOs()
ClearOs clears the value of the "os" field.
func (*SessionMutation) ClearProject ¶
func (m *SessionMutation) ClearProject()
ClearProject clears the "project" edge to the Project entity.
func (*SessionMutation) ClearRegion ¶
func (m *SessionMutation) ClearRegion()
ClearRegion clears the value of the "region" field.
func (*SessionMutation) ClearUserAgent ¶
func (m *SessionMutation) ClearUserAgent()
ClearUserAgent clears the value of the "user_agent" field.
func (*SessionMutation) ClearUserID ¶
func (m *SessionMutation) ClearUserID()
ClearUserID clears the value of the "user_id" field.
func (*SessionMutation) ClearedEdges ¶
func (m *SessionMutation) ClearedEdges() []string
ClearedEdges returns all edge names that were cleared in this mutation.
func (*SessionMutation) ClearedFields ¶
func (m *SessionMutation) ClearedFields() []string
ClearedFields returns all nullable fields that were cleared during this mutation.
func (SessionMutation) Client ¶
func (m SessionMutation) 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 (*SessionMutation) ConversionStatus ¶
func (m *SessionMutation) ConversionStatus() (r string, exists bool)
ConversionStatus returns the value of the "conversion_status" field in the mutation.
func (*SessionMutation) ConversionStatusCleared ¶
func (m *SessionMutation) ConversionStatusCleared() bool
ConversionStatusCleared returns if the "conversion_status" field was cleared in this mutation.
func (*SessionMutation) Country ¶
func (m *SessionMutation) Country() (r string, exists bool)
Country returns the value of the "country" field in the mutation.
func (*SessionMutation) CountryCleared ¶
func (m *SessionMutation) CountryCleared() bool
CountryCleared returns if the "country" field was cleared in this mutation.
func (*SessionMutation) CreatedAt ¶
func (m *SessionMutation) CreatedAt() (r time.Time, exists bool)
CreatedAt returns the value of the "created_at" field in the mutation.
func (*SessionMutation) DeviceType ¶
func (m *SessionMutation) DeviceType() (r string, exists bool)
DeviceType returns the value of the "device_type" field in the mutation.
func (*SessionMutation) DeviceTypeCleared ¶
func (m *SessionMutation) DeviceTypeCleared() bool
DeviceTypeCleared returns if the "device_type" field was cleared in this mutation.
func (*SessionMutation) DurationMs ¶
func (m *SessionMutation) DurationMs() (r int64, exists bool)
DurationMs returns the value of the "duration_ms" field in the mutation.
func (*SessionMutation) EdgeCleared ¶
func (m *SessionMutation) EdgeCleared(name string) bool
EdgeCleared returns a boolean which indicates if the edge with the given name was cleared in this mutation.
func (*SessionMutation) EndedAt ¶
func (m *SessionMutation) EndedAt() (r time.Time, exists bool)
EndedAt returns the value of the "ended_at" field in the mutation.
func (*SessionMutation) EndedAtCleared ¶
func (m *SessionMutation) EndedAtCleared() bool
EndedAtCleared returns if the "ended_at" field was cleared in this mutation.
func (*SessionMutation) EntryPage ¶
func (m *SessionMutation) EntryPage() (r string, exists bool)
EntryPage returns the value of the "entry_page" field in the mutation.
func (*SessionMutation) EntryPageCleared ¶
func (m *SessionMutation) EntryPageCleared() bool
EntryPageCleared returns if the "entry_page" field was cleared in this mutation.
func (*SessionMutation) EventCount ¶
func (m *SessionMutation) EventCount() (r int, exists bool)
EventCount returns the value of the "event_count" field in the mutation.
func (*SessionMutation) ExitPage ¶
func (m *SessionMutation) ExitPage() (r string, exists bool)
ExitPage returns the value of the "exit_page" field in the mutation.
func (*SessionMutation) ExitPageCleared ¶
func (m *SessionMutation) ExitPageCleared() bool
ExitPageCleared returns if the "exit_page" field was cleared in this mutation.
func (*SessionMutation) Field ¶
func (m *SessionMutation) 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 (*SessionMutation) FieldCleared ¶
func (m *SessionMutation) FieldCleared(name string) bool
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
func (*SessionMutation) Fields ¶
func (m *SessionMutation) 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 (*SessionMutation) ID ¶
func (m *SessionMutation) ID() (id uuid.UUID, 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 (*SessionMutation) IDs ¶
IDs queries the database and returns the entity ids that match the mutation's predicate. That means, if the mutation is applied within a transaction with an isolation level such as sql.LevelSerializable, the returned ids match the ids of the rows that will be updated or updated by the mutation.
func (*SessionMutation) JourneyCleared ¶
func (m *SessionMutation) JourneyCleared() bool
JourneyCleared reports if the "journey" edge to the Journey entity was cleared.
func (*SessionMutation) JourneyID ¶
func (m *SessionMutation) JourneyID() (r uuid.UUID, exists bool)
JourneyID returns the value of the "journey_id" field in the mutation.
func (*SessionMutation) JourneyIDCleared ¶
func (m *SessionMutation) JourneyIDCleared() bool
JourneyIDCleared returns if the "journey_id" field was cleared in this mutation.
func (*SessionMutation) JourneyIDs ¶
func (m *SessionMutation) JourneyIDs() (ids []uuid.UUID)
JourneyIDs returns the "journey" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use JourneyID instead. It exists only for internal usage by the builders.
func (*SessionMutation) LastJourneyStepID ¶
func (m *SessionMutation) LastJourneyStepID() (r string, exists bool)
LastJourneyStepID returns the value of the "last_journey_step_id" field in the mutation.
func (*SessionMutation) LastJourneyStepIDCleared ¶
func (m *SessionMutation) LastJourneyStepIDCleared() bool
LastJourneyStepIDCleared returns if the "last_journey_step_id" field was cleared in this mutation.
func (*SessionMutation) OldBrowser ¶
func (m *SessionMutation) OldBrowser(ctx context.Context) (v string, err error)
OldBrowser returns the old "browser" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldCity ¶
func (m *SessionMutation) OldCity(ctx context.Context) (v string, err error)
OldCity returns the old "city" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldConversionStatus ¶
func (m *SessionMutation) OldConversionStatus(ctx context.Context) (v string, err error)
OldConversionStatus returns the old "conversion_status" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldCountry ¶
func (m *SessionMutation) OldCountry(ctx context.Context) (v string, err error)
OldCountry returns the old "country" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldCreatedAt ¶
OldCreatedAt returns the old "created_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldDeviceType ¶
func (m *SessionMutation) OldDeviceType(ctx context.Context) (v string, err error)
OldDeviceType returns the old "device_type" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldDurationMs ¶
func (m *SessionMutation) OldDurationMs(ctx context.Context) (v int64, err error)
OldDurationMs returns the old "duration_ms" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldEndedAt ¶
OldEndedAt returns the old "ended_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldEntryPage ¶
func (m *SessionMutation) OldEntryPage(ctx context.Context) (v string, err error)
OldEntryPage returns the old "entry_page" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldEventCount ¶
func (m *SessionMutation) OldEventCount(ctx context.Context) (v int, err error)
OldEventCount returns the old "event_count" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldExitPage ¶
func (m *SessionMutation) OldExitPage(ctx context.Context) (v string, err error)
OldExitPage returns the old "exit_page" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldField ¶
OldField returns the old value of the field from the database. An error is returned if the mutation operation is not UpdateOne, or the query to the database failed.
func (*SessionMutation) OldJourneyID ¶
OldJourneyID returns the old "journey_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldLastJourneyStepID ¶
func (m *SessionMutation) OldLastJourneyStepID(ctx context.Context) (v string, err error)
OldLastJourneyStepID returns the old "last_journey_step_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldOrgID ¶
OldOrgID returns the old "org_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldOs ¶
func (m *SessionMutation) OldOs(ctx context.Context) (v string, err error)
OldOs returns the old "os" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldPageCount ¶
func (m *SessionMutation) OldPageCount(ctx context.Context) (v int, err error)
OldPageCount returns the old "page_count" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldProjectID ¶
OldProjectID returns the old "project_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldRegion ¶
func (m *SessionMutation) OldRegion(ctx context.Context) (v string, err error)
OldRegion returns the old "region" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldSessionID ¶
func (m *SessionMutation) OldSessionID(ctx context.Context) (v string, err error)
OldSessionID returns the old "session_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldStartedAt ¶
OldStartedAt returns the old "started_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUpdatedAt ¶
OldUpdatedAt returns the old "updated_at" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUserAgent ¶
func (m *SessionMutation) OldUserAgent(ctx context.Context) (v string, err error)
OldUserAgent returns the old "user_agent" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OldUserID ¶
func (m *SessionMutation) OldUserID(ctx context.Context) (v string, err error)
OldUserID returns the old "user_id" field's value of the Session entity. If the Session object wasn't provided to the builder, the object is fetched from the database. An error is returned if the mutation operation is not UpdateOne, or the database query fails.
func (*SessionMutation) OrgID ¶
func (m *SessionMutation) OrgID() (r uuid.UUID, exists bool)
OrgID returns the value of the "org_id" field in the mutation.
func (*SessionMutation) Os ¶
func (m *SessionMutation) Os() (r string, exists bool)
Os returns the value of the "os" field in the mutation.
func (*SessionMutation) OsCleared ¶
func (m *SessionMutation) OsCleared() bool
OsCleared returns if the "os" field was cleared in this mutation.
func (*SessionMutation) PageCount ¶
func (m *SessionMutation) PageCount() (r int, exists bool)
PageCount returns the value of the "page_count" field in the mutation.
func (*SessionMutation) ProjectCleared ¶
func (m *SessionMutation) ProjectCleared() bool
ProjectCleared reports if the "project" edge to the Project entity was cleared.
func (*SessionMutation) ProjectID ¶
func (m *SessionMutation) ProjectID() (r uuid.UUID, exists bool)
ProjectID returns the value of the "project_id" field in the mutation.
func (*SessionMutation) ProjectIDs ¶
func (m *SessionMutation) ProjectIDs() (ids []uuid.UUID)
ProjectIDs returns the "project" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use ProjectID instead. It exists only for internal usage by the builders.
func (*SessionMutation) Region ¶
func (m *SessionMutation) Region() (r string, exists bool)
Region returns the value of the "region" field in the mutation.
func (*SessionMutation) RegionCleared ¶
func (m *SessionMutation) RegionCleared() bool
RegionCleared returns if the "region" field was cleared in this mutation.
func (*SessionMutation) RemovedEdges ¶
func (m *SessionMutation) RemovedEdges() []string
RemovedEdges returns all edge names that were removed in this mutation.
func (*SessionMutation) RemovedIDs ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetBrowser ¶
func (m *SessionMutation) ResetBrowser()
ResetBrowser resets all changes to the "browser" field.
func (*SessionMutation) ResetCity ¶
func (m *SessionMutation) ResetCity()
ResetCity resets all changes to the "city" field.
func (*SessionMutation) ResetConversionStatus ¶
func (m *SessionMutation) ResetConversionStatus()
ResetConversionStatus resets all changes to the "conversion_status" field.
func (*SessionMutation) ResetCountry ¶
func (m *SessionMutation) ResetCountry()
ResetCountry resets all changes to the "country" field.
func (*SessionMutation) ResetCreatedAt ¶
func (m *SessionMutation) ResetCreatedAt()
ResetCreatedAt resets all changes to the "created_at" field.
func (*SessionMutation) ResetDeviceType ¶
func (m *SessionMutation) ResetDeviceType()
ResetDeviceType resets all changes to the "device_type" field.
func (*SessionMutation) ResetDurationMs ¶
func (m *SessionMutation) ResetDurationMs()
ResetDurationMs resets all changes to the "duration_ms" field.
func (*SessionMutation) ResetEdge ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetEndedAt ¶
func (m *SessionMutation) ResetEndedAt()
ResetEndedAt resets all changes to the "ended_at" field.
func (*SessionMutation) ResetEntryPage ¶
func (m *SessionMutation) ResetEntryPage()
ResetEntryPage resets all changes to the "entry_page" field.
func (*SessionMutation) ResetEventCount ¶
func (m *SessionMutation) ResetEventCount()
ResetEventCount resets all changes to the "event_count" field.
func (*SessionMutation) ResetExitPage ¶
func (m *SessionMutation) ResetExitPage()
ResetExitPage resets all changes to the "exit_page" field.
func (*SessionMutation) ResetField ¶
func (m *SessionMutation) 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 (*SessionMutation) ResetJourney ¶
func (m *SessionMutation) ResetJourney()
ResetJourney resets all changes to the "journey" edge.
func (*SessionMutation) ResetJourneyID ¶
func (m *SessionMutation) ResetJourneyID()
ResetJourneyID resets all changes to the "journey_id" field.
func (*SessionMutation) ResetLastJourneyStepID ¶
func (m *SessionMutation) ResetLastJourneyStepID()
ResetLastJourneyStepID resets all changes to the "last_journey_step_id" field.
func (*SessionMutation) ResetOrgID ¶
func (m *SessionMutation) ResetOrgID()
ResetOrgID resets all changes to the "org_id" field.
func (*SessionMutation) ResetOs ¶
func (m *SessionMutation) ResetOs()
ResetOs resets all changes to the "os" field.
func (*SessionMutation) ResetPageCount ¶
func (m *SessionMutation) ResetPageCount()
ResetPageCount resets all changes to the "page_count" field.
func (*SessionMutation) ResetProject ¶
func (m *SessionMutation) ResetProject()
ResetProject resets all changes to the "project" edge.
func (*SessionMutation) ResetProjectID ¶
func (m *SessionMutation) ResetProjectID()
ResetProjectID resets all changes to the "project_id" field.
func (*SessionMutation) ResetRegion ¶
func (m *SessionMutation) ResetRegion()
ResetRegion resets all changes to the "region" field.
func (*SessionMutation) ResetSessionID ¶
func (m *SessionMutation) ResetSessionID()
ResetSessionID resets all changes to the "session_id" field.
func (*SessionMutation) ResetStartedAt ¶
func (m *SessionMutation) ResetStartedAt()
ResetStartedAt resets all changes to the "started_at" field.
func (*SessionMutation) ResetUpdatedAt ¶
func (m *SessionMutation) ResetUpdatedAt()
ResetUpdatedAt resets all changes to the "updated_at" field.
func (*SessionMutation) ResetUserAgent ¶
func (m *SessionMutation) ResetUserAgent()
ResetUserAgent resets all changes to the "user_agent" field.
func (*SessionMutation) ResetUserID ¶
func (m *SessionMutation) ResetUserID()
ResetUserID resets all changes to the "user_id" field.
func (*SessionMutation) SessionID ¶
func (m *SessionMutation) SessionID() (r string, exists bool)
SessionID returns the value of the "session_id" field in the mutation.
func (*SessionMutation) SetBrowser ¶
func (m *SessionMutation) SetBrowser(s string)
SetBrowser sets the "browser" field.
func (*SessionMutation) SetCity ¶
func (m *SessionMutation) SetCity(s string)
SetCity sets the "city" field.
func (*SessionMutation) SetConversionStatus ¶
func (m *SessionMutation) SetConversionStatus(s string)
SetConversionStatus sets the "conversion_status" field.
func (*SessionMutation) SetCountry ¶
func (m *SessionMutation) SetCountry(s string)
SetCountry sets the "country" field.
func (*SessionMutation) SetCreatedAt ¶
func (m *SessionMutation) SetCreatedAt(t time.Time)
SetCreatedAt sets the "created_at" field.
func (*SessionMutation) SetDeviceType ¶
func (m *SessionMutation) SetDeviceType(s string)
SetDeviceType sets the "device_type" field.
func (*SessionMutation) SetDurationMs ¶
func (m *SessionMutation) SetDurationMs(i int64)
SetDurationMs sets the "duration_ms" field.
func (*SessionMutation) SetEndedAt ¶
func (m *SessionMutation) SetEndedAt(t time.Time)
SetEndedAt sets the "ended_at" field.
func (*SessionMutation) SetEntryPage ¶
func (m *SessionMutation) SetEntryPage(s string)
SetEntryPage sets the "entry_page" field.
func (*SessionMutation) SetEventCount ¶
func (m *SessionMutation) SetEventCount(i int)
SetEventCount sets the "event_count" field.
func (*SessionMutation) SetExitPage ¶
func (m *SessionMutation) SetExitPage(s string)
SetExitPage sets the "exit_page" field.
func (*SessionMutation) SetField ¶
func (m *SessionMutation) 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 (*SessionMutation) SetID ¶
func (m *SessionMutation) SetID(id uuid.UUID)
SetID sets the value of the id field. Note that this operation is only accepted on creation of Session entities.
func (*SessionMutation) SetJourneyID ¶
func (m *SessionMutation) SetJourneyID(u uuid.UUID)
SetJourneyID sets the "journey_id" field.
func (*SessionMutation) SetLastJourneyStepID ¶
func (m *SessionMutation) SetLastJourneyStepID(s string)
SetLastJourneyStepID sets the "last_journey_step_id" field.
func (*SessionMutation) SetOp ¶
func (m *SessionMutation) SetOp(op Op)
SetOp allows setting the mutation operation.
func (*SessionMutation) SetOrgID ¶
func (m *SessionMutation) SetOrgID(u uuid.UUID)
SetOrgID sets the "org_id" field.
func (*SessionMutation) SetOs ¶
func (m *SessionMutation) SetOs(s string)
SetOs sets the "os" field.
func (*SessionMutation) SetPageCount ¶
func (m *SessionMutation) SetPageCount(i int)
SetPageCount sets the "page_count" field.
func (*SessionMutation) SetProjectID ¶
func (m *SessionMutation) SetProjectID(u uuid.UUID)
SetProjectID sets the "project_id" field.
func (*SessionMutation) SetRegion ¶
func (m *SessionMutation) SetRegion(s string)
SetRegion sets the "region" field.
func (*SessionMutation) SetSessionID ¶
func (m *SessionMutation) SetSessionID(s string)
SetSessionID sets the "session_id" field.
func (*SessionMutation) SetStartedAt ¶
func (m *SessionMutation) SetStartedAt(t time.Time)
SetStartedAt sets the "started_at" field.
func (*SessionMutation) SetUpdatedAt ¶
func (m *SessionMutation) SetUpdatedAt(t time.Time)
SetUpdatedAt sets the "updated_at" field.
func (*SessionMutation) SetUserAgent ¶
func (m *SessionMutation) SetUserAgent(s string)
SetUserAgent sets the "user_agent" field.
func (*SessionMutation) SetUserID ¶
func (m *SessionMutation) SetUserID(s string)
SetUserID sets the "user_id" field.
func (*SessionMutation) StartedAt ¶
func (m *SessionMutation) StartedAt() (r time.Time, exists bool)
StartedAt returns the value of the "started_at" field in the mutation.
func (SessionMutation) Tx ¶
func (m SessionMutation) Tx() (*Tx, error)
Tx returns an `ent.Tx` for mutations that were executed in transactions; it returns an error otherwise.
func (*SessionMutation) Type ¶
func (m *SessionMutation) Type() string
Type returns the node type of this mutation (Session).
func (*SessionMutation) UpdatedAt ¶
func (m *SessionMutation) UpdatedAt() (r time.Time, exists bool)
UpdatedAt returns the value of the "updated_at" field in the mutation.
func (*SessionMutation) UserAgent ¶
func (m *SessionMutation) UserAgent() (r string, exists bool)
UserAgent returns the value of the "user_agent" field in the mutation.
func (*SessionMutation) UserAgentCleared ¶
func (m *SessionMutation) UserAgentCleared() bool
UserAgentCleared returns if the "user_agent" field was cleared in this mutation.
func (*SessionMutation) UserID ¶
func (m *SessionMutation) UserID() (r string, exists bool)
UserID returns the value of the "user_id" field in the mutation.
func (*SessionMutation) UserIDCleared ¶
func (m *SessionMutation) UserIDCleared() bool
UserIDCleared returns if the "user_id" field was cleared in this mutation.
func (*SessionMutation) Where ¶
func (m *SessionMutation) Where(ps ...predicate.Session)
Where appends a list predicates to the SessionMutation builder.
func (*SessionMutation) WhereP ¶
func (m *SessionMutation) WhereP(ps ...func(*sql.Selector))
WhereP appends storage-level predicates to the SessionMutation builder. Using this method, users can use type-assertion to append predicates that do not depend on any generated package.
type SessionQuery ¶
type SessionQuery struct {
// contains filtered or unexported fields
}
SessionQuery is the builder for querying Session entities.
func (*SessionQuery) Aggregate ¶
func (_q *SessionQuery) Aggregate(fns ...AggregateFunc) *SessionSelect
Aggregate returns a SessionSelect configured with the given aggregations.
func (*SessionQuery) All ¶
func (_q *SessionQuery) All(ctx context.Context) ([]*Session, error)
All executes the query and returns a list of Sessions.
func (*SessionQuery) AllX ¶
func (_q *SessionQuery) AllX(ctx context.Context) []*Session
AllX is like All, but panics if an error occurs.
func (*SessionQuery) Clone ¶
func (_q *SessionQuery) Clone() *SessionQuery
Clone returns a duplicate of the SessionQuery builder, including all associated steps. It can be used to prepare common query builders and use them differently after the clone is made.
func (*SessionQuery) Count ¶
func (_q *SessionQuery) Count(ctx context.Context) (int, error)
Count returns the count of the given query.
func (*SessionQuery) CountX ¶
func (_q *SessionQuery) CountX(ctx context.Context) int
CountX is like Count, but panics if an error occurs.
func (*SessionQuery) Exist ¶
func (_q *SessionQuery) Exist(ctx context.Context) (bool, error)
Exist returns true if the query has elements in the graph.
func (*SessionQuery) ExistX ¶
func (_q *SessionQuery) ExistX(ctx context.Context) bool
ExistX is like Exist, but panics if an error occurs.
func (*SessionQuery) First ¶
func (_q *SessionQuery) First(ctx context.Context) (*Session, error)
First returns the first Session entity from the query. Returns a *NotFoundError when no Session was found.
func (*SessionQuery) FirstID ¶
FirstID returns the first Session ID from the query. Returns a *NotFoundError when no Session ID was found.
func (*SessionQuery) FirstIDX ¶
func (_q *SessionQuery) FirstIDX(ctx context.Context) uuid.UUID
FirstIDX is like FirstID, but panics if an error occurs.
func (*SessionQuery) FirstX ¶
func (_q *SessionQuery) FirstX(ctx context.Context) *Session
FirstX is like First, but panics if an error occurs.
func (*SessionQuery) GroupBy ¶
func (_q *SessionQuery) GroupBy(field string, fields ...string) *SessionGroupBy
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
Count int `json:"count,omitempty"`
}
client.Session.Query().
GroupBy(session.FieldOrgID).
Aggregate(ent.Count()).
Scan(ctx, &v)
func (*SessionQuery) IDsX ¶
func (_q *SessionQuery) IDsX(ctx context.Context) []uuid.UUID
IDsX is like IDs, but panics if an error occurs.
func (*SessionQuery) Limit ¶
func (_q *SessionQuery) Limit(limit int) *SessionQuery
Limit the number of records to be returned by this query.
func (*SessionQuery) Offset ¶
func (_q *SessionQuery) Offset(offset int) *SessionQuery
Offset to start from.
func (*SessionQuery) Only ¶
func (_q *SessionQuery) Only(ctx context.Context) (*Session, error)
Only returns a single Session entity found by the query, ensuring it only returns one. Returns a *NotSingularError when more than one Session entity is found. Returns a *NotFoundError when no Session entities are found.
func (*SessionQuery) OnlyID ¶
OnlyID is like Only, but returns the only Session ID in the query. Returns a *NotSingularError when more than one Session ID is found. Returns a *NotFoundError when no entities are found.
func (*SessionQuery) OnlyIDX ¶
func (_q *SessionQuery) OnlyIDX(ctx context.Context) uuid.UUID
OnlyIDX is like OnlyID, but panics if an error occurs.
func (*SessionQuery) OnlyX ¶
func (_q *SessionQuery) OnlyX(ctx context.Context) *Session
OnlyX is like Only, but panics if an error occurs.
func (*SessionQuery) Order ¶
func (_q *SessionQuery) Order(o ...session.OrderOption) *SessionQuery
Order specifies how the records should be ordered.
func (*SessionQuery) QueryJourney ¶
func (_q *SessionQuery) QueryJourney() *JourneyQuery
QueryJourney chains the current query on the "journey" edge.
func (*SessionQuery) QueryProject ¶
func (_q *SessionQuery) QueryProject() *ProjectQuery
QueryProject chains the current query on the "project" edge.
func (*SessionQuery) Select ¶
func (_q *SessionQuery) Select(fields ...string) *SessionSelect
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 {
OrgID uuid.UUID `json:"org_id,omitempty"`
}
client.Session.Query().
Select(session.FieldOrgID).
Scan(ctx, &v)
func (*SessionQuery) Unique ¶
func (_q *SessionQuery) Unique(unique bool) *SessionQuery
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 (*SessionQuery) Where ¶
func (_q *SessionQuery) Where(ps ...predicate.Session) *SessionQuery
Where adds a new predicate for the SessionQuery builder.
func (*SessionQuery) WithJourney ¶
func (_q *SessionQuery) WithJourney(opts ...func(*JourneyQuery)) *SessionQuery
WithJourney tells the query-builder to eager-load the nodes that are connected to the "journey" edge. The optional arguments are used to configure the query builder of the edge.
func (*SessionQuery) WithProject ¶
func (_q *SessionQuery) WithProject(opts ...func(*ProjectQuery)) *SessionQuery
WithProject tells the query-builder to eager-load the nodes that are connected to the "project" edge. The optional arguments are used to configure the query builder of the edge.
type SessionSelect ¶
type SessionSelect struct {
*SessionQuery
// contains filtered or unexported fields
}
SessionSelect is the builder for selecting fields of Session entities.
func (*SessionSelect) Aggregate ¶
func (_s *SessionSelect) Aggregate(fns ...AggregateFunc) *SessionSelect
Aggregate adds the given aggregation functions to the selector query.
func (*SessionSelect) Bool ¶
Bool returns a single bool from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Bools ¶
Bools returns list of bools from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64 ¶
Float64 returns a single float64 from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Float64s ¶
Float64s returns list of float64s from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Int ¶
Int returns a single int from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Ints ¶
Ints returns list of ints from a selector. It is only allowed when selecting one field.
func (*SessionSelect) Scan ¶
func (_s *SessionSelect) Scan(ctx context.Context, v any) error
Scan applies the selector query and scans the result into the given value.
func (*SessionSelect) String ¶
String returns a single string from a selector. It is only allowed when selecting one field.
type SessionUpdate ¶
type SessionUpdate struct {
// contains filtered or unexported fields
}
SessionUpdate is the builder for updating Session entities.
func (*SessionUpdate) AddDurationMs ¶
func (_u *SessionUpdate) AddDurationMs(v int64) *SessionUpdate
AddDurationMs adds value to the "duration_ms" field.
func (*SessionUpdate) AddEventCount ¶
func (_u *SessionUpdate) AddEventCount(v int) *SessionUpdate
AddEventCount adds value to the "event_count" field.
func (*SessionUpdate) AddPageCount ¶
func (_u *SessionUpdate) AddPageCount(v int) *SessionUpdate
AddPageCount adds value to the "page_count" field.
func (*SessionUpdate) ClearBrowser ¶
func (_u *SessionUpdate) ClearBrowser() *SessionUpdate
ClearBrowser clears the value of the "browser" field.
func (*SessionUpdate) ClearCity ¶
func (_u *SessionUpdate) ClearCity() *SessionUpdate
ClearCity clears the value of the "city" field.
func (*SessionUpdate) ClearConversionStatus ¶
func (_u *SessionUpdate) ClearConversionStatus() *SessionUpdate
ClearConversionStatus clears the value of the "conversion_status" field.
func (*SessionUpdate) ClearCountry ¶
func (_u *SessionUpdate) ClearCountry() *SessionUpdate
ClearCountry clears the value of the "country" field.
func (*SessionUpdate) ClearDeviceType ¶
func (_u *SessionUpdate) ClearDeviceType() *SessionUpdate
ClearDeviceType clears the value of the "device_type" field.
func (*SessionUpdate) ClearEndedAt ¶
func (_u *SessionUpdate) ClearEndedAt() *SessionUpdate
ClearEndedAt clears the value of the "ended_at" field.
func (*SessionUpdate) ClearEntryPage ¶
func (_u *SessionUpdate) ClearEntryPage() *SessionUpdate
ClearEntryPage clears the value of the "entry_page" field.
func (*SessionUpdate) ClearExitPage ¶
func (_u *SessionUpdate) ClearExitPage() *SessionUpdate
ClearExitPage clears the value of the "exit_page" field.
func (*SessionUpdate) ClearJourney ¶
func (_u *SessionUpdate) ClearJourney() *SessionUpdate
ClearJourney clears the "journey" edge to the Journey entity.
func (*SessionUpdate) ClearJourneyID ¶
func (_u *SessionUpdate) ClearJourneyID() *SessionUpdate
ClearJourneyID clears the value of the "journey_id" field.
func (*SessionUpdate) ClearLastJourneyStepID ¶
func (_u *SessionUpdate) ClearLastJourneyStepID() *SessionUpdate
ClearLastJourneyStepID clears the value of the "last_journey_step_id" field.
func (*SessionUpdate) ClearOs ¶
func (_u *SessionUpdate) ClearOs() *SessionUpdate
ClearOs clears the value of the "os" field.
func (*SessionUpdate) ClearProject ¶
func (_u *SessionUpdate) ClearProject() *SessionUpdate
ClearProject clears the "project" edge to the Project entity.
func (*SessionUpdate) ClearRegion ¶
func (_u *SessionUpdate) ClearRegion() *SessionUpdate
ClearRegion clears the value of the "region" field.
func (*SessionUpdate) ClearUserAgent ¶
func (_u *SessionUpdate) ClearUserAgent() *SessionUpdate
ClearUserAgent clears the value of the "user_agent" field.
func (*SessionUpdate) ClearUserID ¶
func (_u *SessionUpdate) ClearUserID() *SessionUpdate
ClearUserID clears the value of the "user_id" field.
func (*SessionUpdate) Exec ¶
func (_u *SessionUpdate) Exec(ctx context.Context) error
Exec executes the query.
func (*SessionUpdate) ExecX ¶
func (_u *SessionUpdate) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdate) Mutation ¶
func (_u *SessionUpdate) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdate) Save ¶
func (_u *SessionUpdate) Save(ctx context.Context) (int, error)
Save executes the query and returns the number of nodes affected by the update operation.
func (*SessionUpdate) SaveX ¶
func (_u *SessionUpdate) SaveX(ctx context.Context) int
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdate) SetBrowser ¶
func (_u *SessionUpdate) SetBrowser(v string) *SessionUpdate
SetBrowser sets the "browser" field.
func (*SessionUpdate) SetCity ¶
func (_u *SessionUpdate) SetCity(v string) *SessionUpdate
SetCity sets the "city" field.
func (*SessionUpdate) SetConversionStatus ¶
func (_u *SessionUpdate) SetConversionStatus(v string) *SessionUpdate
SetConversionStatus sets the "conversion_status" field.
func (*SessionUpdate) SetCountry ¶
func (_u *SessionUpdate) SetCountry(v string) *SessionUpdate
SetCountry sets the "country" field.
func (*SessionUpdate) SetDeviceType ¶
func (_u *SessionUpdate) SetDeviceType(v string) *SessionUpdate
SetDeviceType sets the "device_type" field.
func (*SessionUpdate) SetDurationMs ¶
func (_u *SessionUpdate) SetDurationMs(v int64) *SessionUpdate
SetDurationMs sets the "duration_ms" field.
func (*SessionUpdate) SetEndedAt ¶
func (_u *SessionUpdate) SetEndedAt(v time.Time) *SessionUpdate
SetEndedAt sets the "ended_at" field.
func (*SessionUpdate) SetEntryPage ¶
func (_u *SessionUpdate) SetEntryPage(v string) *SessionUpdate
SetEntryPage sets the "entry_page" field.
func (*SessionUpdate) SetEventCount ¶
func (_u *SessionUpdate) SetEventCount(v int) *SessionUpdate
SetEventCount sets the "event_count" field.
func (*SessionUpdate) SetExitPage ¶
func (_u *SessionUpdate) SetExitPage(v string) *SessionUpdate
SetExitPage sets the "exit_page" field.
func (*SessionUpdate) SetJourney ¶
func (_u *SessionUpdate) SetJourney(v *Journey) *SessionUpdate
SetJourney sets the "journey" edge to the Journey entity.
func (*SessionUpdate) SetJourneyID ¶
func (_u *SessionUpdate) SetJourneyID(v uuid.UUID) *SessionUpdate
SetJourneyID sets the "journey_id" field.
func (*SessionUpdate) SetLastJourneyStepID ¶
func (_u *SessionUpdate) SetLastJourneyStepID(v string) *SessionUpdate
SetLastJourneyStepID sets the "last_journey_step_id" field.
func (*SessionUpdate) SetNillableBrowser ¶
func (_u *SessionUpdate) SetNillableBrowser(v *string) *SessionUpdate
SetNillableBrowser sets the "browser" field if the given value is not nil.
func (*SessionUpdate) SetNillableCity ¶
func (_u *SessionUpdate) SetNillableCity(v *string) *SessionUpdate
SetNillableCity sets the "city" field if the given value is not nil.
func (*SessionUpdate) SetNillableConversionStatus ¶
func (_u *SessionUpdate) SetNillableConversionStatus(v *string) *SessionUpdate
SetNillableConversionStatus sets the "conversion_status" field if the given value is not nil.
func (*SessionUpdate) SetNillableCountry ¶
func (_u *SessionUpdate) SetNillableCountry(v *string) *SessionUpdate
SetNillableCountry sets the "country" field if the given value is not nil.
func (*SessionUpdate) SetNillableDeviceType ¶
func (_u *SessionUpdate) SetNillableDeviceType(v *string) *SessionUpdate
SetNillableDeviceType sets the "device_type" field if the given value is not nil.
func (*SessionUpdate) SetNillableDurationMs ¶
func (_u *SessionUpdate) SetNillableDurationMs(v *int64) *SessionUpdate
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*SessionUpdate) SetNillableEndedAt ¶
func (_u *SessionUpdate) SetNillableEndedAt(v *time.Time) *SessionUpdate
SetNillableEndedAt sets the "ended_at" field if the given value is not nil.
func (*SessionUpdate) SetNillableEntryPage ¶
func (_u *SessionUpdate) SetNillableEntryPage(v *string) *SessionUpdate
SetNillableEntryPage sets the "entry_page" field if the given value is not nil.
func (*SessionUpdate) SetNillableEventCount ¶
func (_u *SessionUpdate) SetNillableEventCount(v *int) *SessionUpdate
SetNillableEventCount sets the "event_count" field if the given value is not nil.
func (*SessionUpdate) SetNillableExitPage ¶
func (_u *SessionUpdate) SetNillableExitPage(v *string) *SessionUpdate
SetNillableExitPage sets the "exit_page" field if the given value is not nil.
func (*SessionUpdate) SetNillableJourneyID ¶
func (_u *SessionUpdate) SetNillableJourneyID(v *uuid.UUID) *SessionUpdate
SetNillableJourneyID sets the "journey_id" field if the given value is not nil.
func (*SessionUpdate) SetNillableLastJourneyStepID ¶
func (_u *SessionUpdate) SetNillableLastJourneyStepID(v *string) *SessionUpdate
SetNillableLastJourneyStepID sets the "last_journey_step_id" field if the given value is not nil.
func (*SessionUpdate) SetNillableOrgID ¶
func (_u *SessionUpdate) SetNillableOrgID(v *uuid.UUID) *SessionUpdate
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*SessionUpdate) SetNillableOs ¶
func (_u *SessionUpdate) SetNillableOs(v *string) *SessionUpdate
SetNillableOs sets the "os" field if the given value is not nil.
func (*SessionUpdate) SetNillablePageCount ¶
func (_u *SessionUpdate) SetNillablePageCount(v *int) *SessionUpdate
SetNillablePageCount sets the "page_count" field if the given value is not nil.
func (*SessionUpdate) SetNillableProjectID ¶
func (_u *SessionUpdate) SetNillableProjectID(v *uuid.UUID) *SessionUpdate
SetNillableProjectID sets the "project_id" field if the given value is not nil.
func (*SessionUpdate) SetNillableRegion ¶
func (_u *SessionUpdate) SetNillableRegion(v *string) *SessionUpdate
SetNillableRegion sets the "region" field if the given value is not nil.
func (*SessionUpdate) SetNillableSessionID ¶
func (_u *SessionUpdate) SetNillableSessionID(v *string) *SessionUpdate
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*SessionUpdate) SetNillableStartedAt ¶
func (_u *SessionUpdate) SetNillableStartedAt(v *time.Time) *SessionUpdate
SetNillableStartedAt sets the "started_at" field if the given value is not nil.
func (*SessionUpdate) SetNillableUserAgent ¶
func (_u *SessionUpdate) SetNillableUserAgent(v *string) *SessionUpdate
SetNillableUserAgent sets the "user_agent" field if the given value is not nil.
func (*SessionUpdate) SetNillableUserID ¶
func (_u *SessionUpdate) SetNillableUserID(v *string) *SessionUpdate
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*SessionUpdate) SetOrgID ¶
func (_u *SessionUpdate) SetOrgID(v uuid.UUID) *SessionUpdate
SetOrgID sets the "org_id" field.
func (*SessionUpdate) SetOs ¶
func (_u *SessionUpdate) SetOs(v string) *SessionUpdate
SetOs sets the "os" field.
func (*SessionUpdate) SetPageCount ¶
func (_u *SessionUpdate) SetPageCount(v int) *SessionUpdate
SetPageCount sets the "page_count" field.
func (*SessionUpdate) SetProject ¶
func (_u *SessionUpdate) SetProject(v *Project) *SessionUpdate
SetProject sets the "project" edge to the Project entity.
func (*SessionUpdate) SetProjectID ¶
func (_u *SessionUpdate) SetProjectID(v uuid.UUID) *SessionUpdate
SetProjectID sets the "project_id" field.
func (*SessionUpdate) SetRegion ¶
func (_u *SessionUpdate) SetRegion(v string) *SessionUpdate
SetRegion sets the "region" field.
func (*SessionUpdate) SetSessionID ¶
func (_u *SessionUpdate) SetSessionID(v string) *SessionUpdate
SetSessionID sets the "session_id" field.
func (*SessionUpdate) SetStartedAt ¶
func (_u *SessionUpdate) SetStartedAt(v time.Time) *SessionUpdate
SetStartedAt sets the "started_at" field.
func (*SessionUpdate) SetUpdatedAt ¶
func (_u *SessionUpdate) SetUpdatedAt(v time.Time) *SessionUpdate
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpdate) SetUserAgent ¶
func (_u *SessionUpdate) SetUserAgent(v string) *SessionUpdate
SetUserAgent sets the "user_agent" field.
func (*SessionUpdate) SetUserID ¶
func (_u *SessionUpdate) SetUserID(v string) *SessionUpdate
SetUserID sets the "user_id" field.
func (*SessionUpdate) Where ¶
func (_u *SessionUpdate) Where(ps ...predicate.Session) *SessionUpdate
Where appends a list predicates to the SessionUpdate builder.
type SessionUpdateOne ¶
type SessionUpdateOne struct {
// contains filtered or unexported fields
}
SessionUpdateOne is the builder for updating a single Session entity.
func (*SessionUpdateOne) AddDurationMs ¶
func (_u *SessionUpdateOne) AddDurationMs(v int64) *SessionUpdateOne
AddDurationMs adds value to the "duration_ms" field.
func (*SessionUpdateOne) AddEventCount ¶
func (_u *SessionUpdateOne) AddEventCount(v int) *SessionUpdateOne
AddEventCount adds value to the "event_count" field.
func (*SessionUpdateOne) AddPageCount ¶
func (_u *SessionUpdateOne) AddPageCount(v int) *SessionUpdateOne
AddPageCount adds value to the "page_count" field.
func (*SessionUpdateOne) ClearBrowser ¶
func (_u *SessionUpdateOne) ClearBrowser() *SessionUpdateOne
ClearBrowser clears the value of the "browser" field.
func (*SessionUpdateOne) ClearCity ¶
func (_u *SessionUpdateOne) ClearCity() *SessionUpdateOne
ClearCity clears the value of the "city" field.
func (*SessionUpdateOne) ClearConversionStatus ¶
func (_u *SessionUpdateOne) ClearConversionStatus() *SessionUpdateOne
ClearConversionStatus clears the value of the "conversion_status" field.
func (*SessionUpdateOne) ClearCountry ¶
func (_u *SessionUpdateOne) ClearCountry() *SessionUpdateOne
ClearCountry clears the value of the "country" field.
func (*SessionUpdateOne) ClearDeviceType ¶
func (_u *SessionUpdateOne) ClearDeviceType() *SessionUpdateOne
ClearDeviceType clears the value of the "device_type" field.
func (*SessionUpdateOne) ClearEndedAt ¶
func (_u *SessionUpdateOne) ClearEndedAt() *SessionUpdateOne
ClearEndedAt clears the value of the "ended_at" field.
func (*SessionUpdateOne) ClearEntryPage ¶
func (_u *SessionUpdateOne) ClearEntryPage() *SessionUpdateOne
ClearEntryPage clears the value of the "entry_page" field.
func (*SessionUpdateOne) ClearExitPage ¶
func (_u *SessionUpdateOne) ClearExitPage() *SessionUpdateOne
ClearExitPage clears the value of the "exit_page" field.
func (*SessionUpdateOne) ClearJourney ¶
func (_u *SessionUpdateOne) ClearJourney() *SessionUpdateOne
ClearJourney clears the "journey" edge to the Journey entity.
func (*SessionUpdateOne) ClearJourneyID ¶
func (_u *SessionUpdateOne) ClearJourneyID() *SessionUpdateOne
ClearJourneyID clears the value of the "journey_id" field.
func (*SessionUpdateOne) ClearLastJourneyStepID ¶
func (_u *SessionUpdateOne) ClearLastJourneyStepID() *SessionUpdateOne
ClearLastJourneyStepID clears the value of the "last_journey_step_id" field.
func (*SessionUpdateOne) ClearOs ¶
func (_u *SessionUpdateOne) ClearOs() *SessionUpdateOne
ClearOs clears the value of the "os" field.
func (*SessionUpdateOne) ClearProject ¶
func (_u *SessionUpdateOne) ClearProject() *SessionUpdateOne
ClearProject clears the "project" edge to the Project entity.
func (*SessionUpdateOne) ClearRegion ¶
func (_u *SessionUpdateOne) ClearRegion() *SessionUpdateOne
ClearRegion clears the value of the "region" field.
func (*SessionUpdateOne) ClearUserAgent ¶
func (_u *SessionUpdateOne) ClearUserAgent() *SessionUpdateOne
ClearUserAgent clears the value of the "user_agent" field.
func (*SessionUpdateOne) ClearUserID ¶
func (_u *SessionUpdateOne) ClearUserID() *SessionUpdateOne
ClearUserID clears the value of the "user_id" field.
func (*SessionUpdateOne) Exec ¶
func (_u *SessionUpdateOne) Exec(ctx context.Context) error
Exec executes the query on the entity.
func (*SessionUpdateOne) ExecX ¶
func (_u *SessionUpdateOne) ExecX(ctx context.Context)
ExecX is like Exec, but panics if an error occurs.
func (*SessionUpdateOne) Mutation ¶
func (_u *SessionUpdateOne) Mutation() *SessionMutation
Mutation returns the SessionMutation object of the builder.
func (*SessionUpdateOne) Save ¶
func (_u *SessionUpdateOne) Save(ctx context.Context) (*Session, error)
Save executes the query and returns the updated Session entity.
func (*SessionUpdateOne) SaveX ¶
func (_u *SessionUpdateOne) SaveX(ctx context.Context) *Session
SaveX is like Save, but panics if an error occurs.
func (*SessionUpdateOne) Select ¶
func (_u *SessionUpdateOne) Select(field string, fields ...string) *SessionUpdateOne
Select allows selecting one or more fields (columns) of the returned entity. The default is selecting all fields defined in the entity schema.
func (*SessionUpdateOne) SetBrowser ¶
func (_u *SessionUpdateOne) SetBrowser(v string) *SessionUpdateOne
SetBrowser sets the "browser" field.
func (*SessionUpdateOne) SetCity ¶
func (_u *SessionUpdateOne) SetCity(v string) *SessionUpdateOne
SetCity sets the "city" field.
func (*SessionUpdateOne) SetConversionStatus ¶
func (_u *SessionUpdateOne) SetConversionStatus(v string) *SessionUpdateOne
SetConversionStatus sets the "conversion_status" field.
func (*SessionUpdateOne) SetCountry ¶
func (_u *SessionUpdateOne) SetCountry(v string) *SessionUpdateOne
SetCountry sets the "country" field.
func (*SessionUpdateOne) SetDeviceType ¶
func (_u *SessionUpdateOne) SetDeviceType(v string) *SessionUpdateOne
SetDeviceType sets the "device_type" field.
func (*SessionUpdateOne) SetDurationMs ¶
func (_u *SessionUpdateOne) SetDurationMs(v int64) *SessionUpdateOne
SetDurationMs sets the "duration_ms" field.
func (*SessionUpdateOne) SetEndedAt ¶
func (_u *SessionUpdateOne) SetEndedAt(v time.Time) *SessionUpdateOne
SetEndedAt sets the "ended_at" field.
func (*SessionUpdateOne) SetEntryPage ¶
func (_u *SessionUpdateOne) SetEntryPage(v string) *SessionUpdateOne
SetEntryPage sets the "entry_page" field.
func (*SessionUpdateOne) SetEventCount ¶
func (_u *SessionUpdateOne) SetEventCount(v int) *SessionUpdateOne
SetEventCount sets the "event_count" field.
func (*SessionUpdateOne) SetExitPage ¶
func (_u *SessionUpdateOne) SetExitPage(v string) *SessionUpdateOne
SetExitPage sets the "exit_page" field.
func (*SessionUpdateOne) SetJourney ¶
func (_u *SessionUpdateOne) SetJourney(v *Journey) *SessionUpdateOne
SetJourney sets the "journey" edge to the Journey entity.
func (*SessionUpdateOne) SetJourneyID ¶
func (_u *SessionUpdateOne) SetJourneyID(v uuid.UUID) *SessionUpdateOne
SetJourneyID sets the "journey_id" field.
func (*SessionUpdateOne) SetLastJourneyStepID ¶
func (_u *SessionUpdateOne) SetLastJourneyStepID(v string) *SessionUpdateOne
SetLastJourneyStepID sets the "last_journey_step_id" field.
func (*SessionUpdateOne) SetNillableBrowser ¶
func (_u *SessionUpdateOne) SetNillableBrowser(v *string) *SessionUpdateOne
SetNillableBrowser sets the "browser" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableCity ¶
func (_u *SessionUpdateOne) SetNillableCity(v *string) *SessionUpdateOne
SetNillableCity sets the "city" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableConversionStatus ¶
func (_u *SessionUpdateOne) SetNillableConversionStatus(v *string) *SessionUpdateOne
SetNillableConversionStatus sets the "conversion_status" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableCountry ¶
func (_u *SessionUpdateOne) SetNillableCountry(v *string) *SessionUpdateOne
SetNillableCountry sets the "country" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableDeviceType ¶
func (_u *SessionUpdateOne) SetNillableDeviceType(v *string) *SessionUpdateOne
SetNillableDeviceType sets the "device_type" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableDurationMs ¶
func (_u *SessionUpdateOne) SetNillableDurationMs(v *int64) *SessionUpdateOne
SetNillableDurationMs sets the "duration_ms" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableEndedAt ¶
func (_u *SessionUpdateOne) SetNillableEndedAt(v *time.Time) *SessionUpdateOne
SetNillableEndedAt sets the "ended_at" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableEntryPage ¶
func (_u *SessionUpdateOne) SetNillableEntryPage(v *string) *SessionUpdateOne
SetNillableEntryPage sets the "entry_page" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableEventCount ¶
func (_u *SessionUpdateOne) SetNillableEventCount(v *int) *SessionUpdateOne
SetNillableEventCount sets the "event_count" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableExitPage ¶
func (_u *SessionUpdateOne) SetNillableExitPage(v *string) *SessionUpdateOne
SetNillableExitPage sets the "exit_page" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableJourneyID ¶
func (_u *SessionUpdateOne) SetNillableJourneyID(v *uuid.UUID) *SessionUpdateOne
SetNillableJourneyID sets the "journey_id" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableLastJourneyStepID ¶
func (_u *SessionUpdateOne) SetNillableLastJourneyStepID(v *string) *SessionUpdateOne
SetNillableLastJourneyStepID sets the "last_journey_step_id" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableOrgID ¶
func (_u *SessionUpdateOne) SetNillableOrgID(v *uuid.UUID) *SessionUpdateOne
SetNillableOrgID sets the "org_id" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableOs ¶
func (_u *SessionUpdateOne) SetNillableOs(v *string) *SessionUpdateOne
SetNillableOs sets the "os" field if the given value is not nil.
func (*SessionUpdateOne) SetNillablePageCount ¶
func (_u *SessionUpdateOne) SetNillablePageCount(v *int) *SessionUpdateOne
SetNillablePageCount sets the "page_count" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableProjectID ¶
func (_u *SessionUpdateOne) SetNillableProjectID(v *uuid.UUID) *SessionUpdateOne
SetNillableProjectID sets the "project_id" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableRegion ¶
func (_u *SessionUpdateOne) SetNillableRegion(v *string) *SessionUpdateOne
SetNillableRegion sets the "region" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableSessionID ¶
func (_u *SessionUpdateOne) SetNillableSessionID(v *string) *SessionUpdateOne
SetNillableSessionID sets the "session_id" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableStartedAt ¶
func (_u *SessionUpdateOne) SetNillableStartedAt(v *time.Time) *SessionUpdateOne
SetNillableStartedAt sets the "started_at" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableUserAgent ¶
func (_u *SessionUpdateOne) SetNillableUserAgent(v *string) *SessionUpdateOne
SetNillableUserAgent sets the "user_agent" field if the given value is not nil.
func (*SessionUpdateOne) SetNillableUserID ¶
func (_u *SessionUpdateOne) SetNillableUserID(v *string) *SessionUpdateOne
SetNillableUserID sets the "user_id" field if the given value is not nil.
func (*SessionUpdateOne) SetOrgID ¶
func (_u *SessionUpdateOne) SetOrgID(v uuid.UUID) *SessionUpdateOne
SetOrgID sets the "org_id" field.
func (*SessionUpdateOne) SetOs ¶
func (_u *SessionUpdateOne) SetOs(v string) *SessionUpdateOne
SetOs sets the "os" field.
func (*SessionUpdateOne) SetPageCount ¶
func (_u *SessionUpdateOne) SetPageCount(v int) *SessionUpdateOne
SetPageCount sets the "page_count" field.
func (*SessionUpdateOne) SetProject ¶
func (_u *SessionUpdateOne) SetProject(v *Project) *SessionUpdateOne
SetProject sets the "project" edge to the Project entity.
func (*SessionUpdateOne) SetProjectID ¶
func (_u *SessionUpdateOne) SetProjectID(v uuid.UUID) *SessionUpdateOne
SetProjectID sets the "project_id" field.
func (*SessionUpdateOne) SetRegion ¶
func (_u *SessionUpdateOne) SetRegion(v string) *SessionUpdateOne
SetRegion sets the "region" field.
func (*SessionUpdateOne) SetSessionID ¶
func (_u *SessionUpdateOne) SetSessionID(v string) *SessionUpdateOne
SetSessionID sets the "session_id" field.
func (*SessionUpdateOne) SetStartedAt ¶
func (_u *SessionUpdateOne) SetStartedAt(v time.Time) *SessionUpdateOne
SetStartedAt sets the "started_at" field.
func (*SessionUpdateOne) SetUpdatedAt ¶
func (_u *SessionUpdateOne) SetUpdatedAt(v time.Time) *SessionUpdateOne
SetUpdatedAt sets the "updated_at" field.
func (*SessionUpdateOne) SetUserAgent ¶
func (_u *SessionUpdateOne) SetUserAgent(v string) *SessionUpdateOne
SetUserAgent sets the "user_agent" field.
func (*SessionUpdateOne) SetUserID ¶
func (_u *SessionUpdateOne) SetUserID(v string) *SessionUpdateOne
SetUserID sets the "user_id" field.
func (*SessionUpdateOne) Where ¶
func (_u *SessionUpdateOne) Where(ps ...predicate.Session) *SessionUpdateOne
Where appends a list predicates to the SessionUpdate builder.
type TraverseFunc ¶
type TraverseFunc = ent.TraverseFunc
ent aliases to avoid import conflicts in user's code.
type Tx ¶
type Tx struct {
// Event is the client for interacting with the Event builders.
Event *EventClient
// Journey is the client for interacting with the Journey builders.
Journey *JourneyClient
// Organization is the client for interacting with the Organization builders.
Organization *OrganizationClient
// Project is the client for interacting with the Project builders.
Project *ProjectClient
// Session is the client for interacting with the Session builders.
Session *SessionClient
// contains filtered or unexported fields
}
Tx is a transactional client that is created by calling Client.Tx().
func TxFromContext ¶
TxFromContext returns a Tx stored inside a context, or nil if there isn't one.
func (*Tx) OnRollback ¶
func (tx *Tx) OnRollback(f RollbackHook)
OnRollback adds a hook to call on rollback.
type ValidationError ¶
type ValidationError struct {
Name string // Field or edge name.
// contains filtered or unexported fields
}
ValidationError returns when validating a field or edge fails.
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Error implements the error interface.
func (*ValidationError) Unwrap ¶
func (e *ValidationError) Unwrap() error
Unwrap implements the errors.Wrapper interface.
Source Files
¶
- client.go
- ent.go
- event.go
- event_create.go
- event_delete.go
- event_query.go
- event_update.go
- generate.go
- journey.go
- journey_create.go
- journey_delete.go
- journey_query.go
- journey_update.go
- mutation.go
- organization.go
- organization_create.go
- organization_delete.go
- organization_query.go
- organization_update.go
- project.go
- project_create.go
- project_delete.go
- project_query.go
- project_update.go
- runtime.go
- session.go
- session_create.go
- session_delete.go
- session_query.go
- session_update.go
- tx.go