Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Openstack) predicate.Openstack
- func HasUser() predicate.Openstack
- func HasUserWith(preds ...predicate.User) predicate.Openstack
- func ID(id int) predicate.Openstack
- func IDEQ(id int) predicate.Openstack
- func IDGT(id int) predicate.Openstack
- func IDGTE(id int) predicate.Openstack
- func IDIn(ids ...int) predicate.Openstack
- func IDLT(id int) predicate.Openstack
- func IDLTE(id int) predicate.Openstack
- func IDNEQ(id int) predicate.Openstack
- func IDNotIn(ids ...int) predicate.Openstack
- func Not(p predicate.Openstack) predicate.Openstack
- func Or(predicates ...predicate.Openstack) predicate.Openstack
- func Timestamp(v time.Time) predicate.Openstack
- func TimestampEQ(v time.Time) predicate.Openstack
- func TimestampGT(v time.Time) predicate.Openstack
- func TimestampGTE(v time.Time) predicate.Openstack
- func TimestampIn(vs ...time.Time) predicate.Openstack
- func TimestampLT(v time.Time) predicate.Openstack
- func TimestampLTE(v time.Time) predicate.Openstack
- func TimestampNEQ(v time.Time) predicate.Openstack
- func TimestampNotIn(vs ...time.Time) predicate.Openstack
- func ValidColumn(column string) bool
- type OrderOption
Constants ¶
const ( // Label holds the string label denoting the openstack type in the database. Label = "openstack" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTimestamp holds the string denoting the timestamp field in the database. FieldTimestamp = "timestamp" // EdgeUser holds the string denoting the user edge name in mutations. EdgeUser = "user" // Table holds the table name of the openstack in the database. Table = "openstacks" // UserTable is the table that holds the user relation/edge. UserTable = "openstacks" // UserInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. UserInverseTable = "users" // UserColumn is the table column denoting the user relation/edge. UserColumn = "user_openstack" )
Variables ¶
var Columns = []string{ FieldID, FieldTimestamp, }
Columns holds all SQL columns for openstack fields.
var ( // DefaultTimestamp holds the default value on creation for the "timestamp" field. DefaultTimestamp func() time.Time )
var ForeignKeys = []string{
"user_openstack",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "openstacks" table and are not defined as standalone fields in the schema.
Functions ¶
func HasUserWith ¶
HasUserWith applies the HasEdge predicate on the "user" edge with a given conditions (other predicates).
func Timestamp ¶
Timestamp applies equality check predicate on the "timestamp" field. It's identical to TimestampEQ.
func TimestampEQ ¶
TimestampEQ applies the EQ predicate on the "timestamp" field.
func TimestampGT ¶
TimestampGT applies the GT predicate on the "timestamp" field.
func TimestampGTE ¶
TimestampGTE applies the GTE predicate on the "timestamp" field.
func TimestampIn ¶
TimestampIn applies the In predicate on the "timestamp" field.
func TimestampLT ¶
TimestampLT applies the LT predicate on the "timestamp" field.
func TimestampLTE ¶
TimestampLTE applies the LTE predicate on the "timestamp" field.
func TimestampNEQ ¶
TimestampNEQ applies the NEQ predicate on the "timestamp" field.
func TimestampNotIn ¶
TimestampNotIn applies the NotIn predicate on the "timestamp" 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 Openstack queries.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByTimestamp ¶
func ByTimestamp(opts ...sql.OrderTermOption) OrderOption
ByTimestamp orders the results by the timestamp field.
func ByUserField ¶
func ByUserField(field string, opts ...sql.OrderTermOption) OrderOption
ByUserField orders the results by user field.