Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Script) predicate.Script
- func CreateTime(v time.Time) predicate.Script
- func CreateTimeEQ(v time.Time) predicate.Script
- func CreateTimeGT(v time.Time) predicate.Script
- func CreateTimeGTE(v time.Time) predicate.Script
- func CreateTimeIn(vs ...time.Time) predicate.Script
- func CreateTimeLT(v time.Time) predicate.Script
- func CreateTimeLTE(v time.Time) predicate.Script
- func CreateTimeNEQ(v time.Time) predicate.Script
- func CreateTimeNotIn(vs ...time.Time) predicate.Script
- func FileAddress(v string) predicate.Script
- func FileAddressContains(v string) predicate.Script
- func FileAddressContainsFold(v string) predicate.Script
- func FileAddressEQ(v string) predicate.Script
- func FileAddressEqualFold(v string) predicate.Script
- func FileAddressGT(v string) predicate.Script
- func FileAddressGTE(v string) predicate.Script
- func FileAddressHasPrefix(v string) predicate.Script
- func FileAddressHasSuffix(v string) predicate.Script
- func FileAddressIn(vs ...string) predicate.Script
- func FileAddressLT(v string) predicate.Script
- func FileAddressLTE(v string) predicate.Script
- func FileAddressNEQ(v string) predicate.Script
- func FileAddressNotIn(vs ...string) predicate.Script
- func HasScriptExecutionRecords() predicate.Script
- func HasScriptExecutionRecordsWith(preds ...predicate.ScriptExecutionRecord) predicate.Script
- func ID(id int32) predicate.Script
- func IDEQ(id int32) predicate.Script
- func IDGT(id int32) predicate.Script
- func IDGTE(id int32) predicate.Script
- func IDIn(ids ...int32) predicate.Script
- func IDLT(id int32) predicate.Script
- func IDLTE(id int32) predicate.Script
- func IDNEQ(id int32) predicate.Script
- func IDNotIn(ids ...int32) predicate.Script
- func Not(p predicate.Script) predicate.Script
- func Or(predicates ...predicate.Script) predicate.Script
- func ScriptContent(v string) predicate.Script
- func ScriptContentContains(v string) predicate.Script
- func ScriptContentContainsFold(v string) predicate.Script
- func ScriptContentEQ(v string) predicate.Script
- func ScriptContentEqualFold(v string) predicate.Script
- func ScriptContentGT(v string) predicate.Script
- func ScriptContentGTE(v string) predicate.Script
- func ScriptContentHasPrefix(v string) predicate.Script
- func ScriptContentHasSuffix(v string) predicate.Script
- func ScriptContentIn(vs ...string) predicate.Script
- func ScriptContentLT(v string) predicate.Script
- func ScriptContentLTE(v string) predicate.Script
- func ScriptContentNEQ(v string) predicate.Script
- func ScriptContentNotIn(vs ...string) predicate.Script
- func ScriptName(v string) predicate.Script
- func ScriptNameContains(v string) predicate.Script
- func ScriptNameContainsFold(v string) predicate.Script
- func ScriptNameEQ(v string) predicate.Script
- func ScriptNameEqualFold(v string) predicate.Script
- func ScriptNameGT(v string) predicate.Script
- func ScriptNameGTE(v string) predicate.Script
- func ScriptNameHasPrefix(v string) predicate.Script
- func ScriptNameHasSuffix(v string) predicate.Script
- func ScriptNameIn(vs ...string) predicate.Script
- func ScriptNameLT(v string) predicate.Script
- func ScriptNameLTE(v string) predicate.Script
- func ScriptNameNEQ(v string) predicate.Script
- func ScriptNameNotIn(vs ...string) predicate.Script
- func TaskNumber(v int32) predicate.Script
- func TaskNumberEQ(v int32) predicate.Script
- func TaskNumberGT(v int32) predicate.Script
- func TaskNumberGTE(v int32) predicate.Script
- func TaskNumberIn(vs ...int32) predicate.Script
- func TaskNumberLT(v int32) predicate.Script
- func TaskNumberLTE(v int32) predicate.Script
- func TaskNumberNEQ(v int32) predicate.Script
- func TaskNumberNotIn(vs ...int32) predicate.Script
- func UpdateTime(v time.Time) predicate.Script
- func UpdateTimeEQ(v time.Time) predicate.Script
- func UpdateTimeGT(v time.Time) predicate.Script
- func UpdateTimeGTE(v time.Time) predicate.Script
- func UpdateTimeIn(vs ...time.Time) predicate.Script
- func UpdateTimeLT(v time.Time) predicate.Script
- func UpdateTimeLTE(v time.Time) predicate.Script
- func UpdateTimeNEQ(v time.Time) predicate.Script
- func UpdateTimeNotIn(vs ...time.Time) predicate.Script
- func UserID(v string) predicate.Script
- func UserIDContains(v string) predicate.Script
- func UserIDContainsFold(v string) predicate.Script
- func UserIDEQ(v string) predicate.Script
- func UserIDEqualFold(v string) predicate.Script
- func UserIDGT(v string) predicate.Script
- func UserIDGTE(v string) predicate.Script
- func UserIDHasPrefix(v string) predicate.Script
- func UserIDHasSuffix(v string) predicate.Script
- func UserIDIn(vs ...string) predicate.Script
- func UserIDLT(v string) predicate.Script
- func UserIDLTE(v string) predicate.Script
- func UserIDNEQ(v string) predicate.Script
- func UserIDNotIn(vs ...string) predicate.Script
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreateTime(opts ...sql.OrderTermOption) OrderOption
- func ByFileAddress(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByScriptContent(opts ...sql.OrderTermOption) OrderOption
- func ByScriptExecutionRecords(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByScriptExecutionRecordsCount(opts ...sql.OrderTermOption) OrderOption
- func ByScriptName(opts ...sql.OrderTermOption) OrderOption
- func ByTaskNumber(opts ...sql.OrderTermOption) OrderOption
- func ByUpdateTime(opts ...sql.OrderTermOption) OrderOption
- func ByUserID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
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 ¶
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 )
var Columns = []string{ FieldID, FieldUserID, FieldTaskNumber, FieldScriptName, FieldFileAddress, FieldScriptContent, FieldCreateTime, FieldUpdateTime, }
Columns holds all SQL columns for script fields.
Functions ¶
func CreateTime ¶
CreateTime applies equality check predicate on the "create_time" field. It's identical to CreateTimeEQ.
func CreateTimeEQ ¶
CreateTimeEQ applies the EQ predicate on the "create_time" field.
func CreateTimeGT ¶
CreateTimeGT applies the GT predicate on the "create_time" field.
func CreateTimeGTE ¶
CreateTimeGTE applies the GTE predicate on the "create_time" field.
func CreateTimeIn ¶
CreateTimeIn applies the In predicate on the "create_time" field.
func CreateTimeLT ¶
CreateTimeLT applies the LT predicate on the "create_time" field.
func CreateTimeLTE ¶
CreateTimeLTE applies the LTE predicate on the "create_time" field.
func CreateTimeNEQ ¶
CreateTimeNEQ applies the NEQ predicate on the "create_time" field.
func CreateTimeNotIn ¶
CreateTimeNotIn applies the NotIn predicate on the "create_time" field.
func FileAddress ¶
FileAddress applies equality check predicate on the "file_address" field. It's identical to FileAddressEQ.
func FileAddressContains ¶
FileAddressContains applies the Contains predicate on the "file_address" field.
func FileAddressContainsFold ¶
FileAddressContainsFold applies the ContainsFold predicate on the "file_address" field.
func FileAddressEQ ¶
FileAddressEQ applies the EQ predicate on the "file_address" field.
func FileAddressEqualFold ¶
FileAddressEqualFold applies the EqualFold predicate on the "file_address" field.
func FileAddressGT ¶
FileAddressGT applies the GT predicate on the "file_address" field.
func FileAddressGTE ¶
FileAddressGTE applies the GTE predicate on the "file_address" field.
func FileAddressHasPrefix ¶
FileAddressHasPrefix applies the HasPrefix predicate on the "file_address" field.
func FileAddressHasSuffix ¶
FileAddressHasSuffix applies the HasSuffix predicate on the "file_address" field.
func FileAddressIn ¶
FileAddressIn applies the In predicate on the "file_address" field.
func FileAddressLT ¶
FileAddressLT applies the LT predicate on the "file_address" field.
func FileAddressLTE ¶
FileAddressLTE applies the LTE predicate on the "file_address" field.
func FileAddressNEQ ¶
FileAddressNEQ applies the NEQ predicate on the "file_address" field.
func FileAddressNotIn ¶
FileAddressNotIn applies the NotIn predicate on the "file_address" field.
func HasScriptExecutionRecords ¶
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 ScriptContent ¶
ScriptContent applies equality check predicate on the "script_content" field. It's identical to ScriptContentEQ.
func ScriptContentContains ¶
ScriptContentContains applies the Contains predicate on the "script_content" field.
func ScriptContentContainsFold ¶
ScriptContentContainsFold applies the ContainsFold predicate on the "script_content" field.
func ScriptContentEQ ¶
ScriptContentEQ applies the EQ predicate on the "script_content" field.
func ScriptContentEqualFold ¶
ScriptContentEqualFold applies the EqualFold predicate on the "script_content" field.
func ScriptContentGT ¶
ScriptContentGT applies the GT predicate on the "script_content" field.
func ScriptContentGTE ¶
ScriptContentGTE applies the GTE predicate on the "script_content" field.
func ScriptContentHasPrefix ¶
ScriptContentHasPrefix applies the HasPrefix predicate on the "script_content" field.
func ScriptContentHasSuffix ¶
ScriptContentHasSuffix applies the HasSuffix predicate on the "script_content" field.
func ScriptContentIn ¶
ScriptContentIn applies the In predicate on the "script_content" field.
func ScriptContentLT ¶
ScriptContentLT applies the LT predicate on the "script_content" field.
func ScriptContentLTE ¶
ScriptContentLTE applies the LTE predicate on the "script_content" field.
func ScriptContentNEQ ¶
ScriptContentNEQ applies the NEQ predicate on the "script_content" field.
func ScriptContentNotIn ¶
ScriptContentNotIn applies the NotIn predicate on the "script_content" field.
func ScriptName ¶
ScriptName applies equality check predicate on the "script_name" field. It's identical to ScriptNameEQ.
func ScriptNameContains ¶
ScriptNameContains applies the Contains predicate on the "script_name" field.
func ScriptNameContainsFold ¶
ScriptNameContainsFold applies the ContainsFold predicate on the "script_name" field.
func ScriptNameEQ ¶
ScriptNameEQ applies the EQ predicate on the "script_name" field.
func ScriptNameEqualFold ¶
ScriptNameEqualFold applies the EqualFold predicate on the "script_name" field.
func ScriptNameGT ¶
ScriptNameGT applies the GT predicate on the "script_name" field.
func ScriptNameGTE ¶
ScriptNameGTE applies the GTE predicate on the "script_name" field.
func ScriptNameHasPrefix ¶
ScriptNameHasPrefix applies the HasPrefix predicate on the "script_name" field.
func ScriptNameHasSuffix ¶
ScriptNameHasSuffix applies the HasSuffix predicate on the "script_name" field.
func ScriptNameIn ¶
ScriptNameIn applies the In predicate on the "script_name" field.
func ScriptNameLT ¶
ScriptNameLT applies the LT predicate on the "script_name" field.
func ScriptNameLTE ¶
ScriptNameLTE applies the LTE predicate on the "script_name" field.
func ScriptNameNEQ ¶
ScriptNameNEQ applies the NEQ predicate on the "script_name" field.
func ScriptNameNotIn ¶
ScriptNameNotIn applies the NotIn predicate on the "script_name" field.
func TaskNumber ¶
TaskNumber applies equality check predicate on the "task_number" field. It's identical to TaskNumberEQ.
func TaskNumberEQ ¶
TaskNumberEQ applies the EQ predicate on the "task_number" field.
func TaskNumberGT ¶
TaskNumberGT applies the GT predicate on the "task_number" field.
func TaskNumberGTE ¶
TaskNumberGTE applies the GTE predicate on the "task_number" field.
func TaskNumberIn ¶
TaskNumberIn applies the In predicate on the "task_number" field.
func TaskNumberLT ¶
TaskNumberLT applies the LT predicate on the "task_number" field.
func TaskNumberLTE ¶
TaskNumberLTE applies the LTE predicate on the "task_number" field.
func TaskNumberNEQ ¶
TaskNumberNEQ applies the NEQ predicate on the "task_number" field.
func TaskNumberNotIn ¶
TaskNumberNotIn applies the NotIn predicate on the "task_number" field.
func UpdateTime ¶
UpdateTime applies equality check predicate on the "update_time" field. It's identical to UpdateTimeEQ.
func UpdateTimeEQ ¶
UpdateTimeEQ applies the EQ predicate on the "update_time" field.
func UpdateTimeGT ¶
UpdateTimeGT applies the GT predicate on the "update_time" field.
func UpdateTimeGTE ¶
UpdateTimeGTE applies the GTE predicate on the "update_time" field.
func UpdateTimeIn ¶
UpdateTimeIn applies the In predicate on the "update_time" field.
func UpdateTimeLT ¶
UpdateTimeLT applies the LT predicate on the "update_time" field.
func UpdateTimeLTE ¶
UpdateTimeLTE applies the LTE predicate on the "update_time" field.
func UpdateTimeNEQ ¶
UpdateTimeNEQ applies the NEQ predicate on the "update_time" field.
func UpdateTimeNotIn ¶
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 ¶
UserIDContains applies the Contains predicate on the "user_id" field.
func UserIDContainsFold ¶
UserIDContainsFold applies the ContainsFold predicate on the "user_id" field.
func UserIDEqualFold ¶
UserIDEqualFold applies the EqualFold predicate on the "user_id" field.
func UserIDHasPrefix ¶
UserIDHasPrefix applies the HasPrefix predicate on the "user_id" field.
func UserIDHasSuffix ¶
UserIDHasSuffix applies the HasSuffix predicate on the "user_id" field.
func UserIDNotIn ¶
UserIDNotIn applies the NotIn predicate on the "user_id" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
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.