Documentation
¶
Index ¶
- Constants
- Variables
- func AgentID(v string) predicate.Memory
- func AgentIDContains(v string) predicate.Memory
- func AgentIDContainsFold(v string) predicate.Memory
- func AgentIDEQ(v string) predicate.Memory
- func AgentIDEqualFold(v string) predicate.Memory
- func AgentIDGT(v string) predicate.Memory
- func AgentIDGTE(v string) predicate.Memory
- func AgentIDHasPrefix(v string) predicate.Memory
- func AgentIDHasSuffix(v string) predicate.Memory
- func AgentIDIn(vs ...string) predicate.Memory
- func AgentIDIsNil() predicate.Memory
- func AgentIDLT(v string) predicate.Memory
- func AgentIDLTE(v string) predicate.Memory
- func AgentIDNEQ(v string) predicate.Memory
- func AgentIDNotIn(vs ...string) predicate.Memory
- func AgentIDNotNil() predicate.Memory
- func And(predicates ...predicate.Memory) predicate.Memory
- func Content(v string) predicate.Memory
- func ContentContains(v string) predicate.Memory
- func ContentContainsFold(v string) predicate.Memory
- func ContentEQ(v string) predicate.Memory
- func ContentEqualFold(v string) predicate.Memory
- func ContentGT(v string) predicate.Memory
- func ContentGTE(v string) predicate.Memory
- func ContentHasPrefix(v string) predicate.Memory
- func ContentHasSuffix(v string) predicate.Memory
- func ContentIn(vs ...string) predicate.Memory
- func ContentLT(v string) predicate.Memory
- func ContentLTE(v string) predicate.Memory
- func ContentNEQ(v string) predicate.Memory
- func ContentNotIn(vs ...string) predicate.Memory
- func CreatedAt(v time.Time) predicate.Memory
- func CreatedAtEQ(v time.Time) predicate.Memory
- func CreatedAtGT(v time.Time) predicate.Memory
- func CreatedAtGTE(v time.Time) predicate.Memory
- func CreatedAtIn(vs ...time.Time) predicate.Memory
- func CreatedAtLT(v time.Time) predicate.Memory
- func CreatedAtLTE(v time.Time) predicate.Memory
- func CreatedAtNEQ(v time.Time) predicate.Memory
- func CreatedAtNotIn(vs ...time.Time) predicate.Memory
- func EmbeddingIsNil() predicate.Memory
- func EmbeddingNotNil() predicate.Memory
- func ExpiresAt(v time.Time) predicate.Memory
- func ExpiresAtEQ(v time.Time) predicate.Memory
- func ExpiresAtGT(v time.Time) predicate.Memory
- func ExpiresAtGTE(v time.Time) predicate.Memory
- func ExpiresAtIn(vs ...time.Time) predicate.Memory
- func ExpiresAtIsNil() predicate.Memory
- func ExpiresAtLT(v time.Time) predicate.Memory
- func ExpiresAtLTE(v time.Time) predicate.Memory
- func ExpiresAtNEQ(v time.Time) predicate.Memory
- func ExpiresAtNotIn(vs ...time.Time) predicate.Memory
- func ExpiresAtNotNil() predicate.Memory
- func ID(id string) predicate.Memory
- func IDContainsFold(id string) predicate.Memory
- func IDEQ(id string) predicate.Memory
- func IDEqualFold(id string) predicate.Memory
- func IDGT(id string) predicate.Memory
- func IDGTE(id string) predicate.Memory
- func IDIn(ids ...string) predicate.Memory
- func IDLT(id string) predicate.Memory
- func IDLTE(id string) predicate.Memory
- func IDNEQ(id string) predicate.Memory
- func IDNotIn(ids ...string) predicate.Memory
- func MetadataIsNil() predicate.Memory
- func MetadataNotNil() predicate.Memory
- func Not(p predicate.Memory) predicate.Memory
- func Or(predicates ...predicate.Memory) predicate.Memory
- func Scope(v string) predicate.Memory
- func ScopeContains(v string) predicate.Memory
- func ScopeContainsFold(v string) predicate.Memory
- func ScopeEQ(v string) predicate.Memory
- func ScopeEqualFold(v string) predicate.Memory
- func ScopeGT(v string) predicate.Memory
- func ScopeGTE(v string) predicate.Memory
- func ScopeHasPrefix(v string) predicate.Memory
- func ScopeHasSuffix(v string) predicate.Memory
- func ScopeIn(vs ...string) predicate.Memory
- func ScopeLT(v string) predicate.Memory
- func ScopeLTE(v string) predicate.Memory
- func ScopeNEQ(v string) predicate.Memory
- func ScopeNotIn(vs ...string) predicate.Memory
- func SessionID(v string) predicate.Memory
- func SessionIDContains(v string) predicate.Memory
- func SessionIDContainsFold(v string) predicate.Memory
- func SessionIDEQ(v string) predicate.Memory
- func SessionIDEqualFold(v string) predicate.Memory
- func SessionIDGT(v string) predicate.Memory
- func SessionIDGTE(v string) predicate.Memory
- func SessionIDHasPrefix(v string) predicate.Memory
- func SessionIDHasSuffix(v string) predicate.Memory
- func SessionIDIn(vs ...string) predicate.Memory
- func SessionIDIsNil() predicate.Memory
- func SessionIDLT(v string) predicate.Memory
- func SessionIDLTE(v string) predicate.Memory
- func SessionIDNEQ(v string) predicate.Memory
- func SessionIDNotIn(vs ...string) predicate.Memory
- func SessionIDNotNil() predicate.Memory
- func SubjectID(v string) predicate.Memory
- func SubjectIDContains(v string) predicate.Memory
- func SubjectIDContainsFold(v string) predicate.Memory
- func SubjectIDEQ(v string) predicate.Memory
- func SubjectIDEqualFold(v string) predicate.Memory
- func SubjectIDGT(v string) predicate.Memory
- func SubjectIDGTE(v string) predicate.Memory
- func SubjectIDHasPrefix(v string) predicate.Memory
- func SubjectIDHasSuffix(v string) predicate.Memory
- func SubjectIDIn(vs ...string) predicate.Memory
- func SubjectIDLT(v string) predicate.Memory
- func SubjectIDLTE(v string) predicate.Memory
- func SubjectIDNEQ(v string) predicate.Memory
- func SubjectIDNotIn(vs ...string) predicate.Memory
- func TenantID(v string) predicate.Memory
- func TenantIDContains(v string) predicate.Memory
- func TenantIDContainsFold(v string) predicate.Memory
- func TenantIDEQ(v string) predicate.Memory
- func TenantIDEqualFold(v string) predicate.Memory
- func TenantIDGT(v string) predicate.Memory
- func TenantIDGTE(v string) predicate.Memory
- func TenantIDHasPrefix(v string) predicate.Memory
- func TenantIDHasSuffix(v string) predicate.Memory
- func TenantIDIn(vs ...string) predicate.Memory
- func TenantIDLT(v string) predicate.Memory
- func TenantIDLTE(v string) predicate.Memory
- func TenantIDNEQ(v string) predicate.Memory
- func TenantIDNotIn(vs ...string) predicate.Memory
- func Type(v string) predicate.Memory
- func TypeContains(v string) predicate.Memory
- func TypeContainsFold(v string) predicate.Memory
- func TypeEQ(v string) predicate.Memory
- func TypeEqualFold(v string) predicate.Memory
- func TypeGT(v string) predicate.Memory
- func TypeGTE(v string) predicate.Memory
- func TypeHasPrefix(v string) predicate.Memory
- func TypeHasSuffix(v string) predicate.Memory
- func TypeIn(vs ...string) predicate.Memory
- func TypeLT(v string) predicate.Memory
- func TypeLTE(v string) predicate.Memory
- func TypeNEQ(v string) predicate.Memory
- func TypeNotIn(vs ...string) predicate.Memory
- func UpdatedAt(v time.Time) predicate.Memory
- func UpdatedAtEQ(v time.Time) predicate.Memory
- func UpdatedAtGT(v time.Time) predicate.Memory
- func UpdatedAtGTE(v time.Time) predicate.Memory
- func UpdatedAtIn(vs ...time.Time) predicate.Memory
- func UpdatedAtLT(v time.Time) predicate.Memory
- func UpdatedAtLTE(v time.Time) predicate.Memory
- func UpdatedAtNEQ(v time.Time) predicate.Memory
- func UpdatedAtNotIn(vs ...time.Time) predicate.Memory
- func ValidColumn(column string) bool
- type OrderOption
- func ByAgentID(opts ...sql.OrderTermOption) OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByScope(opts ...sql.OrderTermOption) OrderOption
- func BySessionID(opts ...sql.OrderTermOption) OrderOption
- func BySubjectID(opts ...sql.OrderTermOption) OrderOption
- func ByTenantID(opts ...sql.OrderTermOption) OrderOption
- func ByType(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the memory type in the database. Label = "memory" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTenantID holds the string denoting the tenant_id field in the database. FieldTenantID = "tenant_id" // FieldSubjectID holds the string denoting the subject_id field in the database. FieldSubjectID = "subject_id" // FieldAgentID holds the string denoting the agent_id field in the database. FieldAgentID = "agent_id" // FieldSessionID holds the string denoting the session_id field in the database. FieldSessionID = "session_id" // FieldScope holds the string denoting the scope field in the database. FieldScope = "scope" // FieldType holds the string denoting the type field in the database. FieldType = "type" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldEmbedding holds the string denoting the embedding field in the database. FieldEmbedding = "embedding" // FieldMetadata holds the string denoting the metadata field in the database. FieldMetadata = "metadata" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldExpiresAt holds the string denoting the expires_at field in the database. FieldExpiresAt = "expires_at" // Table holds the table name of the memory in the database. Table = "memories" )
Variables ¶
var ( // TenantIDValidator is a validator for the "tenant_id" field. It is called by the builders before save. TenantIDValidator func(string) error // SubjectIDValidator is a validator for the "subject_id" field. It is called by the builders before save. SubjectIDValidator func(string) error // ScopeValidator is a validator for the "scope" field. It is called by the builders before save. ScopeValidator func(string) error // TypeValidator is a validator for the "type" field. It is called by the builders before save. TypeValidator func(string) error // ContentValidator is a validator for the "content" field. It is called by the builders before save. ContentValidator func(string) error // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // IDValidator is a validator for the "id" field. It is called by the builders before save. IDValidator func(string) error )
var Columns = []string{ FieldID, FieldTenantID, FieldSubjectID, FieldAgentID, FieldSessionID, FieldScope, FieldType, FieldContent, FieldEmbedding, FieldMetadata, FieldCreatedAt, FieldUpdatedAt, FieldExpiresAt, }
Columns holds all SQL columns for memory fields.
Functions ¶
func AgentID ¶
AgentID applies equality check predicate on the "agent_id" field. It's identical to AgentIDEQ.
func AgentIDContains ¶
AgentIDContains applies the Contains predicate on the "agent_id" field.
func AgentIDContainsFold ¶
AgentIDContainsFold applies the ContainsFold predicate on the "agent_id" field.
func AgentIDEqualFold ¶
AgentIDEqualFold applies the EqualFold predicate on the "agent_id" field.
func AgentIDGTE ¶
AgentIDGTE applies the GTE predicate on the "agent_id" field.
func AgentIDHasPrefix ¶
AgentIDHasPrefix applies the HasPrefix predicate on the "agent_id" field.
func AgentIDHasSuffix ¶
AgentIDHasSuffix applies the HasSuffix predicate on the "agent_id" field.
func AgentIDIsNil ¶
AgentIDIsNil applies the IsNil predicate on the "agent_id" field.
func AgentIDLTE ¶
AgentIDLTE applies the LTE predicate on the "agent_id" field.
func AgentIDNEQ ¶
AgentIDNEQ applies the NEQ predicate on the "agent_id" field.
func AgentIDNotIn ¶
AgentIDNotIn applies the NotIn predicate on the "agent_id" field.
func AgentIDNotNil ¶
AgentIDNotNil applies the NotNil predicate on the "agent_id" field.
func Content ¶
Content applies equality check predicate on the "content" field. It's identical to ContentEQ.
func ContentContains ¶
ContentContains applies the Contains predicate on the "content" field.
func ContentContainsFold ¶
ContentContainsFold applies the ContainsFold predicate on the "content" field.
func ContentEqualFold ¶
ContentEqualFold applies the EqualFold predicate on the "content" field.
func ContentGTE ¶
ContentGTE applies the GTE predicate on the "content" field.
func ContentHasPrefix ¶
ContentHasPrefix applies the HasPrefix predicate on the "content" field.
func ContentHasSuffix ¶
ContentHasSuffix applies the HasSuffix predicate on the "content" field.
func ContentLTE ¶
ContentLTE applies the LTE predicate on the "content" field.
func ContentNEQ ¶
ContentNEQ applies the NEQ predicate on the "content" field.
func ContentNotIn ¶
ContentNotIn applies the NotIn predicate on the "content" field.
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 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 EmbeddingIsNil ¶
EmbeddingIsNil applies the IsNil predicate on the "embedding" field.
func EmbeddingNotNil ¶
EmbeddingNotNil applies the NotNil predicate on the "embedding" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expires_at" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expires_at" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expires_at" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expires_at" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expires_at" field.
func ExpiresAtIsNil ¶
ExpiresAtIsNil applies the IsNil predicate on the "expires_at" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expires_at" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expires_at" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expires_at" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expires_at" field.
func ExpiresAtNotNil ¶
ExpiresAtNotNil applies the NotNil predicate on the "expires_at" field.
func IDContainsFold ¶
IDContainsFold applies the ContainsFold predicate on the ID field.
func IDEqualFold ¶
IDEqualFold applies the EqualFold predicate on the ID field.
func MetadataIsNil ¶
MetadataIsNil applies the IsNil predicate on the "metadata" field.
func MetadataNotNil ¶
MetadataNotNil applies the NotNil predicate on the "metadata" field.
func Scope ¶
Scope applies equality check predicate on the "scope" field. It's identical to ScopeEQ.
func ScopeContains ¶
ScopeContains applies the Contains predicate on the "scope" field.
func ScopeContainsFold ¶
ScopeContainsFold applies the ContainsFold predicate on the "scope" field.
func ScopeEqualFold ¶
ScopeEqualFold applies the EqualFold predicate on the "scope" field.
func ScopeHasPrefix ¶
ScopeHasPrefix applies the HasPrefix predicate on the "scope" field.
func ScopeHasSuffix ¶
ScopeHasSuffix applies the HasSuffix predicate on the "scope" field.
func ScopeNotIn ¶
ScopeNotIn applies the NotIn predicate on the "scope" 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 SubjectID ¶
SubjectID applies equality check predicate on the "subject_id" field. It's identical to SubjectIDEQ.
func SubjectIDContains ¶
SubjectIDContains applies the Contains predicate on the "subject_id" field.
func SubjectIDContainsFold ¶
SubjectIDContainsFold applies the ContainsFold predicate on the "subject_id" field.
func SubjectIDEQ ¶
SubjectIDEQ applies the EQ predicate on the "subject_id" field.
func SubjectIDEqualFold ¶
SubjectIDEqualFold applies the EqualFold predicate on the "subject_id" field.
func SubjectIDGT ¶
SubjectIDGT applies the GT predicate on the "subject_id" field.
func SubjectIDGTE ¶
SubjectIDGTE applies the GTE predicate on the "subject_id" field.
func SubjectIDHasPrefix ¶
SubjectIDHasPrefix applies the HasPrefix predicate on the "subject_id" field.
func SubjectIDHasSuffix ¶
SubjectIDHasSuffix applies the HasSuffix predicate on the "subject_id" field.
func SubjectIDIn ¶
SubjectIDIn applies the In predicate on the "subject_id" field.
func SubjectIDLT ¶
SubjectIDLT applies the LT predicate on the "subject_id" field.
func SubjectIDLTE ¶
SubjectIDLTE applies the LTE predicate on the "subject_id" field.
func SubjectIDNEQ ¶
SubjectIDNEQ applies the NEQ predicate on the "subject_id" field.
func SubjectIDNotIn ¶
SubjectIDNotIn applies the NotIn predicate on the "subject_id" field.
func TenantID ¶
TenantID applies equality check predicate on the "tenant_id" field. It's identical to TenantIDEQ.
func TenantIDContains ¶
TenantIDContains applies the Contains predicate on the "tenant_id" field.
func TenantIDContainsFold ¶
TenantIDContainsFold applies the ContainsFold predicate on the "tenant_id" field.
func TenantIDEQ ¶
TenantIDEQ applies the EQ predicate on the "tenant_id" field.
func TenantIDEqualFold ¶
TenantIDEqualFold applies the EqualFold predicate on the "tenant_id" field.
func TenantIDGT ¶
TenantIDGT applies the GT predicate on the "tenant_id" field.
func TenantIDGTE ¶
TenantIDGTE applies the GTE predicate on the "tenant_id" field.
func TenantIDHasPrefix ¶
TenantIDHasPrefix applies the HasPrefix predicate on the "tenant_id" field.
func TenantIDHasSuffix ¶
TenantIDHasSuffix applies the HasSuffix predicate on the "tenant_id" field.
func TenantIDIn ¶
TenantIDIn applies the In predicate on the "tenant_id" field.
func TenantIDLT ¶
TenantIDLT applies the LT predicate on the "tenant_id" field.
func TenantIDLTE ¶
TenantIDLTE applies the LTE predicate on the "tenant_id" field.
func TenantIDNEQ ¶
TenantIDNEQ applies the NEQ predicate on the "tenant_id" field.
func TenantIDNotIn ¶
TenantIDNotIn applies the NotIn predicate on the "tenant_id" field.
func TypeContains ¶
TypeContains applies the Contains predicate on the "type" field.
func TypeContainsFold ¶
TypeContainsFold applies the ContainsFold predicate on the "type" field.
func TypeEqualFold ¶
TypeEqualFold applies the EqualFold predicate on the "type" field.
func TypeHasPrefix ¶
TypeHasPrefix applies the HasPrefix predicate on the "type" field.
func TypeHasSuffix ¶
TypeHasSuffix applies the HasSuffix predicate on the "type" field.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" 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 Memory queries.
func ByAgentID ¶
func ByAgentID(opts ...sql.OrderTermOption) OrderOption
ByAgentID orders the results by the agent_id field.
func ByContent ¶
func ByContent(opts ...sql.OrderTermOption) OrderOption
ByContent orders the results by the content field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expires_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByScope ¶
func ByScope(opts ...sql.OrderTermOption) OrderOption
ByScope orders the results by the scope field.
func BySessionID ¶
func BySessionID(opts ...sql.OrderTermOption) OrderOption
BySessionID orders the results by the session_id field.
func BySubjectID ¶
func BySubjectID(opts ...sql.OrderTermOption) OrderOption
BySubjectID orders the results by the subject_id field.
func ByTenantID ¶
func ByTenantID(opts ...sql.OrderTermOption) OrderOption
ByTenantID orders the results by the tenant_id field.
func ByType ¶
func ByType(opts ...sql.OrderTermOption) OrderOption
ByType orders the results by the type field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.