scriptexecutionrecord

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the scriptexecutionrecord type in the database.
	Label = "script_execution_record"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldUserID holds the string denoting the user_id field in the database.
	FieldUserID = "user_id"
	// FieldFkScriptID holds the string denoting the fk_script_id field in the database.
	FieldFkScriptID = "fk_script_id"
	// FieldScriptContent holds the string denoting the script_content field in the database.
	FieldScriptContent = "script_content"
	// FieldExecuteState holds the string denoting the execute_state field in the database.
	FieldExecuteState = "execute_state"
	// FieldExecuteResult holds the string denoting the execute_result field in the database.
	FieldExecuteResult = "execute_result"
	// FieldCreateTime holds the string denoting the create_time field in the database.
	FieldCreateTime = "create_time"
	// FieldUpdateTime holds the string denoting the update_time field in the database.
	FieldUpdateTime = "update_time"
	// EdgeScript holds the string denoting the script edge name in mutations.
	EdgeScript = "script"
	// Table holds the table name of the scriptexecutionrecord in the database.
	Table = "script_execution_records"
	// ScriptTable is the table that holds the script relation/edge.
	ScriptTable = "script_execution_records"
	// ScriptInverseTable is the table name for the Script entity.
	// It exists in this package in order to avoid circular dependency with the "script" package.
	ScriptInverseTable = "scripts"
	// ScriptColumn is the table column denoting the script relation/edge.
	ScriptColumn = "script_script_execution_records"
)

Variables

View Source
var (
	// FkScriptIDValidator is a validator for the "fk_script_id" field. It is called by the builders before save.
	FkScriptIDValidator func(int32) error
	// ScriptContentValidator is a validator for the "script_content" field. It is called by the builders before save.
	ScriptContentValidator func(string) error
	// ExecuteResultValidator is a validator for the "execute_result" field. It is called by the builders before save.
	ExecuteResultValidator func(string) error
	// DefaultCreateTime holds the default value on creation for the "create_time" field.
	DefaultCreateTime time.Time
	// DefaultUpdateTime holds the default value on creation for the "update_time" field.
	DefaultUpdateTime time.Time
)

Columns holds all SQL columns for scriptexecutionrecord fields.

View Source
var ForeignKeys = []string{
	"script_script_execution_records",
}

ForeignKeys holds the SQL foreign-keys that are owned by the "script_execution_records" table and are not defined as standalone fields in the schema.

Functions

func And

And groups predicates with the AND operator between them.

func CreateTime

CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.ScriptExecutionRecord

CreateTimeEQ applies the EQ predicate on the "create_time" field.

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.ScriptExecutionRecord

CreateTimeGT applies the GT predicate on the "create_time" field.

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.ScriptExecutionRecord

CreateTimeGTE applies the GTE predicate on the "create_time" field.

func CreateTimeIn

func CreateTimeIn(vs ...time.Time) predicate.ScriptExecutionRecord

CreateTimeIn applies the In predicate on the "create_time" field.

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.ScriptExecutionRecord

CreateTimeLT applies the LT predicate on the "create_time" field.

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.ScriptExecutionRecord

CreateTimeLTE applies the LTE predicate on the "create_time" field.

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.ScriptExecutionRecord

CreateTimeNEQ applies the NEQ predicate on the "create_time" field.

func CreateTimeNotIn

func CreateTimeNotIn(vs ...time.Time) predicate.ScriptExecutionRecord

CreateTimeNotIn applies the NotIn predicate on the "create_time" field.

func ExecuteResult

func ExecuteResult(v string) predicate.ScriptExecutionRecord

ExecuteResult applies equality check predicate on the "execute_result" field. It's identical to ExecuteResultEQ.

func ExecuteResultContains

func ExecuteResultContains(v string) predicate.ScriptExecutionRecord

ExecuteResultContains applies the Contains predicate on the "execute_result" field.

func ExecuteResultContainsFold

func ExecuteResultContainsFold(v string) predicate.ScriptExecutionRecord

ExecuteResultContainsFold applies the ContainsFold predicate on the "execute_result" field.

func ExecuteResultEQ

func ExecuteResultEQ(v string) predicate.ScriptExecutionRecord

ExecuteResultEQ applies the EQ predicate on the "execute_result" field.

func ExecuteResultEqualFold

func ExecuteResultEqualFold(v string) predicate.ScriptExecutionRecord

ExecuteResultEqualFold applies the EqualFold predicate on the "execute_result" field.

func ExecuteResultGT

func ExecuteResultGT(v string) predicate.ScriptExecutionRecord

ExecuteResultGT applies the GT predicate on the "execute_result" field.

func ExecuteResultGTE

func ExecuteResultGTE(v string) predicate.ScriptExecutionRecord

ExecuteResultGTE applies the GTE predicate on the "execute_result" field.

func ExecuteResultHasPrefix

func ExecuteResultHasPrefix(v string) predicate.ScriptExecutionRecord

ExecuteResultHasPrefix applies the HasPrefix predicate on the "execute_result" field.

func ExecuteResultHasSuffix

func ExecuteResultHasSuffix(v string) predicate.ScriptExecutionRecord

ExecuteResultHasSuffix applies the HasSuffix predicate on the "execute_result" field.

func ExecuteResultIn

func ExecuteResultIn(vs ...string) predicate.ScriptExecutionRecord

ExecuteResultIn applies the In predicate on the "execute_result" field.

func ExecuteResultLT

func ExecuteResultLT(v string) predicate.ScriptExecutionRecord

ExecuteResultLT applies the LT predicate on the "execute_result" field.

func ExecuteResultLTE

func ExecuteResultLTE(v string) predicate.ScriptExecutionRecord

ExecuteResultLTE applies the LTE predicate on the "execute_result" field.

func ExecuteResultNEQ

func ExecuteResultNEQ(v string) predicate.ScriptExecutionRecord

ExecuteResultNEQ applies the NEQ predicate on the "execute_result" field.

func ExecuteResultNotIn

func ExecuteResultNotIn(vs ...string) predicate.ScriptExecutionRecord

ExecuteResultNotIn applies the NotIn predicate on the "execute_result" field.

func ExecuteState

func ExecuteState(v int32) predicate.ScriptExecutionRecord

ExecuteState applies equality check predicate on the "execute_state" field. It's identical to ExecuteStateEQ.

func ExecuteStateEQ

func ExecuteStateEQ(v int32) predicate.ScriptExecutionRecord

ExecuteStateEQ applies the EQ predicate on the "execute_state" field.

func ExecuteStateGT

func ExecuteStateGT(v int32) predicate.ScriptExecutionRecord

ExecuteStateGT applies the GT predicate on the "execute_state" field.

func ExecuteStateGTE

func ExecuteStateGTE(v int32) predicate.ScriptExecutionRecord

ExecuteStateGTE applies the GTE predicate on the "execute_state" field.

func ExecuteStateIn

func ExecuteStateIn(vs ...int32) predicate.ScriptExecutionRecord

ExecuteStateIn applies the In predicate on the "execute_state" field.

func ExecuteStateLT

func ExecuteStateLT(v int32) predicate.ScriptExecutionRecord

ExecuteStateLT applies the LT predicate on the "execute_state" field.

func ExecuteStateLTE

func ExecuteStateLTE(v int32) predicate.ScriptExecutionRecord

ExecuteStateLTE applies the LTE predicate on the "execute_state" field.

func ExecuteStateNEQ

func ExecuteStateNEQ(v int32) predicate.ScriptExecutionRecord

ExecuteStateNEQ applies the NEQ predicate on the "execute_state" field.

func ExecuteStateNotIn

func ExecuteStateNotIn(vs ...int32) predicate.ScriptExecutionRecord

ExecuteStateNotIn applies the NotIn predicate on the "execute_state" field.

func FkScriptID

FkScriptID applies equality check predicate on the "fk_script_id" field. It's identical to FkScriptIDEQ.

func FkScriptIDEQ

func FkScriptIDEQ(v int32) predicate.ScriptExecutionRecord

FkScriptIDEQ applies the EQ predicate on the "fk_script_id" field.

func FkScriptIDGT

func FkScriptIDGT(v int32) predicate.ScriptExecutionRecord

FkScriptIDGT applies the GT predicate on the "fk_script_id" field.

func FkScriptIDGTE

func FkScriptIDGTE(v int32) predicate.ScriptExecutionRecord

FkScriptIDGTE applies the GTE predicate on the "fk_script_id" field.

func FkScriptIDIn

func FkScriptIDIn(vs ...int32) predicate.ScriptExecutionRecord

FkScriptIDIn applies the In predicate on the "fk_script_id" field.

func FkScriptIDLT

func FkScriptIDLT(v int32) predicate.ScriptExecutionRecord

FkScriptIDLT applies the LT predicate on the "fk_script_id" field.

func FkScriptIDLTE

func FkScriptIDLTE(v int32) predicate.ScriptExecutionRecord

FkScriptIDLTE applies the LTE predicate on the "fk_script_id" field.

func FkScriptIDNEQ

func FkScriptIDNEQ(v int32) predicate.ScriptExecutionRecord

FkScriptIDNEQ applies the NEQ predicate on the "fk_script_id" field.

func FkScriptIDNotIn

func FkScriptIDNotIn(vs ...int32) predicate.ScriptExecutionRecord

FkScriptIDNotIn applies the NotIn predicate on the "fk_script_id" field.

func HasScript

func HasScript() predicate.ScriptExecutionRecord

HasScript applies the HasEdge predicate on the "script" edge.

func HasScriptWith

func HasScriptWith(preds ...predicate.Script) predicate.ScriptExecutionRecord

HasScriptWith applies the HasEdge predicate on the "script" edge with a given conditions (other predicates).

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

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 ...int32) predicate.ScriptExecutionRecord

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 ScriptContent

func ScriptContent(v string) predicate.ScriptExecutionRecord

ScriptContent applies equality check predicate on the "script_content" field. It's identical to ScriptContentEQ.

func ScriptContentContains

func ScriptContentContains(v string) predicate.ScriptExecutionRecord

ScriptContentContains applies the Contains predicate on the "script_content" field.

func ScriptContentContainsFold

func ScriptContentContainsFold(v string) predicate.ScriptExecutionRecord

ScriptContentContainsFold applies the ContainsFold predicate on the "script_content" field.

func ScriptContentEQ

func ScriptContentEQ(v string) predicate.ScriptExecutionRecord

ScriptContentEQ applies the EQ predicate on the "script_content" field.

func ScriptContentEqualFold

func ScriptContentEqualFold(v string) predicate.ScriptExecutionRecord

ScriptContentEqualFold applies the EqualFold predicate on the "script_content" field.

func ScriptContentGT

func ScriptContentGT(v string) predicate.ScriptExecutionRecord

ScriptContentGT applies the GT predicate on the "script_content" field.

func ScriptContentGTE

func ScriptContentGTE(v string) predicate.ScriptExecutionRecord

ScriptContentGTE applies the GTE predicate on the "script_content" field.

func ScriptContentHasPrefix

func ScriptContentHasPrefix(v string) predicate.ScriptExecutionRecord

ScriptContentHasPrefix applies the HasPrefix predicate on the "script_content" field.

func ScriptContentHasSuffix

func ScriptContentHasSuffix(v string) predicate.ScriptExecutionRecord

ScriptContentHasSuffix applies the HasSuffix predicate on the "script_content" field.

func ScriptContentIn

func ScriptContentIn(vs ...string) predicate.ScriptExecutionRecord

ScriptContentIn applies the In predicate on the "script_content" field.

func ScriptContentLT

func ScriptContentLT(v string) predicate.ScriptExecutionRecord

ScriptContentLT applies the LT predicate on the "script_content" field.

func ScriptContentLTE

func ScriptContentLTE(v string) predicate.ScriptExecutionRecord

ScriptContentLTE applies the LTE predicate on the "script_content" field.

func ScriptContentNEQ

func ScriptContentNEQ(v string) predicate.ScriptExecutionRecord

ScriptContentNEQ applies the NEQ predicate on the "script_content" field.

func ScriptContentNotIn

func ScriptContentNotIn(vs ...string) predicate.ScriptExecutionRecord

ScriptContentNotIn applies the NotIn predicate on the "script_content" field.

func UpdateTime

UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.ScriptExecutionRecord

UpdateTimeEQ applies the EQ predicate on the "update_time" field.

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.ScriptExecutionRecord

UpdateTimeGT applies the GT predicate on the "update_time" field.

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.ScriptExecutionRecord

UpdateTimeGTE applies the GTE predicate on the "update_time" field.

func UpdateTimeIn

func UpdateTimeIn(vs ...time.Time) predicate.ScriptExecutionRecord

UpdateTimeIn applies the In predicate on the "update_time" field.

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.ScriptExecutionRecord

UpdateTimeLT applies the LT predicate on the "update_time" field.

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.ScriptExecutionRecord

UpdateTimeLTE applies the LTE predicate on the "update_time" field.

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.ScriptExecutionRecord

UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.

func UpdateTimeNotIn

func UpdateTimeNotIn(vs ...time.Time) predicate.ScriptExecutionRecord

UpdateTimeNotIn applies the NotIn predicate on the "update_time" field.

func UserID

UserID applies equality check predicate on the "user_id" field. It's identical to UserIDEQ.

func UserIDContains

func UserIDContains(v string) predicate.ScriptExecutionRecord

UserIDContains applies the Contains predicate on the "user_id" field.

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.ScriptExecutionRecord

UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.

func UserIDEQ

UserIDEQ applies the EQ predicate on the "user_id" field.

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.ScriptExecutionRecord

UserIDEqualFold applies the EqualFold predicate on the "user_id" field.

func UserIDGT

UserIDGT applies the GT predicate on the "user_id" field.

func UserIDGTE

UserIDGTE applies the GTE predicate on the "user_id" field.

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.ScriptExecutionRecord

UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.ScriptExecutionRecord

UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.

func UserIDIn

func UserIDIn(vs ...string) predicate.ScriptExecutionRecord

UserIDIn applies the In predicate on the "user_id" field.

func UserIDLT

UserIDLT applies the LT predicate on the "user_id" field.

func UserIDLTE

UserIDLTE applies the LTE predicate on the "user_id" field.

func UserIDNEQ

UserIDNEQ applies the NEQ predicate on the "user_id" field.

func UserIDNotIn

func UserIDNotIn(vs ...string) predicate.ScriptExecutionRecord

UserIDNotIn applies the NotIn predicate on the "user_id" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

type OrderOption

type OrderOption func(*sql.Selector)

OrderOption defines the ordering options for the ScriptExecutionRecord queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByExecuteResult

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

ByExecuteResult orders the results by the execute_result field.

func ByExecuteState

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

ByExecuteState orders the results by the execute_state field.

func ByFkScriptID

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

ByFkScriptID orders the results by the fk_script_id field.

func ByID

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

ByID orders the results by the id field.

func ByScriptContent

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

ByScriptContent orders the results by the script_content field.

func ByScriptField

func ByScriptField(field string, opts ...sql.OrderTermOption) OrderOption

ByScriptField orders the results by script field.

func ByUpdateTime

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

ByUpdateTime orders the results by the update_time field.

func ByUserID

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

ByUserID orders the results by the user_id field.

Jump to

Keyboard shortcuts

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