Documentation
¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Archive) predicate.Archive
- func CreatedAt(v time.Time) predicate.Archive
- func CreatedAtEQ(v time.Time) predicate.Archive
- func CreatedAtGT(v time.Time) predicate.Archive
- func CreatedAtGTE(v time.Time) predicate.Archive
- func CreatedAtIn(vs ...time.Time) predicate.Archive
- func CreatedAtIsNil() predicate.Archive
- func CreatedAtLT(v time.Time) predicate.Archive
- func CreatedAtLTE(v time.Time) predicate.Archive
- func CreatedAtNEQ(v time.Time) predicate.Archive
- func CreatedAtNotIn(vs ...time.Time) predicate.Archive
- func CreatedAtNotNil() predicate.Archive
- func HasObjects() predicate.Archive
- func HasObjectsWith(preds ...predicate.Object) predicate.Archive
- func HasSession() predicate.Archive
- func HasSessionWith(preds ...predicate.Session) predicate.Archive
- func ID(id string) predicate.Archive
- func IDContainsFold(id string) predicate.Archive
- func IDEQ(id string) predicate.Archive
- func IDEqualFold(id string) predicate.Archive
- func IDGT(id string) predicate.Archive
- func IDGTE(id string) predicate.Archive
- func IDIn(ids ...string) predicate.Archive
- func IDLT(id string) predicate.Archive
- func IDLTE(id string) predicate.Archive
- func IDNEQ(id string) predicate.Archive
- func IDNotIn(ids ...string) predicate.Archive
- func Not(p predicate.Archive) predicate.Archive
- func OpenedAt(v time.Time) predicate.Archive
- func OpenedAtEQ(v time.Time) predicate.Archive
- func OpenedAtGT(v time.Time) predicate.Archive
- func OpenedAtGTE(v time.Time) predicate.Archive
- func OpenedAtIn(vs ...time.Time) predicate.Archive
- func OpenedAtIsNil() predicate.Archive
- func OpenedAtLT(v time.Time) predicate.Archive
- func OpenedAtLTE(v time.Time) predicate.Archive
- func OpenedAtNEQ(v time.Time) predicate.Archive
- func OpenedAtNotIn(vs ...time.Time) predicate.Archive
- func OpenedAtNotNil() predicate.Archive
- func Or(predicates ...predicate.Archive) predicate.Archive
- func SessionID(v string) predicate.Archive
- func SessionIDContains(v string) predicate.Archive
- func SessionIDContainsFold(v string) predicate.Archive
- func SessionIDEQ(v string) predicate.Archive
- func SessionIDEqualFold(v string) predicate.Archive
- func SessionIDGT(v string) predicate.Archive
- func SessionIDGTE(v string) predicate.Archive
- func SessionIDHasPrefix(v string) predicate.Archive
- func SessionIDHasSuffix(v string) predicate.Archive
- func SessionIDIn(vs ...string) predicate.Archive
- func SessionIDIsNil() predicate.Archive
- func SessionIDLT(v string) predicate.Archive
- func SessionIDLTE(v string) predicate.Archive
- func SessionIDNEQ(v string) predicate.Archive
- func SessionIDNotIn(vs ...string) predicate.Archive
- func SessionIDNotNil() predicate.Archive
- func State(v int) predicate.Archive
- func StateEQ(v int) predicate.Archive
- func StateGT(v int) predicate.Archive
- func StateGTE(v int) predicate.Archive
- func StateIn(vs ...int) predicate.Archive
- func StateLT(v int) predicate.Archive
- func StateLTE(v int) predicate.Archive
- func StateNEQ(v int) predicate.Archive
- func StateNotIn(vs ...int) predicate.Archive
- func ValidColumn(column string) bool
- type OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByObjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByObjectsCount(opts ...sql.OrderTermOption) OrderOption
- func ByOpenedAt(opts ...sql.OrderTermOption) OrderOption
- func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySessionID(opts ...sql.OrderTermOption) OrderOption
- func ByState(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the archive type in the database. Label = "archive" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldSessionID holds the string denoting the session_id field in the database. FieldSessionID = "session_id" // FieldState holds the string denoting the state field in the database. FieldState = "state" // FieldOpenedAt holds the string denoting the opened_at field in the database. FieldOpenedAt = "opened_at" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // EdgeSession holds the string denoting the session edge name in mutations. EdgeSession = "session" // EdgeObjects holds the string denoting the objects edge name in mutations. EdgeObjects = "objects" // Table holds the table name of the archive in the database. Table = "archives" // SessionTable is the table that holds the session relation/edge. SessionTable = "archives" // SessionInverseTable is the table name for the Session entity. // It exists in this package in order to avoid circular dependency with the "session" package. SessionInverseTable = "sessions" // SessionColumn is the table column denoting the session relation/edge. SessionColumn = "session_id" // ObjectsTable is the table that holds the objects relation/edge. ObjectsTable = "objects" // ObjectsInverseTable is the table name for the Object entity. // It exists in this package in order to avoid circular dependency with the "object" package. ObjectsInverseTable = "objects" // ObjectsColumn is the table column denoting the objects relation/edge. ObjectsColumn = "archive_id" )
Variables ¶
var Columns = []string{ FieldID, FieldSessionID, FieldState, FieldOpenedAt, FieldCreatedAt, }
Columns holds all SQL columns for archive fields.
var ( // DefaultState holds the default value on creation for the "state" field. DefaultState int )
Functions ¶
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIsNil ¶
CreatedAtIsNil applies the IsNil predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotNil ¶
CreatedAtNotNil applies the NotNil predicate on the "created_at" field.
func HasObjects ¶
HasObjects applies the HasEdge predicate on the "objects" edge.
func HasObjectsWith ¶
HasObjectsWith applies the HasEdge predicate on the "objects" edge with a given conditions (other predicates).
func HasSession ¶
HasSession applies the HasEdge predicate on the "session" edge.
func HasSessionWith ¶
HasSessionWith applies the HasEdge predicate on the "session" edge with a given conditions (other predicates).
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func OpenedAt ¶
OpenedAt applies equality check predicate on the "opened_at" field. It's identical to OpenedAtEQ.
func OpenedAtEQ ¶
OpenedAtEQ applies the EQ predicate on the "opened_at" field.
func OpenedAtGT ¶
OpenedAtGT applies the GT predicate on the "opened_at" field.
func OpenedAtGTE ¶
OpenedAtGTE applies the GTE predicate on the "opened_at" field.
func OpenedAtIn ¶
OpenedAtIn applies the In predicate on the "opened_at" field.
func OpenedAtIsNil ¶
OpenedAtIsNil applies the IsNil predicate on the "opened_at" field.
func OpenedAtLT ¶
OpenedAtLT applies the LT predicate on the "opened_at" field.
func OpenedAtLTE ¶
OpenedAtLTE applies the LTE predicate on the "opened_at" field.
func OpenedAtNEQ ¶
OpenedAtNEQ applies the NEQ predicate on the "opened_at" field.
func OpenedAtNotIn ¶
OpenedAtNotIn applies the NotIn predicate on the "opened_at" field.
func OpenedAtNotNil ¶
OpenedAtNotNil applies the NotNil predicate on the "opened_at" field.
func SessionID ¶
SessionID applies equality check predicate on the "session_id" field. It's identical to SessionIDEQ.
func SessionIDContains ¶
SessionIDContains applies the Contains predicate on the "session_id" field.
func SessionIDContainsFold ¶
SessionIDContainsFold applies the ContainsFold predicate on the "session_id" field.
func SessionIDEQ ¶
SessionIDEQ applies the EQ predicate on the "session_id" field.
func SessionIDEqualFold ¶
SessionIDEqualFold applies the EqualFold predicate on the "session_id" field.
func SessionIDGT ¶
SessionIDGT applies the GT predicate on the "session_id" field.
func SessionIDGTE ¶
SessionIDGTE applies the GTE predicate on the "session_id" field.
func SessionIDHasPrefix ¶
SessionIDHasPrefix applies the HasPrefix predicate on the "session_id" field.
func SessionIDHasSuffix ¶
SessionIDHasSuffix applies the HasSuffix predicate on the "session_id" field.
func SessionIDIn ¶
SessionIDIn applies the In predicate on the "session_id" field.
func SessionIDIsNil ¶
SessionIDIsNil applies the IsNil predicate on the "session_id" field.
func SessionIDLT ¶
SessionIDLT applies the LT predicate on the "session_id" field.
func SessionIDLTE ¶
SessionIDLTE applies the LTE predicate on the "session_id" field.
func SessionIDNEQ ¶
SessionIDNEQ applies the NEQ predicate on the "session_id" field.
func SessionIDNotIn ¶
SessionIDNotIn applies the NotIn predicate on the "session_id" field.
func SessionIDNotNil ¶
SessionIDNotNil applies the NotNil predicate on the "session_id" field.
func State ¶
State applies equality check predicate on the "state" field. It's identical to StateEQ.
func StateNotIn ¶
StateNotIn applies the NotIn predicate on the "state" 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 Archive queries.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByObjects ¶
func ByObjects(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByObjects orders the results by objects terms.
func ByObjectsCount ¶
func ByObjectsCount(opts ...sql.OrderTermOption) OrderOption
ByObjectsCount orders the results by objects count.
func ByOpenedAt ¶
func ByOpenedAt(opts ...sql.OrderTermOption) OrderOption
ByOpenedAt orders the results by the opened_at field.
func BySessionField ¶
func BySessionField(field string, opts ...sql.OrderTermOption) OrderOption
BySessionField orders the results by session field.
func BySessionID ¶
func BySessionID(opts ...sql.OrderTermOption) OrderOption
BySessionID orders the results by the session_id field.
func ByState ¶
func ByState(opts ...sql.OrderTermOption) OrderOption
ByState orders the results by the state field.