system

package
v0.0.0-...-f8f1e70 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the system type in the database.
	Label = "system"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldSystemID holds the string denoting the system_id field in the database.
	FieldSystemID = "system_id"
	// FieldPublicKey holds the string denoting the public_key field in the database.
	FieldPublicKey = "public_key"
	// FieldApproved holds the string denoting the approved field in the database.
	FieldApproved = "approved"
	// FieldLastLogin holds the string denoting the last_login field in the database.
	FieldLastLogin = "last_login"
	// Table holds the table name of the system in the database.
	Table = "systems"
)

Variables

Columns holds all SQL columns for system fields.

Functions

func And

func And(predicates ...predicate.System) predicate.System

And groups predicates with the AND operator between them.

func Approved

func Approved(v bool) predicate.System

Approved applies equality check predicate on the "approved" field. It's identical to ApprovedEQ.

func ApprovedEQ

func ApprovedEQ(v bool) predicate.System

ApprovedEQ applies the EQ predicate on the "approved" field.

func ApprovedNEQ

func ApprovedNEQ(v bool) predicate.System

ApprovedNEQ applies the NEQ predicate on the "approved" field.

func ID

func ID(id int) predicate.System

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.System

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.System

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.System

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.System

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.System

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.System

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.System

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.System

IDNotIn applies the NotIn predicate on the ID field.

func LastLogin

func LastLogin(v int64) predicate.System

LastLogin applies equality check predicate on the "last_login" field. It's identical to LastLoginEQ.

func LastLoginEQ

func LastLoginEQ(v int64) predicate.System

LastLoginEQ applies the EQ predicate on the "last_login" field.

func LastLoginGT

func LastLoginGT(v int64) predicate.System

LastLoginGT applies the GT predicate on the "last_login" field.

func LastLoginGTE

func LastLoginGTE(v int64) predicate.System

LastLoginGTE applies the GTE predicate on the "last_login" field.

func LastLoginIn

func LastLoginIn(vs ...int64) predicate.System

LastLoginIn applies the In predicate on the "last_login" field.

func LastLoginLT

func LastLoginLT(v int64) predicate.System

LastLoginLT applies the LT predicate on the "last_login" field.

func LastLoginLTE

func LastLoginLTE(v int64) predicate.System

LastLoginLTE applies the LTE predicate on the "last_login" field.

func LastLoginNEQ

func LastLoginNEQ(v int64) predicate.System

LastLoginNEQ applies the NEQ predicate on the "last_login" field.

func LastLoginNotIn

func LastLoginNotIn(vs ...int64) predicate.System

LastLoginNotIn applies the NotIn predicate on the "last_login" field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.System) predicate.System

Or groups predicates with the OR operator between them.

func PublicKey

func PublicKey(v []byte) predicate.System

PublicKey applies equality check predicate on the "public_key" field. It's identical to PublicKeyEQ.

func PublicKeyEQ

func PublicKeyEQ(v []byte) predicate.System

PublicKeyEQ applies the EQ predicate on the "public_key" field.

func PublicKeyGT

func PublicKeyGT(v []byte) predicate.System

PublicKeyGT applies the GT predicate on the "public_key" field.

func PublicKeyGTE

func PublicKeyGTE(v []byte) predicate.System

PublicKeyGTE applies the GTE predicate on the "public_key" field.

func PublicKeyIn

func PublicKeyIn(vs ...[]byte) predicate.System

PublicKeyIn applies the In predicate on the "public_key" field.

func PublicKeyLT

func PublicKeyLT(v []byte) predicate.System

PublicKeyLT applies the LT predicate on the "public_key" field.

func PublicKeyLTE

func PublicKeyLTE(v []byte) predicate.System

PublicKeyLTE applies the LTE predicate on the "public_key" field.

func PublicKeyNEQ

func PublicKeyNEQ(v []byte) predicate.System

PublicKeyNEQ applies the NEQ predicate on the "public_key" field.

func PublicKeyNotIn

func PublicKeyNotIn(vs ...[]byte) predicate.System

PublicKeyNotIn applies the NotIn predicate on the "public_key" field.

func SystemID

func SystemID(v uuid.UUID) predicate.System

SystemID applies equality check predicate on the "system_id" field. It's identical to SystemIDEQ.

func SystemIDEQ

func SystemIDEQ(v uuid.UUID) predicate.System

SystemIDEQ applies the EQ predicate on the "system_id" field.

func SystemIDGT

func SystemIDGT(v uuid.UUID) predicate.System

SystemIDGT applies the GT predicate on the "system_id" field.

func SystemIDGTE

func SystemIDGTE(v uuid.UUID) predicate.System

SystemIDGTE applies the GTE predicate on the "system_id" field.

func SystemIDIn

func SystemIDIn(vs ...uuid.UUID) predicate.System

SystemIDIn applies the In predicate on the "system_id" field.

func SystemIDLT

func SystemIDLT(v uuid.UUID) predicate.System

SystemIDLT applies the LT predicate on the "system_id" field.

func SystemIDLTE

func SystemIDLTE(v uuid.UUID) predicate.System

SystemIDLTE applies the LTE predicate on the "system_id" field.

func SystemIDNEQ

func SystemIDNEQ(v uuid.UUID) predicate.System

SystemIDNEQ applies the NEQ predicate on the "system_id" field.

func SystemIDNotIn

func SystemIDNotIn(vs ...uuid.UUID) predicate.System

SystemIDNotIn applies the NotIn predicate on the "system_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 System queries.

func ByApproved

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

ByApproved orders the results by the approved field.

func ByID

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

ByID orders the results by the id field.

func ByLastLogin

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

ByLastLogin orders the results by the last_login field.

func BySystemID

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

BySystemID orders the results by the system_id field.

Jump to

Keyboard shortcuts

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