script

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the script type in the database.
	Label = "script"
	// 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"
	// FieldTaskNumber holds the string denoting the task_number field in the database.
	FieldTaskNumber = "task_number"
	// FieldScriptName holds the string denoting the script_name field in the database.
	FieldScriptName = "script_name"
	// FieldFileAddress holds the string denoting the file_address field in the database.
	FieldFileAddress = "file_address"
	// FieldScriptContent holds the string denoting the script_content field in the database.
	FieldScriptContent = "script_content"
	// 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"
	// EdgeScriptExecutionRecords holds the string denoting the scriptexecutionrecords edge name in mutations.
	EdgeScriptExecutionRecords = "scriptExecutionRecords"
	// Table holds the table name of the script in the database.
	Table = "scripts"
	// ScriptExecutionRecordsTable is the table that holds the scriptExecutionRecords relation/edge.
	ScriptExecutionRecordsTable = "script_execution_records"
	// ScriptExecutionRecordsInverseTable is the table name for the ScriptExecutionRecord entity.
	// It exists in this package in order to avoid circular dependency with the "scriptexecutionrecord" package.
	ScriptExecutionRecordsInverseTable = "script_execution_records"
	// ScriptExecutionRecordsColumn is the table column denoting the scriptExecutionRecords relation/edge.
	ScriptExecutionRecordsColumn = "script_script_execution_records"
)

Variables

View Source
var (
	// TaskNumberValidator is a validator for the "task_number" field. It is called by the builders before save.
	TaskNumberValidator func(int32) error
	// ScriptNameValidator is a validator for the "script_name" field. It is called by the builders before save.
	ScriptNameValidator func(string) error
	// ScriptContentValidator is a validator for the "script_content" field. It is called by the builders before save.
	ScriptContentValidator 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 script fields.

Functions

func And

func And(predicates ...predicate.Script) predicate.Script

And groups predicates with the AND operator between them.

func CreateTime

func CreateTime(v time.Time) predicate.Script

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

func CreateTimeEQ

func CreateTimeEQ(v time.Time) predicate.Script

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

func CreateTimeGT

func CreateTimeGT(v time.Time) predicate.Script

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

func CreateTimeGTE

func CreateTimeGTE(v time.Time) predicate.Script

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

func CreateTimeIn

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

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

func CreateTimeLT

func CreateTimeLT(v time.Time) predicate.Script

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

func CreateTimeLTE

func CreateTimeLTE(v time.Time) predicate.Script

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

func CreateTimeNEQ

func CreateTimeNEQ(v time.Time) predicate.Script

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

func CreateTimeNotIn

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

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

func FileAddress

func FileAddress(v string) predicate.Script

FileAddress applies equality check predicate on the "file_address" field. It's identical to FileAddressEQ.

func FileAddressContains

func FileAddressContains(v string) predicate.Script

FileAddressContains applies the Contains predicate on the "file_address" field.

func FileAddressContainsFold

func FileAddressContainsFold(v string) predicate.Script

FileAddressContainsFold applies the ContainsFold predicate on the "file_address" field.

func FileAddressEQ

func FileAddressEQ(v string) predicate.Script

FileAddressEQ applies the EQ predicate on the "file_address" field.

func FileAddressEqualFold

func FileAddressEqualFold(v string) predicate.Script

FileAddressEqualFold applies the EqualFold predicate on the "file_address" field.

func FileAddressGT

func FileAddressGT(v string) predicate.Script

FileAddressGT applies the GT predicate on the "file_address" field.

func FileAddressGTE

func FileAddressGTE(v string) predicate.Script

FileAddressGTE applies the GTE predicate on the "file_address" field.

func FileAddressHasPrefix

func FileAddressHasPrefix(v string) predicate.Script

FileAddressHasPrefix applies the HasPrefix predicate on the "file_address" field.

func FileAddressHasSuffix

func FileAddressHasSuffix(v string) predicate.Script

FileAddressHasSuffix applies the HasSuffix predicate on the "file_address" field.

func FileAddressIn

func FileAddressIn(vs ...string) predicate.Script

FileAddressIn applies the In predicate on the "file_address" field.

func FileAddressLT

func FileAddressLT(v string) predicate.Script

FileAddressLT applies the LT predicate on the "file_address" field.

func FileAddressLTE

func FileAddressLTE(v string) predicate.Script

FileAddressLTE applies the LTE predicate on the "file_address" field.

func FileAddressNEQ

func FileAddressNEQ(v string) predicate.Script

FileAddressNEQ applies the NEQ predicate on the "file_address" field.

func FileAddressNotIn

func FileAddressNotIn(vs ...string) predicate.Script

FileAddressNotIn applies the NotIn predicate on the "file_address" field.

func HasScriptExecutionRecords

func HasScriptExecutionRecords() predicate.Script

HasScriptExecutionRecords applies the HasEdge predicate on the "scriptExecutionRecords" edge.

func HasScriptExecutionRecordsWith

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

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

func ID

func ID(id int32) predicate.Script

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int32) predicate.Script

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int32) predicate.Script

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int32) predicate.Script

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int32) predicate.Script

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int32) predicate.Script

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int32) predicate.Script

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int32) predicate.Script

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int32) predicate.Script

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Script) predicate.Script

Or groups predicates with the OR operator between them.

func ScriptContent

func ScriptContent(v string) predicate.Script

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

func ScriptContentContains

func ScriptContentContains(v string) predicate.Script

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

func ScriptContentContainsFold

func ScriptContentContainsFold(v string) predicate.Script

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

func ScriptContentEQ

func ScriptContentEQ(v string) predicate.Script

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

func ScriptContentEqualFold

func ScriptContentEqualFold(v string) predicate.Script

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

func ScriptContentGT

func ScriptContentGT(v string) predicate.Script

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

func ScriptContentGTE

func ScriptContentGTE(v string) predicate.Script

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

func ScriptContentHasPrefix

func ScriptContentHasPrefix(v string) predicate.Script

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

func ScriptContentHasSuffix

func ScriptContentHasSuffix(v string) predicate.Script

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

func ScriptContentIn

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

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

func ScriptContentLT

func ScriptContentLT(v string) predicate.Script

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

func ScriptContentLTE

func ScriptContentLTE(v string) predicate.Script

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

func ScriptContentNEQ

func ScriptContentNEQ(v string) predicate.Script

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

func ScriptContentNotIn

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

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

func ScriptName

func ScriptName(v string) predicate.Script

ScriptName applies equality check predicate on the "script_name" field. It's identical to ScriptNameEQ.

func ScriptNameContains

func ScriptNameContains(v string) predicate.Script

ScriptNameContains applies the Contains predicate on the "script_name" field.

func ScriptNameContainsFold

func ScriptNameContainsFold(v string) predicate.Script

ScriptNameContainsFold applies the ContainsFold predicate on the "script_name" field.

func ScriptNameEQ

func ScriptNameEQ(v string) predicate.Script

ScriptNameEQ applies the EQ predicate on the "script_name" field.

func ScriptNameEqualFold

func ScriptNameEqualFold(v string) predicate.Script

ScriptNameEqualFold applies the EqualFold predicate on the "script_name" field.

func ScriptNameGT

func ScriptNameGT(v string) predicate.Script

ScriptNameGT applies the GT predicate on the "script_name" field.

func ScriptNameGTE

func ScriptNameGTE(v string) predicate.Script

ScriptNameGTE applies the GTE predicate on the "script_name" field.

func ScriptNameHasPrefix

func ScriptNameHasPrefix(v string) predicate.Script

ScriptNameHasPrefix applies the HasPrefix predicate on the "script_name" field.

func ScriptNameHasSuffix

func ScriptNameHasSuffix(v string) predicate.Script

ScriptNameHasSuffix applies the HasSuffix predicate on the "script_name" field.

func ScriptNameIn

func ScriptNameIn(vs ...string) predicate.Script

ScriptNameIn applies the In predicate on the "script_name" field.

func ScriptNameLT

func ScriptNameLT(v string) predicate.Script

ScriptNameLT applies the LT predicate on the "script_name" field.

func ScriptNameLTE

func ScriptNameLTE(v string) predicate.Script

ScriptNameLTE applies the LTE predicate on the "script_name" field.

func ScriptNameNEQ

func ScriptNameNEQ(v string) predicate.Script

ScriptNameNEQ applies the NEQ predicate on the "script_name" field.

func ScriptNameNotIn

func ScriptNameNotIn(vs ...string) predicate.Script

ScriptNameNotIn applies the NotIn predicate on the "script_name" field.

func TaskNumber

func TaskNumber(v int32) predicate.Script

TaskNumber applies equality check predicate on the "task_number" field. It's identical to TaskNumberEQ.

func TaskNumberEQ

func TaskNumberEQ(v int32) predicate.Script

TaskNumberEQ applies the EQ predicate on the "task_number" field.

func TaskNumberGT

func TaskNumberGT(v int32) predicate.Script

TaskNumberGT applies the GT predicate on the "task_number" field.

func TaskNumberGTE

func TaskNumberGTE(v int32) predicate.Script

TaskNumberGTE applies the GTE predicate on the "task_number" field.

func TaskNumberIn

func TaskNumberIn(vs ...int32) predicate.Script

TaskNumberIn applies the In predicate on the "task_number" field.

func TaskNumberLT

func TaskNumberLT(v int32) predicate.Script

TaskNumberLT applies the LT predicate on the "task_number" field.

func TaskNumberLTE

func TaskNumberLTE(v int32) predicate.Script

TaskNumberLTE applies the LTE predicate on the "task_number" field.

func TaskNumberNEQ

func TaskNumberNEQ(v int32) predicate.Script

TaskNumberNEQ applies the NEQ predicate on the "task_number" field.

func TaskNumberNotIn

func TaskNumberNotIn(vs ...int32) predicate.Script

TaskNumberNotIn applies the NotIn predicate on the "task_number" field.

func UpdateTime

func UpdateTime(v time.Time) predicate.Script

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

func UpdateTimeEQ

func UpdateTimeEQ(v time.Time) predicate.Script

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

func UpdateTimeGT

func UpdateTimeGT(v time.Time) predicate.Script

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

func UpdateTimeGTE

func UpdateTimeGTE(v time.Time) predicate.Script

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

func UpdateTimeIn

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

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

func UpdateTimeLT

func UpdateTimeLT(v time.Time) predicate.Script

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

func UpdateTimeLTE

func UpdateTimeLTE(v time.Time) predicate.Script

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

func UpdateTimeNEQ

func UpdateTimeNEQ(v time.Time) predicate.Script

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

func UpdateTimeNotIn

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

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

func UserID

func UserID(v string) predicate.Script

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

func UserIDContains

func UserIDContains(v string) predicate.Script

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

func UserIDContainsFold

func UserIDContainsFold(v string) predicate.Script

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

func UserIDEQ

func UserIDEQ(v string) predicate.Script

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

func UserIDEqualFold

func UserIDEqualFold(v string) predicate.Script

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

func UserIDGT

func UserIDGT(v string) predicate.Script

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

func UserIDGTE

func UserIDGTE(v string) predicate.Script

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

func UserIDHasPrefix

func UserIDHasPrefix(v string) predicate.Script

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

func UserIDHasSuffix

func UserIDHasSuffix(v string) predicate.Script

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

func UserIDIn

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

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

func UserIDLT

func UserIDLT(v string) predicate.Script

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

func UserIDLTE

func UserIDLTE(v string) predicate.Script

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

func UserIDNEQ

func UserIDNEQ(v string) predicate.Script

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

func UserIDNotIn

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

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 Script queries.

func ByCreateTime

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

ByCreateTime orders the results by the create_time field.

func ByFileAddress

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

ByFileAddress orders the results by the file_address 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 ByScriptExecutionRecords

func ByScriptExecutionRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByScriptExecutionRecords orders the results by scriptExecutionRecords terms.

func ByScriptExecutionRecordsCount

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

ByScriptExecutionRecordsCount orders the results by scriptExecutionRecords count.

func ByScriptName

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

ByScriptName orders the results by the script_name field.

func ByTaskNumber

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

ByTaskNumber orders the results by the task_number 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