Documentation
¶
Index ¶
- Constants
- Variables
- func AiCurriculum(v string) predicate.Note
- func AiCurriculumContains(v string) predicate.Note
- func AiCurriculumContainsFold(v string) predicate.Note
- func AiCurriculumEQ(v string) predicate.Note
- func AiCurriculumEqualFold(v string) predicate.Note
- func AiCurriculumGT(v string) predicate.Note
- func AiCurriculumGTE(v string) predicate.Note
- func AiCurriculumHasPrefix(v string) predicate.Note
- func AiCurriculumHasSuffix(v string) predicate.Note
- func AiCurriculumIn(vs ...string) predicate.Note
- func AiCurriculumIsNil() predicate.Note
- func AiCurriculumLT(v string) predicate.Note
- func AiCurriculumLTE(v string) predicate.Note
- func AiCurriculumNEQ(v string) predicate.Note
- func AiCurriculumNotIn(vs ...string) predicate.Note
- func AiCurriculumNotNil() predicate.Note
- func AiProcessing(v bool) predicate.Note
- func AiProcessingEQ(v bool) predicate.Note
- func AiProcessingNEQ(v bool) predicate.Note
- func And(predicates ...predicate.Note) predicate.Note
- func Content(v string) predicate.Note
- func ContentContains(v string) predicate.Note
- func ContentContainsFold(v string) predicate.Note
- func ContentEQ(v string) predicate.Note
- func ContentEqualFold(v string) predicate.Note
- func ContentGT(v string) predicate.Note
- func ContentGTE(v string) predicate.Note
- func ContentHasPrefix(v string) predicate.Note
- func ContentHasSuffix(v string) predicate.Note
- func ContentIn(vs ...string) predicate.Note
- func ContentIsNil() predicate.Note
- func ContentLT(v string) predicate.Note
- func ContentLTE(v string) predicate.Note
- func ContentNEQ(v string) predicate.Note
- func ContentNotIn(vs ...string) predicate.Note
- func ContentNotNil() predicate.Note
- func CreatedAt(v time.Time) predicate.Note
- func CreatedAtEQ(v time.Time) predicate.Note
- func CreatedAtGT(v time.Time) predicate.Note
- func CreatedAtGTE(v time.Time) predicate.Note
- func CreatedAtIn(vs ...time.Time) predicate.Note
- func CreatedAtLT(v time.Time) predicate.Note
- func CreatedAtLTE(v time.Time) predicate.Note
- func CreatedAtNEQ(v time.Time) predicate.Note
- func CreatedAtNotIn(vs ...time.Time) predicate.Note
- func Description(v string) predicate.Note
- func DescriptionContains(v string) predicate.Note
- func DescriptionContainsFold(v string) predicate.Note
- func DescriptionEQ(v string) predicate.Note
- func DescriptionEqualFold(v string) predicate.Note
- func DescriptionGT(v string) predicate.Note
- func DescriptionGTE(v string) predicate.Note
- func DescriptionHasPrefix(v string) predicate.Note
- func DescriptionHasSuffix(v string) predicate.Note
- func DescriptionIn(vs ...string) predicate.Note
- func DescriptionIsNil() predicate.Note
- func DescriptionLT(v string) predicate.Note
- func DescriptionLTE(v string) predicate.Note
- func DescriptionNEQ(v string) predicate.Note
- func DescriptionNotIn(vs ...string) predicate.Note
- func DescriptionNotNil() predicate.Note
- func HasLikes() predicate.Note
- func HasLikesWith(preds ...predicate.NoteLike) predicate.Note
- func HasOwner() predicate.Note
- func HasOwnerWith(preds ...predicate.User) predicate.Note
- func HasReposts() predicate.Note
- func HasRepostsWith(preds ...predicate.NoteRepost) predicate.Note
- func ID(id int) predicate.Note
- func IDEQ(id int) predicate.Note
- func IDGT(id int) predicate.Note
- func IDGTE(id int) predicate.Note
- func IDIn(ids ...int) predicate.Note
- func IDLT(id int) predicate.Note
- func IDLTE(id int) predicate.Note
- func IDNEQ(id int) predicate.Note
- func IDNotIn(ids ...int) predicate.Note
- func Not(p predicate.Note) predicate.Note
- func Or(predicates ...predicate.Note) predicate.Note
- func PermissionLevelEQ(v PermissionLevel) predicate.Note
- func PermissionLevelIn(vs ...PermissionLevel) predicate.Note
- func PermissionLevelNEQ(v PermissionLevel) predicate.Note
- func PermissionLevelNotIn(vs ...PermissionLevel) predicate.Note
- func PermissionLevelValidator(pl PermissionLevel) error
- func ResourcesIsNil() predicate.Note
- func ResourcesNotNil() predicate.Note
- func ShareToken(v string) predicate.Note
- func ShareTokenContains(v string) predicate.Note
- func ShareTokenContainsFold(v string) predicate.Note
- func ShareTokenEQ(v string) predicate.Note
- func ShareTokenEqualFold(v string) predicate.Note
- func ShareTokenGT(v string) predicate.Note
- func ShareTokenGTE(v string) predicate.Note
- func ShareTokenHasPrefix(v string) predicate.Note
- func ShareTokenHasSuffix(v string) predicate.Note
- func ShareTokenIn(vs ...string) predicate.Note
- func ShareTokenIsNil() predicate.Note
- func ShareTokenLT(v string) predicate.Note
- func ShareTokenLTE(v string) predicate.Note
- func ShareTokenNEQ(v string) predicate.Note
- func ShareTokenNotIn(vs ...string) predicate.Note
- func ShareTokenNotNil() predicate.Note
- func Title(v string) predicate.Note
- func TitleContains(v string) predicate.Note
- func TitleContainsFold(v string) predicate.Note
- func TitleEQ(v string) predicate.Note
- func TitleEqualFold(v string) predicate.Note
- func TitleGT(v string) predicate.Note
- func TitleGTE(v string) predicate.Note
- func TitleHasPrefix(v string) predicate.Note
- func TitleHasSuffix(v string) predicate.Note
- func TitleIn(vs ...string) predicate.Note
- func TitleLT(v string) predicate.Note
- func TitleLTE(v string) predicate.Note
- func TitleNEQ(v string) predicate.Note
- func TitleNotIn(vs ...string) predicate.Note
- func UpdatedAt(v time.Time) predicate.Note
- func UpdatedAtEQ(v time.Time) predicate.Note
- func UpdatedAtGT(v time.Time) predicate.Note
- func UpdatedAtGTE(v time.Time) predicate.Note
- func UpdatedAtIn(vs ...time.Time) predicate.Note
- func UpdatedAtLT(v time.Time) predicate.Note
- func UpdatedAtLTE(v time.Time) predicate.Note
- func UpdatedAtNEQ(v time.Time) predicate.Note
- func UpdatedAtNotIn(vs ...time.Time) predicate.Note
- func ValidColumn(column string) bool
- func VisibilityEQ(v Visibility) predicate.Note
- func VisibilityIn(vs ...Visibility) predicate.Note
- func VisibilityNEQ(v Visibility) predicate.Note
- func VisibilityNotIn(vs ...Visibility) predicate.Note
- func VisibilityValidator(v Visibility) error
- type OrderOption
- func ByAiCurriculum(opts ...sql.OrderTermOption) OrderOption
- func ByAiProcessing(opts ...sql.OrderTermOption) OrderOption
- func ByContent(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByDescription(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLikes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByLikesCount(opts ...sql.OrderTermOption) OrderOption
- func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByPermissionLevel(opts ...sql.OrderTermOption) OrderOption
- func ByReposts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByRepostsCount(opts ...sql.OrderTermOption) OrderOption
- func ByShareToken(opts ...sql.OrderTermOption) OrderOption
- func ByTitle(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByVisibility(opts ...sql.OrderTermOption) OrderOption
- type PermissionLevel
- type Visibility
Constants ¶
const ( // Label holds the string label denoting the note type in the database. Label = "note" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldTitle holds the string denoting the title field in the database. FieldTitle = "title" // FieldDescription holds the string denoting the description field in the database. FieldDescription = "description" // FieldContent holds the string denoting the content field in the database. FieldContent = "content" // FieldResources holds the string denoting the resources field in the database. FieldResources = "resources" // FieldAiCurriculum holds the string denoting the ai_curriculum field in the database. FieldAiCurriculum = "ai_curriculum" // FieldVisibility holds the string denoting the visibility field in the database. FieldVisibility = "visibility" // FieldPermissionLevel holds the string denoting the permission_level field in the database. FieldPermissionLevel = "permission_level" FieldShareToken = "share_token" // FieldAiProcessing holds the string denoting the ai_processing field in the database. FieldAiProcessing = "ai_processing" // 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" // EdgeOwner holds the string denoting the owner edge name in mutations. EdgeOwner = "owner" // EdgeLikes holds the string denoting the likes edge name in mutations. EdgeLikes = "likes" // EdgeReposts holds the string denoting the reposts edge name in mutations. EdgeReposts = "reposts" // Table holds the table name of the note in the database. Table = "notes" // OwnerTable is the table that holds the owner relation/edge. OwnerTable = "notes" // OwnerInverseTable is the table name for the User entity. // It exists in this package in order to avoid circular dependency with the "user" package. OwnerInverseTable = "users" // OwnerColumn is the table column denoting the owner relation/edge. OwnerColumn = "user_notes" // LikesTable is the table that holds the likes relation/edge. LikesTable = "note_likes" // LikesInverseTable is the table name for the NoteLike entity. // It exists in this package in order to avoid circular dependency with the "notelike" package. LikesInverseTable = "note_likes" // LikesColumn is the table column denoting the likes relation/edge. LikesColumn = "note_likes" // RepostsTable is the table that holds the reposts relation/edge. RepostsTable = "note_reposts" // RepostsInverseTable is the table name for the NoteRepost entity. // It exists in this package in order to avoid circular dependency with the "noterepost" package. RepostsInverseTable = "note_reposts" // RepostsColumn is the table column denoting the reposts relation/edge. RepostsColumn = "note_reposts" )
const DefaultPermissionLevel = PermissionLevelReadOnly
PermissionLevelReadOnly is the default value of the PermissionLevel enum.
const DefaultVisibility = VisibilityPrivate
VisibilityPrivate is the default value of the Visibility enum.
Variables ¶
var ( // TitleValidator is a validator for the "title" field. It is called by the builders before save. TitleValidator func(string) error // DefaultAiProcessing holds the default value on creation for the "ai_processing" field. DefaultAiProcessing bool // 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 )
var Columns = []string{ FieldID, FieldTitle, FieldDescription, FieldContent, FieldResources, FieldAiCurriculum, FieldVisibility, FieldPermissionLevel, FieldShareToken, FieldAiProcessing, FieldCreatedAt, FieldUpdatedAt, }
Columns holds all SQL columns for note fields.
var ForeignKeys = []string{
"user_notes",
}
ForeignKeys holds the SQL foreign-keys that are owned by the "notes" table and are not defined as standalone fields in the schema.
Functions ¶
func AiCurriculum ¶
AiCurriculum applies equality check predicate on the "ai_curriculum" field. It's identical to AiCurriculumEQ.
func AiCurriculumContains ¶
AiCurriculumContains applies the Contains predicate on the "ai_curriculum" field.
func AiCurriculumContainsFold ¶
AiCurriculumContainsFold applies the ContainsFold predicate on the "ai_curriculum" field.
func AiCurriculumEQ ¶
AiCurriculumEQ applies the EQ predicate on the "ai_curriculum" field.
func AiCurriculumEqualFold ¶
AiCurriculumEqualFold applies the EqualFold predicate on the "ai_curriculum" field.
func AiCurriculumGT ¶
AiCurriculumGT applies the GT predicate on the "ai_curriculum" field.
func AiCurriculumGTE ¶
AiCurriculumGTE applies the GTE predicate on the "ai_curriculum" field.
func AiCurriculumHasPrefix ¶
AiCurriculumHasPrefix applies the HasPrefix predicate on the "ai_curriculum" field.
func AiCurriculumHasSuffix ¶
AiCurriculumHasSuffix applies the HasSuffix predicate on the "ai_curriculum" field.
func AiCurriculumIn ¶
AiCurriculumIn applies the In predicate on the "ai_curriculum" field.
func AiCurriculumIsNil ¶
AiCurriculumIsNil applies the IsNil predicate on the "ai_curriculum" field.
func AiCurriculumLT ¶
AiCurriculumLT applies the LT predicate on the "ai_curriculum" field.
func AiCurriculumLTE ¶
AiCurriculumLTE applies the LTE predicate on the "ai_curriculum" field.
func AiCurriculumNEQ ¶
AiCurriculumNEQ applies the NEQ predicate on the "ai_curriculum" field.
func AiCurriculumNotIn ¶
AiCurriculumNotIn applies the NotIn predicate on the "ai_curriculum" field.
func AiCurriculumNotNil ¶
AiCurriculumNotNil applies the NotNil predicate on the "ai_curriculum" field.
func AiProcessing ¶
AiProcessing applies equality check predicate on the "ai_processing" field. It's identical to AiProcessingEQ.
func AiProcessingEQ ¶
AiProcessingEQ applies the EQ predicate on the "ai_processing" field.
func AiProcessingNEQ ¶
AiProcessingNEQ applies the NEQ predicate on the "ai_processing" 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 ContentIsNil ¶
ContentIsNil applies the IsNil 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 ContentNotNil ¶
ContentNotNil applies the NotNil 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 Description ¶
Description applies equality check predicate on the "description" field. It's identical to DescriptionEQ.
func DescriptionContains ¶
DescriptionContains applies the Contains predicate on the "description" field.
func DescriptionContainsFold ¶
DescriptionContainsFold applies the ContainsFold predicate on the "description" field.
func DescriptionEQ ¶
DescriptionEQ applies the EQ predicate on the "description" field.
func DescriptionEqualFold ¶
DescriptionEqualFold applies the EqualFold predicate on the "description" field.
func DescriptionGT ¶
DescriptionGT applies the GT predicate on the "description" field.
func DescriptionGTE ¶
DescriptionGTE applies the GTE predicate on the "description" field.
func DescriptionHasPrefix ¶
DescriptionHasPrefix applies the HasPrefix predicate on the "description" field.
func DescriptionHasSuffix ¶
DescriptionHasSuffix applies the HasSuffix predicate on the "description" field.
func DescriptionIn ¶
DescriptionIn applies the In predicate on the "description" field.
func DescriptionIsNil ¶
DescriptionIsNil applies the IsNil predicate on the "description" field.
func DescriptionLT ¶
DescriptionLT applies the LT predicate on the "description" field.
func DescriptionLTE ¶
DescriptionLTE applies the LTE predicate on the "description" field.
func DescriptionNEQ ¶
DescriptionNEQ applies the NEQ predicate on the "description" field.
func DescriptionNotIn ¶
DescriptionNotIn applies the NotIn predicate on the "description" field.
func DescriptionNotNil ¶
DescriptionNotNil applies the NotNil predicate on the "description" field.
func HasLikesWith ¶
HasLikesWith applies the HasEdge predicate on the "likes" edge with a given conditions (other predicates).
func HasOwnerWith ¶
HasOwnerWith applies the HasEdge predicate on the "owner" edge with a given conditions (other predicates).
func HasReposts ¶
HasReposts applies the HasEdge predicate on the "reposts" edge.
func HasRepostsWith ¶
func HasRepostsWith(preds ...predicate.NoteRepost) predicate.Note
HasRepostsWith applies the HasEdge predicate on the "reposts" edge with a given conditions (other predicates).
func PermissionLevelEQ ¶
func PermissionLevelEQ(v PermissionLevel) predicate.Note
PermissionLevelEQ applies the EQ predicate on the "permission_level" field.
func PermissionLevelIn ¶
func PermissionLevelIn(vs ...PermissionLevel) predicate.Note
PermissionLevelIn applies the In predicate on the "permission_level" field.
func PermissionLevelNEQ ¶
func PermissionLevelNEQ(v PermissionLevel) predicate.Note
PermissionLevelNEQ applies the NEQ predicate on the "permission_level" field.
func PermissionLevelNotIn ¶
func PermissionLevelNotIn(vs ...PermissionLevel) predicate.Note
PermissionLevelNotIn applies the NotIn predicate on the "permission_level" field.
func PermissionLevelValidator ¶
func PermissionLevelValidator(pl PermissionLevel) error
PermissionLevelValidator is a validator for the "permission_level" field enum values. It is called by the builders before save.
func ResourcesIsNil ¶
ResourcesIsNil applies the IsNil predicate on the "resources" field.
func ResourcesNotNil ¶
ResourcesNotNil applies the NotNil predicate on the "resources" field.
func ShareToken ¶
ShareToken applies equality check predicate on the "share_token" field. It's identical to ShareTokenEQ.
func ShareTokenContains ¶
ShareTokenContains applies the Contains predicate on the "share_token" field.
func ShareTokenContainsFold ¶
ShareTokenContainsFold applies the ContainsFold predicate on the "share_token" field.
func ShareTokenEQ ¶
ShareTokenEQ applies the EQ predicate on the "share_token" field.
func ShareTokenEqualFold ¶
ShareTokenEqualFold applies the EqualFold predicate on the "share_token" field.
func ShareTokenGT ¶
ShareTokenGT applies the GT predicate on the "share_token" field.
func ShareTokenGTE ¶
ShareTokenGTE applies the GTE predicate on the "share_token" field.
func ShareTokenHasPrefix ¶
ShareTokenHasPrefix applies the HasPrefix predicate on the "share_token" field.
func ShareTokenHasSuffix ¶
ShareTokenHasSuffix applies the HasSuffix predicate on the "share_token" field.
func ShareTokenIn ¶
ShareTokenIn applies the In predicate on the "share_token" field.
func ShareTokenIsNil ¶
ShareTokenIsNil applies the IsNil predicate on the "share_token" field.
func ShareTokenLT ¶
ShareTokenLT applies the LT predicate on the "share_token" field.
func ShareTokenLTE ¶
ShareTokenLTE applies the LTE predicate on the "share_token" field.
func ShareTokenNEQ ¶
ShareTokenNEQ applies the NEQ predicate on the "share_token" field.
func ShareTokenNotIn ¶
ShareTokenNotIn applies the NotIn predicate on the "share_token" field.
func ShareTokenNotNil ¶
ShareTokenNotNil applies the NotNil predicate on the "share_token" field.
func Title ¶
Title applies equality check predicate on the "title" field. It's identical to TitleEQ.
func TitleContains ¶
TitleContains applies the Contains predicate on the "title" field.
func TitleContainsFold ¶
TitleContainsFold applies the ContainsFold predicate on the "title" field.
func TitleEqualFold ¶
TitleEqualFold applies the EqualFold predicate on the "title" field.
func TitleHasPrefix ¶
TitleHasPrefix applies the HasPrefix predicate on the "title" field.
func TitleHasSuffix ¶
TitleHasSuffix applies the HasSuffix predicate on the "title" field.
func TitleNotIn ¶
TitleNotIn applies the NotIn predicate on the "title" 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).
func VisibilityEQ ¶
func VisibilityEQ(v Visibility) predicate.Note
VisibilityEQ applies the EQ predicate on the "visibility" field.
func VisibilityIn ¶
func VisibilityIn(vs ...Visibility) predicate.Note
VisibilityIn applies the In predicate on the "visibility" field.
func VisibilityNEQ ¶
func VisibilityNEQ(v Visibility) predicate.Note
VisibilityNEQ applies the NEQ predicate on the "visibility" field.
func VisibilityNotIn ¶
func VisibilityNotIn(vs ...Visibility) predicate.Note
VisibilityNotIn applies the NotIn predicate on the "visibility" field.
func VisibilityValidator ¶
func VisibilityValidator(v Visibility) error
VisibilityValidator is a validator for the "visibility" field enum values. It is called by the builders before save.
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Note queries.
func ByAiCurriculum ¶
func ByAiCurriculum(opts ...sql.OrderTermOption) OrderOption
ByAiCurriculum orders the results by the ai_curriculum field.
func ByAiProcessing ¶
func ByAiProcessing(opts ...sql.OrderTermOption) OrderOption
ByAiProcessing orders the results by the ai_processing 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 ByDescription ¶
func ByDescription(opts ...sql.OrderTermOption) OrderOption
ByDescription orders the results by the description field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLikes ¶
func ByLikes(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByLikes orders the results by likes terms.
func ByLikesCount ¶
func ByLikesCount(opts ...sql.OrderTermOption) OrderOption
ByLikesCount orders the results by likes count.
func ByOwnerField ¶
func ByOwnerField(field string, opts ...sql.OrderTermOption) OrderOption
ByOwnerField orders the results by owner field.
func ByPermissionLevel ¶
func ByPermissionLevel(opts ...sql.OrderTermOption) OrderOption
ByPermissionLevel orders the results by the permission_level field.
func ByReposts ¶
func ByReposts(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByReposts orders the results by reposts terms.
func ByRepostsCount ¶
func ByRepostsCount(opts ...sql.OrderTermOption) OrderOption
ByRepostsCount orders the results by reposts count.
func ByShareToken ¶
func ByShareToken(opts ...sql.OrderTermOption) OrderOption
ByShareToken orders the results by the share_token field.
func ByTitle ¶
func ByTitle(opts ...sql.OrderTermOption) OrderOption
ByTitle orders the results by the title field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.
func ByVisibility ¶
func ByVisibility(opts ...sql.OrderTermOption) OrderOption
ByVisibility orders the results by the visibility field.
type PermissionLevel ¶
type PermissionLevel string
PermissionLevel defines the type for the "permission_level" enum field.
const ( PermissionLevelReadOnly PermissionLevel = "read_only" PermissionLevelReadWrite PermissionLevel = "read_write" PermissionLevelReadWriteApproval PermissionLevel = "read_write_approval" )
PermissionLevel values.
func (PermissionLevel) String ¶
func (pl PermissionLevel) String() string
type Visibility ¶
type Visibility string
Visibility defines the type for the "visibility" enum field.
const ( VisibilityPrivate Visibility = "private" VisibilityPublic Visibility = "public" )
Visibility values.
func (Visibility) String ¶
func (v Visibility) String() string