sessionprovenance

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the sessionprovenance type in the database.
	Label = "session_provenance"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSessionKey holds the string denoting the session_key field in the database.
	FieldSessionKey = "session_key"
	// FieldParentKey holds the string denoting the parent_key field in the database.
	FieldParentKey = "parent_key"
	// FieldAgentName holds the string denoting the agent_name field in the database.
	FieldAgentName = "agent_name"
	// FieldGoal holds the string denoting the goal field in the database.
	FieldGoal = "goal"
	// FieldRunID holds the string denoting the run_id field in the database.
	FieldRunID = "run_id"
	// FieldWorkspaceID holds the string denoting the workspace_id field in the database.
	FieldWorkspaceID = "workspace_id"
	// FieldDepth holds the string denoting the depth field in the database.
	FieldDepth = "depth"
	// FieldStatus holds the string denoting the status field in the database.
	FieldStatus = "status"
	// FieldCreatedAt holds the string denoting the created_at field in the database.
	FieldCreatedAt = "created_at"
	// FieldClosedAt holds the string denoting the closed_at field in the database.
	FieldClosedAt = "closed_at"
	// Table holds the table name of the sessionprovenance in the database.
	Table = "session_provenances"
)
View Source
const DefaultStatus = StatusActive

StatusActive is the default value of the Status enum.

Variables

View Source
var (
	// SessionKeyValidator is a validator for the "session_key" field. It is called by the builders before save.
	SessionKeyValidator func(string) error
	// AgentNameValidator is a validator for the "agent_name" field. It is called by the builders before save.
	AgentNameValidator func(string) error
	// DefaultDepth holds the default value on creation for the "depth" field.
	DefaultDepth int
	// DefaultCreatedAt holds the default value on creation for the "created_at" field.
	DefaultCreatedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for sessionprovenance fields.

Functions

func AgentName

func AgentName(v string) predicate.SessionProvenance

AgentName applies equality check predicate on the "agent_name" field. It's identical to AgentNameEQ.

func AgentNameContains

func AgentNameContains(v string) predicate.SessionProvenance

AgentNameContains applies the Contains predicate on the "agent_name" field.

func AgentNameContainsFold

func AgentNameContainsFold(v string) predicate.SessionProvenance

AgentNameContainsFold applies the ContainsFold predicate on the "agent_name" field.

func AgentNameEQ

func AgentNameEQ(v string) predicate.SessionProvenance

AgentNameEQ applies the EQ predicate on the "agent_name" field.

func AgentNameEqualFold

func AgentNameEqualFold(v string) predicate.SessionProvenance

AgentNameEqualFold applies the EqualFold predicate on the "agent_name" field.

func AgentNameGT

func AgentNameGT(v string) predicate.SessionProvenance

AgentNameGT applies the GT predicate on the "agent_name" field.

func AgentNameGTE

func AgentNameGTE(v string) predicate.SessionProvenance

AgentNameGTE applies the GTE predicate on the "agent_name" field.

func AgentNameHasPrefix

func AgentNameHasPrefix(v string) predicate.SessionProvenance

AgentNameHasPrefix applies the HasPrefix predicate on the "agent_name" field.

func AgentNameHasSuffix

func AgentNameHasSuffix(v string) predicate.SessionProvenance

AgentNameHasSuffix applies the HasSuffix predicate on the "agent_name" field.

func AgentNameIn

func AgentNameIn(vs ...string) predicate.SessionProvenance

AgentNameIn applies the In predicate on the "agent_name" field.

func AgentNameLT

func AgentNameLT(v string) predicate.SessionProvenance

AgentNameLT applies the LT predicate on the "agent_name" field.

func AgentNameLTE

func AgentNameLTE(v string) predicate.SessionProvenance

AgentNameLTE applies the LTE predicate on the "agent_name" field.

func AgentNameNEQ

func AgentNameNEQ(v string) predicate.SessionProvenance

AgentNameNEQ applies the NEQ predicate on the "agent_name" field.

func AgentNameNotIn

func AgentNameNotIn(vs ...string) predicate.SessionProvenance

AgentNameNotIn applies the NotIn predicate on the "agent_name" field.

func And

And groups predicates with the AND operator between them.

func ClosedAt

ClosedAt applies equality check predicate on the "closed_at" field. It's identical to ClosedAtEQ.

func ClosedAtEQ

func ClosedAtEQ(v time.Time) predicate.SessionProvenance

ClosedAtEQ applies the EQ predicate on the "closed_at" field.

func ClosedAtGT

func ClosedAtGT(v time.Time) predicate.SessionProvenance

ClosedAtGT applies the GT predicate on the "closed_at" field.

func ClosedAtGTE

func ClosedAtGTE(v time.Time) predicate.SessionProvenance

ClosedAtGTE applies the GTE predicate on the "closed_at" field.

func ClosedAtIn

func ClosedAtIn(vs ...time.Time) predicate.SessionProvenance

ClosedAtIn applies the In predicate on the "closed_at" field.

func ClosedAtIsNil

func ClosedAtIsNil() predicate.SessionProvenance

ClosedAtIsNil applies the IsNil predicate on the "closed_at" field.

func ClosedAtLT

func ClosedAtLT(v time.Time) predicate.SessionProvenance

ClosedAtLT applies the LT predicate on the "closed_at" field.

func ClosedAtLTE

func ClosedAtLTE(v time.Time) predicate.SessionProvenance

ClosedAtLTE applies the LTE predicate on the "closed_at" field.

func ClosedAtNEQ

func ClosedAtNEQ(v time.Time) predicate.SessionProvenance

ClosedAtNEQ applies the NEQ predicate on the "closed_at" field.

func ClosedAtNotIn

func ClosedAtNotIn(vs ...time.Time) predicate.SessionProvenance

ClosedAtNotIn applies the NotIn predicate on the "closed_at" field.

func ClosedAtNotNil

func ClosedAtNotNil() predicate.SessionProvenance

ClosedAtNotNil applies the NotNil predicate on the "closed_at" field.

func CreatedAt

func CreatedAt(v time.Time) predicate.SessionProvenance

CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.

func CreatedAtEQ

func CreatedAtEQ(v time.Time) predicate.SessionProvenance

CreatedAtEQ applies the EQ predicate on the "created_at" field.

func CreatedAtGT

func CreatedAtGT(v time.Time) predicate.SessionProvenance

CreatedAtGT applies the GT predicate on the "created_at" field.

func CreatedAtGTE

func CreatedAtGTE(v time.Time) predicate.SessionProvenance

CreatedAtGTE applies the GTE predicate on the "created_at" field.

func CreatedAtIn

func CreatedAtIn(vs ...time.Time) predicate.SessionProvenance

CreatedAtIn applies the In predicate on the "created_at" field.

func CreatedAtLT

func CreatedAtLT(v time.Time) predicate.SessionProvenance

CreatedAtLT applies the LT predicate on the "created_at" field.

func CreatedAtLTE

func CreatedAtLTE(v time.Time) predicate.SessionProvenance

CreatedAtLTE applies the LTE predicate on the "created_at" field.

func CreatedAtNEQ

func CreatedAtNEQ(v time.Time) predicate.SessionProvenance

CreatedAtNEQ applies the NEQ predicate on the "created_at" field.

func CreatedAtNotIn

func CreatedAtNotIn(vs ...time.Time) predicate.SessionProvenance

CreatedAtNotIn applies the NotIn predicate on the "created_at" field.

func Depth

Depth applies equality check predicate on the "depth" field. It's identical to DepthEQ.

func DepthEQ

func DepthEQ(v int) predicate.SessionProvenance

DepthEQ applies the EQ predicate on the "depth" field.

func DepthGT

func DepthGT(v int) predicate.SessionProvenance

DepthGT applies the GT predicate on the "depth" field.

func DepthGTE

func DepthGTE(v int) predicate.SessionProvenance

DepthGTE applies the GTE predicate on the "depth" field.

func DepthIn

func DepthIn(vs ...int) predicate.SessionProvenance

DepthIn applies the In predicate on the "depth" field.

func DepthLT

func DepthLT(v int) predicate.SessionProvenance

DepthLT applies the LT predicate on the "depth" field.

func DepthLTE

func DepthLTE(v int) predicate.SessionProvenance

DepthLTE applies the LTE predicate on the "depth" field.

func DepthNEQ

func DepthNEQ(v int) predicate.SessionProvenance

DepthNEQ applies the NEQ predicate on the "depth" field.

func DepthNotIn

func DepthNotIn(vs ...int) predicate.SessionProvenance

DepthNotIn applies the NotIn predicate on the "depth" field.

func Goal

Goal applies equality check predicate on the "goal" field. It's identical to GoalEQ.

func GoalContains

func GoalContains(v string) predicate.SessionProvenance

GoalContains applies the Contains predicate on the "goal" field.

func GoalContainsFold

func GoalContainsFold(v string) predicate.SessionProvenance

GoalContainsFold applies the ContainsFold predicate on the "goal" field.

func GoalEQ

GoalEQ applies the EQ predicate on the "goal" field.

func GoalEqualFold

func GoalEqualFold(v string) predicate.SessionProvenance

GoalEqualFold applies the EqualFold predicate on the "goal" field.

func GoalGT

GoalGT applies the GT predicate on the "goal" field.

func GoalGTE

GoalGTE applies the GTE predicate on the "goal" field.

func GoalHasPrefix

func GoalHasPrefix(v string) predicate.SessionProvenance

GoalHasPrefix applies the HasPrefix predicate on the "goal" field.

func GoalHasSuffix

func GoalHasSuffix(v string) predicate.SessionProvenance

GoalHasSuffix applies the HasSuffix predicate on the "goal" field.

func GoalIn

func GoalIn(vs ...string) predicate.SessionProvenance

GoalIn applies the In predicate on the "goal" field.

func GoalIsNil

func GoalIsNil() predicate.SessionProvenance

GoalIsNil applies the IsNil predicate on the "goal" field.

func GoalLT

GoalLT applies the LT predicate on the "goal" field.

func GoalLTE

GoalLTE applies the LTE predicate on the "goal" field.

func GoalNEQ

GoalNEQ applies the NEQ predicate on the "goal" field.

func GoalNotIn

func GoalNotIn(vs ...string) predicate.SessionProvenance

GoalNotIn applies the NotIn predicate on the "goal" field.

func GoalNotNil

func GoalNotNil() predicate.SessionProvenance

GoalNotNil applies the NotNil predicate on the "goal" field.

func ID

ID filters vertices based on their ID field.

func IDEQ

IDEQ applies the EQ predicate on the ID field.

func IDGT

IDGT applies the GT predicate on the ID field.

func IDGTE

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.SessionProvenance

IDIn applies the In predicate on the ID field.

func IDLT

IDLT applies the LT predicate on the ID field.

func IDLTE

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.SessionProvenance

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

Or groups predicates with the OR operator between them.

func ParentKey

func ParentKey(v string) predicate.SessionProvenance

ParentKey applies equality check predicate on the "parent_key" field. It's identical to ParentKeyEQ.

func ParentKeyContains

func ParentKeyContains(v string) predicate.SessionProvenance

ParentKeyContains applies the Contains predicate on the "parent_key" field.

func ParentKeyContainsFold

func ParentKeyContainsFold(v string) predicate.SessionProvenance

ParentKeyContainsFold applies the ContainsFold predicate on the "parent_key" field.

func ParentKeyEQ

func ParentKeyEQ(v string) predicate.SessionProvenance

ParentKeyEQ applies the EQ predicate on the "parent_key" field.

func ParentKeyEqualFold

func ParentKeyEqualFold(v string) predicate.SessionProvenance

ParentKeyEqualFold applies the EqualFold predicate on the "parent_key" field.

func ParentKeyGT

func ParentKeyGT(v string) predicate.SessionProvenance

ParentKeyGT applies the GT predicate on the "parent_key" field.

func ParentKeyGTE

func ParentKeyGTE(v string) predicate.SessionProvenance

ParentKeyGTE applies the GTE predicate on the "parent_key" field.

func ParentKeyHasPrefix

func ParentKeyHasPrefix(v string) predicate.SessionProvenance

ParentKeyHasPrefix applies the HasPrefix predicate on the "parent_key" field.

func ParentKeyHasSuffix

func ParentKeyHasSuffix(v string) predicate.SessionProvenance

ParentKeyHasSuffix applies the HasSuffix predicate on the "parent_key" field.

func ParentKeyIn

func ParentKeyIn(vs ...string) predicate.SessionProvenance

ParentKeyIn applies the In predicate on the "parent_key" field.

func ParentKeyIsNil

func ParentKeyIsNil() predicate.SessionProvenance

ParentKeyIsNil applies the IsNil predicate on the "parent_key" field.

func ParentKeyLT

func ParentKeyLT(v string) predicate.SessionProvenance

ParentKeyLT applies the LT predicate on the "parent_key" field.

func ParentKeyLTE

func ParentKeyLTE(v string) predicate.SessionProvenance

ParentKeyLTE applies the LTE predicate on the "parent_key" field.

func ParentKeyNEQ

func ParentKeyNEQ(v string) predicate.SessionProvenance

ParentKeyNEQ applies the NEQ predicate on the "parent_key" field.

func ParentKeyNotIn

func ParentKeyNotIn(vs ...string) predicate.SessionProvenance

ParentKeyNotIn applies the NotIn predicate on the "parent_key" field.

func ParentKeyNotNil

func ParentKeyNotNil() predicate.SessionProvenance

ParentKeyNotNil applies the NotNil predicate on the "parent_key" field.

func RunID

RunID applies equality check predicate on the "run_id" field. It's identical to RunIDEQ.

func RunIDContains

func RunIDContains(v string) predicate.SessionProvenance

RunIDContains applies the Contains predicate on the "run_id" field.

func RunIDContainsFold

func RunIDContainsFold(v string) predicate.SessionProvenance

RunIDContainsFold applies the ContainsFold predicate on the "run_id" field.

func RunIDEQ

RunIDEQ applies the EQ predicate on the "run_id" field.

func RunIDEqualFold

func RunIDEqualFold(v string) predicate.SessionProvenance

RunIDEqualFold applies the EqualFold predicate on the "run_id" field.

func RunIDGT

RunIDGT applies the GT predicate on the "run_id" field.

func RunIDGTE

RunIDGTE applies the GTE predicate on the "run_id" field.

func RunIDHasPrefix

func RunIDHasPrefix(v string) predicate.SessionProvenance

RunIDHasPrefix applies the HasPrefix predicate on the "run_id" field.

func RunIDHasSuffix

func RunIDHasSuffix(v string) predicate.SessionProvenance

RunIDHasSuffix applies the HasSuffix predicate on the "run_id" field.

func RunIDIn

func RunIDIn(vs ...string) predicate.SessionProvenance

RunIDIn applies the In predicate on the "run_id" field.

func RunIDIsNil

func RunIDIsNil() predicate.SessionProvenance

RunIDIsNil applies the IsNil predicate on the "run_id" field.

func RunIDLT

RunIDLT applies the LT predicate on the "run_id" field.

func RunIDLTE

RunIDLTE applies the LTE predicate on the "run_id" field.

func RunIDNEQ

RunIDNEQ applies the NEQ predicate on the "run_id" field.

func RunIDNotIn

func RunIDNotIn(vs ...string) predicate.SessionProvenance

RunIDNotIn applies the NotIn predicate on the "run_id" field.

func RunIDNotNil

func RunIDNotNil() predicate.SessionProvenance

RunIDNotNil applies the NotNil predicate on the "run_id" field.

func SessionKey

func SessionKey(v string) predicate.SessionProvenance

SessionKey applies equality check predicate on the "session_key" field. It's identical to SessionKeyEQ.

func SessionKeyContains

func SessionKeyContains(v string) predicate.SessionProvenance

SessionKeyContains applies the Contains predicate on the "session_key" field.

func SessionKeyContainsFold

func SessionKeyContainsFold(v string) predicate.SessionProvenance

SessionKeyContainsFold applies the ContainsFold predicate on the "session_key" field.

func SessionKeyEQ

func SessionKeyEQ(v string) predicate.SessionProvenance

SessionKeyEQ applies the EQ predicate on the "session_key" field.

func SessionKeyEqualFold

func SessionKeyEqualFold(v string) predicate.SessionProvenance

SessionKeyEqualFold applies the EqualFold predicate on the "session_key" field.

func SessionKeyGT

func SessionKeyGT(v string) predicate.SessionProvenance

SessionKeyGT applies the GT predicate on the "session_key" field.

func SessionKeyGTE

func SessionKeyGTE(v string) predicate.SessionProvenance

SessionKeyGTE applies the GTE predicate on the "session_key" field.

func SessionKeyHasPrefix

func SessionKeyHasPrefix(v string) predicate.SessionProvenance

SessionKeyHasPrefix applies the HasPrefix predicate on the "session_key" field.

func SessionKeyHasSuffix

func SessionKeyHasSuffix(v string) predicate.SessionProvenance

SessionKeyHasSuffix applies the HasSuffix predicate on the "session_key" field.

func SessionKeyIn

func SessionKeyIn(vs ...string) predicate.SessionProvenance

SessionKeyIn applies the In predicate on the "session_key" field.

func SessionKeyLT

func SessionKeyLT(v string) predicate.SessionProvenance

SessionKeyLT applies the LT predicate on the "session_key" field.

func SessionKeyLTE

func SessionKeyLTE(v string) predicate.SessionProvenance

SessionKeyLTE applies the LTE predicate on the "session_key" field.

func SessionKeyNEQ

func SessionKeyNEQ(v string) predicate.SessionProvenance

SessionKeyNEQ applies the NEQ predicate on the "session_key" field.

func SessionKeyNotIn

func SessionKeyNotIn(vs ...string) predicate.SessionProvenance

SessionKeyNotIn applies the NotIn predicate on the "session_key" field.

func StatusEQ

StatusEQ applies the EQ predicate on the "status" field.

func StatusIn

func StatusIn(vs ...Status) predicate.SessionProvenance

StatusIn applies the In predicate on the "status" field.

func StatusNEQ

func StatusNEQ(v Status) predicate.SessionProvenance

StatusNEQ applies the NEQ predicate on the "status" field.

func StatusNotIn

func StatusNotIn(vs ...Status) predicate.SessionProvenance

StatusNotIn applies the NotIn predicate on the "status" field.

func StatusValidator

func StatusValidator(s Status) error

StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

func WorkspaceID

func WorkspaceID(v string) predicate.SessionProvenance

WorkspaceID applies equality check predicate on the "workspace_id" field. It's identical to WorkspaceIDEQ.

func WorkspaceIDContains

func WorkspaceIDContains(v string) predicate.SessionProvenance

WorkspaceIDContains applies the Contains predicate on the "workspace_id" field.

func WorkspaceIDContainsFold

func WorkspaceIDContainsFold(v string) predicate.SessionProvenance

WorkspaceIDContainsFold applies the ContainsFold predicate on the "workspace_id" field.

func WorkspaceIDEQ

func WorkspaceIDEQ(v string) predicate.SessionProvenance

WorkspaceIDEQ applies the EQ predicate on the "workspace_id" field.

func WorkspaceIDEqualFold

func WorkspaceIDEqualFold(v string) predicate.SessionProvenance

WorkspaceIDEqualFold applies the EqualFold predicate on the "workspace_id" field.

func WorkspaceIDGT

func WorkspaceIDGT(v string) predicate.SessionProvenance

WorkspaceIDGT applies the GT predicate on the "workspace_id" field.

func WorkspaceIDGTE

func WorkspaceIDGTE(v string) predicate.SessionProvenance

WorkspaceIDGTE applies the GTE predicate on the "workspace_id" field.

func WorkspaceIDHasPrefix

func WorkspaceIDHasPrefix(v string) predicate.SessionProvenance

WorkspaceIDHasPrefix applies the HasPrefix predicate on the "workspace_id" field.

func WorkspaceIDHasSuffix

func WorkspaceIDHasSuffix(v string) predicate.SessionProvenance

WorkspaceIDHasSuffix applies the HasSuffix predicate on the "workspace_id" field.

func WorkspaceIDIn

func WorkspaceIDIn(vs ...string) predicate.SessionProvenance

WorkspaceIDIn applies the In predicate on the "workspace_id" field.

func WorkspaceIDIsNil

func WorkspaceIDIsNil() predicate.SessionProvenance

WorkspaceIDIsNil applies the IsNil predicate on the "workspace_id" field.

func WorkspaceIDLT

func WorkspaceIDLT(v string) predicate.SessionProvenance

WorkspaceIDLT applies the LT predicate on the "workspace_id" field.

func WorkspaceIDLTE

func WorkspaceIDLTE(v string) predicate.SessionProvenance

WorkspaceIDLTE applies the LTE predicate on the "workspace_id" field.

func WorkspaceIDNEQ

func WorkspaceIDNEQ(v string) predicate.SessionProvenance

WorkspaceIDNEQ applies the NEQ predicate on the "workspace_id" field.

func WorkspaceIDNotIn

func WorkspaceIDNotIn(vs ...string) predicate.SessionProvenance

WorkspaceIDNotIn applies the NotIn predicate on the "workspace_id" field.

func WorkspaceIDNotNil

func WorkspaceIDNotNil() predicate.SessionProvenance

WorkspaceIDNotNil applies the NotNil predicate on the "workspace_id" field.

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the SessionProvenance queries.

func ByAgentName

func ByAgentName(opts ...sql.OrderTermOption) OrderOption

ByAgentName orders the results by the agent_name field.

func ByClosedAt

func ByClosedAt(opts ...sql.OrderTermOption) OrderOption

ByClosedAt orders the results by the closed_at field.

func ByCreatedAt

func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption

ByCreatedAt orders the results by the created_at field.

func ByDepth

func ByDepth(opts ...sql.OrderTermOption) OrderOption

ByDepth orders the results by the depth field.

func ByGoal

func ByGoal(opts ...sql.OrderTermOption) OrderOption

ByGoal orders the results by the goal field.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByParentKey

func ByParentKey(opts ...sql.OrderTermOption) OrderOption

ByParentKey orders the results by the parent_key field.

func ByRunID

func ByRunID(opts ...sql.OrderTermOption) OrderOption

ByRunID orders the results by the run_id field.

func BySessionKey

func BySessionKey(opts ...sql.OrderTermOption) OrderOption

BySessionKey orders the results by the session_key field.

func ByStatus

func ByStatus(opts ...sql.OrderTermOption) OrderOption

ByStatus orders the results by the status field.

func ByWorkspaceID

func ByWorkspaceID(opts ...sql.OrderTermOption) OrderOption

ByWorkspaceID orders the results by the workspace_id field.

type Status

type Status string

Status defines the type for the "status" enum field.

const (
	StatusActive    Status = "active"
	StatusMerged    Status = "merged"
	StatusDiscarded Status = "discarded"
	StatusCompleted Status = "completed"
)

Status values.

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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