mdbmodels

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthorColumns = struct {
	ID        string
	Code      string
	Name      string
	FullName  string
	CreatedAt string
}{
	ID:        "id",
	Code:      "code",
	Name:      "name",
	FullName:  "full_name",
	CreatedAt: "created_at",
}
View Source
var AuthorI18nColumns = struct {
	AuthorID  string
	Language  string
	Name      string
	FullName  string
	CreatedAt string
}{
	AuthorID:  "author_id",
	Language:  "language",
	Name:      "name",
	FullName:  "full_name",
	CreatedAt: "created_at",
}
View Source
var BlogColumns = struct {
	ID   string
	Name string
	URL  string
}{
	ID:   "id",
	Name: "name",
	URL:  "url",
}
View Source
var BlogPostColumns = struct {
	ID        string
	BlogID    string
	WPID      string
	Title     string
	Content   string
	PostedAt  string
	CreatedAt string
	Link      string
	Filtered  string
}{
	ID:        "id",
	BlogID:    "blog_id",
	WPID:      "wp_id",
	Title:     "title",
	Content:   "content",
	PostedAt:  "posted_at",
	CreatedAt: "created_at",
	Link:      "link",
	Filtered:  "filtered",
}
View Source
var CollectionColumns = struct {
	ID         string
	UID        string
	TypeID     string
	CreatedAt  string
	Properties string
	Secure     string
	Published  string
}{
	ID:         "id",
	UID:        "uid",
	TypeID:     "type_id",
	CreatedAt:  "created_at",
	Properties: "properties",
	Secure:     "secure",
	Published:  "published",
}
View Source
var CollectionI18nColumns = struct {
	CollectionID     string
	Language         string
	OriginalLanguage string
	Name             string
	Description      string
	UserID           string
	CreatedAt        string
}{
	CollectionID:     "collection_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Name:             "name",
	Description:      "description",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
View Source
var CollectionsContentUnitColumns = struct {
	CollectionID  string
	ContentUnitID string
	Name          string
	Position      string
}{
	CollectionID:  "collection_id",
	ContentUnitID: "content_unit_id",
	Name:          "name",
	Position:      "position",
}
View Source
var ContentRoleTypeColumns = struct {
	ID          string
	Name        string
	Description string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
}
View Source
var ContentTypeColumns = struct {
	ID          string
	Name        string
	Description string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
}
View Source
var ContentUnitColumns = struct {
	ID         string
	UID        string
	TypeID     string
	CreatedAt  string
	Properties string
	Secure     string
	Published  string
}{
	ID:         "id",
	UID:        "uid",
	TypeID:     "type_id",
	CreatedAt:  "created_at",
	Properties: "properties",
	Secure:     "secure",
	Published:  "published",
}
View Source
var ContentUnitDerivationColumns = struct {
	SourceID  string
	DerivedID string
	Name      string
}{
	SourceID:  "source_id",
	DerivedID: "derived_id",
	Name:      "name",
}
View Source
var ContentUnitI18nColumns = struct {
	ContentUnitID    string
	Language         string
	OriginalLanguage string
	Name             string
	Description      string
	UserID           string
	CreatedAt        string
}{
	ContentUnitID:    "content_unit_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Name:             "name",
	Description:      "description",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
View Source
var ContentUnitsPersonColumns = struct {
	ContentUnitID string
	PersonID      string
	RoleID        string
}{
	ContentUnitID: "content_unit_id",
	PersonID:      "person_id",
	RoleID:        "role_id",
}
View Source
var ErrSyncFail = errors.New("mdbmodels: failed to synchronize data after insert")

ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.

View Source
var FileColumns = struct {
	ID              string
	UID             string
	Name            string
	Size            string
	Type            string
	SubType         string
	MimeType        string
	Sha1            string
	ContentUnitID   string
	CreatedAt       string
	Language        string
	BackupCount     string
	FirstBackupTime string
	Properties      string
	ParentID        string
	FileCreatedAt   string
	Secure          string
	Published       string
	RemovedAt       string
}{
	ID:              "id",
	UID:             "uid",
	Name:            "name",
	Size:            "size",
	Type:            "type",
	SubType:         "sub_type",
	MimeType:        "mime_type",
	Sha1:            "sha1",
	ContentUnitID:   "content_unit_id",
	CreatedAt:       "created_at",
	Language:        "language",
	BackupCount:     "backup_count",
	FirstBackupTime: "first_backup_time",
	Properties:      "properties",
	ParentID:        "parent_id",
	FileCreatedAt:   "file_created_at",
	Secure:          "secure",
	Published:       "published",
	RemovedAt:       "removed_at",
}
View Source
var OperationColumns = struct {
	ID         string
	UID        string
	TypeID     string
	CreatedAt  string
	Station    string
	UserID     string
	Details    string
	Properties string
}{
	ID:         "id",
	UID:        "uid",
	TypeID:     "type_id",
	CreatedAt:  "created_at",
	Station:    "station",
	UserID:     "user_id",
	Details:    "details",
	Properties: "properties",
}
View Source
var OperationTypeColumns = struct {
	ID          string
	Name        string
	Description string
}{
	ID:          "id",
	Name:        "name",
	Description: "description",
}
View Source
var PersonColumns = struct {
	ID      string
	UID     string
	Pattern string
}{
	ID:      "id",
	UID:     "uid",
	Pattern: "pattern",
}
View Source
var PersonI18nColumns = struct {
	PersonID         string
	Language         string
	OriginalLanguage string
	Name             string
	Description      string
	UserID           string
	CreatedAt        string
}{
	PersonID:         "person_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Name:             "name",
	Description:      "description",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
View Source
var PublisherColumns = struct {
	ID      string
	UID     string
	Pattern string
}{
	ID:      "id",
	UID:     "uid",
	Pattern: "pattern",
}
View Source
var PublisherI18nColumns = struct {
	PublisherID      string
	Language         string
	OriginalLanguage string
	Name             string
	Description      string
	UserID           string
	CreatedAt        string
}{
	PublisherID:      "publisher_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Name:             "name",
	Description:      "description",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
View Source
var SourceColumns = struct {
	ID          string
	UID         string
	ParentID    string
	Pattern     string
	TypeID      string
	Position    string
	Name        string
	Description string
	CreatedAt   string
	Properties  string
}{
	ID:          "id",
	UID:         "uid",
	ParentID:    "parent_id",
	Pattern:     "pattern",
	TypeID:      "type_id",
	Position:    "position",
	Name:        "name",
	Description: "description",
	CreatedAt:   "created_at",
	Properties:  "properties",
}
View Source
var SourceI18nColumns = struct {
	SourceID    string
	Language    string
	Name        string
	Description string
	CreatedAt   string
}{
	SourceID:    "source_id",
	Language:    "language",
	Name:        "name",
	Description: "description",
	CreatedAt:   "created_at",
}
View Source
var SourceTypeColumns = struct {
	ID   string
	Name string
}{
	ID:   "id",
	Name: "name",
}
View Source
var StorageColumns = struct {
	ID       string
	Name     string
	Country  string
	Location string
	Status   string
	Access   string
}{
	ID:       "id",
	Name:     "name",
	Country:  "country",
	Location: "location",
	Status:   "status",
	Access:   "access",
}
View Source
var TableNames = struct {
	AuthorI18n              string
	Authors                 string
	AuthorsSources          string
	BlogPosts               string
	Blogs                   string
	CollectionI18n          string
	Collections             string
	CollectionsContentUnits string
	ContentRoleTypes        string
	ContentTypes            string
	ContentUnitDerivations  string
	ContentUnitI18n         string
	ContentUnits            string
	ContentUnitsPersons     string
	ContentUnitsPublishers  string
	ContentUnitsSources     string
	ContentUnitsTags        string
	Files                   string
	FilesOperations         string
	FilesStorages           string
	OperationTypes          string
	Operations              string
	PersonI18n              string
	Persons                 string
	PublisherI18n           string
	Publishers              string
	SourceI18n              string
	SourceTypes             string
	Sources                 string
	Storages                string
	TagI18n                 string
	Tags                    string
	TwitterTweets           string
	TwitterUsers            string
	Users                   string
}{
	AuthorI18n:              "author_i18n",
	Authors:                 "authors",
	AuthorsSources:          "authors_sources",
	BlogPosts:               "blog_posts",
	Blogs:                   "blogs",
	CollectionI18n:          "collection_i18n",
	Collections:             "collections",
	CollectionsContentUnits: "collections_content_units",
	ContentRoleTypes:        "content_role_types",
	ContentTypes:            "content_types",
	ContentUnitDerivations:  "content_unit_derivations",
	ContentUnitI18n:         "content_unit_i18n",
	ContentUnits:            "content_units",
	ContentUnitsPersons:     "content_units_persons",
	ContentUnitsPublishers:  "content_units_publishers",
	ContentUnitsSources:     "content_units_sources",
	ContentUnitsTags:        "content_units_tags",
	Files:                   "files",
	FilesOperations:         "files_operations",
	FilesStorages:           "files_storages",
	OperationTypes:          "operation_types",
	Operations:              "operations",
	PersonI18n:              "person_i18n",
	Persons:                 "persons",
	PublisherI18n:           "publisher_i18n",
	Publishers:              "publishers",
	SourceI18n:              "source_i18n",
	SourceTypes:             "source_types",
	Sources:                 "sources",
	Storages:                "storages",
	TagI18n:                 "tag_i18n",
	Tags:                    "tags",
	TwitterTweets:           "twitter_tweets",
	TwitterUsers:            "twitter_users",
	Users:                   "users",
}
View Source
var TagColumns = struct {
	ID          string
	Description string
	ParentID    string
	UID         string
	Pattern     string
}{
	ID:          "id",
	Description: "description",
	ParentID:    "parent_id",
	UID:         "uid",
	Pattern:     "pattern",
}
View Source
var TagI18nColumns = struct {
	TagID            string
	Language         string
	OriginalLanguage string
	Label            string
	UserID           string
	CreatedAt        string
}{
	TagID:            "tag_id",
	Language:         "language",
	OriginalLanguage: "original_language",
	Label:            "label",
	UserID:           "user_id",
	CreatedAt:        "created_at",
}
View Source
var TwitterTweetColumns = struct {
	ID        string
	UserID    string
	TwitterID string
	FullText  string
	TweetAt   string
	Raw       string
	CreatedAt string
}{
	ID:        "id",
	UserID:    "user_id",
	TwitterID: "twitter_id",
	FullText:  "full_text",
	TweetAt:   "tweet_at",
	Raw:       "raw",
	CreatedAt: "created_at",
}
View Source
var TwitterUserColumns = struct {
	ID          string
	Username    string
	AccountID   string
	DisplayName string
}{
	ID:          "id",
	Username:    "username",
	AccountID:   "account_id",
	DisplayName: "display_name",
}
View Source
var UserColumns = struct {
	ID        string
	Email     string
	Name      string
	Phone     string
	Comments  string
	CreatedAt string
	UpdatedAt string
	DeletedAt string
}{
	ID:        "id",
	Email:     "email",
	Name:      "name",
	Phone:     "phone",
	Comments:  "comments",
	CreatedAt: "created_at",
	UpdatedAt: "updated_at",
	DeletedAt: "deleted_at",
}

Functions

func AuthorExists

func AuthorExists(exec boil.Executor, id int64) (bool, error)

AuthorExists checks if the Author row exists.

func AuthorExistsG

func AuthorExistsG(id int64) (bool, error)

AuthorExistsG checks if the Author row exists.

func AuthorExistsGP

func AuthorExistsGP(id int64) bool

AuthorExistsGP checks if the Author row exists. Panics on error.

func AuthorExistsP

func AuthorExistsP(exec boil.Executor, id int64) bool

AuthorExistsP checks if the Author row exists. Panics on error.

func AuthorI18nExists

func AuthorI18nExists(exec boil.Executor, authorID int64, language string) (bool, error)

AuthorI18nExists checks if the AuthorI18n row exists.

func AuthorI18nExistsG

func AuthorI18nExistsG(authorID int64, language string) (bool, error)

AuthorI18nExistsG checks if the AuthorI18n row exists.

func AuthorI18nExistsGP

func AuthorI18nExistsGP(authorID int64, language string) bool

AuthorI18nExistsGP checks if the AuthorI18n row exists. Panics on error.

func AuthorI18nExistsP

func AuthorI18nExistsP(exec boil.Executor, authorID int64, language string) bool

AuthorI18nExistsP checks if the AuthorI18n row exists. Panics on error.

func AuthorI18ns

func AuthorI18ns(exec boil.Executor, mods ...qm.QueryMod) authorI18nQuery

AuthorI18ns retrieves all the records using an executor.

func AuthorI18nsG

func AuthorI18nsG(mods ...qm.QueryMod) authorI18nQuery

AuthorI18nsG retrieves all records.

func Authors

func Authors(exec boil.Executor, mods ...qm.QueryMod) authorQuery

Authors retrieves all the records using an executor.

func AuthorsG

func AuthorsG(mods ...qm.QueryMod) authorQuery

AuthorsG retrieves all records.

func BlogExists added in v1.0.1

func BlogExists(exec boil.Executor, id int64) (bool, error)

BlogExists checks if the Blog row exists.

func BlogExistsG added in v1.0.1

func BlogExistsG(id int64) (bool, error)

BlogExistsG checks if the Blog row exists.

func BlogExistsGP added in v1.0.1

func BlogExistsGP(id int64) bool

BlogExistsGP checks if the Blog row exists. Panics on error.

func BlogExistsP added in v1.0.1

func BlogExistsP(exec boil.Executor, id int64) bool

BlogExistsP checks if the Blog row exists. Panics on error.

func BlogPostExists added in v1.0.1

func BlogPostExists(exec boil.Executor, id int64) (bool, error)

BlogPostExists checks if the BlogPost row exists.

func BlogPostExistsG added in v1.0.1

func BlogPostExistsG(id int64) (bool, error)

BlogPostExistsG checks if the BlogPost row exists.

func BlogPostExistsGP added in v1.0.1

func BlogPostExistsGP(id int64) bool

BlogPostExistsGP checks if the BlogPost row exists. Panics on error.

func BlogPostExistsP added in v1.0.1

func BlogPostExistsP(exec boil.Executor, id int64) bool

BlogPostExistsP checks if the BlogPost row exists. Panics on error.

func BlogPosts added in v1.0.1

func BlogPosts(exec boil.Executor, mods ...qm.QueryMod) blogPostQuery

BlogPosts retrieves all the records using an executor.

func BlogPostsG added in v1.0.1

func BlogPostsG(mods ...qm.QueryMod) blogPostQuery

BlogPostsG retrieves all records.

func Blogs added in v1.0.1

func Blogs(exec boil.Executor, mods ...qm.QueryMod) blogQuery

Blogs retrieves all the records using an executor.

func BlogsG added in v1.0.1

func BlogsG(mods ...qm.QueryMod) blogQuery

BlogsG retrieves all records.

func CollectionExists

func CollectionExists(exec boil.Executor, id int64) (bool, error)

CollectionExists checks if the Collection row exists.

func CollectionExistsG

func CollectionExistsG(id int64) (bool, error)

CollectionExistsG checks if the Collection row exists.

func CollectionExistsGP

func CollectionExistsGP(id int64) bool

CollectionExistsGP checks if the Collection row exists. Panics on error.

func CollectionExistsP

func CollectionExistsP(exec boil.Executor, id int64) bool

CollectionExistsP checks if the Collection row exists. Panics on error.

func CollectionI18nExists

func CollectionI18nExists(exec boil.Executor, collectionID int64, language string) (bool, error)

CollectionI18nExists checks if the CollectionI18n row exists.

func CollectionI18nExistsG

func CollectionI18nExistsG(collectionID int64, language string) (bool, error)

CollectionI18nExistsG checks if the CollectionI18n row exists.

func CollectionI18nExistsGP

func CollectionI18nExistsGP(collectionID int64, language string) bool

CollectionI18nExistsGP checks if the CollectionI18n row exists. Panics on error.

func CollectionI18nExistsP

func CollectionI18nExistsP(exec boil.Executor, collectionID int64, language string) bool

CollectionI18nExistsP checks if the CollectionI18n row exists. Panics on error.

func CollectionI18ns

func CollectionI18ns(exec boil.Executor, mods ...qm.QueryMod) collectionI18nQuery

CollectionI18ns retrieves all the records using an executor.

func CollectionI18nsG

func CollectionI18nsG(mods ...qm.QueryMod) collectionI18nQuery

CollectionI18nsG retrieves all records.

func Collections

func Collections(exec boil.Executor, mods ...qm.QueryMod) collectionQuery

Collections retrieves all the records using an executor.

func CollectionsContentUnitExists

func CollectionsContentUnitExists(exec boil.Executor, collectionID int64, contentUnitID int64) (bool, error)

CollectionsContentUnitExists checks if the CollectionsContentUnit row exists.

func CollectionsContentUnitExistsG

func CollectionsContentUnitExistsG(collectionID int64, contentUnitID int64) (bool, error)

CollectionsContentUnitExistsG checks if the CollectionsContentUnit row exists.

func CollectionsContentUnitExistsGP

func CollectionsContentUnitExistsGP(collectionID int64, contentUnitID int64) bool

CollectionsContentUnitExistsGP checks if the CollectionsContentUnit row exists. Panics on error.

func CollectionsContentUnitExistsP

func CollectionsContentUnitExistsP(exec boil.Executor, collectionID int64, contentUnitID int64) bool

CollectionsContentUnitExistsP checks if the CollectionsContentUnit row exists. Panics on error.

func CollectionsContentUnits

func CollectionsContentUnits(exec boil.Executor, mods ...qm.QueryMod) collectionsContentUnitQuery

CollectionsContentUnits retrieves all the records using an executor.

func CollectionsContentUnitsG

func CollectionsContentUnitsG(mods ...qm.QueryMod) collectionsContentUnitQuery

CollectionsContentUnitsG retrieves all records.

func CollectionsG

func CollectionsG(mods ...qm.QueryMod) collectionQuery

CollectionsG retrieves all records.

func ContentRoleTypeExists

func ContentRoleTypeExists(exec boil.Executor, id int64) (bool, error)

ContentRoleTypeExists checks if the ContentRoleType row exists.

func ContentRoleTypeExistsG

func ContentRoleTypeExistsG(id int64) (bool, error)

ContentRoleTypeExistsG checks if the ContentRoleType row exists.

func ContentRoleTypeExistsGP

func ContentRoleTypeExistsGP(id int64) bool

ContentRoleTypeExistsGP checks if the ContentRoleType row exists. Panics on error.

func ContentRoleTypeExistsP

func ContentRoleTypeExistsP(exec boil.Executor, id int64) bool

ContentRoleTypeExistsP checks if the ContentRoleType row exists. Panics on error.

func ContentRoleTypes

func ContentRoleTypes(exec boil.Executor, mods ...qm.QueryMod) contentRoleTypeQuery

ContentRoleTypes retrieves all the records using an executor.

func ContentRoleTypesG

func ContentRoleTypesG(mods ...qm.QueryMod) contentRoleTypeQuery

ContentRoleTypesG retrieves all records.

func ContentTypeExists

func ContentTypeExists(exec boil.Executor, id int64) (bool, error)

ContentTypeExists checks if the ContentType row exists.

func ContentTypeExistsG

func ContentTypeExistsG(id int64) (bool, error)

ContentTypeExistsG checks if the ContentType row exists.

func ContentTypeExistsGP

func ContentTypeExistsGP(id int64) bool

ContentTypeExistsGP checks if the ContentType row exists. Panics on error.

func ContentTypeExistsP

func ContentTypeExistsP(exec boil.Executor, id int64) bool

ContentTypeExistsP checks if the ContentType row exists. Panics on error.

func ContentTypes

func ContentTypes(exec boil.Executor, mods ...qm.QueryMod) contentTypeQuery

ContentTypes retrieves all the records using an executor.

func ContentTypesG

func ContentTypesG(mods ...qm.QueryMod) contentTypeQuery

ContentTypesG retrieves all records.

func ContentUnitDerivationExists

func ContentUnitDerivationExists(exec boil.Executor, sourceID int64, derivedID int64) (bool, error)

ContentUnitDerivationExists checks if the ContentUnitDerivation row exists.

func ContentUnitDerivationExistsG

func ContentUnitDerivationExistsG(sourceID int64, derivedID int64) (bool, error)

ContentUnitDerivationExistsG checks if the ContentUnitDerivation row exists.

func ContentUnitDerivationExistsGP

func ContentUnitDerivationExistsGP(sourceID int64, derivedID int64) bool

ContentUnitDerivationExistsGP checks if the ContentUnitDerivation row exists. Panics on error.

func ContentUnitDerivationExistsP

func ContentUnitDerivationExistsP(exec boil.Executor, sourceID int64, derivedID int64) bool

ContentUnitDerivationExistsP checks if the ContentUnitDerivation row exists. Panics on error.

func ContentUnitDerivations

func ContentUnitDerivations(exec boil.Executor, mods ...qm.QueryMod) contentUnitDerivationQuery

ContentUnitDerivations retrieves all the records using an executor.

func ContentUnitDerivationsG

func ContentUnitDerivationsG(mods ...qm.QueryMod) contentUnitDerivationQuery

ContentUnitDerivationsG retrieves all records.

func ContentUnitExists

func ContentUnitExists(exec boil.Executor, id int64) (bool, error)

ContentUnitExists checks if the ContentUnit row exists.

func ContentUnitExistsG

func ContentUnitExistsG(id int64) (bool, error)

ContentUnitExistsG checks if the ContentUnit row exists.

func ContentUnitExistsGP

func ContentUnitExistsGP(id int64) bool

ContentUnitExistsGP checks if the ContentUnit row exists. Panics on error.

func ContentUnitExistsP

func ContentUnitExistsP(exec boil.Executor, id int64) bool

ContentUnitExistsP checks if the ContentUnit row exists. Panics on error.

func ContentUnitI18nExists

func ContentUnitI18nExists(exec boil.Executor, contentUnitID int64, language string) (bool, error)

ContentUnitI18nExists checks if the ContentUnitI18n row exists.

func ContentUnitI18nExistsG

func ContentUnitI18nExistsG(contentUnitID int64, language string) (bool, error)

ContentUnitI18nExistsG checks if the ContentUnitI18n row exists.

func ContentUnitI18nExistsGP

func ContentUnitI18nExistsGP(contentUnitID int64, language string) bool

ContentUnitI18nExistsGP checks if the ContentUnitI18n row exists. Panics on error.

func ContentUnitI18nExistsP

func ContentUnitI18nExistsP(exec boil.Executor, contentUnitID int64, language string) bool

ContentUnitI18nExistsP checks if the ContentUnitI18n row exists. Panics on error.

func ContentUnitI18ns

func ContentUnitI18ns(exec boil.Executor, mods ...qm.QueryMod) contentUnitI18nQuery

ContentUnitI18ns retrieves all the records using an executor.

func ContentUnitI18nsG

func ContentUnitI18nsG(mods ...qm.QueryMod) contentUnitI18nQuery

ContentUnitI18nsG retrieves all records.

func ContentUnits

func ContentUnits(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnits retrieves all the records using an executor.

func ContentUnitsG

func ContentUnitsG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitsG retrieves all records.

func ContentUnitsPersonExists

func ContentUnitsPersonExists(exec boil.Executor, contentUnitID int64, personID int64) (bool, error)

ContentUnitsPersonExists checks if the ContentUnitsPerson row exists.

func ContentUnitsPersonExistsG

func ContentUnitsPersonExistsG(contentUnitID int64, personID int64) (bool, error)

ContentUnitsPersonExistsG checks if the ContentUnitsPerson row exists.

func ContentUnitsPersonExistsGP

func ContentUnitsPersonExistsGP(contentUnitID int64, personID int64) bool

ContentUnitsPersonExistsGP checks if the ContentUnitsPerson row exists. Panics on error.

func ContentUnitsPersonExistsP

func ContentUnitsPersonExistsP(exec boil.Executor, contentUnitID int64, personID int64) bool

ContentUnitsPersonExistsP checks if the ContentUnitsPerson row exists. Panics on error.

func ContentUnitsPersons

func ContentUnitsPersons(exec boil.Executor, mods ...qm.QueryMod) contentUnitsPersonQuery

ContentUnitsPersons retrieves all the records using an executor.

func ContentUnitsPersonsG

func ContentUnitsPersonsG(mods ...qm.QueryMod) contentUnitsPersonQuery

ContentUnitsPersonsG retrieves all records.

func FileExists

func FileExists(exec boil.Executor, id int64) (bool, error)

FileExists checks if the File row exists.

func FileExistsG

func FileExistsG(id int64) (bool, error)

FileExistsG checks if the File row exists.

func FileExistsGP

func FileExistsGP(id int64) bool

FileExistsGP checks if the File row exists. Panics on error.

func FileExistsP

func FileExistsP(exec boil.Executor, id int64) bool

FileExistsP checks if the File row exists. Panics on error.

func Files

func Files(exec boil.Executor, mods ...qm.QueryMod) fileQuery

Files retrieves all the records using an executor.

func FilesG

func FilesG(mods ...qm.QueryMod) fileQuery

FilesG retrieves all records.

func NewQuery

func NewQuery(exec boil.Executor, mods ...qm.QueryMod) *queries.Query

NewQuery initializes a new Query using the passed in QueryMods

func NewQueryG

func NewQueryG(mods ...qm.QueryMod) *queries.Query

NewQueryG initializes a new Query using the passed in QueryMods

func OperationExists

func OperationExists(exec boil.Executor, id int64) (bool, error)

OperationExists checks if the Operation row exists.

func OperationExistsG

func OperationExistsG(id int64) (bool, error)

OperationExistsG checks if the Operation row exists.

func OperationExistsGP

func OperationExistsGP(id int64) bool

OperationExistsGP checks if the Operation row exists. Panics on error.

func OperationExistsP

func OperationExistsP(exec boil.Executor, id int64) bool

OperationExistsP checks if the Operation row exists. Panics on error.

func OperationTypeExists

func OperationTypeExists(exec boil.Executor, id int64) (bool, error)

OperationTypeExists checks if the OperationType row exists.

func OperationTypeExistsG

func OperationTypeExistsG(id int64) (bool, error)

OperationTypeExistsG checks if the OperationType row exists.

func OperationTypeExistsGP

func OperationTypeExistsGP(id int64) bool

OperationTypeExistsGP checks if the OperationType row exists. Panics on error.

func OperationTypeExistsP

func OperationTypeExistsP(exec boil.Executor, id int64) bool

OperationTypeExistsP checks if the OperationType row exists. Panics on error.

func OperationTypes

func OperationTypes(exec boil.Executor, mods ...qm.QueryMod) operationTypeQuery

OperationTypes retrieves all the records using an executor.

func OperationTypesG

func OperationTypesG(mods ...qm.QueryMod) operationTypeQuery

OperationTypesG retrieves all records.

func Operations

func Operations(exec boil.Executor, mods ...qm.QueryMod) operationQuery

Operations retrieves all the records using an executor.

func OperationsG

func OperationsG(mods ...qm.QueryMod) operationQuery

OperationsG retrieves all records.

func PersonExists

func PersonExists(exec boil.Executor, id int64) (bool, error)

PersonExists checks if the Person row exists.

func PersonExistsG

func PersonExistsG(id int64) (bool, error)

PersonExistsG checks if the Person row exists.

func PersonExistsGP

func PersonExistsGP(id int64) bool

PersonExistsGP checks if the Person row exists. Panics on error.

func PersonExistsP

func PersonExistsP(exec boil.Executor, id int64) bool

PersonExistsP checks if the Person row exists. Panics on error.

func PersonI18nExists

func PersonI18nExists(exec boil.Executor, personID int64, language string) (bool, error)

PersonI18nExists checks if the PersonI18n row exists.

func PersonI18nExistsG

func PersonI18nExistsG(personID int64, language string) (bool, error)

PersonI18nExistsG checks if the PersonI18n row exists.

func PersonI18nExistsGP

func PersonI18nExistsGP(personID int64, language string) bool

PersonI18nExistsGP checks if the PersonI18n row exists. Panics on error.

func PersonI18nExistsP

func PersonI18nExistsP(exec boil.Executor, personID int64, language string) bool

PersonI18nExistsP checks if the PersonI18n row exists. Panics on error.

func PersonI18ns

func PersonI18ns(exec boil.Executor, mods ...qm.QueryMod) personI18nQuery

PersonI18ns retrieves all the records using an executor.

func PersonI18nsG

func PersonI18nsG(mods ...qm.QueryMod) personI18nQuery

PersonI18nsG retrieves all records.

func Persons

func Persons(exec boil.Executor, mods ...qm.QueryMod) personQuery

Persons retrieves all the records using an executor.

func PersonsG

func PersonsG(mods ...qm.QueryMod) personQuery

PersonsG retrieves all records.

func PublisherExists

func PublisherExists(exec boil.Executor, id int64) (bool, error)

PublisherExists checks if the Publisher row exists.

func PublisherExistsG

func PublisherExistsG(id int64) (bool, error)

PublisherExistsG checks if the Publisher row exists.

func PublisherExistsGP

func PublisherExistsGP(id int64) bool

PublisherExistsGP checks if the Publisher row exists. Panics on error.

func PublisherExistsP

func PublisherExistsP(exec boil.Executor, id int64) bool

PublisherExistsP checks if the Publisher row exists. Panics on error.

func PublisherI18nExists

func PublisherI18nExists(exec boil.Executor, publisherID int64, language string) (bool, error)

PublisherI18nExists checks if the PublisherI18n row exists.

func PublisherI18nExistsG

func PublisherI18nExistsG(publisherID int64, language string) (bool, error)

PublisherI18nExistsG checks if the PublisherI18n row exists.

func PublisherI18nExistsGP

func PublisherI18nExistsGP(publisherID int64, language string) bool

PublisherI18nExistsGP checks if the PublisherI18n row exists. Panics on error.

func PublisherI18nExistsP

func PublisherI18nExistsP(exec boil.Executor, publisherID int64, language string) bool

PublisherI18nExistsP checks if the PublisherI18n row exists. Panics on error.

func PublisherI18ns

func PublisherI18ns(exec boil.Executor, mods ...qm.QueryMod) publisherI18nQuery

PublisherI18ns retrieves all the records using an executor.

func PublisherI18nsG

func PublisherI18nsG(mods ...qm.QueryMod) publisherI18nQuery

PublisherI18nsG retrieves all records.

func Publishers

func Publishers(exec boil.Executor, mods ...qm.QueryMod) publisherQuery

Publishers retrieves all the records using an executor.

func PublishersG

func PublishersG(mods ...qm.QueryMod) publisherQuery

PublishersG retrieves all records.

func SourceExists

func SourceExists(exec boil.Executor, id int64) (bool, error)

SourceExists checks if the Source row exists.

func SourceExistsG

func SourceExistsG(id int64) (bool, error)

SourceExistsG checks if the Source row exists.

func SourceExistsGP

func SourceExistsGP(id int64) bool

SourceExistsGP checks if the Source row exists. Panics on error.

func SourceExistsP

func SourceExistsP(exec boil.Executor, id int64) bool

SourceExistsP checks if the Source row exists. Panics on error.

func SourceI18nExists

func SourceI18nExists(exec boil.Executor, sourceID int64, language string) (bool, error)

SourceI18nExists checks if the SourceI18n row exists.

func SourceI18nExistsG

func SourceI18nExistsG(sourceID int64, language string) (bool, error)

SourceI18nExistsG checks if the SourceI18n row exists.

func SourceI18nExistsGP

func SourceI18nExistsGP(sourceID int64, language string) bool

SourceI18nExistsGP checks if the SourceI18n row exists. Panics on error.

func SourceI18nExistsP

func SourceI18nExistsP(exec boil.Executor, sourceID int64, language string) bool

SourceI18nExistsP checks if the SourceI18n row exists. Panics on error.

func SourceI18ns

func SourceI18ns(exec boil.Executor, mods ...qm.QueryMod) sourceI18nQuery

SourceI18ns retrieves all the records using an executor.

func SourceI18nsG

func SourceI18nsG(mods ...qm.QueryMod) sourceI18nQuery

SourceI18nsG retrieves all records.

func SourceTypeExists

func SourceTypeExists(exec boil.Executor, id int64) (bool, error)

SourceTypeExists checks if the SourceType row exists.

func SourceTypeExistsG

func SourceTypeExistsG(id int64) (bool, error)

SourceTypeExistsG checks if the SourceType row exists.

func SourceTypeExistsGP

func SourceTypeExistsGP(id int64) bool

SourceTypeExistsGP checks if the SourceType row exists. Panics on error.

func SourceTypeExistsP

func SourceTypeExistsP(exec boil.Executor, id int64) bool

SourceTypeExistsP checks if the SourceType row exists. Panics on error.

func SourceTypes

func SourceTypes(exec boil.Executor, mods ...qm.QueryMod) sourceTypeQuery

SourceTypes retrieves all the records using an executor.

func SourceTypesG

func SourceTypesG(mods ...qm.QueryMod) sourceTypeQuery

SourceTypesG retrieves all records.

func Sources

func Sources(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

Sources retrieves all the records using an executor.

func SourcesG

func SourcesG(mods ...qm.QueryMod) sourceQuery

SourcesG retrieves all records.

func StorageExists

func StorageExists(exec boil.Executor, id int64) (bool, error)

StorageExists checks if the Storage row exists.

func StorageExistsG

func StorageExistsG(id int64) (bool, error)

StorageExistsG checks if the Storage row exists.

func StorageExistsGP

func StorageExistsGP(id int64) bool

StorageExistsGP checks if the Storage row exists. Panics on error.

func StorageExistsP

func StorageExistsP(exec boil.Executor, id int64) bool

StorageExistsP checks if the Storage row exists. Panics on error.

func Storages

func Storages(exec boil.Executor, mods ...qm.QueryMod) storageQuery

Storages retrieves all the records using an executor.

func StoragesG

func StoragesG(mods ...qm.QueryMod) storageQuery

StoragesG retrieves all records.

func TagExists

func TagExists(exec boil.Executor, id int64) (bool, error)

TagExists checks if the Tag row exists.

func TagExistsG

func TagExistsG(id int64) (bool, error)

TagExistsG checks if the Tag row exists.

func TagExistsGP

func TagExistsGP(id int64) bool

TagExistsGP checks if the Tag row exists. Panics on error.

func TagExistsP

func TagExistsP(exec boil.Executor, id int64) bool

TagExistsP checks if the Tag row exists. Panics on error.

func TagI18nExists

func TagI18nExists(exec boil.Executor, tagID int64, language string) (bool, error)

TagI18nExists checks if the TagI18n row exists.

func TagI18nExistsG

func TagI18nExistsG(tagID int64, language string) (bool, error)

TagI18nExistsG checks if the TagI18n row exists.

func TagI18nExistsGP

func TagI18nExistsGP(tagID int64, language string) bool

TagI18nExistsGP checks if the TagI18n row exists. Panics on error.

func TagI18nExistsP

func TagI18nExistsP(exec boil.Executor, tagID int64, language string) bool

TagI18nExistsP checks if the TagI18n row exists. Panics on error.

func TagI18ns

func TagI18ns(exec boil.Executor, mods ...qm.QueryMod) tagI18nQuery

TagI18ns retrieves all the records using an executor.

func TagI18nsG

func TagI18nsG(mods ...qm.QueryMod) tagI18nQuery

TagI18nsG retrieves all records.

func Tags

func Tags(exec boil.Executor, mods ...qm.QueryMod) tagQuery

Tags retrieves all the records using an executor.

func TagsG

func TagsG(mods ...qm.QueryMod) tagQuery

TagsG retrieves all records.

func TwitterTweetExists added in v0.9.9

func TwitterTweetExists(exec boil.Executor, id int64) (bool, error)

TwitterTweetExists checks if the TwitterTweet row exists.

func TwitterTweetExistsG added in v0.9.9

func TwitterTweetExistsG(id int64) (bool, error)

TwitterTweetExistsG checks if the TwitterTweet row exists.

func TwitterTweetExistsGP added in v0.9.9

func TwitterTweetExistsGP(id int64) bool

TwitterTweetExistsGP checks if the TwitterTweet row exists. Panics on error.

func TwitterTweetExistsP added in v0.9.9

func TwitterTweetExistsP(exec boil.Executor, id int64) bool

TwitterTweetExistsP checks if the TwitterTweet row exists. Panics on error.

func TwitterTweets added in v0.9.9

func TwitterTweets(exec boil.Executor, mods ...qm.QueryMod) twitterTweetQuery

TwitterTweets retrieves all the records using an executor.

func TwitterTweetsG added in v0.9.9

func TwitterTweetsG(mods ...qm.QueryMod) twitterTweetQuery

TwitterTweetsG retrieves all records.

func TwitterUserExists added in v0.9.9

func TwitterUserExists(exec boil.Executor, id int64) (bool, error)

TwitterUserExists checks if the TwitterUser row exists.

func TwitterUserExistsG added in v0.9.9

func TwitterUserExistsG(id int64) (bool, error)

TwitterUserExistsG checks if the TwitterUser row exists.

func TwitterUserExistsGP added in v0.9.9

func TwitterUserExistsGP(id int64) bool

TwitterUserExistsGP checks if the TwitterUser row exists. Panics on error.

func TwitterUserExistsP added in v0.9.9

func TwitterUserExistsP(exec boil.Executor, id int64) bool

TwitterUserExistsP checks if the TwitterUser row exists. Panics on error.

func TwitterUsers added in v0.9.9

func TwitterUsers(exec boil.Executor, mods ...qm.QueryMod) twitterUserQuery

TwitterUsers retrieves all the records using an executor.

func TwitterUsersG added in v0.9.9

func TwitterUsersG(mods ...qm.QueryMod) twitterUserQuery

TwitterUsersG retrieves all records.

func UserExists

func UserExists(exec boil.Executor, id int64) (bool, error)

UserExists checks if the User row exists.

func UserExistsG

func UserExistsG(id int64) (bool, error)

UserExistsG checks if the User row exists.

func UserExistsGP

func UserExistsGP(id int64) bool

UserExistsGP checks if the User row exists. Panics on error.

func UserExistsP

func UserExistsP(exec boil.Executor, id int64) bool

UserExistsP checks if the User row exists. Panics on error.

func Users

func Users(exec boil.Executor, mods ...qm.QueryMod) userQuery

Users retrieves all the records using an executor.

func UsersG

func UsersG(mods ...qm.QueryMod) userQuery

UsersG retrieves all records.

Types

type Author

type Author struct {
	ID        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Code      string      `boil:"code" json:"code" toml:"code" yaml:"code"`
	Name      string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	FullName  null.String `boil:"full_name" json:"full_name,omitempty" toml:"full_name" yaml:"full_name,omitempty"`
	CreatedAt time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *authorR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L authorL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Author is an object representing the database table.

func FindAuthor

func FindAuthor(exec boil.Executor, id int64, selectCols ...string) (*Author, error)

FindAuthor retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindAuthorG

func FindAuthorG(id int64, selectCols ...string) (*Author, error)

FindAuthorG retrieves a single record by ID.

func FindAuthorGP

func FindAuthorGP(id int64, selectCols ...string) *Author

FindAuthorGP retrieves a single record by ID, and panics on error.

func FindAuthorP

func FindAuthorP(exec boil.Executor, id int64, selectCols ...string) *Author

FindAuthorP retrieves a single record by ID with an executor, and panics on error.

func (*Author) AddAuthorI18ns

func (o *Author) AddAuthorI18ns(exec boil.Executor, insert bool, related ...*AuthorI18n) error

AddAuthorI18ns adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.AuthorI18ns. Sets related.R.Author appropriately.

func (*Author) AddAuthorI18nsG

func (o *Author) AddAuthorI18nsG(insert bool, related ...*AuthorI18n) error

AddAuthorI18nsG adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.AuthorI18ns. Sets related.R.Author appropriately. Uses the global database handle.

func (*Author) AddAuthorI18nsGP

func (o *Author) AddAuthorI18nsGP(insert bool, related ...*AuthorI18n)

AddAuthorI18nsGP adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.AuthorI18ns. Sets related.R.Author appropriately. Uses the global database handle and panics on error.

func (*Author) AddAuthorI18nsP

func (o *Author) AddAuthorI18nsP(exec boil.Executor, insert bool, related ...*AuthorI18n)

AddAuthorI18nsP adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.AuthorI18ns. Sets related.R.Author appropriately. Panics on error.

func (*Author) AddSources

func (o *Author) AddSources(exec boil.Executor, insert bool, related ...*Source) error

AddSources adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.Authors appropriately.

func (*Author) AddSourcesG

func (o *Author) AddSourcesG(insert bool, related ...*Source) error

AddSourcesG adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.Authors appropriately. Uses the global database handle.

func (*Author) AddSourcesGP

func (o *Author) AddSourcesGP(insert bool, related ...*Source)

AddSourcesGP adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.Authors appropriately. Uses the global database handle and panics on error.

func (*Author) AddSourcesP

func (o *Author) AddSourcesP(exec boil.Executor, insert bool, related ...*Source)

AddSourcesP adds the given related objects to the existing relationships of the author, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.Authors appropriately. Panics on error.

func (*Author) AuthorI18ns

func (o *Author) AuthorI18ns(exec boil.Executor, mods ...qm.QueryMod) authorI18nQuery

AuthorI18ns retrieves all the author_i18n's author i18n with an executor.

func (*Author) AuthorI18nsG

func (o *Author) AuthorI18nsG(mods ...qm.QueryMod) authorI18nQuery

AuthorI18nsG retrieves all the author_i18n's author i18n.

func (*Author) Delete

func (o *Author) Delete(exec boil.Executor) error

Delete deletes a single Author record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Author) DeleteG

func (o *Author) DeleteG() error

DeleteG deletes a single Author record. DeleteG will match against the primary key column to find the record to delete.

func (*Author) DeleteGP

func (o *Author) DeleteGP()

DeleteGP deletes a single Author record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Author) DeleteP

func (o *Author) DeleteP(exec boil.Executor)

DeleteP deletes a single Author record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Author) Insert

func (o *Author) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Author) InsertG

func (o *Author) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Author) InsertGP

func (o *Author) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Author) InsertP

func (o *Author) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Author) Reload

func (o *Author) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Author) ReloadG

func (o *Author) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Author) ReloadGP

func (o *Author) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Author) ReloadP

func (o *Author) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Author) RemoveSources

func (o *Author) RemoveSources(exec boil.Executor, related ...*Source) error

RemoveSources relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.Authors.

func (*Author) RemoveSourcesG

func (o *Author) RemoveSourcesG(related ...*Source) error

RemoveSourcesG relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.Authors. Uses the global database handle.

func (*Author) RemoveSourcesGP

func (o *Author) RemoveSourcesGP(related ...*Source)

RemoveSourcesGP relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.Authors. Uses the global database handle and panics on error.

func (*Author) RemoveSourcesP

func (o *Author) RemoveSourcesP(exec boil.Executor, related ...*Source)

RemoveSourcesP relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.Authors. Panics on error.

func (*Author) SetSources

func (o *Author) SetSources(exec boil.Executor, insert bool, related ...*Source) error

SetSources removes all previously related items of the author replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Authors's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.Authors's Sources accordingly.

func (*Author) SetSourcesG

func (o *Author) SetSourcesG(insert bool, related ...*Source) error

SetSourcesG removes all previously related items of the author replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Authors's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.Authors's Sources accordingly. Uses the global database handle.

func (*Author) SetSourcesGP

func (o *Author) SetSourcesGP(insert bool, related ...*Source)

SetSourcesGP removes all previously related items of the author replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Authors's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.Authors's Sources accordingly. Uses the global database handle and panics on error.

func (*Author) SetSourcesP

func (o *Author) SetSourcesP(exec boil.Executor, insert bool, related ...*Source)

SetSourcesP removes all previously related items of the author replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Authors's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.Authors's Sources accordingly. Panics on error.

func (*Author) Sources

func (o *Author) Sources(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

Sources retrieves all the source's sources with an executor.

func (*Author) SourcesG

func (o *Author) SourcesG(mods ...qm.QueryMod) sourceQuery

SourcesG retrieves all the source's sources.

func (*Author) Update

func (o *Author) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Author. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Author) UpdateG

func (o *Author) UpdateG(whitelist ...string) error

UpdateG a single Author record. See Update for whitelist behavior description.

func (*Author) UpdateGP

func (o *Author) UpdateGP(whitelist ...string)

UpdateGP a single Author record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Author) UpdateP

func (o *Author) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Author, and panics on error. See Update for whitelist behavior description.

func (*Author) Upsert

func (o *Author) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Author) UpsertG

func (o *Author) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Author) UpsertGP

func (o *Author) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Author) UpsertP

func (o *Author) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type AuthorI18n

type AuthorI18n struct {
	AuthorID  int64       `boil:"author_id" json:"author_id" toml:"author_id" yaml:"author_id"`
	Language  string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	Name      null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	FullName  null.String `boil:"full_name" json:"full_name,omitempty" toml:"full_name" yaml:"full_name,omitempty"`
	CreatedAt time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *authorI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L authorI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

AuthorI18n is an object representing the database table.

func FindAuthorI18n

func FindAuthorI18n(exec boil.Executor, authorID int64, language string, selectCols ...string) (*AuthorI18n, error)

FindAuthorI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindAuthorI18nG

func FindAuthorI18nG(authorID int64, language string, selectCols ...string) (*AuthorI18n, error)

FindAuthorI18nG retrieves a single record by ID.

func FindAuthorI18nGP

func FindAuthorI18nGP(authorID int64, language string, selectCols ...string) *AuthorI18n

FindAuthorI18nGP retrieves a single record by ID, and panics on error.

func FindAuthorI18nP

func FindAuthorI18nP(exec boil.Executor, authorID int64, language string, selectCols ...string) *AuthorI18n

FindAuthorI18nP retrieves a single record by ID with an executor, and panics on error.

func (*AuthorI18n) Author

func (o *AuthorI18n) Author(exec boil.Executor, mods ...qm.QueryMod) authorQuery

Author pointed to by the foreign key.

func (*AuthorI18n) AuthorG

func (o *AuthorI18n) AuthorG(mods ...qm.QueryMod) authorQuery

AuthorG pointed to by the foreign key.

func (*AuthorI18n) Delete

func (o *AuthorI18n) Delete(exec boil.Executor) error

Delete deletes a single AuthorI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*AuthorI18n) DeleteG

func (o *AuthorI18n) DeleteG() error

DeleteG deletes a single AuthorI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*AuthorI18n) DeleteGP

func (o *AuthorI18n) DeleteGP()

DeleteGP deletes a single AuthorI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*AuthorI18n) DeleteP

func (o *AuthorI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single AuthorI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*AuthorI18n) Insert

func (o *AuthorI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*AuthorI18n) InsertG

func (o *AuthorI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*AuthorI18n) InsertGP

func (o *AuthorI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*AuthorI18n) InsertP

func (o *AuthorI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*AuthorI18n) Reload

func (o *AuthorI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*AuthorI18n) ReloadG

func (o *AuthorI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*AuthorI18n) ReloadGP

func (o *AuthorI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*AuthorI18n) ReloadP

func (o *AuthorI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*AuthorI18n) SetAuthor

func (o *AuthorI18n) SetAuthor(exec boil.Executor, insert bool, related *Author) error

SetAuthor of the author_i18n to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorI18ns.

func (*AuthorI18n) SetAuthorG

func (o *AuthorI18n) SetAuthorG(insert bool, related *Author) error

SetAuthorG of the author_i18n to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorI18ns. Uses the global database handle.

func (*AuthorI18n) SetAuthorGP

func (o *AuthorI18n) SetAuthorGP(insert bool, related *Author)

SetAuthorGP of the author_i18n to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorI18ns. Uses the global database handle and panics on error.

func (*AuthorI18n) SetAuthorP

func (o *AuthorI18n) SetAuthorP(exec boil.Executor, insert bool, related *Author)

SetAuthorP of the author_i18n to the related item. Sets o.R.Author to related. Adds o to related.R.AuthorI18ns. Panics on error.

func (*AuthorI18n) Update

func (o *AuthorI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the AuthorI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*AuthorI18n) UpdateG

func (o *AuthorI18n) UpdateG(whitelist ...string) error

UpdateG a single AuthorI18n record. See Update for whitelist behavior description.

func (*AuthorI18n) UpdateGP

func (o *AuthorI18n) UpdateGP(whitelist ...string)

UpdateGP a single AuthorI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*AuthorI18n) UpdateP

func (o *AuthorI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the AuthorI18n, and panics on error. See Update for whitelist behavior description.

func (*AuthorI18n) Upsert

func (o *AuthorI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*AuthorI18n) UpsertG

func (o *AuthorI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*AuthorI18n) UpsertGP

func (o *AuthorI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*AuthorI18n) UpsertP

func (o *AuthorI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type AuthorI18nSlice

type AuthorI18nSlice []*AuthorI18n

AuthorI18nSlice is an alias for a slice of pointers to AuthorI18n. This should generally be used opposed to []AuthorI18n.

func (AuthorI18nSlice) DeleteAll

func (o AuthorI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (AuthorI18nSlice) DeleteAllG

func (o AuthorI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (AuthorI18nSlice) DeleteAllGP

func (o AuthorI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (AuthorI18nSlice) DeleteAllP

func (o AuthorI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*AuthorI18nSlice) ReloadAll

func (o *AuthorI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*AuthorI18nSlice) ReloadAllG

func (o *AuthorI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*AuthorI18nSlice) ReloadAllGP

func (o *AuthorI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*AuthorI18nSlice) ReloadAllP

func (o *AuthorI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (AuthorI18nSlice) UpdateAll

func (o AuthorI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (AuthorI18nSlice) UpdateAllG

func (o AuthorI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (AuthorI18nSlice) UpdateAllGP

func (o AuthorI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (AuthorI18nSlice) UpdateAllP

func (o AuthorI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type AuthorSlice

type AuthorSlice []*Author

AuthorSlice is an alias for a slice of pointers to Author. This should generally be used opposed to []Author.

func (AuthorSlice) DeleteAll

func (o AuthorSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (AuthorSlice) DeleteAllG

func (o AuthorSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (AuthorSlice) DeleteAllGP

func (o AuthorSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (AuthorSlice) DeleteAllP

func (o AuthorSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*AuthorSlice) ReloadAll

func (o *AuthorSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*AuthorSlice) ReloadAllG

func (o *AuthorSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*AuthorSlice) ReloadAllGP

func (o *AuthorSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*AuthorSlice) ReloadAllP

func (o *AuthorSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (AuthorSlice) UpdateAll

func (o AuthorSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (AuthorSlice) UpdateAllG

func (o AuthorSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (AuthorSlice) UpdateAllGP

func (o AuthorSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (AuthorSlice) UpdateAllP

func (o AuthorSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Blog added in v1.0.1

type Blog struct {
	ID   int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`
	URL  string `boil:"url" json:"url" toml:"url" yaml:"url"`

	R *blogR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blogL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Blog is an object representing the database table.

func FindBlog added in v1.0.1

func FindBlog(exec boil.Executor, id int64, selectCols ...string) (*Blog, error)

FindBlog retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindBlogG added in v1.0.1

func FindBlogG(id int64, selectCols ...string) (*Blog, error)

FindBlogG retrieves a single record by ID.

func FindBlogGP added in v1.0.1

func FindBlogGP(id int64, selectCols ...string) *Blog

FindBlogGP retrieves a single record by ID, and panics on error.

func FindBlogP added in v1.0.1

func FindBlogP(exec boil.Executor, id int64, selectCols ...string) *Blog

FindBlogP retrieves a single record by ID with an executor, and panics on error.

func (*Blog) AddBlogPosts added in v1.0.1

func (o *Blog) AddBlogPosts(exec boil.Executor, insert bool, related ...*BlogPost) error

AddBlogPosts adds the given related objects to the existing relationships of the blog, optionally inserting them as new records. Appends related to o.R.BlogPosts. Sets related.R.Blog appropriately.

func (*Blog) AddBlogPostsG added in v1.0.1

func (o *Blog) AddBlogPostsG(insert bool, related ...*BlogPost) error

AddBlogPostsG adds the given related objects to the existing relationships of the blog, optionally inserting them as new records. Appends related to o.R.BlogPosts. Sets related.R.Blog appropriately. Uses the global database handle.

func (*Blog) AddBlogPostsGP added in v1.0.1

func (o *Blog) AddBlogPostsGP(insert bool, related ...*BlogPost)

AddBlogPostsGP adds the given related objects to the existing relationships of the blog, optionally inserting them as new records. Appends related to o.R.BlogPosts. Sets related.R.Blog appropriately. Uses the global database handle and panics on error.

func (*Blog) AddBlogPostsP added in v1.0.1

func (o *Blog) AddBlogPostsP(exec boil.Executor, insert bool, related ...*BlogPost)

AddBlogPostsP adds the given related objects to the existing relationships of the blog, optionally inserting them as new records. Appends related to o.R.BlogPosts. Sets related.R.Blog appropriately. Panics on error.

func (*Blog) BlogPosts added in v1.0.1

func (o *Blog) BlogPosts(exec boil.Executor, mods ...qm.QueryMod) blogPostQuery

BlogPosts retrieves all the blog_post's blog posts with an executor.

func (*Blog) BlogPostsG added in v1.0.1

func (o *Blog) BlogPostsG(mods ...qm.QueryMod) blogPostQuery

BlogPostsG retrieves all the blog_post's blog posts.

func (*Blog) Delete added in v1.0.1

func (o *Blog) Delete(exec boil.Executor) error

Delete deletes a single Blog record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Blog) DeleteG added in v1.0.1

func (o *Blog) DeleteG() error

DeleteG deletes a single Blog record. DeleteG will match against the primary key column to find the record to delete.

func (*Blog) DeleteGP added in v1.0.1

func (o *Blog) DeleteGP()

DeleteGP deletes a single Blog record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Blog) DeleteP added in v1.0.1

func (o *Blog) DeleteP(exec boil.Executor)

DeleteP deletes a single Blog record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Blog) Insert added in v1.0.1

func (o *Blog) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Blog) InsertG added in v1.0.1

func (o *Blog) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Blog) InsertGP added in v1.0.1

func (o *Blog) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Blog) InsertP added in v1.0.1

func (o *Blog) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Blog) Reload added in v1.0.1

func (o *Blog) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Blog) ReloadG added in v1.0.1

func (o *Blog) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Blog) ReloadGP added in v1.0.1

func (o *Blog) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Blog) ReloadP added in v1.0.1

func (o *Blog) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Blog) Update added in v1.0.1

func (o *Blog) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Blog. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Blog) UpdateG added in v1.0.1

func (o *Blog) UpdateG(whitelist ...string) error

UpdateG a single Blog record. See Update for whitelist behavior description.

func (*Blog) UpdateGP added in v1.0.1

func (o *Blog) UpdateGP(whitelist ...string)

UpdateGP a single Blog record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Blog) UpdateP added in v1.0.1

func (o *Blog) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Blog, and panics on error. See Update for whitelist behavior description.

func (*Blog) Upsert added in v1.0.1

func (o *Blog) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Blog) UpsertG added in v1.0.1

func (o *Blog) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Blog) UpsertGP added in v1.0.1

func (o *Blog) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Blog) UpsertP added in v1.0.1

func (o *Blog) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type BlogPost added in v1.0.1

type BlogPost struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	BlogID    int64     `boil:"blog_id" json:"blog_id" toml:"blog_id" yaml:"blog_id"`
	WPID      int64     `boil:"wp_id" json:"wp_id" toml:"wp_id" yaml:"wp_id"`
	Title     string    `boil:"title" json:"title" toml:"title" yaml:"title"`
	Content   string    `boil:"content" json:"content" toml:"content" yaml:"content"`
	PostedAt  time.Time `boil:"posted_at" json:"posted_at" toml:"posted_at" yaml:"posted_at"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Link      string    `boil:"link" json:"link" toml:"link" yaml:"link"`
	Filtered  bool      `boil:"filtered" json:"filtered" toml:"filtered" yaml:"filtered"`

	R *blogPostR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L blogPostL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

BlogPost is an object representing the database table.

func FindBlogPost added in v1.0.1

func FindBlogPost(exec boil.Executor, id int64, selectCols ...string) (*BlogPost, error)

FindBlogPost retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindBlogPostG added in v1.0.1

func FindBlogPostG(id int64, selectCols ...string) (*BlogPost, error)

FindBlogPostG retrieves a single record by ID.

func FindBlogPostGP added in v1.0.1

func FindBlogPostGP(id int64, selectCols ...string) *BlogPost

FindBlogPostGP retrieves a single record by ID, and panics on error.

func FindBlogPostP added in v1.0.1

func FindBlogPostP(exec boil.Executor, id int64, selectCols ...string) *BlogPost

FindBlogPostP retrieves a single record by ID with an executor, and panics on error.

func (*BlogPost) Blog added in v1.0.1

func (o *BlogPost) Blog(exec boil.Executor, mods ...qm.QueryMod) blogQuery

Blog pointed to by the foreign key.

func (*BlogPost) BlogG added in v1.0.1

func (o *BlogPost) BlogG(mods ...qm.QueryMod) blogQuery

BlogG pointed to by the foreign key.

func (*BlogPost) Delete added in v1.0.1

func (o *BlogPost) Delete(exec boil.Executor) error

Delete deletes a single BlogPost record with an executor. Delete will match against the primary key column to find the record to delete.

func (*BlogPost) DeleteG added in v1.0.1

func (o *BlogPost) DeleteG() error

DeleteG deletes a single BlogPost record. DeleteG will match against the primary key column to find the record to delete.

func (*BlogPost) DeleteGP added in v1.0.1

func (o *BlogPost) DeleteGP()

DeleteGP deletes a single BlogPost record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*BlogPost) DeleteP added in v1.0.1

func (o *BlogPost) DeleteP(exec boil.Executor)

DeleteP deletes a single BlogPost record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*BlogPost) Insert added in v1.0.1

func (o *BlogPost) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*BlogPost) InsertG added in v1.0.1

func (o *BlogPost) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*BlogPost) InsertGP added in v1.0.1

func (o *BlogPost) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*BlogPost) InsertP added in v1.0.1

func (o *BlogPost) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*BlogPost) Reload added in v1.0.1

func (o *BlogPost) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*BlogPost) ReloadG added in v1.0.1

func (o *BlogPost) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*BlogPost) ReloadGP added in v1.0.1

func (o *BlogPost) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*BlogPost) ReloadP added in v1.0.1

func (o *BlogPost) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*BlogPost) SetBlog added in v1.0.1

func (o *BlogPost) SetBlog(exec boil.Executor, insert bool, related *Blog) error

SetBlog of the blog_post to the related item. Sets o.R.Blog to related. Adds o to related.R.BlogPosts.

func (*BlogPost) SetBlogG added in v1.0.1

func (o *BlogPost) SetBlogG(insert bool, related *Blog) error

SetBlogG of the blog_post to the related item. Sets o.R.Blog to related. Adds o to related.R.BlogPosts. Uses the global database handle.

func (*BlogPost) SetBlogGP added in v1.0.1

func (o *BlogPost) SetBlogGP(insert bool, related *Blog)

SetBlogGP of the blog_post to the related item. Sets o.R.Blog to related. Adds o to related.R.BlogPosts. Uses the global database handle and panics on error.

func (*BlogPost) SetBlogP added in v1.0.1

func (o *BlogPost) SetBlogP(exec boil.Executor, insert bool, related *Blog)

SetBlogP of the blog_post to the related item. Sets o.R.Blog to related. Adds o to related.R.BlogPosts. Panics on error.

func (*BlogPost) Update added in v1.0.1

func (o *BlogPost) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the BlogPost. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*BlogPost) UpdateG added in v1.0.1

func (o *BlogPost) UpdateG(whitelist ...string) error

UpdateG a single BlogPost record. See Update for whitelist behavior description.

func (*BlogPost) UpdateGP added in v1.0.1

func (o *BlogPost) UpdateGP(whitelist ...string)

UpdateGP a single BlogPost record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*BlogPost) UpdateP added in v1.0.1

func (o *BlogPost) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the BlogPost, and panics on error. See Update for whitelist behavior description.

func (*BlogPost) Upsert added in v1.0.1

func (o *BlogPost) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*BlogPost) UpsertG added in v1.0.1

func (o *BlogPost) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*BlogPost) UpsertGP added in v1.0.1

func (o *BlogPost) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*BlogPost) UpsertP added in v1.0.1

func (o *BlogPost) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type BlogPostSlice added in v1.0.1

type BlogPostSlice []*BlogPost

BlogPostSlice is an alias for a slice of pointers to BlogPost. This should generally be used opposed to []BlogPost.

func (BlogPostSlice) DeleteAll added in v1.0.1

func (o BlogPostSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (BlogPostSlice) DeleteAllG added in v1.0.1

func (o BlogPostSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (BlogPostSlice) DeleteAllGP added in v1.0.1

func (o BlogPostSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (BlogPostSlice) DeleteAllP added in v1.0.1

func (o BlogPostSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*BlogPostSlice) ReloadAll added in v1.0.1

func (o *BlogPostSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*BlogPostSlice) ReloadAllG added in v1.0.1

func (o *BlogPostSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*BlogPostSlice) ReloadAllGP added in v1.0.1

func (o *BlogPostSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*BlogPostSlice) ReloadAllP added in v1.0.1

func (o *BlogPostSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (BlogPostSlice) UpdateAll added in v1.0.1

func (o BlogPostSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (BlogPostSlice) UpdateAllG added in v1.0.1

func (o BlogPostSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (BlogPostSlice) UpdateAllGP added in v1.0.1

func (o BlogPostSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (BlogPostSlice) UpdateAllP added in v1.0.1

func (o BlogPostSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type BlogSlice added in v1.0.1

type BlogSlice []*Blog

BlogSlice is an alias for a slice of pointers to Blog. This should generally be used opposed to []Blog.

func (BlogSlice) DeleteAll added in v1.0.1

func (o BlogSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (BlogSlice) DeleteAllG added in v1.0.1

func (o BlogSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (BlogSlice) DeleteAllGP added in v1.0.1

func (o BlogSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (BlogSlice) DeleteAllP added in v1.0.1

func (o BlogSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*BlogSlice) ReloadAll added in v1.0.1

func (o *BlogSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*BlogSlice) ReloadAllG added in v1.0.1

func (o *BlogSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*BlogSlice) ReloadAllGP added in v1.0.1

func (o *BlogSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*BlogSlice) ReloadAllP added in v1.0.1

func (o *BlogSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (BlogSlice) UpdateAll added in v1.0.1

func (o BlogSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (BlogSlice) UpdateAllG added in v1.0.1

func (o BlogSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (BlogSlice) UpdateAllGP added in v1.0.1

func (o BlogSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (BlogSlice) UpdateAllP added in v1.0.1

func (o BlogSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Collection

type Collection struct {
	ID         int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID        string    `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	TypeID     int64     `boil:"type_id" json:"type_id" toml:"type_id" yaml:"type_id"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Properties null.JSON `boil:"properties" json:"properties,omitempty" toml:"properties" yaml:"properties,omitempty"`
	Secure     int16     `boil:"secure" json:"secure" toml:"secure" yaml:"secure"`
	Published  bool      `boil:"published" json:"published" toml:"published" yaml:"published"`

	R *collectionR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L collectionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Collection is an object representing the database table.

func FindCollection

func FindCollection(exec boil.Executor, id int64, selectCols ...string) (*Collection, error)

FindCollection retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindCollectionG

func FindCollectionG(id int64, selectCols ...string) (*Collection, error)

FindCollectionG retrieves a single record by ID.

func FindCollectionGP

func FindCollectionGP(id int64, selectCols ...string) *Collection

FindCollectionGP retrieves a single record by ID, and panics on error.

func FindCollectionP

func FindCollectionP(exec boil.Executor, id int64, selectCols ...string) *Collection

FindCollectionP retrieves a single record by ID with an executor, and panics on error.

func (*Collection) AddCollectionI18ns

func (o *Collection) AddCollectionI18ns(exec boil.Executor, insert bool, related ...*CollectionI18n) error

AddCollectionI18ns adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.Collection appropriately.

func (*Collection) AddCollectionI18nsG

func (o *Collection) AddCollectionI18nsG(insert bool, related ...*CollectionI18n) error

AddCollectionI18nsG adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.Collection appropriately. Uses the global database handle.

func (*Collection) AddCollectionI18nsGP

func (o *Collection) AddCollectionI18nsGP(insert bool, related ...*CollectionI18n)

AddCollectionI18nsGP adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.Collection appropriately. Uses the global database handle and panics on error.

func (*Collection) AddCollectionI18nsP

func (o *Collection) AddCollectionI18nsP(exec boil.Executor, insert bool, related ...*CollectionI18n)

AddCollectionI18nsP adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.Collection appropriately. Panics on error.

func (*Collection) AddCollectionsContentUnits

func (o *Collection) AddCollectionsContentUnits(exec boil.Executor, insert bool, related ...*CollectionsContentUnit) error

AddCollectionsContentUnits adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.Collection appropriately.

func (*Collection) AddCollectionsContentUnitsG

func (o *Collection) AddCollectionsContentUnitsG(insert bool, related ...*CollectionsContentUnit) error

AddCollectionsContentUnitsG adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.Collection appropriately. Uses the global database handle.

func (*Collection) AddCollectionsContentUnitsGP

func (o *Collection) AddCollectionsContentUnitsGP(insert bool, related ...*CollectionsContentUnit)

AddCollectionsContentUnitsGP adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.Collection appropriately. Uses the global database handle and panics on error.

func (*Collection) AddCollectionsContentUnitsP

func (o *Collection) AddCollectionsContentUnitsP(exec boil.Executor, insert bool, related ...*CollectionsContentUnit)

AddCollectionsContentUnitsP adds the given related objects to the existing relationships of the collection, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.Collection appropriately. Panics on error.

func (*Collection) CollectionI18ns

func (o *Collection) CollectionI18ns(exec boil.Executor, mods ...qm.QueryMod) collectionI18nQuery

CollectionI18ns retrieves all the collection_i18n's collection i18n with an executor.

func (*Collection) CollectionI18nsG

func (o *Collection) CollectionI18nsG(mods ...qm.QueryMod) collectionI18nQuery

CollectionI18nsG retrieves all the collection_i18n's collection i18n.

func (*Collection) CollectionsContentUnits

func (o *Collection) CollectionsContentUnits(exec boil.Executor, mods ...qm.QueryMod) collectionsContentUnitQuery

CollectionsContentUnits retrieves all the collections_content_unit's collections content units with an executor.

func (*Collection) CollectionsContentUnitsG

func (o *Collection) CollectionsContentUnitsG(mods ...qm.QueryMod) collectionsContentUnitQuery

CollectionsContentUnitsG retrieves all the collections_content_unit's collections content units.

func (*Collection) Delete

func (o *Collection) Delete(exec boil.Executor) error

Delete deletes a single Collection record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Collection) DeleteG

func (o *Collection) DeleteG() error

DeleteG deletes a single Collection record. DeleteG will match against the primary key column to find the record to delete.

func (*Collection) DeleteGP

func (o *Collection) DeleteGP()

DeleteGP deletes a single Collection record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Collection) DeleteP

func (o *Collection) DeleteP(exec boil.Executor)

DeleteP deletes a single Collection record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Collection) Insert

func (o *Collection) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Collection) InsertG

func (o *Collection) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Collection) InsertGP

func (o *Collection) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Collection) InsertP

func (o *Collection) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Collection) Reload

func (o *Collection) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Collection) ReloadG

func (o *Collection) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Collection) ReloadGP

func (o *Collection) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Collection) ReloadP

func (o *Collection) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Collection) SetType

func (o *Collection) SetType(exec boil.Executor, insert bool, related *ContentType) error

SetType of the collection to the related item. Sets o.R.Type to related. Adds o to related.R.TypeCollections.

func (*Collection) SetTypeG

func (o *Collection) SetTypeG(insert bool, related *ContentType) error

SetTypeG of the collection to the related item. Sets o.R.Type to related. Adds o to related.R.TypeCollections. Uses the global database handle.

func (*Collection) SetTypeGP

func (o *Collection) SetTypeGP(insert bool, related *ContentType)

SetTypeGP of the collection to the related item. Sets o.R.Type to related. Adds o to related.R.TypeCollections. Uses the global database handle and panics on error.

func (*Collection) SetTypeP

func (o *Collection) SetTypeP(exec boil.Executor, insert bool, related *ContentType)

SetTypeP of the collection to the related item. Sets o.R.Type to related. Adds o to related.R.TypeCollections. Panics on error.

func (*Collection) Type

func (o *Collection) Type(exec boil.Executor, mods ...qm.QueryMod) contentTypeQuery

Type pointed to by the foreign key.

func (*Collection) TypeG

func (o *Collection) TypeG(mods ...qm.QueryMod) contentTypeQuery

TypeG pointed to by the foreign key.

func (*Collection) Update

func (o *Collection) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Collection. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Collection) UpdateG

func (o *Collection) UpdateG(whitelist ...string) error

UpdateG a single Collection record. See Update for whitelist behavior description.

func (*Collection) UpdateGP

func (o *Collection) UpdateGP(whitelist ...string)

UpdateGP a single Collection record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Collection) UpdateP

func (o *Collection) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Collection, and panics on error. See Update for whitelist behavior description.

func (*Collection) Upsert

func (o *Collection) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Collection) UpsertG

func (o *Collection) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Collection) UpsertGP

func (o *Collection) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Collection) UpsertP

func (o *Collection) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type CollectionI18n

type CollectionI18n struct {
	CollectionID     int64       `boil:"collection_id" json:"collection_id" toml:"collection_id" yaml:"collection_id"`
	Language         string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	OriginalLanguage null.String `boil:"original_language" json:"original_language,omitempty" toml:"original_language" yaml:"original_language,omitempty"`
	Name             null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Description      null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	UserID           null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	CreatedAt        time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *collectionI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L collectionI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CollectionI18n is an object representing the database table.

func FindCollectionI18n

func FindCollectionI18n(exec boil.Executor, collectionID int64, language string, selectCols ...string) (*CollectionI18n, error)

FindCollectionI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindCollectionI18nG

func FindCollectionI18nG(collectionID int64, language string, selectCols ...string) (*CollectionI18n, error)

FindCollectionI18nG retrieves a single record by ID.

func FindCollectionI18nGP

func FindCollectionI18nGP(collectionID int64, language string, selectCols ...string) *CollectionI18n

FindCollectionI18nGP retrieves a single record by ID, and panics on error.

func FindCollectionI18nP

func FindCollectionI18nP(exec boil.Executor, collectionID int64, language string, selectCols ...string) *CollectionI18n

FindCollectionI18nP retrieves a single record by ID with an executor, and panics on error.

func (*CollectionI18n) Collection

func (o *CollectionI18n) Collection(exec boil.Executor, mods ...qm.QueryMod) collectionQuery

Collection pointed to by the foreign key.

func (*CollectionI18n) CollectionG

func (o *CollectionI18n) CollectionG(mods ...qm.QueryMod) collectionQuery

CollectionG pointed to by the foreign key.

func (*CollectionI18n) Delete

func (o *CollectionI18n) Delete(exec boil.Executor) error

Delete deletes a single CollectionI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*CollectionI18n) DeleteG

func (o *CollectionI18n) DeleteG() error

DeleteG deletes a single CollectionI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*CollectionI18n) DeleteGP

func (o *CollectionI18n) DeleteGP()

DeleteGP deletes a single CollectionI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*CollectionI18n) DeleteP

func (o *CollectionI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single CollectionI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*CollectionI18n) Insert

func (o *CollectionI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*CollectionI18n) InsertG

func (o *CollectionI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CollectionI18n) InsertGP

func (o *CollectionI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*CollectionI18n) InsertP

func (o *CollectionI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*CollectionI18n) Reload

func (o *CollectionI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*CollectionI18n) ReloadG

func (o *CollectionI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*CollectionI18n) ReloadGP

func (o *CollectionI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*CollectionI18n) ReloadP

func (o *CollectionI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*CollectionI18n) RemoveUser

func (o *CollectionI18n) RemoveUser(exec boil.Executor, related *User) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*CollectionI18n) RemoveUserG

func (o *CollectionI18n) RemoveUserG(related *User) error

RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*CollectionI18n) RemoveUserGP

func (o *CollectionI18n) RemoveUserGP(related *User)

RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*CollectionI18n) RemoveUserP

func (o *CollectionI18n) RemoveUserP(exec boil.Executor, related *User)

RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*CollectionI18n) SetCollection

func (o *CollectionI18n) SetCollection(exec boil.Executor, insert bool, related *Collection) error

SetCollection of the collection_i18n to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionI18ns.

func (*CollectionI18n) SetCollectionG

func (o *CollectionI18n) SetCollectionG(insert bool, related *Collection) error

SetCollectionG of the collection_i18n to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionI18ns. Uses the global database handle.

func (*CollectionI18n) SetCollectionGP

func (o *CollectionI18n) SetCollectionGP(insert bool, related *Collection)

SetCollectionGP of the collection_i18n to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionI18ns. Uses the global database handle and panics on error.

func (*CollectionI18n) SetCollectionP

func (o *CollectionI18n) SetCollectionP(exec boil.Executor, insert bool, related *Collection)

SetCollectionP of the collection_i18n to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionI18ns. Panics on error.

func (*CollectionI18n) SetUser

func (o *CollectionI18n) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the collection_i18n to the related item. Sets o.R.User to related. Adds o to related.R.CollectionI18ns.

func (*CollectionI18n) SetUserG

func (o *CollectionI18n) SetUserG(insert bool, related *User) error

SetUserG of the collection_i18n to the related item. Sets o.R.User to related. Adds o to related.R.CollectionI18ns. Uses the global database handle.

func (*CollectionI18n) SetUserGP

func (o *CollectionI18n) SetUserGP(insert bool, related *User)

SetUserGP of the collection_i18n to the related item. Sets o.R.User to related. Adds o to related.R.CollectionI18ns. Uses the global database handle and panics on error.

func (*CollectionI18n) SetUserP

func (o *CollectionI18n) SetUserP(exec boil.Executor, insert bool, related *User)

SetUserP of the collection_i18n to the related item. Sets o.R.User to related. Adds o to related.R.CollectionI18ns. Panics on error.

func (*CollectionI18n) Update

func (o *CollectionI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the CollectionI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CollectionI18n) UpdateG

func (o *CollectionI18n) UpdateG(whitelist ...string) error

UpdateG a single CollectionI18n record. See Update for whitelist behavior description.

func (*CollectionI18n) UpdateGP

func (o *CollectionI18n) UpdateGP(whitelist ...string)

UpdateGP a single CollectionI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*CollectionI18n) UpdateP

func (o *CollectionI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the CollectionI18n, and panics on error. See Update for whitelist behavior description.

func (*CollectionI18n) Upsert

func (o *CollectionI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*CollectionI18n) UpsertG

func (o *CollectionI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*CollectionI18n) UpsertGP

func (o *CollectionI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*CollectionI18n) UpsertP

func (o *CollectionI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*CollectionI18n) User

func (o *CollectionI18n) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*CollectionI18n) UserG

func (o *CollectionI18n) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

type CollectionI18nSlice

type CollectionI18nSlice []*CollectionI18n

CollectionI18nSlice is an alias for a slice of pointers to CollectionI18n. This should generally be used opposed to []CollectionI18n.

func (CollectionI18nSlice) DeleteAll

func (o CollectionI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (CollectionI18nSlice) DeleteAllG

func (o CollectionI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (CollectionI18nSlice) DeleteAllGP

func (o CollectionI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (CollectionI18nSlice) DeleteAllP

func (o CollectionI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*CollectionI18nSlice) ReloadAll

func (o *CollectionI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CollectionI18nSlice) ReloadAllG

func (o *CollectionI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CollectionI18nSlice) ReloadAllGP

func (o *CollectionI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*CollectionI18nSlice) ReloadAllP

func (o *CollectionI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (CollectionI18nSlice) UpdateAll

func (o CollectionI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (CollectionI18nSlice) UpdateAllG

func (o CollectionI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (CollectionI18nSlice) UpdateAllGP

func (o CollectionI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (CollectionI18nSlice) UpdateAllP

func (o CollectionI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type CollectionSlice

type CollectionSlice []*Collection

CollectionSlice is an alias for a slice of pointers to Collection. This should generally be used opposed to []Collection.

func (CollectionSlice) DeleteAll

func (o CollectionSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (CollectionSlice) DeleteAllG

func (o CollectionSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (CollectionSlice) DeleteAllGP

func (o CollectionSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (CollectionSlice) DeleteAllP

func (o CollectionSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*CollectionSlice) ReloadAll

func (o *CollectionSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CollectionSlice) ReloadAllG

func (o *CollectionSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CollectionSlice) ReloadAllGP

func (o *CollectionSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*CollectionSlice) ReloadAllP

func (o *CollectionSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (CollectionSlice) UpdateAll

func (o CollectionSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (CollectionSlice) UpdateAllG

func (o CollectionSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (CollectionSlice) UpdateAllGP

func (o CollectionSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (CollectionSlice) UpdateAllP

func (o CollectionSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type CollectionsContentUnit

type CollectionsContentUnit struct {
	CollectionID  int64  `boil:"collection_id" json:"collection_id" toml:"collection_id" yaml:"collection_id"`
	ContentUnitID int64  `boil:"content_unit_id" json:"content_unit_id" toml:"content_unit_id" yaml:"content_unit_id"`
	Name          string `boil:"name" json:"name" toml:"name" yaml:"name"`
	Position      int    `boil:"position" json:"position" toml:"position" yaml:"position"`

	R *collectionsContentUnitR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L collectionsContentUnitL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

CollectionsContentUnit is an object representing the database table.

func FindCollectionsContentUnit

func FindCollectionsContentUnit(exec boil.Executor, collectionID int64, contentUnitID int64, selectCols ...string) (*CollectionsContentUnit, error)

FindCollectionsContentUnit retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindCollectionsContentUnitG

func FindCollectionsContentUnitG(collectionID int64, contentUnitID int64, selectCols ...string) (*CollectionsContentUnit, error)

FindCollectionsContentUnitG retrieves a single record by ID.

func FindCollectionsContentUnitGP

func FindCollectionsContentUnitGP(collectionID int64, contentUnitID int64, selectCols ...string) *CollectionsContentUnit

FindCollectionsContentUnitGP retrieves a single record by ID, and panics on error.

func FindCollectionsContentUnitP

func FindCollectionsContentUnitP(exec boil.Executor, collectionID int64, contentUnitID int64, selectCols ...string) *CollectionsContentUnit

FindCollectionsContentUnitP retrieves a single record by ID with an executor, and panics on error.

func (*CollectionsContentUnit) Collection

func (o *CollectionsContentUnit) Collection(exec boil.Executor, mods ...qm.QueryMod) collectionQuery

Collection pointed to by the foreign key.

func (*CollectionsContentUnit) CollectionG

func (o *CollectionsContentUnit) CollectionG(mods ...qm.QueryMod) collectionQuery

CollectionG pointed to by the foreign key.

func (*CollectionsContentUnit) ContentUnit

func (o *CollectionsContentUnit) ContentUnit(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnit pointed to by the foreign key.

func (*CollectionsContentUnit) ContentUnitG

func (o *CollectionsContentUnit) ContentUnitG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitG pointed to by the foreign key.

func (*CollectionsContentUnit) Delete

func (o *CollectionsContentUnit) Delete(exec boil.Executor) error

Delete deletes a single CollectionsContentUnit record with an executor. Delete will match against the primary key column to find the record to delete.

func (*CollectionsContentUnit) DeleteG

func (o *CollectionsContentUnit) DeleteG() error

DeleteG deletes a single CollectionsContentUnit record. DeleteG will match against the primary key column to find the record to delete.

func (*CollectionsContentUnit) DeleteGP

func (o *CollectionsContentUnit) DeleteGP()

DeleteGP deletes a single CollectionsContentUnit record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*CollectionsContentUnit) DeleteP

func (o *CollectionsContentUnit) DeleteP(exec boil.Executor)

DeleteP deletes a single CollectionsContentUnit record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*CollectionsContentUnit) Insert

func (o *CollectionsContentUnit) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*CollectionsContentUnit) InsertG

func (o *CollectionsContentUnit) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*CollectionsContentUnit) InsertGP

func (o *CollectionsContentUnit) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*CollectionsContentUnit) InsertP

func (o *CollectionsContentUnit) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*CollectionsContentUnit) Reload

func (o *CollectionsContentUnit) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*CollectionsContentUnit) ReloadG

func (o *CollectionsContentUnit) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*CollectionsContentUnit) ReloadGP

func (o *CollectionsContentUnit) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*CollectionsContentUnit) ReloadP

func (o *CollectionsContentUnit) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*CollectionsContentUnit) SetCollection

func (o *CollectionsContentUnit) SetCollection(exec boil.Executor, insert bool, related *Collection) error

SetCollection of the collections_content_unit to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionsContentUnits.

func (*CollectionsContentUnit) SetCollectionG

func (o *CollectionsContentUnit) SetCollectionG(insert bool, related *Collection) error

SetCollectionG of the collections_content_unit to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionsContentUnits. Uses the global database handle.

func (*CollectionsContentUnit) SetCollectionGP

func (o *CollectionsContentUnit) SetCollectionGP(insert bool, related *Collection)

SetCollectionGP of the collections_content_unit to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionsContentUnits. Uses the global database handle and panics on error.

func (*CollectionsContentUnit) SetCollectionP

func (o *CollectionsContentUnit) SetCollectionP(exec boil.Executor, insert bool, related *Collection)

SetCollectionP of the collections_content_unit to the related item. Sets o.R.Collection to related. Adds o to related.R.CollectionsContentUnits. Panics on error.

func (*CollectionsContentUnit) SetContentUnit

func (o *CollectionsContentUnit) SetContentUnit(exec boil.Executor, insert bool, related *ContentUnit) error

SetContentUnit of the collections_content_unit to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.CollectionsContentUnits.

func (*CollectionsContentUnit) SetContentUnitG

func (o *CollectionsContentUnit) SetContentUnitG(insert bool, related *ContentUnit) error

SetContentUnitG of the collections_content_unit to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.CollectionsContentUnits. Uses the global database handle.

func (*CollectionsContentUnit) SetContentUnitGP

func (o *CollectionsContentUnit) SetContentUnitGP(insert bool, related *ContentUnit)

SetContentUnitGP of the collections_content_unit to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.CollectionsContentUnits. Uses the global database handle and panics on error.

func (*CollectionsContentUnit) SetContentUnitP

func (o *CollectionsContentUnit) SetContentUnitP(exec boil.Executor, insert bool, related *ContentUnit)

SetContentUnitP of the collections_content_unit to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.CollectionsContentUnits. Panics on error.

func (*CollectionsContentUnit) Update

func (o *CollectionsContentUnit) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the CollectionsContentUnit. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*CollectionsContentUnit) UpdateG

func (o *CollectionsContentUnit) UpdateG(whitelist ...string) error

UpdateG a single CollectionsContentUnit record. See Update for whitelist behavior description.

func (*CollectionsContentUnit) UpdateGP

func (o *CollectionsContentUnit) UpdateGP(whitelist ...string)

UpdateGP a single CollectionsContentUnit record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*CollectionsContentUnit) UpdateP

func (o *CollectionsContentUnit) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the CollectionsContentUnit, and panics on error. See Update for whitelist behavior description.

func (*CollectionsContentUnit) Upsert

func (o *CollectionsContentUnit) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*CollectionsContentUnit) UpsertG

func (o *CollectionsContentUnit) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*CollectionsContentUnit) UpsertGP

func (o *CollectionsContentUnit) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*CollectionsContentUnit) UpsertP

func (o *CollectionsContentUnit) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type CollectionsContentUnitSlice

type CollectionsContentUnitSlice []*CollectionsContentUnit

CollectionsContentUnitSlice is an alias for a slice of pointers to CollectionsContentUnit. This should generally be used opposed to []CollectionsContentUnit.

func (CollectionsContentUnitSlice) DeleteAll

func (o CollectionsContentUnitSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (CollectionsContentUnitSlice) DeleteAllG

func (o CollectionsContentUnitSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (CollectionsContentUnitSlice) DeleteAllGP

func (o CollectionsContentUnitSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (CollectionsContentUnitSlice) DeleteAllP

func (o CollectionsContentUnitSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*CollectionsContentUnitSlice) ReloadAll

func (o *CollectionsContentUnitSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CollectionsContentUnitSlice) ReloadAllG

func (o *CollectionsContentUnitSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*CollectionsContentUnitSlice) ReloadAllGP

func (o *CollectionsContentUnitSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*CollectionsContentUnitSlice) ReloadAllP

func (o *CollectionsContentUnitSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (CollectionsContentUnitSlice) UpdateAll

func (o CollectionsContentUnitSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (CollectionsContentUnitSlice) UpdateAllG

func (o CollectionsContentUnitSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (CollectionsContentUnitSlice) UpdateAllGP

func (o CollectionsContentUnitSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (CollectionsContentUnitSlice) UpdateAllP

func (o CollectionsContentUnitSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ContentRoleType

type ContentRoleType struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`

	R *contentRoleTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentRoleTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ContentRoleType is an object representing the database table.

func FindContentRoleType

func FindContentRoleType(exec boil.Executor, id int64, selectCols ...string) (*ContentRoleType, error)

FindContentRoleType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindContentRoleTypeG

func FindContentRoleTypeG(id int64, selectCols ...string) (*ContentRoleType, error)

FindContentRoleTypeG retrieves a single record by ID.

func FindContentRoleTypeGP

func FindContentRoleTypeGP(id int64, selectCols ...string) *ContentRoleType

FindContentRoleTypeGP retrieves a single record by ID, and panics on error.

func FindContentRoleTypeP

func FindContentRoleTypeP(exec boil.Executor, id int64, selectCols ...string) *ContentRoleType

FindContentRoleTypeP retrieves a single record by ID with an executor, and panics on error.

func (*ContentRoleType) AddRoleContentUnitsPersons

func (o *ContentRoleType) AddRoleContentUnitsPersons(exec boil.Executor, insert bool, related ...*ContentUnitsPerson) error

AddRoleContentUnitsPersons adds the given related objects to the existing relationships of the content_role_type, optionally inserting them as new records. Appends related to o.R.RoleContentUnitsPersons. Sets related.R.Role appropriately.

func (*ContentRoleType) AddRoleContentUnitsPersonsG

func (o *ContentRoleType) AddRoleContentUnitsPersonsG(insert bool, related ...*ContentUnitsPerson) error

AddRoleContentUnitsPersonsG adds the given related objects to the existing relationships of the content_role_type, optionally inserting them as new records. Appends related to o.R.RoleContentUnitsPersons. Sets related.R.Role appropriately. Uses the global database handle.

func (*ContentRoleType) AddRoleContentUnitsPersonsGP

func (o *ContentRoleType) AddRoleContentUnitsPersonsGP(insert bool, related ...*ContentUnitsPerson)

AddRoleContentUnitsPersonsGP adds the given related objects to the existing relationships of the content_role_type, optionally inserting them as new records. Appends related to o.R.RoleContentUnitsPersons. Sets related.R.Role appropriately. Uses the global database handle and panics on error.

func (*ContentRoleType) AddRoleContentUnitsPersonsP

func (o *ContentRoleType) AddRoleContentUnitsPersonsP(exec boil.Executor, insert bool, related ...*ContentUnitsPerson)

AddRoleContentUnitsPersonsP adds the given related objects to the existing relationships of the content_role_type, optionally inserting them as new records. Appends related to o.R.RoleContentUnitsPersons. Sets related.R.Role appropriately. Panics on error.

func (*ContentRoleType) Delete

func (o *ContentRoleType) Delete(exec boil.Executor) error

Delete deletes a single ContentRoleType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ContentRoleType) DeleteG

func (o *ContentRoleType) DeleteG() error

DeleteG deletes a single ContentRoleType record. DeleteG will match against the primary key column to find the record to delete.

func (*ContentRoleType) DeleteGP

func (o *ContentRoleType) DeleteGP()

DeleteGP deletes a single ContentRoleType record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentRoleType) DeleteP

func (o *ContentRoleType) DeleteP(exec boil.Executor)

DeleteP deletes a single ContentRoleType record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentRoleType) Insert

func (o *ContentRoleType) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ContentRoleType) InsertG

func (o *ContentRoleType) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ContentRoleType) InsertGP

func (o *ContentRoleType) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ContentRoleType) InsertP

func (o *ContentRoleType) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ContentRoleType) Reload

func (o *ContentRoleType) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ContentRoleType) ReloadG

func (o *ContentRoleType) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ContentRoleType) ReloadGP

func (o *ContentRoleType) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ContentRoleType) ReloadP

func (o *ContentRoleType) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ContentRoleType) RoleContentUnitsPersons

func (o *ContentRoleType) RoleContentUnitsPersons(exec boil.Executor, mods ...qm.QueryMod) contentUnitsPersonQuery

RoleContentUnitsPersons retrieves all the content_units_person's content units persons with an executor via role_id column.

func (*ContentRoleType) RoleContentUnitsPersonsG

func (o *ContentRoleType) RoleContentUnitsPersonsG(mods ...qm.QueryMod) contentUnitsPersonQuery

RoleContentUnitsPersonsG retrieves all the content_units_person's content units persons via role_id column.

func (*ContentRoleType) Update

func (o *ContentRoleType) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ContentRoleType. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ContentRoleType) UpdateG

func (o *ContentRoleType) UpdateG(whitelist ...string) error

UpdateG a single ContentRoleType record. See Update for whitelist behavior description.

func (*ContentRoleType) UpdateGP

func (o *ContentRoleType) UpdateGP(whitelist ...string)

UpdateGP a single ContentRoleType record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ContentRoleType) UpdateP

func (o *ContentRoleType) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ContentRoleType, and panics on error. See Update for whitelist behavior description.

func (*ContentRoleType) Upsert

func (o *ContentRoleType) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ContentRoleType) UpsertG

func (o *ContentRoleType) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ContentRoleType) UpsertGP

func (o *ContentRoleType) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ContentRoleType) UpsertP

func (o *ContentRoleType) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ContentRoleTypeSlice

type ContentRoleTypeSlice []*ContentRoleType

ContentRoleTypeSlice is an alias for a slice of pointers to ContentRoleType. This should generally be used opposed to []ContentRoleType.

func (ContentRoleTypeSlice) DeleteAll

func (o ContentRoleTypeSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (ContentRoleTypeSlice) DeleteAllG

func (o ContentRoleTypeSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ContentRoleTypeSlice) DeleteAllGP

func (o ContentRoleTypeSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ContentRoleTypeSlice) DeleteAllP

func (o ContentRoleTypeSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ContentRoleTypeSlice) ReloadAll

func (o *ContentRoleTypeSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentRoleTypeSlice) ReloadAllG

func (o *ContentRoleTypeSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentRoleTypeSlice) ReloadAllGP

func (o *ContentRoleTypeSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ContentRoleTypeSlice) ReloadAllP

func (o *ContentRoleTypeSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ContentRoleTypeSlice) UpdateAll

func (o ContentRoleTypeSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (ContentRoleTypeSlice) UpdateAllG

func (o ContentRoleTypeSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ContentRoleTypeSlice) UpdateAllGP

func (o ContentRoleTypeSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ContentRoleTypeSlice) UpdateAllP

func (o ContentRoleTypeSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ContentType

type ContentType struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`

	R *contentTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ContentType is an object representing the database table.

func FindContentType

func FindContentType(exec boil.Executor, id int64, selectCols ...string) (*ContentType, error)

FindContentType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindContentTypeG

func FindContentTypeG(id int64, selectCols ...string) (*ContentType, error)

FindContentTypeG retrieves a single record by ID.

func FindContentTypeGP

func FindContentTypeGP(id int64, selectCols ...string) *ContentType

FindContentTypeGP retrieves a single record by ID, and panics on error.

func FindContentTypeP

func FindContentTypeP(exec boil.Executor, id int64, selectCols ...string) *ContentType

FindContentTypeP retrieves a single record by ID with an executor, and panics on error.

func (*ContentType) AddTypeCollections

func (o *ContentType) AddTypeCollections(exec boil.Executor, insert bool, related ...*Collection) error

AddTypeCollections adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeCollections. Sets related.R.Type appropriately.

func (*ContentType) AddTypeCollectionsG

func (o *ContentType) AddTypeCollectionsG(insert bool, related ...*Collection) error

AddTypeCollectionsG adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeCollections. Sets related.R.Type appropriately. Uses the global database handle.

func (*ContentType) AddTypeCollectionsGP

func (o *ContentType) AddTypeCollectionsGP(insert bool, related ...*Collection)

AddTypeCollectionsGP adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeCollections. Sets related.R.Type appropriately. Uses the global database handle and panics on error.

func (*ContentType) AddTypeCollectionsP

func (o *ContentType) AddTypeCollectionsP(exec boil.Executor, insert bool, related ...*Collection)

AddTypeCollectionsP adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeCollections. Sets related.R.Type appropriately. Panics on error.

func (*ContentType) AddTypeContentUnits

func (o *ContentType) AddTypeContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

AddTypeContentUnits adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeContentUnits. Sets related.R.Type appropriately.

func (*ContentType) AddTypeContentUnitsG

func (o *ContentType) AddTypeContentUnitsG(insert bool, related ...*ContentUnit) error

AddTypeContentUnitsG adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeContentUnits. Sets related.R.Type appropriately. Uses the global database handle.

func (*ContentType) AddTypeContentUnitsGP

func (o *ContentType) AddTypeContentUnitsGP(insert bool, related ...*ContentUnit)

AddTypeContentUnitsGP adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeContentUnits. Sets related.R.Type appropriately. Uses the global database handle and panics on error.

func (*ContentType) AddTypeContentUnitsP

func (o *ContentType) AddTypeContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

AddTypeContentUnitsP adds the given related objects to the existing relationships of the content_type, optionally inserting them as new records. Appends related to o.R.TypeContentUnits. Sets related.R.Type appropriately. Panics on error.

func (*ContentType) Delete

func (o *ContentType) Delete(exec boil.Executor) error

Delete deletes a single ContentType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ContentType) DeleteG

func (o *ContentType) DeleteG() error

DeleteG deletes a single ContentType record. DeleteG will match against the primary key column to find the record to delete.

func (*ContentType) DeleteGP

func (o *ContentType) DeleteGP()

DeleteGP deletes a single ContentType record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentType) DeleteP

func (o *ContentType) DeleteP(exec boil.Executor)

DeleteP deletes a single ContentType record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentType) Insert

func (o *ContentType) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ContentType) InsertG

func (o *ContentType) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ContentType) InsertGP

func (o *ContentType) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ContentType) InsertP

func (o *ContentType) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ContentType) Reload

func (o *ContentType) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ContentType) ReloadG

func (o *ContentType) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ContentType) ReloadGP

func (o *ContentType) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ContentType) ReloadP

func (o *ContentType) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ContentType) TypeCollections

func (o *ContentType) TypeCollections(exec boil.Executor, mods ...qm.QueryMod) collectionQuery

TypeCollections retrieves all the collection's collections with an executor via type_id column.

func (*ContentType) TypeCollectionsG

func (o *ContentType) TypeCollectionsG(mods ...qm.QueryMod) collectionQuery

TypeCollectionsG retrieves all the collection's collections via type_id column.

func (*ContentType) TypeContentUnits

func (o *ContentType) TypeContentUnits(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

TypeContentUnits retrieves all the content_unit's content units with an executor via type_id column.

func (*ContentType) TypeContentUnitsG

func (o *ContentType) TypeContentUnitsG(mods ...qm.QueryMod) contentUnitQuery

TypeContentUnitsG retrieves all the content_unit's content units via type_id column.

func (*ContentType) Update

func (o *ContentType) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ContentType. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ContentType) UpdateG

func (o *ContentType) UpdateG(whitelist ...string) error

UpdateG a single ContentType record. See Update for whitelist behavior description.

func (*ContentType) UpdateGP

func (o *ContentType) UpdateGP(whitelist ...string)

UpdateGP a single ContentType record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ContentType) UpdateP

func (o *ContentType) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ContentType, and panics on error. See Update for whitelist behavior description.

func (*ContentType) Upsert

func (o *ContentType) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ContentType) UpsertG

func (o *ContentType) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ContentType) UpsertGP

func (o *ContentType) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ContentType) UpsertP

func (o *ContentType) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ContentTypeSlice

type ContentTypeSlice []*ContentType

ContentTypeSlice is an alias for a slice of pointers to ContentType. This should generally be used opposed to []ContentType.

func (ContentTypeSlice) DeleteAll

func (o ContentTypeSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (ContentTypeSlice) DeleteAllG

func (o ContentTypeSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ContentTypeSlice) DeleteAllGP

func (o ContentTypeSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ContentTypeSlice) DeleteAllP

func (o ContentTypeSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ContentTypeSlice) ReloadAll

func (o *ContentTypeSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentTypeSlice) ReloadAllG

func (o *ContentTypeSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentTypeSlice) ReloadAllGP

func (o *ContentTypeSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ContentTypeSlice) ReloadAllP

func (o *ContentTypeSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ContentTypeSlice) UpdateAll

func (o ContentTypeSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (ContentTypeSlice) UpdateAllG

func (o ContentTypeSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ContentTypeSlice) UpdateAllGP

func (o ContentTypeSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ContentTypeSlice) UpdateAllP

func (o ContentTypeSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ContentUnit

type ContentUnit struct {
	ID         int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID        string    `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	TypeID     int64     `boil:"type_id" json:"type_id" toml:"type_id" yaml:"type_id"`
	CreatedAt  time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Properties null.JSON `boil:"properties" json:"properties,omitempty" toml:"properties" yaml:"properties,omitempty"`
	Secure     int16     `boil:"secure" json:"secure" toml:"secure" yaml:"secure"`
	Published  bool      `boil:"published" json:"published" toml:"published" yaml:"published"`

	R *contentUnitR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentUnitL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ContentUnit is an object representing the database table.

func FindContentUnit

func FindContentUnit(exec boil.Executor, id int64, selectCols ...string) (*ContentUnit, error)

FindContentUnit retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindContentUnitG

func FindContentUnitG(id int64, selectCols ...string) (*ContentUnit, error)

FindContentUnitG retrieves a single record by ID.

func FindContentUnitGP

func FindContentUnitGP(id int64, selectCols ...string) *ContentUnit

FindContentUnitGP retrieves a single record by ID, and panics on error.

func FindContentUnitP

func FindContentUnitP(exec boil.Executor, id int64, selectCols ...string) *ContentUnit

FindContentUnitP retrieves a single record by ID with an executor, and panics on error.

func (*ContentUnit) AddCollectionsContentUnits

func (o *ContentUnit) AddCollectionsContentUnits(exec boil.Executor, insert bool, related ...*CollectionsContentUnit) error

AddCollectionsContentUnits adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.ContentUnit appropriately.

func (*ContentUnit) AddCollectionsContentUnitsG

func (o *ContentUnit) AddCollectionsContentUnitsG(insert bool, related ...*CollectionsContentUnit) error

AddCollectionsContentUnitsG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.ContentUnit appropriately. Uses the global database handle.

func (*ContentUnit) AddCollectionsContentUnitsGP

func (o *ContentUnit) AddCollectionsContentUnitsGP(insert bool, related ...*CollectionsContentUnit)

AddCollectionsContentUnitsGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.ContentUnit appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddCollectionsContentUnitsP

func (o *ContentUnit) AddCollectionsContentUnitsP(exec boil.Executor, insert bool, related ...*CollectionsContentUnit)

AddCollectionsContentUnitsP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.CollectionsContentUnits. Sets related.R.ContentUnit appropriately. Panics on error.

func (*ContentUnit) AddContentUnitI18ns

func (o *ContentUnit) AddContentUnitI18ns(exec boil.Executor, insert bool, related ...*ContentUnitI18n) error

AddContentUnitI18ns adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.ContentUnit appropriately.

func (*ContentUnit) AddContentUnitI18nsG

func (o *ContentUnit) AddContentUnitI18nsG(insert bool, related ...*ContentUnitI18n) error

AddContentUnitI18nsG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.ContentUnit appropriately. Uses the global database handle.

func (*ContentUnit) AddContentUnitI18nsGP

func (o *ContentUnit) AddContentUnitI18nsGP(insert bool, related ...*ContentUnitI18n)

AddContentUnitI18nsGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.ContentUnit appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddContentUnitI18nsP

func (o *ContentUnit) AddContentUnitI18nsP(exec boil.Executor, insert bool, related ...*ContentUnitI18n)

AddContentUnitI18nsP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.ContentUnit appropriately. Panics on error.

func (*ContentUnit) AddContentUnitsPersons

func (o *ContentUnit) AddContentUnitsPersons(exec boil.Executor, insert bool, related ...*ContentUnitsPerson) error

AddContentUnitsPersons adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.ContentUnit appropriately.

func (*ContentUnit) AddContentUnitsPersonsG

func (o *ContentUnit) AddContentUnitsPersonsG(insert bool, related ...*ContentUnitsPerson) error

AddContentUnitsPersonsG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.ContentUnit appropriately. Uses the global database handle.

func (*ContentUnit) AddContentUnitsPersonsGP

func (o *ContentUnit) AddContentUnitsPersonsGP(insert bool, related ...*ContentUnitsPerson)

AddContentUnitsPersonsGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.ContentUnit appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddContentUnitsPersonsP

func (o *ContentUnit) AddContentUnitsPersonsP(exec boil.Executor, insert bool, related ...*ContentUnitsPerson)

AddContentUnitsPersonsP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.ContentUnit appropriately. Panics on error.

func (*ContentUnit) AddDerivedContentUnitDerivations

func (o *ContentUnit) AddDerivedContentUnitDerivations(exec boil.Executor, insert bool, related ...*ContentUnitDerivation) error

AddDerivedContentUnitDerivations adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.DerivedContentUnitDerivations. Sets related.R.Derived appropriately.

func (*ContentUnit) AddDerivedContentUnitDerivationsG

func (o *ContentUnit) AddDerivedContentUnitDerivationsG(insert bool, related ...*ContentUnitDerivation) error

AddDerivedContentUnitDerivationsG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.DerivedContentUnitDerivations. Sets related.R.Derived appropriately. Uses the global database handle.

func (*ContentUnit) AddDerivedContentUnitDerivationsGP

func (o *ContentUnit) AddDerivedContentUnitDerivationsGP(insert bool, related ...*ContentUnitDerivation)

AddDerivedContentUnitDerivationsGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.DerivedContentUnitDerivations. Sets related.R.Derived appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddDerivedContentUnitDerivationsP

func (o *ContentUnit) AddDerivedContentUnitDerivationsP(exec boil.Executor, insert bool, related ...*ContentUnitDerivation)

AddDerivedContentUnitDerivationsP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.DerivedContentUnitDerivations. Sets related.R.Derived appropriately. Panics on error.

func (*ContentUnit) AddFiles

func (o *ContentUnit) AddFiles(exec boil.Executor, insert bool, related ...*File) error

AddFiles adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.ContentUnit appropriately.

func (*ContentUnit) AddFilesG

func (o *ContentUnit) AddFilesG(insert bool, related ...*File) error

AddFilesG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.ContentUnit appropriately. Uses the global database handle.

func (*ContentUnit) AddFilesGP

func (o *ContentUnit) AddFilesGP(insert bool, related ...*File)

AddFilesGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.ContentUnit appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddFilesP

func (o *ContentUnit) AddFilesP(exec boil.Executor, insert bool, related ...*File)

AddFilesP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.ContentUnit appropriately. Panics on error.

func (*ContentUnit) AddPublishers

func (o *ContentUnit) AddPublishers(exec boil.Executor, insert bool, related ...*Publisher) error

AddPublishers adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Publishers. Sets related.R.ContentUnits appropriately.

func (*ContentUnit) AddPublishersG

func (o *ContentUnit) AddPublishersG(insert bool, related ...*Publisher) error

AddPublishersG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Publishers. Sets related.R.ContentUnits appropriately. Uses the global database handle.

func (*ContentUnit) AddPublishersGP

func (o *ContentUnit) AddPublishersGP(insert bool, related ...*Publisher)

AddPublishersGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Publishers. Sets related.R.ContentUnits appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddPublishersP

func (o *ContentUnit) AddPublishersP(exec boil.Executor, insert bool, related ...*Publisher)

AddPublishersP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Publishers. Sets related.R.ContentUnits appropriately. Panics on error.

func (*ContentUnit) AddSourceContentUnitDerivations

func (o *ContentUnit) AddSourceContentUnitDerivations(exec boil.Executor, insert bool, related ...*ContentUnitDerivation) error

AddSourceContentUnitDerivations adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.SourceContentUnitDerivations. Sets related.R.Source appropriately.

func (*ContentUnit) AddSourceContentUnitDerivationsG

func (o *ContentUnit) AddSourceContentUnitDerivationsG(insert bool, related ...*ContentUnitDerivation) error

AddSourceContentUnitDerivationsG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.SourceContentUnitDerivations. Sets related.R.Source appropriately. Uses the global database handle.

func (*ContentUnit) AddSourceContentUnitDerivationsGP

func (o *ContentUnit) AddSourceContentUnitDerivationsGP(insert bool, related ...*ContentUnitDerivation)

AddSourceContentUnitDerivationsGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.SourceContentUnitDerivations. Sets related.R.Source appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddSourceContentUnitDerivationsP

func (o *ContentUnit) AddSourceContentUnitDerivationsP(exec boil.Executor, insert bool, related ...*ContentUnitDerivation)

AddSourceContentUnitDerivationsP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.SourceContentUnitDerivations. Sets related.R.Source appropriately. Panics on error.

func (*ContentUnit) AddSources

func (o *ContentUnit) AddSources(exec boil.Executor, insert bool, related ...*Source) error

AddSources adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.ContentUnits appropriately.

func (*ContentUnit) AddSourcesG

func (o *ContentUnit) AddSourcesG(insert bool, related ...*Source) error

AddSourcesG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.ContentUnits appropriately. Uses the global database handle.

func (*ContentUnit) AddSourcesGP

func (o *ContentUnit) AddSourcesGP(insert bool, related ...*Source)

AddSourcesGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.ContentUnits appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddSourcesP

func (o *ContentUnit) AddSourcesP(exec boil.Executor, insert bool, related ...*Source)

AddSourcesP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Sources. Sets related.R.ContentUnits appropriately. Panics on error.

func (*ContentUnit) AddTags

func (o *ContentUnit) AddTags(exec boil.Executor, insert bool, related ...*Tag) error

AddTags adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Tags. Sets related.R.ContentUnits appropriately.

func (*ContentUnit) AddTagsG

func (o *ContentUnit) AddTagsG(insert bool, related ...*Tag) error

AddTagsG adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Tags. Sets related.R.ContentUnits appropriately. Uses the global database handle.

func (*ContentUnit) AddTagsGP

func (o *ContentUnit) AddTagsGP(insert bool, related ...*Tag)

AddTagsGP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Tags. Sets related.R.ContentUnits appropriately. Uses the global database handle and panics on error.

func (*ContentUnit) AddTagsP

func (o *ContentUnit) AddTagsP(exec boil.Executor, insert bool, related ...*Tag)

AddTagsP adds the given related objects to the existing relationships of the content_unit, optionally inserting them as new records. Appends related to o.R.Tags. Sets related.R.ContentUnits appropriately. Panics on error.

func (*ContentUnit) CollectionsContentUnits

func (o *ContentUnit) CollectionsContentUnits(exec boil.Executor, mods ...qm.QueryMod) collectionsContentUnitQuery

CollectionsContentUnits retrieves all the collections_content_unit's collections content units with an executor.

func (*ContentUnit) CollectionsContentUnitsG

func (o *ContentUnit) CollectionsContentUnitsG(mods ...qm.QueryMod) collectionsContentUnitQuery

CollectionsContentUnitsG retrieves all the collections_content_unit's collections content units.

func (*ContentUnit) ContentUnitI18ns

func (o *ContentUnit) ContentUnitI18ns(exec boil.Executor, mods ...qm.QueryMod) contentUnitI18nQuery

ContentUnitI18ns retrieves all the content_unit_i18n's content unit i18n with an executor.

func (*ContentUnit) ContentUnitI18nsG

func (o *ContentUnit) ContentUnitI18nsG(mods ...qm.QueryMod) contentUnitI18nQuery

ContentUnitI18nsG retrieves all the content_unit_i18n's content unit i18n.

func (*ContentUnit) ContentUnitsPersons

func (o *ContentUnit) ContentUnitsPersons(exec boil.Executor, mods ...qm.QueryMod) contentUnitsPersonQuery

ContentUnitsPersons retrieves all the content_units_person's content units persons with an executor.

func (*ContentUnit) ContentUnitsPersonsG

func (o *ContentUnit) ContentUnitsPersonsG(mods ...qm.QueryMod) contentUnitsPersonQuery

ContentUnitsPersonsG retrieves all the content_units_person's content units persons.

func (*ContentUnit) Delete

func (o *ContentUnit) Delete(exec boil.Executor) error

Delete deletes a single ContentUnit record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ContentUnit) DeleteG

func (o *ContentUnit) DeleteG() error

DeleteG deletes a single ContentUnit record. DeleteG will match against the primary key column to find the record to delete.

func (*ContentUnit) DeleteGP

func (o *ContentUnit) DeleteGP()

DeleteGP deletes a single ContentUnit record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnit) DeleteP

func (o *ContentUnit) DeleteP(exec boil.Executor)

DeleteP deletes a single ContentUnit record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnit) DerivedContentUnitDerivations

func (o *ContentUnit) DerivedContentUnitDerivations(exec boil.Executor, mods ...qm.QueryMod) contentUnitDerivationQuery

DerivedContentUnitDerivations retrieves all the content_unit_derivation's content unit derivations with an executor via derived_id column.

func (*ContentUnit) DerivedContentUnitDerivationsG

func (o *ContentUnit) DerivedContentUnitDerivationsG(mods ...qm.QueryMod) contentUnitDerivationQuery

DerivedContentUnitDerivationsG retrieves all the content_unit_derivation's content unit derivations via derived_id column.

func (*ContentUnit) Files

func (o *ContentUnit) Files(exec boil.Executor, mods ...qm.QueryMod) fileQuery

Files retrieves all the file's files with an executor.

func (*ContentUnit) FilesG

func (o *ContentUnit) FilesG(mods ...qm.QueryMod) fileQuery

FilesG retrieves all the file's files.

func (*ContentUnit) Insert

func (o *ContentUnit) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ContentUnit) InsertG

func (o *ContentUnit) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ContentUnit) InsertGP

func (o *ContentUnit) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnit) InsertP

func (o *ContentUnit) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnit) Publishers

func (o *ContentUnit) Publishers(exec boil.Executor, mods ...qm.QueryMod) publisherQuery

Publishers retrieves all the publisher's publishers with an executor.

func (*ContentUnit) PublishersG

func (o *ContentUnit) PublishersG(mods ...qm.QueryMod) publisherQuery

PublishersG retrieves all the publisher's publishers.

func (*ContentUnit) Reload

func (o *ContentUnit) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ContentUnit) ReloadG

func (o *ContentUnit) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ContentUnit) ReloadGP

func (o *ContentUnit) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ContentUnit) ReloadP

func (o *ContentUnit) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ContentUnit) RemoveFiles

func (o *ContentUnit) RemoveFiles(exec boil.Executor, related ...*File) error

RemoveFiles relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnit.

func (*ContentUnit) RemoveFilesG

func (o *ContentUnit) RemoveFilesG(related ...*File) error

RemoveFilesG relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnit. Uses the global database handle.

func (*ContentUnit) RemoveFilesGP

func (o *ContentUnit) RemoveFilesGP(related ...*File)

RemoveFilesGP relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnit. Uses the global database handle and panics on error.

func (*ContentUnit) RemoveFilesP

func (o *ContentUnit) RemoveFilesP(exec boil.Executor, related ...*File)

RemoveFilesP relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnit. Panics on error.

func (*ContentUnit) RemovePublishers

func (o *ContentUnit) RemovePublishers(exec boil.Executor, related ...*Publisher) error

RemovePublishers relationships from objects passed in. Removes related items from R.Publishers (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits.

func (*ContentUnit) RemovePublishersG

func (o *ContentUnit) RemovePublishersG(related ...*Publisher) error

RemovePublishersG relationships from objects passed in. Removes related items from R.Publishers (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Uses the global database handle.

func (*ContentUnit) RemovePublishersGP

func (o *ContentUnit) RemovePublishersGP(related ...*Publisher)

RemovePublishersGP relationships from objects passed in. Removes related items from R.Publishers (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Uses the global database handle and panics on error.

func (*ContentUnit) RemovePublishersP

func (o *ContentUnit) RemovePublishersP(exec boil.Executor, related ...*Publisher)

RemovePublishersP relationships from objects passed in. Removes related items from R.Publishers (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Panics on error.

func (*ContentUnit) RemoveSources

func (o *ContentUnit) RemoveSources(exec boil.Executor, related ...*Source) error

RemoveSources relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits.

func (*ContentUnit) RemoveSourcesG

func (o *ContentUnit) RemoveSourcesG(related ...*Source) error

RemoveSourcesG relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Uses the global database handle.

func (*ContentUnit) RemoveSourcesGP

func (o *ContentUnit) RemoveSourcesGP(related ...*Source)

RemoveSourcesGP relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Uses the global database handle and panics on error.

func (*ContentUnit) RemoveSourcesP

func (o *ContentUnit) RemoveSourcesP(exec boil.Executor, related ...*Source)

RemoveSourcesP relationships from objects passed in. Removes related items from R.Sources (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Panics on error.

func (*ContentUnit) RemoveTags

func (o *ContentUnit) RemoveTags(exec boil.Executor, related ...*Tag) error

RemoveTags relationships from objects passed in. Removes related items from R.Tags (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits.

func (*ContentUnit) RemoveTagsG

func (o *ContentUnit) RemoveTagsG(related ...*Tag) error

RemoveTagsG relationships from objects passed in. Removes related items from R.Tags (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Uses the global database handle.

func (*ContentUnit) RemoveTagsGP

func (o *ContentUnit) RemoveTagsGP(related ...*Tag)

RemoveTagsGP relationships from objects passed in. Removes related items from R.Tags (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Uses the global database handle and panics on error.

func (*ContentUnit) RemoveTagsP

func (o *ContentUnit) RemoveTagsP(exec boil.Executor, related ...*Tag)

RemoveTagsP relationships from objects passed in. Removes related items from R.Tags (uses pointer comparison, removal does not keep order) Sets related.R.ContentUnits. Panics on error.

func (*ContentUnit) SetFiles

func (o *ContentUnit) SetFiles(exec boil.Executor, insert bool, related ...*File) error

SetFiles removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnit's Files accordingly. Replaces o.R.Files with related. Sets related.R.ContentUnit's Files accordingly.

func (*ContentUnit) SetFilesG

func (o *ContentUnit) SetFilesG(insert bool, related ...*File) error

SetFilesG removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnit's Files accordingly. Replaces o.R.Files with related. Sets related.R.ContentUnit's Files accordingly. Uses the global database handle.

func (*ContentUnit) SetFilesGP

func (o *ContentUnit) SetFilesGP(insert bool, related ...*File)

SetFilesGP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnit's Files accordingly. Replaces o.R.Files with related. Sets related.R.ContentUnit's Files accordingly. Uses the global database handle and panics on error.

func (*ContentUnit) SetFilesP

func (o *ContentUnit) SetFilesP(exec boil.Executor, insert bool, related ...*File)

SetFilesP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnit's Files accordingly. Replaces o.R.Files with related. Sets related.R.ContentUnit's Files accordingly. Panics on error.

func (*ContentUnit) SetPublishers

func (o *ContentUnit) SetPublishers(exec boil.Executor, insert bool, related ...*Publisher) error

SetPublishers removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Publishers accordingly. Replaces o.R.Publishers with related. Sets related.R.ContentUnits's Publishers accordingly.

func (*ContentUnit) SetPublishersG

func (o *ContentUnit) SetPublishersG(insert bool, related ...*Publisher) error

SetPublishersG removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Publishers accordingly. Replaces o.R.Publishers with related. Sets related.R.ContentUnits's Publishers accordingly. Uses the global database handle.

func (*ContentUnit) SetPublishersGP

func (o *ContentUnit) SetPublishersGP(insert bool, related ...*Publisher)

SetPublishersGP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Publishers accordingly. Replaces o.R.Publishers with related. Sets related.R.ContentUnits's Publishers accordingly. Uses the global database handle and panics on error.

func (*ContentUnit) SetPublishersP

func (o *ContentUnit) SetPublishersP(exec boil.Executor, insert bool, related ...*Publisher)

SetPublishersP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Publishers accordingly. Replaces o.R.Publishers with related. Sets related.R.ContentUnits's Publishers accordingly. Panics on error.

func (*ContentUnit) SetSources

func (o *ContentUnit) SetSources(exec boil.Executor, insert bool, related ...*Source) error

SetSources removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.ContentUnits's Sources accordingly.

func (*ContentUnit) SetSourcesG

func (o *ContentUnit) SetSourcesG(insert bool, related ...*Source) error

SetSourcesG removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.ContentUnits's Sources accordingly. Uses the global database handle.

func (*ContentUnit) SetSourcesGP

func (o *ContentUnit) SetSourcesGP(insert bool, related ...*Source)

SetSourcesGP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.ContentUnits's Sources accordingly. Uses the global database handle and panics on error.

func (*ContentUnit) SetSourcesP

func (o *ContentUnit) SetSourcesP(exec boil.Executor, insert bool, related ...*Source)

SetSourcesP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Sources accordingly. Replaces o.R.Sources with related. Sets related.R.ContentUnits's Sources accordingly. Panics on error.

func (*ContentUnit) SetTags

func (o *ContentUnit) SetTags(exec boil.Executor, insert bool, related ...*Tag) error

SetTags removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Tags accordingly. Replaces o.R.Tags with related. Sets related.R.ContentUnits's Tags accordingly.

func (*ContentUnit) SetTagsG

func (o *ContentUnit) SetTagsG(insert bool, related ...*Tag) error

SetTagsG removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Tags accordingly. Replaces o.R.Tags with related. Sets related.R.ContentUnits's Tags accordingly. Uses the global database handle.

func (*ContentUnit) SetTagsGP

func (o *ContentUnit) SetTagsGP(insert bool, related ...*Tag)

SetTagsGP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Tags accordingly. Replaces o.R.Tags with related. Sets related.R.ContentUnits's Tags accordingly. Uses the global database handle and panics on error.

func (*ContentUnit) SetTagsP

func (o *ContentUnit) SetTagsP(exec boil.Executor, insert bool, related ...*Tag)

SetTagsP removes all previously related items of the content_unit replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ContentUnits's Tags accordingly. Replaces o.R.Tags with related. Sets related.R.ContentUnits's Tags accordingly. Panics on error.

func (*ContentUnit) SetType

func (o *ContentUnit) SetType(exec boil.Executor, insert bool, related *ContentType) error

SetType of the content_unit to the related item. Sets o.R.Type to related. Adds o to related.R.TypeContentUnits.

func (*ContentUnit) SetTypeG

func (o *ContentUnit) SetTypeG(insert bool, related *ContentType) error

SetTypeG of the content_unit to the related item. Sets o.R.Type to related. Adds o to related.R.TypeContentUnits. Uses the global database handle.

func (*ContentUnit) SetTypeGP

func (o *ContentUnit) SetTypeGP(insert bool, related *ContentType)

SetTypeGP of the content_unit to the related item. Sets o.R.Type to related. Adds o to related.R.TypeContentUnits. Uses the global database handle and panics on error.

func (*ContentUnit) SetTypeP

func (o *ContentUnit) SetTypeP(exec boil.Executor, insert bool, related *ContentType)

SetTypeP of the content_unit to the related item. Sets o.R.Type to related. Adds o to related.R.TypeContentUnits. Panics on error.

func (*ContentUnit) SourceContentUnitDerivations

func (o *ContentUnit) SourceContentUnitDerivations(exec boil.Executor, mods ...qm.QueryMod) contentUnitDerivationQuery

SourceContentUnitDerivations retrieves all the content_unit_derivation's content unit derivations with an executor via source_id column.

func (*ContentUnit) SourceContentUnitDerivationsG

func (o *ContentUnit) SourceContentUnitDerivationsG(mods ...qm.QueryMod) contentUnitDerivationQuery

SourceContentUnitDerivationsG retrieves all the content_unit_derivation's content unit derivations via source_id column.

func (*ContentUnit) Sources

func (o *ContentUnit) Sources(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

Sources retrieves all the source's sources with an executor.

func (*ContentUnit) SourcesG

func (o *ContentUnit) SourcesG(mods ...qm.QueryMod) sourceQuery

SourcesG retrieves all the source's sources.

func (*ContentUnit) Tags

func (o *ContentUnit) Tags(exec boil.Executor, mods ...qm.QueryMod) tagQuery

Tags retrieves all the tag's tags with an executor.

func (*ContentUnit) TagsG

func (o *ContentUnit) TagsG(mods ...qm.QueryMod) tagQuery

TagsG retrieves all the tag's tags.

func (*ContentUnit) Type

func (o *ContentUnit) Type(exec boil.Executor, mods ...qm.QueryMod) contentTypeQuery

Type pointed to by the foreign key.

func (*ContentUnit) TypeG

func (o *ContentUnit) TypeG(mods ...qm.QueryMod) contentTypeQuery

TypeG pointed to by the foreign key.

func (*ContentUnit) Update

func (o *ContentUnit) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ContentUnit. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ContentUnit) UpdateG

func (o *ContentUnit) UpdateG(whitelist ...string) error

UpdateG a single ContentUnit record. See Update for whitelist behavior description.

func (*ContentUnit) UpdateGP

func (o *ContentUnit) UpdateGP(whitelist ...string)

UpdateGP a single ContentUnit record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ContentUnit) UpdateP

func (o *ContentUnit) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ContentUnit, and panics on error. See Update for whitelist behavior description.

func (*ContentUnit) Upsert

func (o *ContentUnit) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ContentUnit) UpsertG

func (o *ContentUnit) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ContentUnit) UpsertGP

func (o *ContentUnit) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ContentUnit) UpsertP

func (o *ContentUnit) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ContentUnitDerivation

type ContentUnitDerivation struct {
	SourceID  int64  `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"`
	DerivedID int64  `boil:"derived_id" json:"derived_id" toml:"derived_id" yaml:"derived_id"`
	Name      string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *contentUnitDerivationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentUnitDerivationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ContentUnitDerivation is an object representing the database table.

func FindContentUnitDerivation

func FindContentUnitDerivation(exec boil.Executor, sourceID int64, derivedID int64, selectCols ...string) (*ContentUnitDerivation, error)

FindContentUnitDerivation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindContentUnitDerivationG

func FindContentUnitDerivationG(sourceID int64, derivedID int64, selectCols ...string) (*ContentUnitDerivation, error)

FindContentUnitDerivationG retrieves a single record by ID.

func FindContentUnitDerivationGP

func FindContentUnitDerivationGP(sourceID int64, derivedID int64, selectCols ...string) *ContentUnitDerivation

FindContentUnitDerivationGP retrieves a single record by ID, and panics on error.

func FindContentUnitDerivationP

func FindContentUnitDerivationP(exec boil.Executor, sourceID int64, derivedID int64, selectCols ...string) *ContentUnitDerivation

FindContentUnitDerivationP retrieves a single record by ID with an executor, and panics on error.

func (*ContentUnitDerivation) Delete

func (o *ContentUnitDerivation) Delete(exec boil.Executor) error

Delete deletes a single ContentUnitDerivation record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ContentUnitDerivation) DeleteG

func (o *ContentUnitDerivation) DeleteG() error

DeleteG deletes a single ContentUnitDerivation record. DeleteG will match against the primary key column to find the record to delete.

func (*ContentUnitDerivation) DeleteGP

func (o *ContentUnitDerivation) DeleteGP()

DeleteGP deletes a single ContentUnitDerivation record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnitDerivation) DeleteP

func (o *ContentUnitDerivation) DeleteP(exec boil.Executor)

DeleteP deletes a single ContentUnitDerivation record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnitDerivation) Derived

func (o *ContentUnitDerivation) Derived(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

Derived pointed to by the foreign key.

func (*ContentUnitDerivation) DerivedG

func (o *ContentUnitDerivation) DerivedG(mods ...qm.QueryMod) contentUnitQuery

DerivedG pointed to by the foreign key.

func (*ContentUnitDerivation) Insert

func (o *ContentUnitDerivation) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ContentUnitDerivation) InsertG

func (o *ContentUnitDerivation) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ContentUnitDerivation) InsertGP

func (o *ContentUnitDerivation) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnitDerivation) InsertP

func (o *ContentUnitDerivation) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnitDerivation) Reload

func (o *ContentUnitDerivation) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ContentUnitDerivation) ReloadG

func (o *ContentUnitDerivation) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ContentUnitDerivation) ReloadGP

func (o *ContentUnitDerivation) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ContentUnitDerivation) ReloadP

func (o *ContentUnitDerivation) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ContentUnitDerivation) SetDerived

func (o *ContentUnitDerivation) SetDerived(exec boil.Executor, insert bool, related *ContentUnit) error

SetDerived of the content_unit_derivation to the related item. Sets o.R.Derived to related. Adds o to related.R.DerivedContentUnitDerivations.

func (*ContentUnitDerivation) SetDerivedG

func (o *ContentUnitDerivation) SetDerivedG(insert bool, related *ContentUnit) error

SetDerivedG of the content_unit_derivation to the related item. Sets o.R.Derived to related. Adds o to related.R.DerivedContentUnitDerivations. Uses the global database handle.

func (*ContentUnitDerivation) SetDerivedGP

func (o *ContentUnitDerivation) SetDerivedGP(insert bool, related *ContentUnit)

SetDerivedGP of the content_unit_derivation to the related item. Sets o.R.Derived to related. Adds o to related.R.DerivedContentUnitDerivations. Uses the global database handle and panics on error.

func (*ContentUnitDerivation) SetDerivedP

func (o *ContentUnitDerivation) SetDerivedP(exec boil.Executor, insert bool, related *ContentUnit)

SetDerivedP of the content_unit_derivation to the related item. Sets o.R.Derived to related. Adds o to related.R.DerivedContentUnitDerivations. Panics on error.

func (*ContentUnitDerivation) SetSource

func (o *ContentUnitDerivation) SetSource(exec boil.Executor, insert bool, related *ContentUnit) error

SetSource of the content_unit_derivation to the related item. Sets o.R.Source to related. Adds o to related.R.SourceContentUnitDerivations.

func (*ContentUnitDerivation) SetSourceG

func (o *ContentUnitDerivation) SetSourceG(insert bool, related *ContentUnit) error

SetSourceG of the content_unit_derivation to the related item. Sets o.R.Source to related. Adds o to related.R.SourceContentUnitDerivations. Uses the global database handle.

func (*ContentUnitDerivation) SetSourceGP

func (o *ContentUnitDerivation) SetSourceGP(insert bool, related *ContentUnit)

SetSourceGP of the content_unit_derivation to the related item. Sets o.R.Source to related. Adds o to related.R.SourceContentUnitDerivations. Uses the global database handle and panics on error.

func (*ContentUnitDerivation) SetSourceP

func (o *ContentUnitDerivation) SetSourceP(exec boil.Executor, insert bool, related *ContentUnit)

SetSourceP of the content_unit_derivation to the related item. Sets o.R.Source to related. Adds o to related.R.SourceContentUnitDerivations. Panics on error.

func (*ContentUnitDerivation) Source

func (o *ContentUnitDerivation) Source(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

Source pointed to by the foreign key.

func (*ContentUnitDerivation) SourceG

func (o *ContentUnitDerivation) SourceG(mods ...qm.QueryMod) contentUnitQuery

SourceG pointed to by the foreign key.

func (*ContentUnitDerivation) Update

func (o *ContentUnitDerivation) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ContentUnitDerivation. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ContentUnitDerivation) UpdateG

func (o *ContentUnitDerivation) UpdateG(whitelist ...string) error

UpdateG a single ContentUnitDerivation record. See Update for whitelist behavior description.

func (*ContentUnitDerivation) UpdateGP

func (o *ContentUnitDerivation) UpdateGP(whitelist ...string)

UpdateGP a single ContentUnitDerivation record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ContentUnitDerivation) UpdateP

func (o *ContentUnitDerivation) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ContentUnitDerivation, and panics on error. See Update for whitelist behavior description.

func (*ContentUnitDerivation) Upsert

func (o *ContentUnitDerivation) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ContentUnitDerivation) UpsertG

func (o *ContentUnitDerivation) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ContentUnitDerivation) UpsertGP

func (o *ContentUnitDerivation) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ContentUnitDerivation) UpsertP

func (o *ContentUnitDerivation) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ContentUnitDerivationSlice

type ContentUnitDerivationSlice []*ContentUnitDerivation

ContentUnitDerivationSlice is an alias for a slice of pointers to ContentUnitDerivation. This should generally be used opposed to []ContentUnitDerivation.

func (ContentUnitDerivationSlice) DeleteAll

func (o ContentUnitDerivationSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (ContentUnitDerivationSlice) DeleteAllG

func (o ContentUnitDerivationSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ContentUnitDerivationSlice) DeleteAllGP

func (o ContentUnitDerivationSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ContentUnitDerivationSlice) DeleteAllP

func (o ContentUnitDerivationSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ContentUnitDerivationSlice) ReloadAll

func (o *ContentUnitDerivationSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitDerivationSlice) ReloadAllG

func (o *ContentUnitDerivationSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitDerivationSlice) ReloadAllGP

func (o *ContentUnitDerivationSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ContentUnitDerivationSlice) ReloadAllP

func (o *ContentUnitDerivationSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ContentUnitDerivationSlice) UpdateAll

func (o ContentUnitDerivationSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (ContentUnitDerivationSlice) UpdateAllG

func (o ContentUnitDerivationSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ContentUnitDerivationSlice) UpdateAllGP

func (o ContentUnitDerivationSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ContentUnitDerivationSlice) UpdateAllP

func (o ContentUnitDerivationSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ContentUnitI18n

type ContentUnitI18n struct {
	ContentUnitID    int64       `boil:"content_unit_id" json:"content_unit_id" toml:"content_unit_id" yaml:"content_unit_id"`
	Language         string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	OriginalLanguage null.String `boil:"original_language" json:"original_language,omitempty" toml:"original_language" yaml:"original_language,omitempty"`
	Name             null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Description      null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	UserID           null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	CreatedAt        time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *contentUnitI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentUnitI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ContentUnitI18n is an object representing the database table.

func FindContentUnitI18n

func FindContentUnitI18n(exec boil.Executor, contentUnitID int64, language string, selectCols ...string) (*ContentUnitI18n, error)

FindContentUnitI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindContentUnitI18nG

func FindContentUnitI18nG(contentUnitID int64, language string, selectCols ...string) (*ContentUnitI18n, error)

FindContentUnitI18nG retrieves a single record by ID.

func FindContentUnitI18nGP

func FindContentUnitI18nGP(contentUnitID int64, language string, selectCols ...string) *ContentUnitI18n

FindContentUnitI18nGP retrieves a single record by ID, and panics on error.

func FindContentUnitI18nP

func FindContentUnitI18nP(exec boil.Executor, contentUnitID int64, language string, selectCols ...string) *ContentUnitI18n

FindContentUnitI18nP retrieves a single record by ID with an executor, and panics on error.

func (*ContentUnitI18n) ContentUnit

func (o *ContentUnitI18n) ContentUnit(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnit pointed to by the foreign key.

func (*ContentUnitI18n) ContentUnitG

func (o *ContentUnitI18n) ContentUnitG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitG pointed to by the foreign key.

func (*ContentUnitI18n) Delete

func (o *ContentUnitI18n) Delete(exec boil.Executor) error

Delete deletes a single ContentUnitI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ContentUnitI18n) DeleteG

func (o *ContentUnitI18n) DeleteG() error

DeleteG deletes a single ContentUnitI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*ContentUnitI18n) DeleteGP

func (o *ContentUnitI18n) DeleteGP()

DeleteGP deletes a single ContentUnitI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnitI18n) DeleteP

func (o *ContentUnitI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single ContentUnitI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnitI18n) Insert

func (o *ContentUnitI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ContentUnitI18n) InsertG

func (o *ContentUnitI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ContentUnitI18n) InsertGP

func (o *ContentUnitI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnitI18n) InsertP

func (o *ContentUnitI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnitI18n) Reload

func (o *ContentUnitI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ContentUnitI18n) ReloadG

func (o *ContentUnitI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ContentUnitI18n) ReloadGP

func (o *ContentUnitI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ContentUnitI18n) ReloadP

func (o *ContentUnitI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ContentUnitI18n) RemoveUser

func (o *ContentUnitI18n) RemoveUser(exec boil.Executor, related *User) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*ContentUnitI18n) RemoveUserG

func (o *ContentUnitI18n) RemoveUserG(related *User) error

RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*ContentUnitI18n) RemoveUserGP

func (o *ContentUnitI18n) RemoveUserGP(related *User)

RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*ContentUnitI18n) RemoveUserP

func (o *ContentUnitI18n) RemoveUserP(exec boil.Executor, related *User)

RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*ContentUnitI18n) SetContentUnit

func (o *ContentUnitI18n) SetContentUnit(exec boil.Executor, insert bool, related *ContentUnit) error

SetContentUnit of the content_unit_i18n to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitI18ns.

func (*ContentUnitI18n) SetContentUnitG

func (o *ContentUnitI18n) SetContentUnitG(insert bool, related *ContentUnit) error

SetContentUnitG of the content_unit_i18n to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitI18ns. Uses the global database handle.

func (*ContentUnitI18n) SetContentUnitGP

func (o *ContentUnitI18n) SetContentUnitGP(insert bool, related *ContentUnit)

SetContentUnitGP of the content_unit_i18n to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitI18ns. Uses the global database handle and panics on error.

func (*ContentUnitI18n) SetContentUnitP

func (o *ContentUnitI18n) SetContentUnitP(exec boil.Executor, insert bool, related *ContentUnit)

SetContentUnitP of the content_unit_i18n to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitI18ns. Panics on error.

func (*ContentUnitI18n) SetUser

func (o *ContentUnitI18n) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the content_unit_i18n to the related item. Sets o.R.User to related. Adds o to related.R.ContentUnitI18ns.

func (*ContentUnitI18n) SetUserG

func (o *ContentUnitI18n) SetUserG(insert bool, related *User) error

SetUserG of the content_unit_i18n to the related item. Sets o.R.User to related. Adds o to related.R.ContentUnitI18ns. Uses the global database handle.

func (*ContentUnitI18n) SetUserGP

func (o *ContentUnitI18n) SetUserGP(insert bool, related *User)

SetUserGP of the content_unit_i18n to the related item. Sets o.R.User to related. Adds o to related.R.ContentUnitI18ns. Uses the global database handle and panics on error.

func (*ContentUnitI18n) SetUserP

func (o *ContentUnitI18n) SetUserP(exec boil.Executor, insert bool, related *User)

SetUserP of the content_unit_i18n to the related item. Sets o.R.User to related. Adds o to related.R.ContentUnitI18ns. Panics on error.

func (*ContentUnitI18n) Update

func (o *ContentUnitI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ContentUnitI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ContentUnitI18n) UpdateG

func (o *ContentUnitI18n) UpdateG(whitelist ...string) error

UpdateG a single ContentUnitI18n record. See Update for whitelist behavior description.

func (*ContentUnitI18n) UpdateGP

func (o *ContentUnitI18n) UpdateGP(whitelist ...string)

UpdateGP a single ContentUnitI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ContentUnitI18n) UpdateP

func (o *ContentUnitI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ContentUnitI18n, and panics on error. See Update for whitelist behavior description.

func (*ContentUnitI18n) Upsert

func (o *ContentUnitI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ContentUnitI18n) UpsertG

func (o *ContentUnitI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ContentUnitI18n) UpsertGP

func (o *ContentUnitI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ContentUnitI18n) UpsertP

func (o *ContentUnitI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*ContentUnitI18n) User

func (o *ContentUnitI18n) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*ContentUnitI18n) UserG

func (o *ContentUnitI18n) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

type ContentUnitI18nSlice

type ContentUnitI18nSlice []*ContentUnitI18n

ContentUnitI18nSlice is an alias for a slice of pointers to ContentUnitI18n. This should generally be used opposed to []ContentUnitI18n.

func (ContentUnitI18nSlice) DeleteAll

func (o ContentUnitI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (ContentUnitI18nSlice) DeleteAllG

func (o ContentUnitI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ContentUnitI18nSlice) DeleteAllGP

func (o ContentUnitI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ContentUnitI18nSlice) DeleteAllP

func (o ContentUnitI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ContentUnitI18nSlice) ReloadAll

func (o *ContentUnitI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitI18nSlice) ReloadAllG

func (o *ContentUnitI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitI18nSlice) ReloadAllGP

func (o *ContentUnitI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ContentUnitI18nSlice) ReloadAllP

func (o *ContentUnitI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ContentUnitI18nSlice) UpdateAll

func (o ContentUnitI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (ContentUnitI18nSlice) UpdateAllG

func (o ContentUnitI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ContentUnitI18nSlice) UpdateAllGP

func (o ContentUnitI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ContentUnitI18nSlice) UpdateAllP

func (o ContentUnitI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ContentUnitSlice

type ContentUnitSlice []*ContentUnit

ContentUnitSlice is an alias for a slice of pointers to ContentUnit. This should generally be used opposed to []ContentUnit.

func (ContentUnitSlice) DeleteAll

func (o ContentUnitSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (ContentUnitSlice) DeleteAllG

func (o ContentUnitSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ContentUnitSlice) DeleteAllGP

func (o ContentUnitSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ContentUnitSlice) DeleteAllP

func (o ContentUnitSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ContentUnitSlice) ReloadAll

func (o *ContentUnitSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitSlice) ReloadAllG

func (o *ContentUnitSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitSlice) ReloadAllGP

func (o *ContentUnitSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ContentUnitSlice) ReloadAllP

func (o *ContentUnitSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ContentUnitSlice) UpdateAll

func (o ContentUnitSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (ContentUnitSlice) UpdateAllG

func (o ContentUnitSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ContentUnitSlice) UpdateAllGP

func (o ContentUnitSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ContentUnitSlice) UpdateAllP

func (o ContentUnitSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type ContentUnitsPerson

type ContentUnitsPerson struct {
	ContentUnitID int64 `boil:"content_unit_id" json:"content_unit_id" toml:"content_unit_id" yaml:"content_unit_id"`
	PersonID      int64 `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	RoleID        int64 `boil:"role_id" json:"role_id" toml:"role_id" yaml:"role_id"`

	R *contentUnitsPersonR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L contentUnitsPersonL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

ContentUnitsPerson is an object representing the database table.

func FindContentUnitsPerson

func FindContentUnitsPerson(exec boil.Executor, contentUnitID int64, personID int64, selectCols ...string) (*ContentUnitsPerson, error)

FindContentUnitsPerson retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindContentUnitsPersonG

func FindContentUnitsPersonG(contentUnitID int64, personID int64, selectCols ...string) (*ContentUnitsPerson, error)

FindContentUnitsPersonG retrieves a single record by ID.

func FindContentUnitsPersonGP

func FindContentUnitsPersonGP(contentUnitID int64, personID int64, selectCols ...string) *ContentUnitsPerson

FindContentUnitsPersonGP retrieves a single record by ID, and panics on error.

func FindContentUnitsPersonP

func FindContentUnitsPersonP(exec boil.Executor, contentUnitID int64, personID int64, selectCols ...string) *ContentUnitsPerson

FindContentUnitsPersonP retrieves a single record by ID with an executor, and panics on error.

func (*ContentUnitsPerson) ContentUnit

func (o *ContentUnitsPerson) ContentUnit(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnit pointed to by the foreign key.

func (*ContentUnitsPerson) ContentUnitG

func (o *ContentUnitsPerson) ContentUnitG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitG pointed to by the foreign key.

func (*ContentUnitsPerson) Delete

func (o *ContentUnitsPerson) Delete(exec boil.Executor) error

Delete deletes a single ContentUnitsPerson record with an executor. Delete will match against the primary key column to find the record to delete.

func (*ContentUnitsPerson) DeleteG

func (o *ContentUnitsPerson) DeleteG() error

DeleteG deletes a single ContentUnitsPerson record. DeleteG will match against the primary key column to find the record to delete.

func (*ContentUnitsPerson) DeleteGP

func (o *ContentUnitsPerson) DeleteGP()

DeleteGP deletes a single ContentUnitsPerson record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnitsPerson) DeleteP

func (o *ContentUnitsPerson) DeleteP(exec boil.Executor)

DeleteP deletes a single ContentUnitsPerson record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*ContentUnitsPerson) Insert

func (o *ContentUnitsPerson) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*ContentUnitsPerson) InsertG

func (o *ContentUnitsPerson) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*ContentUnitsPerson) InsertGP

func (o *ContentUnitsPerson) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnitsPerson) InsertP

func (o *ContentUnitsPerson) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*ContentUnitsPerson) Person

func (o *ContentUnitsPerson) Person(exec boil.Executor, mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*ContentUnitsPerson) PersonG

func (o *ContentUnitsPerson) PersonG(mods ...qm.QueryMod) personQuery

PersonG pointed to by the foreign key.

func (*ContentUnitsPerson) Reload

func (o *ContentUnitsPerson) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*ContentUnitsPerson) ReloadG

func (o *ContentUnitsPerson) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*ContentUnitsPerson) ReloadGP

func (o *ContentUnitsPerson) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*ContentUnitsPerson) ReloadP

func (o *ContentUnitsPerson) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*ContentUnitsPerson) Role

func (o *ContentUnitsPerson) Role(exec boil.Executor, mods ...qm.QueryMod) contentRoleTypeQuery

Role pointed to by the foreign key.

func (*ContentUnitsPerson) RoleG

func (o *ContentUnitsPerson) RoleG(mods ...qm.QueryMod) contentRoleTypeQuery

RoleG pointed to by the foreign key.

func (*ContentUnitsPerson) SetContentUnit

func (o *ContentUnitsPerson) SetContentUnit(exec boil.Executor, insert bool, related *ContentUnit) error

SetContentUnit of the content_units_person to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitsPersons.

func (*ContentUnitsPerson) SetContentUnitG

func (o *ContentUnitsPerson) SetContentUnitG(insert bool, related *ContentUnit) error

SetContentUnitG of the content_units_person to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitsPersons. Uses the global database handle.

func (*ContentUnitsPerson) SetContentUnitGP

func (o *ContentUnitsPerson) SetContentUnitGP(insert bool, related *ContentUnit)

SetContentUnitGP of the content_units_person to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitsPersons. Uses the global database handle and panics on error.

func (*ContentUnitsPerson) SetContentUnitP

func (o *ContentUnitsPerson) SetContentUnitP(exec boil.Executor, insert bool, related *ContentUnit)

SetContentUnitP of the content_units_person to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.ContentUnitsPersons. Panics on error.

func (*ContentUnitsPerson) SetPerson

func (o *ContentUnitsPerson) SetPerson(exec boil.Executor, insert bool, related *Person) error

SetPerson of the content_units_person to the related item. Sets o.R.Person to related. Adds o to related.R.ContentUnitsPersons.

func (*ContentUnitsPerson) SetPersonG

func (o *ContentUnitsPerson) SetPersonG(insert bool, related *Person) error

SetPersonG of the content_units_person to the related item. Sets o.R.Person to related. Adds o to related.R.ContentUnitsPersons. Uses the global database handle.

func (*ContentUnitsPerson) SetPersonGP

func (o *ContentUnitsPerson) SetPersonGP(insert bool, related *Person)

SetPersonGP of the content_units_person to the related item. Sets o.R.Person to related. Adds o to related.R.ContentUnitsPersons. Uses the global database handle and panics on error.

func (*ContentUnitsPerson) SetPersonP

func (o *ContentUnitsPerson) SetPersonP(exec boil.Executor, insert bool, related *Person)

SetPersonP of the content_units_person to the related item. Sets o.R.Person to related. Adds o to related.R.ContentUnitsPersons. Panics on error.

func (*ContentUnitsPerson) SetRole

func (o *ContentUnitsPerson) SetRole(exec boil.Executor, insert bool, related *ContentRoleType) error

SetRole of the content_units_person to the related item. Sets o.R.Role to related. Adds o to related.R.RoleContentUnitsPersons.

func (*ContentUnitsPerson) SetRoleG

func (o *ContentUnitsPerson) SetRoleG(insert bool, related *ContentRoleType) error

SetRoleG of the content_units_person to the related item. Sets o.R.Role to related. Adds o to related.R.RoleContentUnitsPersons. Uses the global database handle.

func (*ContentUnitsPerson) SetRoleGP

func (o *ContentUnitsPerson) SetRoleGP(insert bool, related *ContentRoleType)

SetRoleGP of the content_units_person to the related item. Sets o.R.Role to related. Adds o to related.R.RoleContentUnitsPersons. Uses the global database handle and panics on error.

func (*ContentUnitsPerson) SetRoleP

func (o *ContentUnitsPerson) SetRoleP(exec boil.Executor, insert bool, related *ContentRoleType)

SetRoleP of the content_units_person to the related item. Sets o.R.Role to related. Adds o to related.R.RoleContentUnitsPersons. Panics on error.

func (*ContentUnitsPerson) Update

func (o *ContentUnitsPerson) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the ContentUnitsPerson. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*ContentUnitsPerson) UpdateG

func (o *ContentUnitsPerson) UpdateG(whitelist ...string) error

UpdateG a single ContentUnitsPerson record. See Update for whitelist behavior description.

func (*ContentUnitsPerson) UpdateGP

func (o *ContentUnitsPerson) UpdateGP(whitelist ...string)

UpdateGP a single ContentUnitsPerson record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*ContentUnitsPerson) UpdateP

func (o *ContentUnitsPerson) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the ContentUnitsPerson, and panics on error. See Update for whitelist behavior description.

func (*ContentUnitsPerson) Upsert

func (o *ContentUnitsPerson) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*ContentUnitsPerson) UpsertG

func (o *ContentUnitsPerson) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*ContentUnitsPerson) UpsertGP

func (o *ContentUnitsPerson) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*ContentUnitsPerson) UpsertP

func (o *ContentUnitsPerson) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type ContentUnitsPersonSlice

type ContentUnitsPersonSlice []*ContentUnitsPerson

ContentUnitsPersonSlice is an alias for a slice of pointers to ContentUnitsPerson. This should generally be used opposed to []ContentUnitsPerson.

func (ContentUnitsPersonSlice) DeleteAll

func (o ContentUnitsPersonSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (ContentUnitsPersonSlice) DeleteAllG

func (o ContentUnitsPersonSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (ContentUnitsPersonSlice) DeleteAllGP

func (o ContentUnitsPersonSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (ContentUnitsPersonSlice) DeleteAllP

func (o ContentUnitsPersonSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*ContentUnitsPersonSlice) ReloadAll

func (o *ContentUnitsPersonSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitsPersonSlice) ReloadAllG

func (o *ContentUnitsPersonSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*ContentUnitsPersonSlice) ReloadAllGP

func (o *ContentUnitsPersonSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*ContentUnitsPersonSlice) ReloadAllP

func (o *ContentUnitsPersonSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (ContentUnitsPersonSlice) UpdateAll

func (o ContentUnitsPersonSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (ContentUnitsPersonSlice) UpdateAllG

func (o ContentUnitsPersonSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (ContentUnitsPersonSlice) UpdateAllGP

func (o ContentUnitsPersonSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (ContentUnitsPersonSlice) UpdateAllP

func (o ContentUnitsPersonSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type File

type File struct {
	ID              int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID             string      `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	Name            string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Size            int64       `boil:"size" json:"size" toml:"size" yaml:"size"`
	Type            string      `boil:"type" json:"type" toml:"type" yaml:"type"`
	SubType         string      `boil:"sub_type" json:"sub_type" toml:"sub_type" yaml:"sub_type"`
	MimeType        null.String `boil:"mime_type" json:"mime_type,omitempty" toml:"mime_type" yaml:"mime_type,omitempty"`
	Sha1            null.Bytes  `boil:"sha1" json:"sha1,omitempty" toml:"sha1" yaml:"sha1,omitempty"`
	ContentUnitID   null.Int64  `boil:"content_unit_id" json:"content_unit_id,omitempty" toml:"content_unit_id" yaml:"content_unit_id,omitempty"`
	CreatedAt       time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Language        null.String `boil:"language" json:"language,omitempty" toml:"language" yaml:"language,omitempty"`
	BackupCount     null.Int16  `boil:"backup_count" json:"backup_count,omitempty" toml:"backup_count" yaml:"backup_count,omitempty"`
	FirstBackupTime null.Time   `boil:"first_backup_time" json:"first_backup_time,omitempty" toml:"first_backup_time" yaml:"first_backup_time,omitempty"`
	Properties      null.JSON   `boil:"properties" json:"properties,omitempty" toml:"properties" yaml:"properties,omitempty"`
	ParentID        null.Int64  `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"`
	FileCreatedAt   null.Time   `boil:"file_created_at" json:"file_created_at,omitempty" toml:"file_created_at" yaml:"file_created_at,omitempty"`
	Secure          int16       `boil:"secure" json:"secure" toml:"secure" yaml:"secure"`
	Published       bool        `boil:"published" json:"published" toml:"published" yaml:"published"`
	RemovedAt       null.Time   `boil:"removed_at" json:"removed_at,omitempty" toml:"removed_at" yaml:"removed_at,omitempty"`

	R *fileR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L fileL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

File is an object representing the database table.

func FindFile

func FindFile(exec boil.Executor, id int64, selectCols ...string) (*File, error)

FindFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindFileG

func FindFileG(id int64, selectCols ...string) (*File, error)

FindFileG retrieves a single record by ID.

func FindFileGP

func FindFileGP(id int64, selectCols ...string) *File

FindFileGP retrieves a single record by ID, and panics on error.

func FindFileP

func FindFileP(exec boil.Executor, id int64, selectCols ...string) *File

FindFileP retrieves a single record by ID with an executor, and panics on error.

func (*File) AddOperations

func (o *File) AddOperations(exec boil.Executor, insert bool, related ...*Operation) error

AddOperations adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.Files appropriately.

func (*File) AddOperationsG

func (o *File) AddOperationsG(insert bool, related ...*Operation) error

AddOperationsG adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.Files appropriately. Uses the global database handle.

func (*File) AddOperationsGP

func (o *File) AddOperationsGP(insert bool, related ...*Operation)

AddOperationsGP adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.Files appropriately. Uses the global database handle and panics on error.

func (*File) AddOperationsP

func (o *File) AddOperationsP(exec boil.Executor, insert bool, related ...*Operation)

AddOperationsP adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.Files appropriately. Panics on error.

func (*File) AddParentFiles

func (o *File) AddParentFiles(exec boil.Executor, insert bool, related ...*File) error

AddParentFiles adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.ParentFiles. Sets related.R.Parent appropriately.

func (*File) AddParentFilesG

func (o *File) AddParentFilesG(insert bool, related ...*File) error

AddParentFilesG adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.ParentFiles. Sets related.R.Parent appropriately. Uses the global database handle.

func (*File) AddParentFilesGP

func (o *File) AddParentFilesGP(insert bool, related ...*File)

AddParentFilesGP adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.ParentFiles. Sets related.R.Parent appropriately. Uses the global database handle and panics on error.

func (*File) AddParentFilesP

func (o *File) AddParentFilesP(exec boil.Executor, insert bool, related ...*File)

AddParentFilesP adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.ParentFiles. Sets related.R.Parent appropriately. Panics on error.

func (*File) AddStorages

func (o *File) AddStorages(exec boil.Executor, insert bool, related ...*Storage) error

AddStorages adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Storages. Sets related.R.Files appropriately.

func (*File) AddStoragesG

func (o *File) AddStoragesG(insert bool, related ...*Storage) error

AddStoragesG adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Storages. Sets related.R.Files appropriately. Uses the global database handle.

func (*File) AddStoragesGP

func (o *File) AddStoragesGP(insert bool, related ...*Storage)

AddStoragesGP adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Storages. Sets related.R.Files appropriately. Uses the global database handle and panics on error.

func (*File) AddStoragesP

func (o *File) AddStoragesP(exec boil.Executor, insert bool, related ...*Storage)

AddStoragesP adds the given related objects to the existing relationships of the file, optionally inserting them as new records. Appends related to o.R.Storages. Sets related.R.Files appropriately. Panics on error.

func (*File) ContentUnit

func (o *File) ContentUnit(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnit pointed to by the foreign key.

func (*File) ContentUnitG

func (o *File) ContentUnitG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitG pointed to by the foreign key.

func (*File) Delete

func (o *File) Delete(exec boil.Executor) error

Delete deletes a single File record with an executor. Delete will match against the primary key column to find the record to delete.

func (*File) DeleteG

func (o *File) DeleteG() error

DeleteG deletes a single File record. DeleteG will match against the primary key column to find the record to delete.

func (*File) DeleteGP

func (o *File) DeleteGP()

DeleteGP deletes a single File record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*File) DeleteP

func (o *File) DeleteP(exec boil.Executor)

DeleteP deletes a single File record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*File) Insert

func (o *File) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*File) InsertG

func (o *File) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*File) InsertGP

func (o *File) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*File) InsertP

func (o *File) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*File) Operations

func (o *File) Operations(exec boil.Executor, mods ...qm.QueryMod) operationQuery

Operations retrieves all the operation's operations with an executor.

func (*File) OperationsG

func (o *File) OperationsG(mods ...qm.QueryMod) operationQuery

OperationsG retrieves all the operation's operations.

func (*File) Parent

func (o *File) Parent(exec boil.Executor, mods ...qm.QueryMod) fileQuery

Parent pointed to by the foreign key.

func (*File) ParentFiles

func (o *File) ParentFiles(exec boil.Executor, mods ...qm.QueryMod) fileQuery

ParentFiles retrieves all the file's files with an executor via parent_id column.

func (*File) ParentFilesG

func (o *File) ParentFilesG(mods ...qm.QueryMod) fileQuery

ParentFilesG retrieves all the file's files via parent_id column.

func (*File) ParentG

func (o *File) ParentG(mods ...qm.QueryMod) fileQuery

ParentG pointed to by the foreign key.

func (*File) Reload

func (o *File) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*File) ReloadG

func (o *File) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*File) ReloadGP

func (o *File) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*File) ReloadP

func (o *File) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*File) RemoveContentUnit

func (o *File) RemoveContentUnit(exec boil.Executor, related *ContentUnit) error

RemoveContentUnit relationship. Sets o.R.ContentUnit to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*File) RemoveContentUnitG

func (o *File) RemoveContentUnitG(related *ContentUnit) error

RemoveContentUnitG relationship. Sets o.R.ContentUnit to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*File) RemoveContentUnitGP

func (o *File) RemoveContentUnitGP(related *ContentUnit)

RemoveContentUnitGP relationship. Sets o.R.ContentUnit to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*File) RemoveContentUnitP

func (o *File) RemoveContentUnitP(exec boil.Executor, related *ContentUnit)

RemoveContentUnitP relationship. Sets o.R.ContentUnit to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*File) RemoveOperations

func (o *File) RemoveOperations(exec boil.Executor, related ...*Operation) error

RemoveOperations relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.Files.

func (*File) RemoveOperationsG

func (o *File) RemoveOperationsG(related ...*Operation) error

RemoveOperationsG relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.Files. Uses the global database handle.

func (*File) RemoveOperationsGP

func (o *File) RemoveOperationsGP(related ...*Operation)

RemoveOperationsGP relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.Files. Uses the global database handle and panics on error.

func (*File) RemoveOperationsP

func (o *File) RemoveOperationsP(exec boil.Executor, related ...*Operation)

RemoveOperationsP relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.Files. Panics on error.

func (*File) RemoveParent

func (o *File) RemoveParent(exec boil.Executor, related *File) error

RemoveParent relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*File) RemoveParentFiles

func (o *File) RemoveParentFiles(exec boil.Executor, related ...*File) error

RemoveParentFiles relationships from objects passed in. Removes related items from R.ParentFiles (uses pointer comparison, removal does not keep order) Sets related.R.Parent.

func (*File) RemoveParentFilesG

func (o *File) RemoveParentFilesG(related ...*File) error

RemoveParentFilesG relationships from objects passed in. Removes related items from R.ParentFiles (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle.

func (*File) RemoveParentFilesGP

func (o *File) RemoveParentFilesGP(related ...*File)

RemoveParentFilesGP relationships from objects passed in. Removes related items from R.ParentFiles (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle and panics on error.

func (*File) RemoveParentFilesP

func (o *File) RemoveParentFilesP(exec boil.Executor, related ...*File)

RemoveParentFilesP relationships from objects passed in. Removes related items from R.ParentFiles (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Panics on error.

func (*File) RemoveParentG

func (o *File) RemoveParentG(related *File) error

RemoveParentG relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*File) RemoveParentGP

func (o *File) RemoveParentGP(related *File)

RemoveParentGP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*File) RemoveParentP

func (o *File) RemoveParentP(exec boil.Executor, related *File)

RemoveParentP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*File) RemoveStorages

func (o *File) RemoveStorages(exec boil.Executor, related ...*Storage) error

RemoveStorages relationships from objects passed in. Removes related items from R.Storages (uses pointer comparison, removal does not keep order) Sets related.R.Files.

func (*File) RemoveStoragesG

func (o *File) RemoveStoragesG(related ...*Storage) error

RemoveStoragesG relationships from objects passed in. Removes related items from R.Storages (uses pointer comparison, removal does not keep order) Sets related.R.Files. Uses the global database handle.

func (*File) RemoveStoragesGP

func (o *File) RemoveStoragesGP(related ...*Storage)

RemoveStoragesGP relationships from objects passed in. Removes related items from R.Storages (uses pointer comparison, removal does not keep order) Sets related.R.Files. Uses the global database handle and panics on error.

func (*File) RemoveStoragesP

func (o *File) RemoveStoragesP(exec boil.Executor, related ...*Storage)

RemoveStoragesP relationships from objects passed in. Removes related items from R.Storages (uses pointer comparison, removal does not keep order) Sets related.R.Files. Panics on error.

func (*File) SetContentUnit

func (o *File) SetContentUnit(exec boil.Executor, insert bool, related *ContentUnit) error

SetContentUnit of the file to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.Files.

func (*File) SetContentUnitG

func (o *File) SetContentUnitG(insert bool, related *ContentUnit) error

SetContentUnitG of the file to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.Files. Uses the global database handle.

func (*File) SetContentUnitGP

func (o *File) SetContentUnitGP(insert bool, related *ContentUnit)

SetContentUnitGP of the file to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.Files. Uses the global database handle and panics on error.

func (*File) SetContentUnitP

func (o *File) SetContentUnitP(exec boil.Executor, insert bool, related *ContentUnit)

SetContentUnitP of the file to the related item. Sets o.R.ContentUnit to related. Adds o to related.R.Files. Panics on error.

func (*File) SetOperations

func (o *File) SetOperations(exec boil.Executor, insert bool, related ...*Operation) error

SetOperations removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.Files's Operations accordingly.

func (*File) SetOperationsG

func (o *File) SetOperationsG(insert bool, related ...*Operation) error

SetOperationsG removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.Files's Operations accordingly. Uses the global database handle.

func (*File) SetOperationsGP

func (o *File) SetOperationsGP(insert bool, related ...*Operation)

SetOperationsGP removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.Files's Operations accordingly. Uses the global database handle and panics on error.

func (*File) SetOperationsP

func (o *File) SetOperationsP(exec boil.Executor, insert bool, related ...*Operation)

SetOperationsP removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.Files's Operations accordingly. Panics on error.

func (*File) SetParent

func (o *File) SetParent(exec boil.Executor, insert bool, related *File) error

SetParent of the file to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentFiles.

func (*File) SetParentFiles

func (o *File) SetParentFiles(exec boil.Executor, insert bool, related ...*File) error

SetParentFiles removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentFiles accordingly. Replaces o.R.ParentFiles with related. Sets related.R.Parent's ParentFiles accordingly.

func (*File) SetParentFilesG

func (o *File) SetParentFilesG(insert bool, related ...*File) error

SetParentFilesG removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentFiles accordingly. Replaces o.R.ParentFiles with related. Sets related.R.Parent's ParentFiles accordingly. Uses the global database handle.

func (*File) SetParentFilesGP

func (o *File) SetParentFilesGP(insert bool, related ...*File)

SetParentFilesGP removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentFiles accordingly. Replaces o.R.ParentFiles with related. Sets related.R.Parent's ParentFiles accordingly. Uses the global database handle and panics on error.

func (*File) SetParentFilesP

func (o *File) SetParentFilesP(exec boil.Executor, insert bool, related ...*File)

SetParentFilesP removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentFiles accordingly. Replaces o.R.ParentFiles with related. Sets related.R.Parent's ParentFiles accordingly. Panics on error.

func (*File) SetParentG

func (o *File) SetParentG(insert bool, related *File) error

SetParentG of the file to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentFiles. Uses the global database handle.

func (*File) SetParentGP

func (o *File) SetParentGP(insert bool, related *File)

SetParentGP of the file to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentFiles. Uses the global database handle and panics on error.

func (*File) SetParentP

func (o *File) SetParentP(exec boil.Executor, insert bool, related *File)

SetParentP of the file to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentFiles. Panics on error.

func (*File) SetStorages

func (o *File) SetStorages(exec boil.Executor, insert bool, related ...*Storage) error

SetStorages removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Storages accordingly. Replaces o.R.Storages with related. Sets related.R.Files's Storages accordingly.

func (*File) SetStoragesG

func (o *File) SetStoragesG(insert bool, related ...*Storage) error

SetStoragesG removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Storages accordingly. Replaces o.R.Storages with related. Sets related.R.Files's Storages accordingly. Uses the global database handle.

func (*File) SetStoragesGP

func (o *File) SetStoragesGP(insert bool, related ...*Storage)

SetStoragesGP removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Storages accordingly. Replaces o.R.Storages with related. Sets related.R.Files's Storages accordingly. Uses the global database handle and panics on error.

func (*File) SetStoragesP

func (o *File) SetStoragesP(exec boil.Executor, insert bool, related ...*Storage)

SetStoragesP removes all previously related items of the file replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Files's Storages accordingly. Replaces o.R.Storages with related. Sets related.R.Files's Storages accordingly. Panics on error.

func (*File) Storages

func (o *File) Storages(exec boil.Executor, mods ...qm.QueryMod) storageQuery

Storages retrieves all the storage's storages with an executor.

func (*File) StoragesG

func (o *File) StoragesG(mods ...qm.QueryMod) storageQuery

StoragesG retrieves all the storage's storages.

func (*File) Update

func (o *File) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the File. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*File) UpdateG

func (o *File) UpdateG(whitelist ...string) error

UpdateG a single File record. See Update for whitelist behavior description.

func (*File) UpdateGP

func (o *File) UpdateGP(whitelist ...string)

UpdateGP a single File record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*File) UpdateP

func (o *File) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the File, and panics on error. See Update for whitelist behavior description.

func (*File) Upsert

func (o *File) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*File) UpsertG

func (o *File) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*File) UpsertGP

func (o *File) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*File) UpsertP

func (o *File) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type FileSlice

type FileSlice []*File

FileSlice is an alias for a slice of pointers to File. This should generally be used opposed to []File.

func (FileSlice) DeleteAll

func (o FileSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (FileSlice) DeleteAllG

func (o FileSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (FileSlice) DeleteAllGP

func (o FileSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (FileSlice) DeleteAllP

func (o FileSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*FileSlice) ReloadAll

func (o *FileSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*FileSlice) ReloadAllG

func (o *FileSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*FileSlice) ReloadAllGP

func (o *FileSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*FileSlice) ReloadAllP

func (o *FileSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (FileSlice) UpdateAll

func (o FileSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (FileSlice) UpdateAllG

func (o FileSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (FileSlice) UpdateAllGP

func (o FileSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (FileSlice) UpdateAllP

func (o FileSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type M

type M map[string]interface{}

M type is for providing columns and column values to UpdateAll.

type Operation

type Operation struct {
	ID         int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID        string      `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	TypeID     int64       `boil:"type_id" json:"type_id" toml:"type_id" yaml:"type_id"`
	CreatedAt  time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Station    null.String `boil:"station" json:"station,omitempty" toml:"station" yaml:"station,omitempty"`
	UserID     null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	Details    null.String `boil:"details" json:"details,omitempty" toml:"details" yaml:"details,omitempty"`
	Properties null.JSON   `boil:"properties" json:"properties,omitempty" toml:"properties" yaml:"properties,omitempty"`

	R *operationR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L operationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Operation is an object representing the database table.

func FindOperation

func FindOperation(exec boil.Executor, id int64, selectCols ...string) (*Operation, error)

FindOperation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindOperationG

func FindOperationG(id int64, selectCols ...string) (*Operation, error)

FindOperationG retrieves a single record by ID.

func FindOperationGP

func FindOperationGP(id int64, selectCols ...string) *Operation

FindOperationGP retrieves a single record by ID, and panics on error.

func FindOperationP

func FindOperationP(exec boil.Executor, id int64, selectCols ...string) *Operation

FindOperationP retrieves a single record by ID with an executor, and panics on error.

func (*Operation) AddFiles

func (o *Operation) AddFiles(exec boil.Executor, insert bool, related ...*File) error

AddFiles adds the given related objects to the existing relationships of the operation, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Operations appropriately.

func (*Operation) AddFilesG

func (o *Operation) AddFilesG(insert bool, related ...*File) error

AddFilesG adds the given related objects to the existing relationships of the operation, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Operations appropriately. Uses the global database handle.

func (*Operation) AddFilesGP

func (o *Operation) AddFilesGP(insert bool, related ...*File)

AddFilesGP adds the given related objects to the existing relationships of the operation, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Operations appropriately. Uses the global database handle and panics on error.

func (*Operation) AddFilesP

func (o *Operation) AddFilesP(exec boil.Executor, insert bool, related ...*File)

AddFilesP adds the given related objects to the existing relationships of the operation, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Operations appropriately. Panics on error.

func (*Operation) Delete

func (o *Operation) Delete(exec boil.Executor) error

Delete deletes a single Operation record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Operation) DeleteG

func (o *Operation) DeleteG() error

DeleteG deletes a single Operation record. DeleteG will match against the primary key column to find the record to delete.

func (*Operation) DeleteGP

func (o *Operation) DeleteGP()

DeleteGP deletes a single Operation record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Operation) DeleteP

func (o *Operation) DeleteP(exec boil.Executor)

DeleteP deletes a single Operation record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Operation) Files

func (o *Operation) Files(exec boil.Executor, mods ...qm.QueryMod) fileQuery

Files retrieves all the file's files with an executor.

func (*Operation) FilesG

func (o *Operation) FilesG(mods ...qm.QueryMod) fileQuery

FilesG retrieves all the file's files.

func (*Operation) Insert

func (o *Operation) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Operation) InsertG

func (o *Operation) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Operation) InsertGP

func (o *Operation) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Operation) InsertP

func (o *Operation) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Operation) Reload

func (o *Operation) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Operation) ReloadG

func (o *Operation) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Operation) ReloadGP

func (o *Operation) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Operation) ReloadP

func (o *Operation) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Operation) RemoveFiles

func (o *Operation) RemoveFiles(exec boil.Executor, related ...*File) error

RemoveFiles relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Operations.

func (*Operation) RemoveFilesG

func (o *Operation) RemoveFilesG(related ...*File) error

RemoveFilesG relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Operations. Uses the global database handle.

func (*Operation) RemoveFilesGP

func (o *Operation) RemoveFilesGP(related ...*File)

RemoveFilesGP relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Operations. Uses the global database handle and panics on error.

func (*Operation) RemoveFilesP

func (o *Operation) RemoveFilesP(exec boil.Executor, related ...*File)

RemoveFilesP relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Operations. Panics on error.

func (*Operation) RemoveUser

func (o *Operation) RemoveUser(exec boil.Executor, related *User) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Operation) RemoveUserG

func (o *Operation) RemoveUserG(related *User) error

RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Operation) RemoveUserGP

func (o *Operation) RemoveUserGP(related *User)

RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Operation) RemoveUserP

func (o *Operation) RemoveUserP(exec boil.Executor, related *User)

RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Operation) SetFiles

func (o *Operation) SetFiles(exec boil.Executor, insert bool, related ...*File) error

SetFiles removes all previously related items of the operation replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Operations's Files accordingly. Replaces o.R.Files with related. Sets related.R.Operations's Files accordingly.

func (*Operation) SetFilesG

func (o *Operation) SetFilesG(insert bool, related ...*File) error

SetFilesG removes all previously related items of the operation replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Operations's Files accordingly. Replaces o.R.Files with related. Sets related.R.Operations's Files accordingly. Uses the global database handle.

func (*Operation) SetFilesGP

func (o *Operation) SetFilesGP(insert bool, related ...*File)

SetFilesGP removes all previously related items of the operation replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Operations's Files accordingly. Replaces o.R.Files with related. Sets related.R.Operations's Files accordingly. Uses the global database handle and panics on error.

func (*Operation) SetFilesP

func (o *Operation) SetFilesP(exec boil.Executor, insert bool, related ...*File)

SetFilesP removes all previously related items of the operation replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Operations's Files accordingly. Replaces o.R.Files with related. Sets related.R.Operations's Files accordingly. Panics on error.

func (*Operation) SetType

func (o *Operation) SetType(exec boil.Executor, insert bool, related *OperationType) error

SetType of the operation to the related item. Sets o.R.Type to related. Adds o to related.R.TypeOperations.

func (*Operation) SetTypeG

func (o *Operation) SetTypeG(insert bool, related *OperationType) error

SetTypeG of the operation to the related item. Sets o.R.Type to related. Adds o to related.R.TypeOperations. Uses the global database handle.

func (*Operation) SetTypeGP

func (o *Operation) SetTypeGP(insert bool, related *OperationType)

SetTypeGP of the operation to the related item. Sets o.R.Type to related. Adds o to related.R.TypeOperations. Uses the global database handle and panics on error.

func (*Operation) SetTypeP

func (o *Operation) SetTypeP(exec boil.Executor, insert bool, related *OperationType)

SetTypeP of the operation to the related item. Sets o.R.Type to related. Adds o to related.R.TypeOperations. Panics on error.

func (*Operation) SetUser

func (o *Operation) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the operation to the related item. Sets o.R.User to related. Adds o to related.R.Operations.

func (*Operation) SetUserG

func (o *Operation) SetUserG(insert bool, related *User) error

SetUserG of the operation to the related item. Sets o.R.User to related. Adds o to related.R.Operations. Uses the global database handle.

func (*Operation) SetUserGP

func (o *Operation) SetUserGP(insert bool, related *User)

SetUserGP of the operation to the related item. Sets o.R.User to related. Adds o to related.R.Operations. Uses the global database handle and panics on error.

func (*Operation) SetUserP

func (o *Operation) SetUserP(exec boil.Executor, insert bool, related *User)

SetUserP of the operation to the related item. Sets o.R.User to related. Adds o to related.R.Operations. Panics on error.

func (*Operation) Type

func (o *Operation) Type(exec boil.Executor, mods ...qm.QueryMod) operationTypeQuery

Type pointed to by the foreign key.

func (*Operation) TypeG

func (o *Operation) TypeG(mods ...qm.QueryMod) operationTypeQuery

TypeG pointed to by the foreign key.

func (*Operation) Update

func (o *Operation) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Operation. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Operation) UpdateG

func (o *Operation) UpdateG(whitelist ...string) error

UpdateG a single Operation record. See Update for whitelist behavior description.

func (*Operation) UpdateGP

func (o *Operation) UpdateGP(whitelist ...string)

UpdateGP a single Operation record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Operation) UpdateP

func (o *Operation) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Operation, and panics on error. See Update for whitelist behavior description.

func (*Operation) Upsert

func (o *Operation) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Operation) UpsertG

func (o *Operation) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Operation) UpsertGP

func (o *Operation) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Operation) UpsertP

func (o *Operation) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*Operation) User

func (o *Operation) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*Operation) UserG

func (o *Operation) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

type OperationSlice

type OperationSlice []*Operation

OperationSlice is an alias for a slice of pointers to Operation. This should generally be used opposed to []Operation.

func (OperationSlice) DeleteAll

func (o OperationSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (OperationSlice) DeleteAllG

func (o OperationSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OperationSlice) DeleteAllGP

func (o OperationSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OperationSlice) DeleteAllP

func (o OperationSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OperationSlice) ReloadAll

func (o *OperationSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*OperationSlice) ReloadAllG

func (o *OperationSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*OperationSlice) ReloadAllGP

func (o *OperationSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OperationSlice) ReloadAllP

func (o *OperationSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OperationSlice) UpdateAll

func (o OperationSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (OperationSlice) UpdateAllG

func (o OperationSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OperationSlice) UpdateAllGP

func (o OperationSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OperationSlice) UpdateAllP

func (o OperationSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type OperationType

type OperationType struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`

	R *operationTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L operationTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

OperationType is an object representing the database table.

func FindOperationType

func FindOperationType(exec boil.Executor, id int64, selectCols ...string) (*OperationType, error)

FindOperationType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindOperationTypeG

func FindOperationTypeG(id int64, selectCols ...string) (*OperationType, error)

FindOperationTypeG retrieves a single record by ID.

func FindOperationTypeGP

func FindOperationTypeGP(id int64, selectCols ...string) *OperationType

FindOperationTypeGP retrieves a single record by ID, and panics on error.

func FindOperationTypeP

func FindOperationTypeP(exec boil.Executor, id int64, selectCols ...string) *OperationType

FindOperationTypeP retrieves a single record by ID with an executor, and panics on error.

func (*OperationType) AddTypeOperations

func (o *OperationType) AddTypeOperations(exec boil.Executor, insert bool, related ...*Operation) error

AddTypeOperations adds the given related objects to the existing relationships of the operation_type, optionally inserting them as new records. Appends related to o.R.TypeOperations. Sets related.R.Type appropriately.

func (*OperationType) AddTypeOperationsG

func (o *OperationType) AddTypeOperationsG(insert bool, related ...*Operation) error

AddTypeOperationsG adds the given related objects to the existing relationships of the operation_type, optionally inserting them as new records. Appends related to o.R.TypeOperations. Sets related.R.Type appropriately. Uses the global database handle.

func (*OperationType) AddTypeOperationsGP

func (o *OperationType) AddTypeOperationsGP(insert bool, related ...*Operation)

AddTypeOperationsGP adds the given related objects to the existing relationships of the operation_type, optionally inserting them as new records. Appends related to o.R.TypeOperations. Sets related.R.Type appropriately. Uses the global database handle and panics on error.

func (*OperationType) AddTypeOperationsP

func (o *OperationType) AddTypeOperationsP(exec boil.Executor, insert bool, related ...*Operation)

AddTypeOperationsP adds the given related objects to the existing relationships of the operation_type, optionally inserting them as new records. Appends related to o.R.TypeOperations. Sets related.R.Type appropriately. Panics on error.

func (*OperationType) Delete

func (o *OperationType) Delete(exec boil.Executor) error

Delete deletes a single OperationType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*OperationType) DeleteG

func (o *OperationType) DeleteG() error

DeleteG deletes a single OperationType record. DeleteG will match against the primary key column to find the record to delete.

func (*OperationType) DeleteGP

func (o *OperationType) DeleteGP()

DeleteGP deletes a single OperationType record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*OperationType) DeleteP

func (o *OperationType) DeleteP(exec boil.Executor)

DeleteP deletes a single OperationType record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*OperationType) Insert

func (o *OperationType) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*OperationType) InsertG

func (o *OperationType) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*OperationType) InsertGP

func (o *OperationType) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*OperationType) InsertP

func (o *OperationType) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*OperationType) Reload

func (o *OperationType) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*OperationType) ReloadG

func (o *OperationType) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*OperationType) ReloadGP

func (o *OperationType) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*OperationType) ReloadP

func (o *OperationType) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*OperationType) TypeOperations

func (o *OperationType) TypeOperations(exec boil.Executor, mods ...qm.QueryMod) operationQuery

TypeOperations retrieves all the operation's operations with an executor via type_id column.

func (*OperationType) TypeOperationsG

func (o *OperationType) TypeOperationsG(mods ...qm.QueryMod) operationQuery

TypeOperationsG retrieves all the operation's operations via type_id column.

func (*OperationType) Update

func (o *OperationType) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the OperationType. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*OperationType) UpdateG

func (o *OperationType) UpdateG(whitelist ...string) error

UpdateG a single OperationType record. See Update for whitelist behavior description.

func (*OperationType) UpdateGP

func (o *OperationType) UpdateGP(whitelist ...string)

UpdateGP a single OperationType record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*OperationType) UpdateP

func (o *OperationType) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the OperationType, and panics on error. See Update for whitelist behavior description.

func (*OperationType) Upsert

func (o *OperationType) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*OperationType) UpsertG

func (o *OperationType) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*OperationType) UpsertGP

func (o *OperationType) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*OperationType) UpsertP

func (o *OperationType) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type OperationTypeSlice

type OperationTypeSlice []*OperationType

OperationTypeSlice is an alias for a slice of pointers to OperationType. This should generally be used opposed to []OperationType.

func (OperationTypeSlice) DeleteAll

func (o OperationTypeSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (OperationTypeSlice) DeleteAllG

func (o OperationTypeSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (OperationTypeSlice) DeleteAllGP

func (o OperationTypeSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (OperationTypeSlice) DeleteAllP

func (o OperationTypeSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*OperationTypeSlice) ReloadAll

func (o *OperationTypeSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*OperationTypeSlice) ReloadAllG

func (o *OperationTypeSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*OperationTypeSlice) ReloadAllGP

func (o *OperationTypeSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*OperationTypeSlice) ReloadAllP

func (o *OperationTypeSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (OperationTypeSlice) UpdateAll

func (o OperationTypeSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (OperationTypeSlice) UpdateAllG

func (o OperationTypeSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (OperationTypeSlice) UpdateAllGP

func (o OperationTypeSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (OperationTypeSlice) UpdateAllP

func (o OperationTypeSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Person

type Person struct {
	ID      int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID     string      `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	Pattern null.String `boil:"pattern" json:"pattern,omitempty" toml:"pattern" yaml:"pattern,omitempty"`

	R *personR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L personL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Person is an object representing the database table.

func FindPerson

func FindPerson(exec boil.Executor, id int64, selectCols ...string) (*Person, error)

FindPerson retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindPersonG

func FindPersonG(id int64, selectCols ...string) (*Person, error)

FindPersonG retrieves a single record by ID.

func FindPersonGP

func FindPersonGP(id int64, selectCols ...string) *Person

FindPersonGP retrieves a single record by ID, and panics on error.

func FindPersonP

func FindPersonP(exec boil.Executor, id int64, selectCols ...string) *Person

FindPersonP retrieves a single record by ID with an executor, and panics on error.

func (*Person) AddContentUnitsPersons

func (o *Person) AddContentUnitsPersons(exec boil.Executor, insert bool, related ...*ContentUnitsPerson) error

AddContentUnitsPersons adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.Person appropriately.

func (*Person) AddContentUnitsPersonsG

func (o *Person) AddContentUnitsPersonsG(insert bool, related ...*ContentUnitsPerson) error

AddContentUnitsPersonsG adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.Person appropriately. Uses the global database handle.

func (*Person) AddContentUnitsPersonsGP

func (o *Person) AddContentUnitsPersonsGP(insert bool, related ...*ContentUnitsPerson)

AddContentUnitsPersonsGP adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.Person appropriately. Uses the global database handle and panics on error.

func (*Person) AddContentUnitsPersonsP

func (o *Person) AddContentUnitsPersonsP(exec boil.Executor, insert bool, related ...*ContentUnitsPerson)

AddContentUnitsPersonsP adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.ContentUnitsPersons. Sets related.R.Person appropriately. Panics on error.

func (*Person) AddPersonI18ns

func (o *Person) AddPersonI18ns(exec boil.Executor, insert bool, related ...*PersonI18n) error

AddPersonI18ns adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.Person appropriately.

func (*Person) AddPersonI18nsG

func (o *Person) AddPersonI18nsG(insert bool, related ...*PersonI18n) error

AddPersonI18nsG adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.Person appropriately. Uses the global database handle.

func (*Person) AddPersonI18nsGP

func (o *Person) AddPersonI18nsGP(insert bool, related ...*PersonI18n)

AddPersonI18nsGP adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.Person appropriately. Uses the global database handle and panics on error.

func (*Person) AddPersonI18nsP

func (o *Person) AddPersonI18nsP(exec boil.Executor, insert bool, related ...*PersonI18n)

AddPersonI18nsP adds the given related objects to the existing relationships of the person, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.Person appropriately. Panics on error.

func (*Person) ContentUnitsPersons

func (o *Person) ContentUnitsPersons(exec boil.Executor, mods ...qm.QueryMod) contentUnitsPersonQuery

ContentUnitsPersons retrieves all the content_units_person's content units persons with an executor.

func (*Person) ContentUnitsPersonsG

func (o *Person) ContentUnitsPersonsG(mods ...qm.QueryMod) contentUnitsPersonQuery

ContentUnitsPersonsG retrieves all the content_units_person's content units persons.

func (*Person) Delete

func (o *Person) Delete(exec boil.Executor) error

Delete deletes a single Person record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Person) DeleteG

func (o *Person) DeleteG() error

DeleteG deletes a single Person record. DeleteG will match against the primary key column to find the record to delete.

func (*Person) DeleteGP

func (o *Person) DeleteGP()

DeleteGP deletes a single Person record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Person) DeleteP

func (o *Person) DeleteP(exec boil.Executor)

DeleteP deletes a single Person record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Person) Insert

func (o *Person) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Person) InsertG

func (o *Person) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Person) InsertGP

func (o *Person) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Person) InsertP

func (o *Person) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Person) PersonI18ns

func (o *Person) PersonI18ns(exec boil.Executor, mods ...qm.QueryMod) personI18nQuery

PersonI18ns retrieves all the person_i18n's person i18n with an executor.

func (*Person) PersonI18nsG

func (o *Person) PersonI18nsG(mods ...qm.QueryMod) personI18nQuery

PersonI18nsG retrieves all the person_i18n's person i18n.

func (*Person) Reload

func (o *Person) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Person) ReloadG

func (o *Person) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Person) ReloadGP

func (o *Person) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Person) ReloadP

func (o *Person) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Person) Update

func (o *Person) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Person. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Person) UpdateG

func (o *Person) UpdateG(whitelist ...string) error

UpdateG a single Person record. See Update for whitelist behavior description.

func (*Person) UpdateGP

func (o *Person) UpdateGP(whitelist ...string)

UpdateGP a single Person record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Person) UpdateP

func (o *Person) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Person, and panics on error. See Update for whitelist behavior description.

func (*Person) Upsert

func (o *Person) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Person) UpsertG

func (o *Person) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Person) UpsertGP

func (o *Person) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Person) UpsertP

func (o *Person) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type PersonI18n

type PersonI18n struct {
	PersonID         int64       `boil:"person_id" json:"person_id" toml:"person_id" yaml:"person_id"`
	Language         string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	OriginalLanguage null.String `boil:"original_language" json:"original_language,omitempty" toml:"original_language" yaml:"original_language,omitempty"`
	Name             null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Description      null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	UserID           null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	CreatedAt        time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *personI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L personI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PersonI18n is an object representing the database table.

func FindPersonI18n

func FindPersonI18n(exec boil.Executor, personID int64, language string, selectCols ...string) (*PersonI18n, error)

FindPersonI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindPersonI18nG

func FindPersonI18nG(personID int64, language string, selectCols ...string) (*PersonI18n, error)

FindPersonI18nG retrieves a single record by ID.

func FindPersonI18nGP

func FindPersonI18nGP(personID int64, language string, selectCols ...string) *PersonI18n

FindPersonI18nGP retrieves a single record by ID, and panics on error.

func FindPersonI18nP

func FindPersonI18nP(exec boil.Executor, personID int64, language string, selectCols ...string) *PersonI18n

FindPersonI18nP retrieves a single record by ID with an executor, and panics on error.

func (*PersonI18n) Delete

func (o *PersonI18n) Delete(exec boil.Executor) error

Delete deletes a single PersonI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PersonI18n) DeleteG

func (o *PersonI18n) DeleteG() error

DeleteG deletes a single PersonI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*PersonI18n) DeleteGP

func (o *PersonI18n) DeleteGP()

DeleteGP deletes a single PersonI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*PersonI18n) DeleteP

func (o *PersonI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single PersonI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*PersonI18n) Insert

func (o *PersonI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*PersonI18n) InsertG

func (o *PersonI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*PersonI18n) InsertGP

func (o *PersonI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*PersonI18n) InsertP

func (o *PersonI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*PersonI18n) Person

func (o *PersonI18n) Person(exec boil.Executor, mods ...qm.QueryMod) personQuery

Person pointed to by the foreign key.

func (*PersonI18n) PersonG

func (o *PersonI18n) PersonG(mods ...qm.QueryMod) personQuery

PersonG pointed to by the foreign key.

func (*PersonI18n) Reload

func (o *PersonI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*PersonI18n) ReloadG

func (o *PersonI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*PersonI18n) ReloadGP

func (o *PersonI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*PersonI18n) ReloadP

func (o *PersonI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*PersonI18n) RemoveUser

func (o *PersonI18n) RemoveUser(exec boil.Executor, related *User) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*PersonI18n) RemoveUserG

func (o *PersonI18n) RemoveUserG(related *User) error

RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*PersonI18n) RemoveUserGP

func (o *PersonI18n) RemoveUserGP(related *User)

RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*PersonI18n) RemoveUserP

func (o *PersonI18n) RemoveUserP(exec boil.Executor, related *User)

RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*PersonI18n) SetPerson

func (o *PersonI18n) SetPerson(exec boil.Executor, insert bool, related *Person) error

SetPerson of the person_i18n to the related item. Sets o.R.Person to related. Adds o to related.R.PersonI18ns.

func (*PersonI18n) SetPersonG

func (o *PersonI18n) SetPersonG(insert bool, related *Person) error

SetPersonG of the person_i18n to the related item. Sets o.R.Person to related. Adds o to related.R.PersonI18ns. Uses the global database handle.

func (*PersonI18n) SetPersonGP

func (o *PersonI18n) SetPersonGP(insert bool, related *Person)

SetPersonGP of the person_i18n to the related item. Sets o.R.Person to related. Adds o to related.R.PersonI18ns. Uses the global database handle and panics on error.

func (*PersonI18n) SetPersonP

func (o *PersonI18n) SetPersonP(exec boil.Executor, insert bool, related *Person)

SetPersonP of the person_i18n to the related item. Sets o.R.Person to related. Adds o to related.R.PersonI18ns. Panics on error.

func (*PersonI18n) SetUser

func (o *PersonI18n) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the person_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PersonI18ns.

func (*PersonI18n) SetUserG

func (o *PersonI18n) SetUserG(insert bool, related *User) error

SetUserG of the person_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PersonI18ns. Uses the global database handle.

func (*PersonI18n) SetUserGP

func (o *PersonI18n) SetUserGP(insert bool, related *User)

SetUserGP of the person_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PersonI18ns. Uses the global database handle and panics on error.

func (*PersonI18n) SetUserP

func (o *PersonI18n) SetUserP(exec boil.Executor, insert bool, related *User)

SetUserP of the person_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PersonI18ns. Panics on error.

func (*PersonI18n) Update

func (o *PersonI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the PersonI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PersonI18n) UpdateG

func (o *PersonI18n) UpdateG(whitelist ...string) error

UpdateG a single PersonI18n record. See Update for whitelist behavior description.

func (*PersonI18n) UpdateGP

func (o *PersonI18n) UpdateGP(whitelist ...string)

UpdateGP a single PersonI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*PersonI18n) UpdateP

func (o *PersonI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the PersonI18n, and panics on error. See Update for whitelist behavior description.

func (*PersonI18n) Upsert

func (o *PersonI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*PersonI18n) UpsertG

func (o *PersonI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*PersonI18n) UpsertGP

func (o *PersonI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*PersonI18n) UpsertP

func (o *PersonI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*PersonI18n) User

func (o *PersonI18n) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*PersonI18n) UserG

func (o *PersonI18n) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

type PersonI18nSlice

type PersonI18nSlice []*PersonI18n

PersonI18nSlice is an alias for a slice of pointers to PersonI18n. This should generally be used opposed to []PersonI18n.

func (PersonI18nSlice) DeleteAll

func (o PersonI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (PersonI18nSlice) DeleteAllG

func (o PersonI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (PersonI18nSlice) DeleteAllGP

func (o PersonI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (PersonI18nSlice) DeleteAllP

func (o PersonI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*PersonI18nSlice) ReloadAll

func (o *PersonI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PersonI18nSlice) ReloadAllG

func (o *PersonI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PersonI18nSlice) ReloadAllGP

func (o *PersonI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*PersonI18nSlice) ReloadAllP

func (o *PersonI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (PersonI18nSlice) UpdateAll

func (o PersonI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (PersonI18nSlice) UpdateAllG

func (o PersonI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (PersonI18nSlice) UpdateAllGP

func (o PersonI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (PersonI18nSlice) UpdateAllP

func (o PersonI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type PersonSlice

type PersonSlice []*Person

PersonSlice is an alias for a slice of pointers to Person. This should generally be used opposed to []Person.

func (PersonSlice) DeleteAll

func (o PersonSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (PersonSlice) DeleteAllG

func (o PersonSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (PersonSlice) DeleteAllGP

func (o PersonSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (PersonSlice) DeleteAllP

func (o PersonSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*PersonSlice) ReloadAll

func (o *PersonSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PersonSlice) ReloadAllG

func (o *PersonSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PersonSlice) ReloadAllGP

func (o *PersonSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*PersonSlice) ReloadAllP

func (o *PersonSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (PersonSlice) UpdateAll

func (o PersonSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (PersonSlice) UpdateAllG

func (o PersonSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (PersonSlice) UpdateAllGP

func (o PersonSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (PersonSlice) UpdateAllP

func (o PersonSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Publisher

type Publisher struct {
	ID      int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID     string      `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	Pattern null.String `boil:"pattern" json:"pattern,omitempty" toml:"pattern" yaml:"pattern,omitempty"`

	R *publisherR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L publisherL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Publisher is an object representing the database table.

func FindPublisher

func FindPublisher(exec boil.Executor, id int64, selectCols ...string) (*Publisher, error)

FindPublisher retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindPublisherG

func FindPublisherG(id int64, selectCols ...string) (*Publisher, error)

FindPublisherG retrieves a single record by ID.

func FindPublisherGP

func FindPublisherGP(id int64, selectCols ...string) *Publisher

FindPublisherGP retrieves a single record by ID, and panics on error.

func FindPublisherP

func FindPublisherP(exec boil.Executor, id int64, selectCols ...string) *Publisher

FindPublisherP retrieves a single record by ID with an executor, and panics on error.

func (*Publisher) AddContentUnits

func (o *Publisher) AddContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

AddContentUnits adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Publishers appropriately.

func (*Publisher) AddContentUnitsG

func (o *Publisher) AddContentUnitsG(insert bool, related ...*ContentUnit) error

AddContentUnitsG adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Publishers appropriately. Uses the global database handle.

func (*Publisher) AddContentUnitsGP

func (o *Publisher) AddContentUnitsGP(insert bool, related ...*ContentUnit)

AddContentUnitsGP adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Publishers appropriately. Uses the global database handle and panics on error.

func (*Publisher) AddContentUnitsP

func (o *Publisher) AddContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

AddContentUnitsP adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Publishers appropriately. Panics on error.

func (*Publisher) AddPublisherI18ns

func (o *Publisher) AddPublisherI18ns(exec boil.Executor, insert bool, related ...*PublisherI18n) error

AddPublisherI18ns adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.Publisher appropriately.

func (*Publisher) AddPublisherI18nsG

func (o *Publisher) AddPublisherI18nsG(insert bool, related ...*PublisherI18n) error

AddPublisherI18nsG adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.Publisher appropriately. Uses the global database handle.

func (*Publisher) AddPublisherI18nsGP

func (o *Publisher) AddPublisherI18nsGP(insert bool, related ...*PublisherI18n)

AddPublisherI18nsGP adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.Publisher appropriately. Uses the global database handle and panics on error.

func (*Publisher) AddPublisherI18nsP

func (o *Publisher) AddPublisherI18nsP(exec boil.Executor, insert bool, related ...*PublisherI18n)

AddPublisherI18nsP adds the given related objects to the existing relationships of the publisher, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.Publisher appropriately. Panics on error.

func (*Publisher) ContentUnits

func (o *Publisher) ContentUnits(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnits retrieves all the content_unit's content units with an executor.

func (*Publisher) ContentUnitsG

func (o *Publisher) ContentUnitsG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitsG retrieves all the content_unit's content units.

func (*Publisher) Delete

func (o *Publisher) Delete(exec boil.Executor) error

Delete deletes a single Publisher record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Publisher) DeleteG

func (o *Publisher) DeleteG() error

DeleteG deletes a single Publisher record. DeleteG will match against the primary key column to find the record to delete.

func (*Publisher) DeleteGP

func (o *Publisher) DeleteGP()

DeleteGP deletes a single Publisher record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Publisher) DeleteP

func (o *Publisher) DeleteP(exec boil.Executor)

DeleteP deletes a single Publisher record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Publisher) Insert

func (o *Publisher) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Publisher) InsertG

func (o *Publisher) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Publisher) InsertGP

func (o *Publisher) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Publisher) InsertP

func (o *Publisher) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Publisher) PublisherI18ns

func (o *Publisher) PublisherI18ns(exec boil.Executor, mods ...qm.QueryMod) publisherI18nQuery

PublisherI18ns retrieves all the publisher_i18n's publisher i18n with an executor.

func (*Publisher) PublisherI18nsG

func (o *Publisher) PublisherI18nsG(mods ...qm.QueryMod) publisherI18nQuery

PublisherI18nsG retrieves all the publisher_i18n's publisher i18n.

func (*Publisher) Reload

func (o *Publisher) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Publisher) ReloadG

func (o *Publisher) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Publisher) ReloadGP

func (o *Publisher) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Publisher) ReloadP

func (o *Publisher) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Publisher) RemoveContentUnits

func (o *Publisher) RemoveContentUnits(exec boil.Executor, related ...*ContentUnit) error

RemoveContentUnits relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Publishers.

func (*Publisher) RemoveContentUnitsG

func (o *Publisher) RemoveContentUnitsG(related ...*ContentUnit) error

RemoveContentUnitsG relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Publishers. Uses the global database handle.

func (*Publisher) RemoveContentUnitsGP

func (o *Publisher) RemoveContentUnitsGP(related ...*ContentUnit)

RemoveContentUnitsGP relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Publishers. Uses the global database handle and panics on error.

func (*Publisher) RemoveContentUnitsP

func (o *Publisher) RemoveContentUnitsP(exec boil.Executor, related ...*ContentUnit)

RemoveContentUnitsP relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Publishers. Panics on error.

func (*Publisher) SetContentUnits

func (o *Publisher) SetContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

SetContentUnits removes all previously related items of the publisher replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Publishers's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Publishers's ContentUnits accordingly.

func (*Publisher) SetContentUnitsG

func (o *Publisher) SetContentUnitsG(insert bool, related ...*ContentUnit) error

SetContentUnitsG removes all previously related items of the publisher replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Publishers's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Publishers's ContentUnits accordingly. Uses the global database handle.

func (*Publisher) SetContentUnitsGP

func (o *Publisher) SetContentUnitsGP(insert bool, related ...*ContentUnit)

SetContentUnitsGP removes all previously related items of the publisher replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Publishers's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Publishers's ContentUnits accordingly. Uses the global database handle and panics on error.

func (*Publisher) SetContentUnitsP

func (o *Publisher) SetContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

SetContentUnitsP removes all previously related items of the publisher replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Publishers's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Publishers's ContentUnits accordingly. Panics on error.

func (*Publisher) Update

func (o *Publisher) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Publisher. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Publisher) UpdateG

func (o *Publisher) UpdateG(whitelist ...string) error

UpdateG a single Publisher record. See Update for whitelist behavior description.

func (*Publisher) UpdateGP

func (o *Publisher) UpdateGP(whitelist ...string)

UpdateGP a single Publisher record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Publisher) UpdateP

func (o *Publisher) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Publisher, and panics on error. See Update for whitelist behavior description.

func (*Publisher) Upsert

func (o *Publisher) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Publisher) UpsertG

func (o *Publisher) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Publisher) UpsertGP

func (o *Publisher) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Publisher) UpsertP

func (o *Publisher) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type PublisherI18n

type PublisherI18n struct {
	PublisherID      int64       `boil:"publisher_id" json:"publisher_id" toml:"publisher_id" yaml:"publisher_id"`
	Language         string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	OriginalLanguage null.String `boil:"original_language" json:"original_language,omitempty" toml:"original_language" yaml:"original_language,omitempty"`
	Name             null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Description      null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	UserID           null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	CreatedAt        time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *publisherI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L publisherI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

PublisherI18n is an object representing the database table.

func FindPublisherI18n

func FindPublisherI18n(exec boil.Executor, publisherID int64, language string, selectCols ...string) (*PublisherI18n, error)

FindPublisherI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindPublisherI18nG

func FindPublisherI18nG(publisherID int64, language string, selectCols ...string) (*PublisherI18n, error)

FindPublisherI18nG retrieves a single record by ID.

func FindPublisherI18nGP

func FindPublisherI18nGP(publisherID int64, language string, selectCols ...string) *PublisherI18n

FindPublisherI18nGP retrieves a single record by ID, and panics on error.

func FindPublisherI18nP

func FindPublisherI18nP(exec boil.Executor, publisherID int64, language string, selectCols ...string) *PublisherI18n

FindPublisherI18nP retrieves a single record by ID with an executor, and panics on error.

func (*PublisherI18n) Delete

func (o *PublisherI18n) Delete(exec boil.Executor) error

Delete deletes a single PublisherI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*PublisherI18n) DeleteG

func (o *PublisherI18n) DeleteG() error

DeleteG deletes a single PublisherI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*PublisherI18n) DeleteGP

func (o *PublisherI18n) DeleteGP()

DeleteGP deletes a single PublisherI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*PublisherI18n) DeleteP

func (o *PublisherI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single PublisherI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*PublisherI18n) Insert

func (o *PublisherI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*PublisherI18n) InsertG

func (o *PublisherI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*PublisherI18n) InsertGP

func (o *PublisherI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*PublisherI18n) InsertP

func (o *PublisherI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*PublisherI18n) Publisher

func (o *PublisherI18n) Publisher(exec boil.Executor, mods ...qm.QueryMod) publisherQuery

Publisher pointed to by the foreign key.

func (*PublisherI18n) PublisherG

func (o *PublisherI18n) PublisherG(mods ...qm.QueryMod) publisherQuery

PublisherG pointed to by the foreign key.

func (*PublisherI18n) Reload

func (o *PublisherI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*PublisherI18n) ReloadG

func (o *PublisherI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*PublisherI18n) ReloadGP

func (o *PublisherI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*PublisherI18n) ReloadP

func (o *PublisherI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*PublisherI18n) RemoveUser

func (o *PublisherI18n) RemoveUser(exec boil.Executor, related *User) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*PublisherI18n) RemoveUserG

func (o *PublisherI18n) RemoveUserG(related *User) error

RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*PublisherI18n) RemoveUserGP

func (o *PublisherI18n) RemoveUserGP(related *User)

RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*PublisherI18n) RemoveUserP

func (o *PublisherI18n) RemoveUserP(exec boil.Executor, related *User)

RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*PublisherI18n) SetPublisher

func (o *PublisherI18n) SetPublisher(exec boil.Executor, insert bool, related *Publisher) error

SetPublisher of the publisher_i18n to the related item. Sets o.R.Publisher to related. Adds o to related.R.PublisherI18ns.

func (*PublisherI18n) SetPublisherG

func (o *PublisherI18n) SetPublisherG(insert bool, related *Publisher) error

SetPublisherG of the publisher_i18n to the related item. Sets o.R.Publisher to related. Adds o to related.R.PublisherI18ns. Uses the global database handle.

func (*PublisherI18n) SetPublisherGP

func (o *PublisherI18n) SetPublisherGP(insert bool, related *Publisher)

SetPublisherGP of the publisher_i18n to the related item. Sets o.R.Publisher to related. Adds o to related.R.PublisherI18ns. Uses the global database handle and panics on error.

func (*PublisherI18n) SetPublisherP

func (o *PublisherI18n) SetPublisherP(exec boil.Executor, insert bool, related *Publisher)

SetPublisherP of the publisher_i18n to the related item. Sets o.R.Publisher to related. Adds o to related.R.PublisherI18ns. Panics on error.

func (*PublisherI18n) SetUser

func (o *PublisherI18n) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the publisher_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PublisherI18ns.

func (*PublisherI18n) SetUserG

func (o *PublisherI18n) SetUserG(insert bool, related *User) error

SetUserG of the publisher_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PublisherI18ns. Uses the global database handle.

func (*PublisherI18n) SetUserGP

func (o *PublisherI18n) SetUserGP(insert bool, related *User)

SetUserGP of the publisher_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PublisherI18ns. Uses the global database handle and panics on error.

func (*PublisherI18n) SetUserP

func (o *PublisherI18n) SetUserP(exec boil.Executor, insert bool, related *User)

SetUserP of the publisher_i18n to the related item. Sets o.R.User to related. Adds o to related.R.PublisherI18ns. Panics on error.

func (*PublisherI18n) Update

func (o *PublisherI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the PublisherI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*PublisherI18n) UpdateG

func (o *PublisherI18n) UpdateG(whitelist ...string) error

UpdateG a single PublisherI18n record. See Update for whitelist behavior description.

func (*PublisherI18n) UpdateGP

func (o *PublisherI18n) UpdateGP(whitelist ...string)

UpdateGP a single PublisherI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*PublisherI18n) UpdateP

func (o *PublisherI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the PublisherI18n, and panics on error. See Update for whitelist behavior description.

func (*PublisherI18n) Upsert

func (o *PublisherI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*PublisherI18n) UpsertG

func (o *PublisherI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*PublisherI18n) UpsertGP

func (o *PublisherI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*PublisherI18n) UpsertP

func (o *PublisherI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*PublisherI18n) User

func (o *PublisherI18n) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*PublisherI18n) UserG

func (o *PublisherI18n) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

type PublisherI18nSlice

type PublisherI18nSlice []*PublisherI18n

PublisherI18nSlice is an alias for a slice of pointers to PublisherI18n. This should generally be used opposed to []PublisherI18n.

func (PublisherI18nSlice) DeleteAll

func (o PublisherI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (PublisherI18nSlice) DeleteAllG

func (o PublisherI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (PublisherI18nSlice) DeleteAllGP

func (o PublisherI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (PublisherI18nSlice) DeleteAllP

func (o PublisherI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*PublisherI18nSlice) ReloadAll

func (o *PublisherI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PublisherI18nSlice) ReloadAllG

func (o *PublisherI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PublisherI18nSlice) ReloadAllGP

func (o *PublisherI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*PublisherI18nSlice) ReloadAllP

func (o *PublisherI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (PublisherI18nSlice) UpdateAll

func (o PublisherI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (PublisherI18nSlice) UpdateAllG

func (o PublisherI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (PublisherI18nSlice) UpdateAllGP

func (o PublisherI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (PublisherI18nSlice) UpdateAllP

func (o PublisherI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type PublisherSlice

type PublisherSlice []*Publisher

PublisherSlice is an alias for a slice of pointers to Publisher. This should generally be used opposed to []Publisher.

func (PublisherSlice) DeleteAll

func (o PublisherSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (PublisherSlice) DeleteAllG

func (o PublisherSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (PublisherSlice) DeleteAllGP

func (o PublisherSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (PublisherSlice) DeleteAllP

func (o PublisherSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*PublisherSlice) ReloadAll

func (o *PublisherSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PublisherSlice) ReloadAllG

func (o *PublisherSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*PublisherSlice) ReloadAllGP

func (o *PublisherSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*PublisherSlice) ReloadAllP

func (o *PublisherSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (PublisherSlice) UpdateAll

func (o PublisherSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (PublisherSlice) UpdateAllG

func (o PublisherSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (PublisherSlice) UpdateAllGP

func (o PublisherSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (PublisherSlice) UpdateAllP

func (o PublisherSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Source

type Source struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	UID         string      `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	ParentID    null.Int64  `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"`
	Pattern     null.String `boil:"pattern" json:"pattern,omitempty" toml:"pattern" yaml:"pattern,omitempty"`
	TypeID      int64       `boil:"type_id" json:"type_id" toml:"type_id" yaml:"type_id"`
	Position    null.Int    `boil:"position" json:"position,omitempty" toml:"position" yaml:"position,omitempty"`
	Name        string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	Properties  null.JSON   `boil:"properties" json:"properties,omitempty" toml:"properties" yaml:"properties,omitempty"`

	R *sourceR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L sourceL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Source is an object representing the database table.

func FindSource

func FindSource(exec boil.Executor, id int64, selectCols ...string) (*Source, error)

FindSource retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindSourceG

func FindSourceG(id int64, selectCols ...string) (*Source, error)

FindSourceG retrieves a single record by ID.

func FindSourceGP

func FindSourceGP(id int64, selectCols ...string) *Source

FindSourceGP retrieves a single record by ID, and panics on error.

func FindSourceP

func FindSourceP(exec boil.Executor, id int64, selectCols ...string) *Source

FindSourceP retrieves a single record by ID with an executor, and panics on error.

func (*Source) AddAuthors

func (o *Source) AddAuthors(exec boil.Executor, insert bool, related ...*Author) error

AddAuthors adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.Authors. Sets related.R.Sources appropriately.

func (*Source) AddAuthorsG

func (o *Source) AddAuthorsG(insert bool, related ...*Author) error

AddAuthorsG adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.Authors. Sets related.R.Sources appropriately. Uses the global database handle.

func (*Source) AddAuthorsGP

func (o *Source) AddAuthorsGP(insert bool, related ...*Author)

AddAuthorsGP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.Authors. Sets related.R.Sources appropriately. Uses the global database handle and panics on error.

func (*Source) AddAuthorsP

func (o *Source) AddAuthorsP(exec boil.Executor, insert bool, related ...*Author)

AddAuthorsP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.Authors. Sets related.R.Sources appropriately. Panics on error.

func (*Source) AddContentUnits

func (o *Source) AddContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

AddContentUnits adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Sources appropriately.

func (*Source) AddContentUnitsG

func (o *Source) AddContentUnitsG(insert bool, related ...*ContentUnit) error

AddContentUnitsG adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Sources appropriately. Uses the global database handle.

func (*Source) AddContentUnitsGP

func (o *Source) AddContentUnitsGP(insert bool, related ...*ContentUnit)

AddContentUnitsGP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Sources appropriately. Uses the global database handle and panics on error.

func (*Source) AddContentUnitsP

func (o *Source) AddContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

AddContentUnitsP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Sources appropriately. Panics on error.

func (*Source) AddParentSources

func (o *Source) AddParentSources(exec boil.Executor, insert bool, related ...*Source) error

AddParentSources adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ParentSources. Sets related.R.Parent appropriately.

func (*Source) AddParentSourcesG

func (o *Source) AddParentSourcesG(insert bool, related ...*Source) error

AddParentSourcesG adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ParentSources. Sets related.R.Parent appropriately. Uses the global database handle.

func (*Source) AddParentSourcesGP

func (o *Source) AddParentSourcesGP(insert bool, related ...*Source)

AddParentSourcesGP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ParentSources. Sets related.R.Parent appropriately. Uses the global database handle and panics on error.

func (*Source) AddParentSourcesP

func (o *Source) AddParentSourcesP(exec boil.Executor, insert bool, related ...*Source)

AddParentSourcesP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.ParentSources. Sets related.R.Parent appropriately. Panics on error.

func (*Source) AddSourceI18ns

func (o *Source) AddSourceI18ns(exec boil.Executor, insert bool, related ...*SourceI18n) error

AddSourceI18ns adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.SourceI18ns. Sets related.R.Source appropriately.

func (*Source) AddSourceI18nsG

func (o *Source) AddSourceI18nsG(insert bool, related ...*SourceI18n) error

AddSourceI18nsG adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.SourceI18ns. Sets related.R.Source appropriately. Uses the global database handle.

func (*Source) AddSourceI18nsGP

func (o *Source) AddSourceI18nsGP(insert bool, related ...*SourceI18n)

AddSourceI18nsGP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.SourceI18ns. Sets related.R.Source appropriately. Uses the global database handle and panics on error.

func (*Source) AddSourceI18nsP

func (o *Source) AddSourceI18nsP(exec boil.Executor, insert bool, related ...*SourceI18n)

AddSourceI18nsP adds the given related objects to the existing relationships of the source, optionally inserting them as new records. Appends related to o.R.SourceI18ns. Sets related.R.Source appropriately. Panics on error.

func (*Source) Authors

func (o *Source) Authors(exec boil.Executor, mods ...qm.QueryMod) authorQuery

Authors retrieves all the author's authors with an executor.

func (*Source) AuthorsG

func (o *Source) AuthorsG(mods ...qm.QueryMod) authorQuery

AuthorsG retrieves all the author's authors.

func (*Source) ContentUnits

func (o *Source) ContentUnits(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnits retrieves all the content_unit's content units with an executor.

func (*Source) ContentUnitsG

func (o *Source) ContentUnitsG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitsG retrieves all the content_unit's content units.

func (*Source) Delete

func (o *Source) Delete(exec boil.Executor) error

Delete deletes a single Source record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Source) DeleteG

func (o *Source) DeleteG() error

DeleteG deletes a single Source record. DeleteG will match against the primary key column to find the record to delete.

func (*Source) DeleteGP

func (o *Source) DeleteGP()

DeleteGP deletes a single Source record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Source) DeleteP

func (o *Source) DeleteP(exec boil.Executor)

DeleteP deletes a single Source record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Source) Insert

func (o *Source) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Source) InsertG

func (o *Source) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Source) InsertGP

func (o *Source) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Source) InsertP

func (o *Source) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Source) Parent

func (o *Source) Parent(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

Parent pointed to by the foreign key.

func (*Source) ParentG

func (o *Source) ParentG(mods ...qm.QueryMod) sourceQuery

ParentG pointed to by the foreign key.

func (*Source) ParentSources

func (o *Source) ParentSources(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

ParentSources retrieves all the source's sources with an executor via parent_id column.

func (*Source) ParentSourcesG

func (o *Source) ParentSourcesG(mods ...qm.QueryMod) sourceQuery

ParentSourcesG retrieves all the source's sources via parent_id column.

func (*Source) Reload

func (o *Source) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Source) ReloadG

func (o *Source) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Source) ReloadGP

func (o *Source) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Source) ReloadP

func (o *Source) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Source) RemoveAuthors

func (o *Source) RemoveAuthors(exec boil.Executor, related ...*Author) error

RemoveAuthors relationships from objects passed in. Removes related items from R.Authors (uses pointer comparison, removal does not keep order) Sets related.R.Sources.

func (*Source) RemoveAuthorsG

func (o *Source) RemoveAuthorsG(related ...*Author) error

RemoveAuthorsG relationships from objects passed in. Removes related items from R.Authors (uses pointer comparison, removal does not keep order) Sets related.R.Sources. Uses the global database handle.

func (*Source) RemoveAuthorsGP

func (o *Source) RemoveAuthorsGP(related ...*Author)

RemoveAuthorsGP relationships from objects passed in. Removes related items from R.Authors (uses pointer comparison, removal does not keep order) Sets related.R.Sources. Uses the global database handle and panics on error.

func (*Source) RemoveAuthorsP

func (o *Source) RemoveAuthorsP(exec boil.Executor, related ...*Author)

RemoveAuthorsP relationships from objects passed in. Removes related items from R.Authors (uses pointer comparison, removal does not keep order) Sets related.R.Sources. Panics on error.

func (*Source) RemoveContentUnits

func (o *Source) RemoveContentUnits(exec boil.Executor, related ...*ContentUnit) error

RemoveContentUnits relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Sources.

func (*Source) RemoveContentUnitsG

func (o *Source) RemoveContentUnitsG(related ...*ContentUnit) error

RemoveContentUnitsG relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Sources. Uses the global database handle.

func (*Source) RemoveContentUnitsGP

func (o *Source) RemoveContentUnitsGP(related ...*ContentUnit)

RemoveContentUnitsGP relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Sources. Uses the global database handle and panics on error.

func (*Source) RemoveContentUnitsP

func (o *Source) RemoveContentUnitsP(exec boil.Executor, related ...*ContentUnit)

RemoveContentUnitsP relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Sources. Panics on error.

func (*Source) RemoveParent

func (o *Source) RemoveParent(exec boil.Executor, related *Source) error

RemoveParent relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Source) RemoveParentG

func (o *Source) RemoveParentG(related *Source) error

RemoveParentG relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Source) RemoveParentGP

func (o *Source) RemoveParentGP(related *Source)

RemoveParentGP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Source) RemoveParentP

func (o *Source) RemoveParentP(exec boil.Executor, related *Source)

RemoveParentP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Source) RemoveParentSources

func (o *Source) RemoveParentSources(exec boil.Executor, related ...*Source) error

RemoveParentSources relationships from objects passed in. Removes related items from R.ParentSources (uses pointer comparison, removal does not keep order) Sets related.R.Parent.

func (*Source) RemoveParentSourcesG

func (o *Source) RemoveParentSourcesG(related ...*Source) error

RemoveParentSourcesG relationships from objects passed in. Removes related items from R.ParentSources (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle.

func (*Source) RemoveParentSourcesGP

func (o *Source) RemoveParentSourcesGP(related ...*Source)

RemoveParentSourcesGP relationships from objects passed in. Removes related items from R.ParentSources (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle and panics on error.

func (*Source) RemoveParentSourcesP

func (o *Source) RemoveParentSourcesP(exec boil.Executor, related ...*Source)

RemoveParentSourcesP relationships from objects passed in. Removes related items from R.ParentSources (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Panics on error.

func (*Source) SetAuthors

func (o *Source) SetAuthors(exec boil.Executor, insert bool, related ...*Author) error

SetAuthors removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's Authors accordingly. Replaces o.R.Authors with related. Sets related.R.Sources's Authors accordingly.

func (*Source) SetAuthorsG

func (o *Source) SetAuthorsG(insert bool, related ...*Author) error

SetAuthorsG removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's Authors accordingly. Replaces o.R.Authors with related. Sets related.R.Sources's Authors accordingly. Uses the global database handle.

func (*Source) SetAuthorsGP

func (o *Source) SetAuthorsGP(insert bool, related ...*Author)

SetAuthorsGP removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's Authors accordingly. Replaces o.R.Authors with related. Sets related.R.Sources's Authors accordingly. Uses the global database handle and panics on error.

func (*Source) SetAuthorsP

func (o *Source) SetAuthorsP(exec boil.Executor, insert bool, related ...*Author)

SetAuthorsP removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's Authors accordingly. Replaces o.R.Authors with related. Sets related.R.Sources's Authors accordingly. Panics on error.

func (*Source) SetContentUnits

func (o *Source) SetContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

SetContentUnits removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Sources's ContentUnits accordingly.

func (*Source) SetContentUnitsG

func (o *Source) SetContentUnitsG(insert bool, related ...*ContentUnit) error

SetContentUnitsG removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Sources's ContentUnits accordingly. Uses the global database handle.

func (*Source) SetContentUnitsGP

func (o *Source) SetContentUnitsGP(insert bool, related ...*ContentUnit)

SetContentUnitsGP removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Sources's ContentUnits accordingly. Uses the global database handle and panics on error.

func (*Source) SetContentUnitsP

func (o *Source) SetContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

SetContentUnitsP removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Sources's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Sources's ContentUnits accordingly. Panics on error.

func (*Source) SetParent

func (o *Source) SetParent(exec boil.Executor, insert bool, related *Source) error

SetParent of the source to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentSources.

func (*Source) SetParentG

func (o *Source) SetParentG(insert bool, related *Source) error

SetParentG of the source to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentSources. Uses the global database handle.

func (*Source) SetParentGP

func (o *Source) SetParentGP(insert bool, related *Source)

SetParentGP of the source to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentSources. Uses the global database handle and panics on error.

func (*Source) SetParentP

func (o *Source) SetParentP(exec boil.Executor, insert bool, related *Source)

SetParentP of the source to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentSources. Panics on error.

func (*Source) SetParentSources

func (o *Source) SetParentSources(exec boil.Executor, insert bool, related ...*Source) error

SetParentSources removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentSources accordingly. Replaces o.R.ParentSources with related. Sets related.R.Parent's ParentSources accordingly.

func (*Source) SetParentSourcesG

func (o *Source) SetParentSourcesG(insert bool, related ...*Source) error

SetParentSourcesG removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentSources accordingly. Replaces o.R.ParentSources with related. Sets related.R.Parent's ParentSources accordingly. Uses the global database handle.

func (*Source) SetParentSourcesGP

func (o *Source) SetParentSourcesGP(insert bool, related ...*Source)

SetParentSourcesGP removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentSources accordingly. Replaces o.R.ParentSources with related. Sets related.R.Parent's ParentSources accordingly. Uses the global database handle and panics on error.

func (*Source) SetParentSourcesP

func (o *Source) SetParentSourcesP(exec boil.Executor, insert bool, related ...*Source)

SetParentSourcesP removes all previously related items of the source replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentSources accordingly. Replaces o.R.ParentSources with related. Sets related.R.Parent's ParentSources accordingly. Panics on error.

func (*Source) SetType

func (o *Source) SetType(exec boil.Executor, insert bool, related *SourceType) error

SetType of the source to the related item. Sets o.R.Type to related. Adds o to related.R.TypeSources.

func (*Source) SetTypeG

func (o *Source) SetTypeG(insert bool, related *SourceType) error

SetTypeG of the source to the related item. Sets o.R.Type to related. Adds o to related.R.TypeSources. Uses the global database handle.

func (*Source) SetTypeGP

func (o *Source) SetTypeGP(insert bool, related *SourceType)

SetTypeGP of the source to the related item. Sets o.R.Type to related. Adds o to related.R.TypeSources. Uses the global database handle and panics on error.

func (*Source) SetTypeP

func (o *Source) SetTypeP(exec boil.Executor, insert bool, related *SourceType)

SetTypeP of the source to the related item. Sets o.R.Type to related. Adds o to related.R.TypeSources. Panics on error.

func (*Source) SourceI18ns

func (o *Source) SourceI18ns(exec boil.Executor, mods ...qm.QueryMod) sourceI18nQuery

SourceI18ns retrieves all the source_i18n's source i18n with an executor.

func (*Source) SourceI18nsG

func (o *Source) SourceI18nsG(mods ...qm.QueryMod) sourceI18nQuery

SourceI18nsG retrieves all the source_i18n's source i18n.

func (*Source) Type

func (o *Source) Type(exec boil.Executor, mods ...qm.QueryMod) sourceTypeQuery

Type pointed to by the foreign key.

func (*Source) TypeG

func (o *Source) TypeG(mods ...qm.QueryMod) sourceTypeQuery

TypeG pointed to by the foreign key.

func (*Source) Update

func (o *Source) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Source. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Source) UpdateG

func (o *Source) UpdateG(whitelist ...string) error

UpdateG a single Source record. See Update for whitelist behavior description.

func (*Source) UpdateGP

func (o *Source) UpdateGP(whitelist ...string)

UpdateGP a single Source record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Source) UpdateP

func (o *Source) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Source, and panics on error. See Update for whitelist behavior description.

func (*Source) Upsert

func (o *Source) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Source) UpsertG

func (o *Source) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Source) UpsertGP

func (o *Source) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Source) UpsertP

func (o *Source) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type SourceI18n

type SourceI18n struct {
	SourceID    int64       `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"`
	Language    string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	Name        null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	CreatedAt   time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *sourceI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L sourceI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SourceI18n is an object representing the database table.

func FindSourceI18n

func FindSourceI18n(exec boil.Executor, sourceID int64, language string, selectCols ...string) (*SourceI18n, error)

FindSourceI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindSourceI18nG

func FindSourceI18nG(sourceID int64, language string, selectCols ...string) (*SourceI18n, error)

FindSourceI18nG retrieves a single record by ID.

func FindSourceI18nGP

func FindSourceI18nGP(sourceID int64, language string, selectCols ...string) *SourceI18n

FindSourceI18nGP retrieves a single record by ID, and panics on error.

func FindSourceI18nP

func FindSourceI18nP(exec boil.Executor, sourceID int64, language string, selectCols ...string) *SourceI18n

FindSourceI18nP retrieves a single record by ID with an executor, and panics on error.

func (*SourceI18n) Delete

func (o *SourceI18n) Delete(exec boil.Executor) error

Delete deletes a single SourceI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*SourceI18n) DeleteG

func (o *SourceI18n) DeleteG() error

DeleteG deletes a single SourceI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*SourceI18n) DeleteGP

func (o *SourceI18n) DeleteGP()

DeleteGP deletes a single SourceI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*SourceI18n) DeleteP

func (o *SourceI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single SourceI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*SourceI18n) Insert

func (o *SourceI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*SourceI18n) InsertG

func (o *SourceI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*SourceI18n) InsertGP

func (o *SourceI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*SourceI18n) InsertP

func (o *SourceI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*SourceI18n) Reload

func (o *SourceI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*SourceI18n) ReloadG

func (o *SourceI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*SourceI18n) ReloadGP

func (o *SourceI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*SourceI18n) ReloadP

func (o *SourceI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*SourceI18n) SetSource

func (o *SourceI18n) SetSource(exec boil.Executor, insert bool, related *Source) error

SetSource of the source_i18n to the related item. Sets o.R.Source to related. Adds o to related.R.SourceI18ns.

func (*SourceI18n) SetSourceG

func (o *SourceI18n) SetSourceG(insert bool, related *Source) error

SetSourceG of the source_i18n to the related item. Sets o.R.Source to related. Adds o to related.R.SourceI18ns. Uses the global database handle.

func (*SourceI18n) SetSourceGP

func (o *SourceI18n) SetSourceGP(insert bool, related *Source)

SetSourceGP of the source_i18n to the related item. Sets o.R.Source to related. Adds o to related.R.SourceI18ns. Uses the global database handle and panics on error.

func (*SourceI18n) SetSourceP

func (o *SourceI18n) SetSourceP(exec boil.Executor, insert bool, related *Source)

SetSourceP of the source_i18n to the related item. Sets o.R.Source to related. Adds o to related.R.SourceI18ns. Panics on error.

func (*SourceI18n) Source

func (o *SourceI18n) Source(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

Source pointed to by the foreign key.

func (*SourceI18n) SourceG

func (o *SourceI18n) SourceG(mods ...qm.QueryMod) sourceQuery

SourceG pointed to by the foreign key.

func (*SourceI18n) Update

func (o *SourceI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the SourceI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*SourceI18n) UpdateG

func (o *SourceI18n) UpdateG(whitelist ...string) error

UpdateG a single SourceI18n record. See Update for whitelist behavior description.

func (*SourceI18n) UpdateGP

func (o *SourceI18n) UpdateGP(whitelist ...string)

UpdateGP a single SourceI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*SourceI18n) UpdateP

func (o *SourceI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the SourceI18n, and panics on error. See Update for whitelist behavior description.

func (*SourceI18n) Upsert

func (o *SourceI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*SourceI18n) UpsertG

func (o *SourceI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*SourceI18n) UpsertGP

func (o *SourceI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*SourceI18n) UpsertP

func (o *SourceI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type SourceI18nSlice

type SourceI18nSlice []*SourceI18n

SourceI18nSlice is an alias for a slice of pointers to SourceI18n. This should generally be used opposed to []SourceI18n.

func (SourceI18nSlice) DeleteAll

func (o SourceI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (SourceI18nSlice) DeleteAllG

func (o SourceI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (SourceI18nSlice) DeleteAllGP

func (o SourceI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (SourceI18nSlice) DeleteAllP

func (o SourceI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*SourceI18nSlice) ReloadAll

func (o *SourceI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceI18nSlice) ReloadAllG

func (o *SourceI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceI18nSlice) ReloadAllGP

func (o *SourceI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*SourceI18nSlice) ReloadAllP

func (o *SourceI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (SourceI18nSlice) UpdateAll

func (o SourceI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (SourceI18nSlice) UpdateAllG

func (o SourceI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (SourceI18nSlice) UpdateAllGP

func (o SourceI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (SourceI18nSlice) UpdateAllP

func (o SourceI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type SourceSlice

type SourceSlice []*Source

SourceSlice is an alias for a slice of pointers to Source. This should generally be used opposed to []Source.

func (SourceSlice) DeleteAll

func (o SourceSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (SourceSlice) DeleteAllG

func (o SourceSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (SourceSlice) DeleteAllGP

func (o SourceSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (SourceSlice) DeleteAllP

func (o SourceSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*SourceSlice) ReloadAll

func (o *SourceSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceSlice) ReloadAllG

func (o *SourceSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceSlice) ReloadAllGP

func (o *SourceSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*SourceSlice) ReloadAllP

func (o *SourceSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (SourceSlice) UpdateAll

func (o SourceSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (SourceSlice) UpdateAllG

func (o SourceSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (SourceSlice) UpdateAllGP

func (o SourceSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (SourceSlice) UpdateAllP

func (o SourceSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type SourceType

type SourceType struct {
	ID   int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name string `boil:"name" json:"name" toml:"name" yaml:"name"`

	R *sourceTypeR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L sourceTypeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SourceType is an object representing the database table.

func FindSourceType

func FindSourceType(exec boil.Executor, id int64, selectCols ...string) (*SourceType, error)

FindSourceType retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindSourceTypeG

func FindSourceTypeG(id int64, selectCols ...string) (*SourceType, error)

FindSourceTypeG retrieves a single record by ID.

func FindSourceTypeGP

func FindSourceTypeGP(id int64, selectCols ...string) *SourceType

FindSourceTypeGP retrieves a single record by ID, and panics on error.

func FindSourceTypeP

func FindSourceTypeP(exec boil.Executor, id int64, selectCols ...string) *SourceType

FindSourceTypeP retrieves a single record by ID with an executor, and panics on error.

func (*SourceType) AddTypeSources

func (o *SourceType) AddTypeSources(exec boil.Executor, insert bool, related ...*Source) error

AddTypeSources adds the given related objects to the existing relationships of the source_type, optionally inserting them as new records. Appends related to o.R.TypeSources. Sets related.R.Type appropriately.

func (*SourceType) AddTypeSourcesG

func (o *SourceType) AddTypeSourcesG(insert bool, related ...*Source) error

AddTypeSourcesG adds the given related objects to the existing relationships of the source_type, optionally inserting them as new records. Appends related to o.R.TypeSources. Sets related.R.Type appropriately. Uses the global database handle.

func (*SourceType) AddTypeSourcesGP

func (o *SourceType) AddTypeSourcesGP(insert bool, related ...*Source)

AddTypeSourcesGP adds the given related objects to the existing relationships of the source_type, optionally inserting them as new records. Appends related to o.R.TypeSources. Sets related.R.Type appropriately. Uses the global database handle and panics on error.

func (*SourceType) AddTypeSourcesP

func (o *SourceType) AddTypeSourcesP(exec boil.Executor, insert bool, related ...*Source)

AddTypeSourcesP adds the given related objects to the existing relationships of the source_type, optionally inserting them as new records. Appends related to o.R.TypeSources. Sets related.R.Type appropriately. Panics on error.

func (*SourceType) Delete

func (o *SourceType) Delete(exec boil.Executor) error

Delete deletes a single SourceType record with an executor. Delete will match against the primary key column to find the record to delete.

func (*SourceType) DeleteG

func (o *SourceType) DeleteG() error

DeleteG deletes a single SourceType record. DeleteG will match against the primary key column to find the record to delete.

func (*SourceType) DeleteGP

func (o *SourceType) DeleteGP()

DeleteGP deletes a single SourceType record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*SourceType) DeleteP

func (o *SourceType) DeleteP(exec boil.Executor)

DeleteP deletes a single SourceType record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*SourceType) Insert

func (o *SourceType) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*SourceType) InsertG

func (o *SourceType) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*SourceType) InsertGP

func (o *SourceType) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*SourceType) InsertP

func (o *SourceType) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*SourceType) Reload

func (o *SourceType) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*SourceType) ReloadG

func (o *SourceType) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*SourceType) ReloadGP

func (o *SourceType) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*SourceType) ReloadP

func (o *SourceType) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*SourceType) TypeSources

func (o *SourceType) TypeSources(exec boil.Executor, mods ...qm.QueryMod) sourceQuery

TypeSources retrieves all the source's sources with an executor via type_id column.

func (*SourceType) TypeSourcesG

func (o *SourceType) TypeSourcesG(mods ...qm.QueryMod) sourceQuery

TypeSourcesG retrieves all the source's sources via type_id column.

func (*SourceType) Update

func (o *SourceType) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the SourceType. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*SourceType) UpdateG

func (o *SourceType) UpdateG(whitelist ...string) error

UpdateG a single SourceType record. See Update for whitelist behavior description.

func (*SourceType) UpdateGP

func (o *SourceType) UpdateGP(whitelist ...string)

UpdateGP a single SourceType record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*SourceType) UpdateP

func (o *SourceType) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the SourceType, and panics on error. See Update for whitelist behavior description.

func (*SourceType) Upsert

func (o *SourceType) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*SourceType) UpsertG

func (o *SourceType) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*SourceType) UpsertGP

func (o *SourceType) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*SourceType) UpsertP

func (o *SourceType) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type SourceTypeSlice

type SourceTypeSlice []*SourceType

SourceTypeSlice is an alias for a slice of pointers to SourceType. This should generally be used opposed to []SourceType.

func (SourceTypeSlice) DeleteAll

func (o SourceTypeSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (SourceTypeSlice) DeleteAllG

func (o SourceTypeSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (SourceTypeSlice) DeleteAllGP

func (o SourceTypeSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (SourceTypeSlice) DeleteAllP

func (o SourceTypeSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*SourceTypeSlice) ReloadAll

func (o *SourceTypeSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceTypeSlice) ReloadAllG

func (o *SourceTypeSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*SourceTypeSlice) ReloadAllGP

func (o *SourceTypeSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*SourceTypeSlice) ReloadAllP

func (o *SourceTypeSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (SourceTypeSlice) UpdateAll

func (o SourceTypeSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (SourceTypeSlice) UpdateAllG

func (o SourceTypeSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (SourceTypeSlice) UpdateAllGP

func (o SourceTypeSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (SourceTypeSlice) UpdateAllP

func (o SourceTypeSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Storage

type Storage struct {
	ID       int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name     string `boil:"name" json:"name" toml:"name" yaml:"name"`
	Country  string `boil:"country" json:"country" toml:"country" yaml:"country"`
	Location string `boil:"location" json:"location" toml:"location" yaml:"location"`
	Status   string `boil:"status" json:"status" toml:"status" yaml:"status"`
	Access   string `boil:"access" json:"access" toml:"access" yaml:"access"`

	R *storageR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L storageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Storage is an object representing the database table.

func FindStorage

func FindStorage(exec boil.Executor, id int64, selectCols ...string) (*Storage, error)

FindStorage retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindStorageG

func FindStorageG(id int64, selectCols ...string) (*Storage, error)

FindStorageG retrieves a single record by ID.

func FindStorageGP

func FindStorageGP(id int64, selectCols ...string) *Storage

FindStorageGP retrieves a single record by ID, and panics on error.

func FindStorageP

func FindStorageP(exec boil.Executor, id int64, selectCols ...string) *Storage

FindStorageP retrieves a single record by ID with an executor, and panics on error.

func (*Storage) AddFiles

func (o *Storage) AddFiles(exec boil.Executor, insert bool, related ...*File) error

AddFiles adds the given related objects to the existing relationships of the storage, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Storages appropriately.

func (*Storage) AddFilesG

func (o *Storage) AddFilesG(insert bool, related ...*File) error

AddFilesG adds the given related objects to the existing relationships of the storage, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Storages appropriately. Uses the global database handle.

func (*Storage) AddFilesGP

func (o *Storage) AddFilesGP(insert bool, related ...*File)

AddFilesGP adds the given related objects to the existing relationships of the storage, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Storages appropriately. Uses the global database handle and panics on error.

func (*Storage) AddFilesP

func (o *Storage) AddFilesP(exec boil.Executor, insert bool, related ...*File)

AddFilesP adds the given related objects to the existing relationships of the storage, optionally inserting them as new records. Appends related to o.R.Files. Sets related.R.Storages appropriately. Panics on error.

func (*Storage) Delete

func (o *Storage) Delete(exec boil.Executor) error

Delete deletes a single Storage record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Storage) DeleteG

func (o *Storage) DeleteG() error

DeleteG deletes a single Storage record. DeleteG will match against the primary key column to find the record to delete.

func (*Storage) DeleteGP

func (o *Storage) DeleteGP()

DeleteGP deletes a single Storage record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Storage) DeleteP

func (o *Storage) DeleteP(exec boil.Executor)

DeleteP deletes a single Storage record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Storage) Files

func (o *Storage) Files(exec boil.Executor, mods ...qm.QueryMod) fileQuery

Files retrieves all the file's files with an executor.

func (*Storage) FilesG

func (o *Storage) FilesG(mods ...qm.QueryMod) fileQuery

FilesG retrieves all the file's files.

func (*Storage) Insert

func (o *Storage) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Storage) InsertG

func (o *Storage) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Storage) InsertGP

func (o *Storage) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Storage) InsertP

func (o *Storage) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Storage) Reload

func (o *Storage) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Storage) ReloadG

func (o *Storage) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Storage) ReloadGP

func (o *Storage) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Storage) ReloadP

func (o *Storage) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Storage) RemoveFiles

func (o *Storage) RemoveFiles(exec boil.Executor, related ...*File) error

RemoveFiles relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Storages.

func (*Storage) RemoveFilesG

func (o *Storage) RemoveFilesG(related ...*File) error

RemoveFilesG relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Storages. Uses the global database handle.

func (*Storage) RemoveFilesGP

func (o *Storage) RemoveFilesGP(related ...*File)

RemoveFilesGP relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Storages. Uses the global database handle and panics on error.

func (*Storage) RemoveFilesP

func (o *Storage) RemoveFilesP(exec boil.Executor, related ...*File)

RemoveFilesP relationships from objects passed in. Removes related items from R.Files (uses pointer comparison, removal does not keep order) Sets related.R.Storages. Panics on error.

func (*Storage) SetFiles

func (o *Storage) SetFiles(exec boil.Executor, insert bool, related ...*File) error

SetFiles removes all previously related items of the storage replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Storages's Files accordingly. Replaces o.R.Files with related. Sets related.R.Storages's Files accordingly.

func (*Storage) SetFilesG

func (o *Storage) SetFilesG(insert bool, related ...*File) error

SetFilesG removes all previously related items of the storage replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Storages's Files accordingly. Replaces o.R.Files with related. Sets related.R.Storages's Files accordingly. Uses the global database handle.

func (*Storage) SetFilesGP

func (o *Storage) SetFilesGP(insert bool, related ...*File)

SetFilesGP removes all previously related items of the storage replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Storages's Files accordingly. Replaces o.R.Files with related. Sets related.R.Storages's Files accordingly. Uses the global database handle and panics on error.

func (*Storage) SetFilesP

func (o *Storage) SetFilesP(exec boil.Executor, insert bool, related ...*File)

SetFilesP removes all previously related items of the storage replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Storages's Files accordingly. Replaces o.R.Files with related. Sets related.R.Storages's Files accordingly. Panics on error.

func (*Storage) Update

func (o *Storage) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Storage. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Storage) UpdateG

func (o *Storage) UpdateG(whitelist ...string) error

UpdateG a single Storage record. See Update for whitelist behavior description.

func (*Storage) UpdateGP

func (o *Storage) UpdateGP(whitelist ...string)

UpdateGP a single Storage record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Storage) UpdateP

func (o *Storage) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Storage, and panics on error. See Update for whitelist behavior description.

func (*Storage) Upsert

func (o *Storage) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Storage) UpsertG

func (o *Storage) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Storage) UpsertGP

func (o *Storage) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Storage) UpsertP

func (o *Storage) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type StorageSlice

type StorageSlice []*Storage

StorageSlice is an alias for a slice of pointers to Storage. This should generally be used opposed to []Storage.

func (StorageSlice) DeleteAll

func (o StorageSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (StorageSlice) DeleteAllG

func (o StorageSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (StorageSlice) DeleteAllGP

func (o StorageSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (StorageSlice) DeleteAllP

func (o StorageSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*StorageSlice) ReloadAll

func (o *StorageSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*StorageSlice) ReloadAllG

func (o *StorageSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*StorageSlice) ReloadAllGP

func (o *StorageSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*StorageSlice) ReloadAllP

func (o *StorageSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (StorageSlice) UpdateAll

func (o StorageSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (StorageSlice) UpdateAllG

func (o StorageSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (StorageSlice) UpdateAllGP

func (o StorageSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (StorageSlice) UpdateAllP

func (o StorageSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type Tag

type Tag struct {
	ID          int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Description null.String `boil:"description" json:"description,omitempty" toml:"description" yaml:"description,omitempty"`
	ParentID    null.Int64  `boil:"parent_id" json:"parent_id,omitempty" toml:"parent_id" yaml:"parent_id,omitempty"`
	UID         string      `boil:"uid" json:"uid" toml:"uid" yaml:"uid"`
	Pattern     null.String `boil:"pattern" json:"pattern,omitempty" toml:"pattern" yaml:"pattern,omitempty"`

	R *tagR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tagL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Tag is an object representing the database table.

func FindTag

func FindTag(exec boil.Executor, id int64, selectCols ...string) (*Tag, error)

FindTag retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindTagG

func FindTagG(id int64, selectCols ...string) (*Tag, error)

FindTagG retrieves a single record by ID.

func FindTagGP

func FindTagGP(id int64, selectCols ...string) *Tag

FindTagGP retrieves a single record by ID, and panics on error.

func FindTagP

func FindTagP(exec boil.Executor, id int64, selectCols ...string) *Tag

FindTagP retrieves a single record by ID with an executor, and panics on error.

func (*Tag) AddContentUnits

func (o *Tag) AddContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

AddContentUnits adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Tags appropriately.

func (*Tag) AddContentUnitsG

func (o *Tag) AddContentUnitsG(insert bool, related ...*ContentUnit) error

AddContentUnitsG adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Tags appropriately. Uses the global database handle.

func (*Tag) AddContentUnitsGP

func (o *Tag) AddContentUnitsGP(insert bool, related ...*ContentUnit)

AddContentUnitsGP adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Tags appropriately. Uses the global database handle and panics on error.

func (*Tag) AddContentUnitsP

func (o *Tag) AddContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

AddContentUnitsP adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ContentUnits. Sets related.R.Tags appropriately. Panics on error.

func (*Tag) AddParentTags

func (o *Tag) AddParentTags(exec boil.Executor, insert bool, related ...*Tag) error

AddParentTags adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ParentTags. Sets related.R.Parent appropriately.

func (*Tag) AddParentTagsG

func (o *Tag) AddParentTagsG(insert bool, related ...*Tag) error

AddParentTagsG adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ParentTags. Sets related.R.Parent appropriately. Uses the global database handle.

func (*Tag) AddParentTagsGP

func (o *Tag) AddParentTagsGP(insert bool, related ...*Tag)

AddParentTagsGP adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ParentTags. Sets related.R.Parent appropriately. Uses the global database handle and panics on error.

func (*Tag) AddParentTagsP

func (o *Tag) AddParentTagsP(exec boil.Executor, insert bool, related ...*Tag)

AddParentTagsP adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.ParentTags. Sets related.R.Parent appropriately. Panics on error.

func (*Tag) AddTagI18ns

func (o *Tag) AddTagI18ns(exec boil.Executor, insert bool, related ...*TagI18n) error

AddTagI18ns adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.Tag appropriately.

func (*Tag) AddTagI18nsG

func (o *Tag) AddTagI18nsG(insert bool, related ...*TagI18n) error

AddTagI18nsG adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.Tag appropriately. Uses the global database handle.

func (*Tag) AddTagI18nsGP

func (o *Tag) AddTagI18nsGP(insert bool, related ...*TagI18n)

AddTagI18nsGP adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.Tag appropriately. Uses the global database handle and panics on error.

func (*Tag) AddTagI18nsP

func (o *Tag) AddTagI18nsP(exec boil.Executor, insert bool, related ...*TagI18n)

AddTagI18nsP adds the given related objects to the existing relationships of the tag, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.Tag appropriately. Panics on error.

func (*Tag) ContentUnits

func (o *Tag) ContentUnits(exec boil.Executor, mods ...qm.QueryMod) contentUnitQuery

ContentUnits retrieves all the content_unit's content units with an executor.

func (*Tag) ContentUnitsG

func (o *Tag) ContentUnitsG(mods ...qm.QueryMod) contentUnitQuery

ContentUnitsG retrieves all the content_unit's content units.

func (*Tag) Delete

func (o *Tag) Delete(exec boil.Executor) error

Delete deletes a single Tag record with an executor. Delete will match against the primary key column to find the record to delete.

func (*Tag) DeleteG

func (o *Tag) DeleteG() error

DeleteG deletes a single Tag record. DeleteG will match against the primary key column to find the record to delete.

func (*Tag) DeleteGP

func (o *Tag) DeleteGP()

DeleteGP deletes a single Tag record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*Tag) DeleteP

func (o *Tag) DeleteP(exec boil.Executor)

DeleteP deletes a single Tag record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*Tag) Insert

func (o *Tag) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*Tag) InsertG

func (o *Tag) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*Tag) InsertGP

func (o *Tag) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*Tag) InsertP

func (o *Tag) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*Tag) Parent

func (o *Tag) Parent(exec boil.Executor, mods ...qm.QueryMod) tagQuery

Parent pointed to by the foreign key.

func (*Tag) ParentG

func (o *Tag) ParentG(mods ...qm.QueryMod) tagQuery

ParentG pointed to by the foreign key.

func (*Tag) ParentTags

func (o *Tag) ParentTags(exec boil.Executor, mods ...qm.QueryMod) tagQuery

ParentTags retrieves all the tag's tags with an executor via parent_id column.

func (*Tag) ParentTagsG

func (o *Tag) ParentTagsG(mods ...qm.QueryMod) tagQuery

ParentTagsG retrieves all the tag's tags via parent_id column.

func (*Tag) Reload

func (o *Tag) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*Tag) ReloadG

func (o *Tag) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*Tag) ReloadGP

func (o *Tag) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*Tag) ReloadP

func (o *Tag) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*Tag) RemoveContentUnits

func (o *Tag) RemoveContentUnits(exec boil.Executor, related ...*ContentUnit) error

RemoveContentUnits relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Tags.

func (*Tag) RemoveContentUnitsG

func (o *Tag) RemoveContentUnitsG(related ...*ContentUnit) error

RemoveContentUnitsG relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Tags. Uses the global database handle.

func (*Tag) RemoveContentUnitsGP

func (o *Tag) RemoveContentUnitsGP(related ...*ContentUnit)

RemoveContentUnitsGP relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Tags. Uses the global database handle and panics on error.

func (*Tag) RemoveContentUnitsP

func (o *Tag) RemoveContentUnitsP(exec boil.Executor, related ...*ContentUnit)

RemoveContentUnitsP relationships from objects passed in. Removes related items from R.ContentUnits (uses pointer comparison, removal does not keep order) Sets related.R.Tags. Panics on error.

func (*Tag) RemoveParent

func (o *Tag) RemoveParent(exec boil.Executor, related *Tag) error

RemoveParent relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*Tag) RemoveParentG

func (o *Tag) RemoveParentG(related *Tag) error

RemoveParentG relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*Tag) RemoveParentGP

func (o *Tag) RemoveParentGP(related *Tag)

RemoveParentGP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*Tag) RemoveParentP

func (o *Tag) RemoveParentP(exec boil.Executor, related *Tag)

RemoveParentP relationship. Sets o.R.Parent to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*Tag) RemoveParentTags

func (o *Tag) RemoveParentTags(exec boil.Executor, related ...*Tag) error

RemoveParentTags relationships from objects passed in. Removes related items from R.ParentTags (uses pointer comparison, removal does not keep order) Sets related.R.Parent.

func (*Tag) RemoveParentTagsG

func (o *Tag) RemoveParentTagsG(related ...*Tag) error

RemoveParentTagsG relationships from objects passed in. Removes related items from R.ParentTags (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle.

func (*Tag) RemoveParentTagsGP

func (o *Tag) RemoveParentTagsGP(related ...*Tag)

RemoveParentTagsGP relationships from objects passed in. Removes related items from R.ParentTags (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Uses the global database handle and panics on error.

func (*Tag) RemoveParentTagsP

func (o *Tag) RemoveParentTagsP(exec boil.Executor, related ...*Tag)

RemoveParentTagsP relationships from objects passed in. Removes related items from R.ParentTags (uses pointer comparison, removal does not keep order) Sets related.R.Parent. Panics on error.

func (*Tag) SetContentUnits

func (o *Tag) SetContentUnits(exec boil.Executor, insert bool, related ...*ContentUnit) error

SetContentUnits removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Tags's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Tags's ContentUnits accordingly.

func (*Tag) SetContentUnitsG

func (o *Tag) SetContentUnitsG(insert bool, related ...*ContentUnit) error

SetContentUnitsG removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Tags's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Tags's ContentUnits accordingly. Uses the global database handle.

func (*Tag) SetContentUnitsGP

func (o *Tag) SetContentUnitsGP(insert bool, related ...*ContentUnit)

SetContentUnitsGP removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Tags's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Tags's ContentUnits accordingly. Uses the global database handle and panics on error.

func (*Tag) SetContentUnitsP

func (o *Tag) SetContentUnitsP(exec boil.Executor, insert bool, related ...*ContentUnit)

SetContentUnitsP removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Tags's ContentUnits accordingly. Replaces o.R.ContentUnits with related. Sets related.R.Tags's ContentUnits accordingly. Panics on error.

func (*Tag) SetParent

func (o *Tag) SetParent(exec boil.Executor, insert bool, related *Tag) error

SetParent of the tag to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentTags.

func (*Tag) SetParentG

func (o *Tag) SetParentG(insert bool, related *Tag) error

SetParentG of the tag to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentTags. Uses the global database handle.

func (*Tag) SetParentGP

func (o *Tag) SetParentGP(insert bool, related *Tag)

SetParentGP of the tag to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentTags. Uses the global database handle and panics on error.

func (*Tag) SetParentP

func (o *Tag) SetParentP(exec boil.Executor, insert bool, related *Tag)

SetParentP of the tag to the related item. Sets o.R.Parent to related. Adds o to related.R.ParentTags. Panics on error.

func (*Tag) SetParentTags

func (o *Tag) SetParentTags(exec boil.Executor, insert bool, related ...*Tag) error

SetParentTags removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentTags accordingly. Replaces o.R.ParentTags with related. Sets related.R.Parent's ParentTags accordingly.

func (*Tag) SetParentTagsG

func (o *Tag) SetParentTagsG(insert bool, related ...*Tag) error

SetParentTagsG removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentTags accordingly. Replaces o.R.ParentTags with related. Sets related.R.Parent's ParentTags accordingly. Uses the global database handle.

func (*Tag) SetParentTagsGP

func (o *Tag) SetParentTagsGP(insert bool, related ...*Tag)

SetParentTagsGP removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentTags accordingly. Replaces o.R.ParentTags with related. Sets related.R.Parent's ParentTags accordingly. Uses the global database handle and panics on error.

func (*Tag) SetParentTagsP

func (o *Tag) SetParentTagsP(exec boil.Executor, insert bool, related ...*Tag)

SetParentTagsP removes all previously related items of the tag replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Parent's ParentTags accordingly. Replaces o.R.ParentTags with related. Sets related.R.Parent's ParentTags accordingly. Panics on error.

func (*Tag) TagI18ns

func (o *Tag) TagI18ns(exec boil.Executor, mods ...qm.QueryMod) tagI18nQuery

TagI18ns retrieves all the tag_i18n's tag i18n with an executor.

func (*Tag) TagI18nsG

func (o *Tag) TagI18nsG(mods ...qm.QueryMod) tagI18nQuery

TagI18nsG retrieves all the tag_i18n's tag i18n.

func (*Tag) Update

func (o *Tag) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the Tag. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*Tag) UpdateG

func (o *Tag) UpdateG(whitelist ...string) error

UpdateG a single Tag record. See Update for whitelist behavior description.

func (*Tag) UpdateGP

func (o *Tag) UpdateGP(whitelist ...string)

UpdateGP a single Tag record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*Tag) UpdateP

func (o *Tag) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the Tag, and panics on error. See Update for whitelist behavior description.

func (*Tag) Upsert

func (o *Tag) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*Tag) UpsertG

func (o *Tag) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*Tag) UpsertGP

func (o *Tag) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*Tag) UpsertP

func (o *Tag) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type TagI18n

type TagI18n struct {
	TagID            int64       `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"`
	Language         string      `boil:"language" json:"language" toml:"language" yaml:"language"`
	OriginalLanguage null.String `boil:"original_language" json:"original_language,omitempty" toml:"original_language" yaml:"original_language,omitempty"`
	Label            null.String `boil:"label" json:"label,omitempty" toml:"label" yaml:"label,omitempty"`
	UserID           null.Int64  `boil:"user_id" json:"user_id,omitempty" toml:"user_id" yaml:"user_id,omitempty"`
	CreatedAt        time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *tagI18nR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L tagI18nL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TagI18n is an object representing the database table.

func FindTagI18n

func FindTagI18n(exec boil.Executor, tagID int64, language string, selectCols ...string) (*TagI18n, error)

FindTagI18n retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindTagI18nG

func FindTagI18nG(tagID int64, language string, selectCols ...string) (*TagI18n, error)

FindTagI18nG retrieves a single record by ID.

func FindTagI18nGP

func FindTagI18nGP(tagID int64, language string, selectCols ...string) *TagI18n

FindTagI18nGP retrieves a single record by ID, and panics on error.

func FindTagI18nP

func FindTagI18nP(exec boil.Executor, tagID int64, language string, selectCols ...string) *TagI18n

FindTagI18nP retrieves a single record by ID with an executor, and panics on error.

func (*TagI18n) Delete

func (o *TagI18n) Delete(exec boil.Executor) error

Delete deletes a single TagI18n record with an executor. Delete will match against the primary key column to find the record to delete.

func (*TagI18n) DeleteG

func (o *TagI18n) DeleteG() error

DeleteG deletes a single TagI18n record. DeleteG will match against the primary key column to find the record to delete.

func (*TagI18n) DeleteGP

func (o *TagI18n) DeleteGP()

DeleteGP deletes a single TagI18n record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*TagI18n) DeleteP

func (o *TagI18n) DeleteP(exec boil.Executor)

DeleteP deletes a single TagI18n record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*TagI18n) Insert

func (o *TagI18n) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*TagI18n) InsertG

func (o *TagI18n) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*TagI18n) InsertGP

func (o *TagI18n) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*TagI18n) InsertP

func (o *TagI18n) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*TagI18n) Reload

func (o *TagI18n) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*TagI18n) ReloadG

func (o *TagI18n) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*TagI18n) ReloadGP

func (o *TagI18n) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*TagI18n) ReloadP

func (o *TagI18n) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*TagI18n) RemoveUser

func (o *TagI18n) RemoveUser(exec boil.Executor, related *User) error

RemoveUser relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional).

func (*TagI18n) RemoveUserG

func (o *TagI18n) RemoveUserG(related *User) error

RemoveUserG relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle.

func (*TagI18n) RemoveUserGP

func (o *TagI18n) RemoveUserGP(related *User)

RemoveUserGP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Uses the global database handle and panics on error.

func (*TagI18n) RemoveUserP

func (o *TagI18n) RemoveUserP(exec boil.Executor, related *User)

RemoveUserP relationship. Sets o.R.User to nil. Removes o from all passed in related items' relationships struct (Optional). Panics on error.

func (*TagI18n) SetTag

func (o *TagI18n) SetTag(exec boil.Executor, insert bool, related *Tag) error

SetTag of the tag_i18n to the related item. Sets o.R.Tag to related. Adds o to related.R.TagI18ns.

func (*TagI18n) SetTagG

func (o *TagI18n) SetTagG(insert bool, related *Tag) error

SetTagG of the tag_i18n to the related item. Sets o.R.Tag to related. Adds o to related.R.TagI18ns. Uses the global database handle.

func (*TagI18n) SetTagGP

func (o *TagI18n) SetTagGP(insert bool, related *Tag)

SetTagGP of the tag_i18n to the related item. Sets o.R.Tag to related. Adds o to related.R.TagI18ns. Uses the global database handle and panics on error.

func (*TagI18n) SetTagP

func (o *TagI18n) SetTagP(exec boil.Executor, insert bool, related *Tag)

SetTagP of the tag_i18n to the related item. Sets o.R.Tag to related. Adds o to related.R.TagI18ns. Panics on error.

func (*TagI18n) SetUser

func (o *TagI18n) SetUser(exec boil.Executor, insert bool, related *User) error

SetUser of the tag_i18n to the related item. Sets o.R.User to related. Adds o to related.R.TagI18ns.

func (*TagI18n) SetUserG

func (o *TagI18n) SetUserG(insert bool, related *User) error

SetUserG of the tag_i18n to the related item. Sets o.R.User to related. Adds o to related.R.TagI18ns. Uses the global database handle.

func (*TagI18n) SetUserGP

func (o *TagI18n) SetUserGP(insert bool, related *User)

SetUserGP of the tag_i18n to the related item. Sets o.R.User to related. Adds o to related.R.TagI18ns. Uses the global database handle and panics on error.

func (*TagI18n) SetUserP

func (o *TagI18n) SetUserP(exec boil.Executor, insert bool, related *User)

SetUserP of the tag_i18n to the related item. Sets o.R.User to related. Adds o to related.R.TagI18ns. Panics on error.

func (*TagI18n) Tag

func (o *TagI18n) Tag(exec boil.Executor, mods ...qm.QueryMod) tagQuery

Tag pointed to by the foreign key.

func (*TagI18n) TagG

func (o *TagI18n) TagG(mods ...qm.QueryMod) tagQuery

TagG pointed to by the foreign key.

func (*TagI18n) Update

func (o *TagI18n) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the TagI18n. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*TagI18n) UpdateG

func (o *TagI18n) UpdateG(whitelist ...string) error

UpdateG a single TagI18n record. See Update for whitelist behavior description.

func (*TagI18n) UpdateGP

func (o *TagI18n) UpdateGP(whitelist ...string)

UpdateGP a single TagI18n record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*TagI18n) UpdateP

func (o *TagI18n) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the TagI18n, and panics on error. See Update for whitelist behavior description.

func (*TagI18n) Upsert

func (o *TagI18n) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*TagI18n) UpsertG

func (o *TagI18n) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*TagI18n) UpsertGP

func (o *TagI18n) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*TagI18n) UpsertP

func (o *TagI18n) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*TagI18n) User

func (o *TagI18n) User(exec boil.Executor, mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

func (*TagI18n) UserG

func (o *TagI18n) UserG(mods ...qm.QueryMod) userQuery

UserG pointed to by the foreign key.

type TagI18nSlice

type TagI18nSlice []*TagI18n

TagI18nSlice is an alias for a slice of pointers to TagI18n. This should generally be used opposed to []TagI18n.

func (TagI18nSlice) DeleteAll

func (o TagI18nSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (TagI18nSlice) DeleteAllG

func (o TagI18nSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (TagI18nSlice) DeleteAllGP

func (o TagI18nSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (TagI18nSlice) DeleteAllP

func (o TagI18nSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*TagI18nSlice) ReloadAll

func (o *TagI18nSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TagI18nSlice) ReloadAllG

func (o *TagI18nSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TagI18nSlice) ReloadAllGP

func (o *TagI18nSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*TagI18nSlice) ReloadAllP

func (o *TagI18nSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (TagI18nSlice) UpdateAll

func (o TagI18nSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (TagI18nSlice) UpdateAllG

func (o TagI18nSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (TagI18nSlice) UpdateAllGP

func (o TagI18nSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (TagI18nSlice) UpdateAllP

func (o TagI18nSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type TagSlice

type TagSlice []*Tag

TagSlice is an alias for a slice of pointers to Tag. This should generally be used opposed to []Tag.

func (TagSlice) DeleteAll

func (o TagSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (TagSlice) DeleteAllG

func (o TagSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (TagSlice) DeleteAllGP

func (o TagSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (TagSlice) DeleteAllP

func (o TagSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*TagSlice) ReloadAll

func (o *TagSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TagSlice) ReloadAllG

func (o *TagSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TagSlice) ReloadAllGP

func (o *TagSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*TagSlice) ReloadAllP

func (o *TagSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (TagSlice) UpdateAll

func (o TagSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (TagSlice) UpdateAllG

func (o TagSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (TagSlice) UpdateAllGP

func (o TagSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (TagSlice) UpdateAllP

func (o TagSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type TwitterTweet added in v0.9.9

type TwitterTweet struct {
	ID        int64     `boil:"id" json:"id" toml:"id" yaml:"id"`
	UserID    int64     `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"`
	TwitterID string    `boil:"twitter_id" json:"twitter_id" toml:"twitter_id" yaml:"twitter_id"`
	FullText  string    `boil:"full_text" json:"full_text" toml:"full_text" yaml:"full_text"`
	TweetAt   time.Time `boil:"tweet_at" json:"tweet_at" toml:"tweet_at" yaml:"tweet_at"`
	Raw       null.JSON `boil:"raw" json:"raw,omitempty" toml:"raw" yaml:"raw,omitempty"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *twitterTweetR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L twitterTweetL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TwitterTweet is an object representing the database table.

func FindTwitterTweet added in v0.9.9

func FindTwitterTweet(exec boil.Executor, id int64, selectCols ...string) (*TwitterTweet, error)

FindTwitterTweet retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindTwitterTweetG added in v0.9.9

func FindTwitterTweetG(id int64, selectCols ...string) (*TwitterTweet, error)

FindTwitterTweetG retrieves a single record by ID.

func FindTwitterTweetGP added in v0.9.9

func FindTwitterTweetGP(id int64, selectCols ...string) *TwitterTweet

FindTwitterTweetGP retrieves a single record by ID, and panics on error.

func FindTwitterTweetP added in v0.9.9

func FindTwitterTweetP(exec boil.Executor, id int64, selectCols ...string) *TwitterTweet

FindTwitterTweetP retrieves a single record by ID with an executor, and panics on error.

func (*TwitterTweet) Delete added in v0.9.9

func (o *TwitterTweet) Delete(exec boil.Executor) error

Delete deletes a single TwitterTweet record with an executor. Delete will match against the primary key column to find the record to delete.

func (*TwitterTweet) DeleteG added in v0.9.9

func (o *TwitterTweet) DeleteG() error

DeleteG deletes a single TwitterTweet record. DeleteG will match against the primary key column to find the record to delete.

func (*TwitterTweet) DeleteGP added in v0.9.9

func (o *TwitterTweet) DeleteGP()

DeleteGP deletes a single TwitterTweet record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*TwitterTweet) DeleteP added in v0.9.9

func (o *TwitterTweet) DeleteP(exec boil.Executor)

DeleteP deletes a single TwitterTweet record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*TwitterTweet) Insert added in v0.9.9

func (o *TwitterTweet) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*TwitterTweet) InsertG added in v0.9.9

func (o *TwitterTweet) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*TwitterTweet) InsertGP added in v0.9.9

func (o *TwitterTweet) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*TwitterTweet) InsertP added in v0.9.9

func (o *TwitterTweet) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*TwitterTweet) Reload added in v0.9.9

func (o *TwitterTweet) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*TwitterTweet) ReloadG added in v0.9.9

func (o *TwitterTweet) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*TwitterTweet) ReloadGP added in v0.9.9

func (o *TwitterTweet) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*TwitterTweet) ReloadP added in v0.9.9

func (o *TwitterTweet) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*TwitterTweet) SetUser added in v0.9.9

func (o *TwitterTweet) SetUser(exec boil.Executor, insert bool, related *TwitterUser) error

SetUser of the twitter_tweet to the related item. Sets o.R.User to related. Adds o to related.R.UserTwitterTweets.

func (*TwitterTweet) SetUserG added in v0.9.9

func (o *TwitterTweet) SetUserG(insert bool, related *TwitterUser) error

SetUserG of the twitter_tweet to the related item. Sets o.R.User to related. Adds o to related.R.UserTwitterTweets. Uses the global database handle.

func (*TwitterTweet) SetUserGP added in v0.9.9

func (o *TwitterTweet) SetUserGP(insert bool, related *TwitterUser)

SetUserGP of the twitter_tweet to the related item. Sets o.R.User to related. Adds o to related.R.UserTwitterTweets. Uses the global database handle and panics on error.

func (*TwitterTweet) SetUserP added in v0.9.9

func (o *TwitterTweet) SetUserP(exec boil.Executor, insert bool, related *TwitterUser)

SetUserP of the twitter_tweet to the related item. Sets o.R.User to related. Adds o to related.R.UserTwitterTweets. Panics on error.

func (*TwitterTweet) Update added in v0.9.9

func (o *TwitterTweet) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the TwitterTweet. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*TwitterTweet) UpdateG added in v0.9.9

func (o *TwitterTweet) UpdateG(whitelist ...string) error

UpdateG a single TwitterTweet record. See Update for whitelist behavior description.

func (*TwitterTweet) UpdateGP added in v0.9.9

func (o *TwitterTweet) UpdateGP(whitelist ...string)

UpdateGP a single TwitterTweet record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*TwitterTweet) UpdateP added in v0.9.9

func (o *TwitterTweet) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the TwitterTweet, and panics on error. See Update for whitelist behavior description.

func (*TwitterTweet) Upsert added in v0.9.9

func (o *TwitterTweet) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*TwitterTweet) UpsertG added in v0.9.9

func (o *TwitterTweet) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*TwitterTweet) UpsertGP added in v0.9.9

func (o *TwitterTweet) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*TwitterTweet) UpsertP added in v0.9.9

func (o *TwitterTweet) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*TwitterTweet) User added in v0.9.9

func (o *TwitterTweet) User(exec boil.Executor, mods ...qm.QueryMod) twitterUserQuery

User pointed to by the foreign key.

func (*TwitterTweet) UserG added in v0.9.9

func (o *TwitterTweet) UserG(mods ...qm.QueryMod) twitterUserQuery

UserG pointed to by the foreign key.

type TwitterTweetSlice added in v0.9.9

type TwitterTweetSlice []*TwitterTweet

TwitterTweetSlice is an alias for a slice of pointers to TwitterTweet. This should generally be used opposed to []TwitterTweet.

func (TwitterTweetSlice) DeleteAll added in v0.9.9

func (o TwitterTweetSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (TwitterTweetSlice) DeleteAllG added in v0.9.9

func (o TwitterTweetSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (TwitterTweetSlice) DeleteAllGP added in v0.9.9

func (o TwitterTweetSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (TwitterTweetSlice) DeleteAllP added in v0.9.9

func (o TwitterTweetSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*TwitterTweetSlice) ReloadAll added in v0.9.9

func (o *TwitterTweetSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TwitterTweetSlice) ReloadAllG added in v0.9.9

func (o *TwitterTweetSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TwitterTweetSlice) ReloadAllGP added in v0.9.9

func (o *TwitterTweetSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*TwitterTweetSlice) ReloadAllP added in v0.9.9

func (o *TwitterTweetSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (TwitterTweetSlice) UpdateAll added in v0.9.9

func (o TwitterTweetSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (TwitterTweetSlice) UpdateAllG added in v0.9.9

func (o TwitterTweetSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (TwitterTweetSlice) UpdateAllGP added in v0.9.9

func (o TwitterTweetSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (TwitterTweetSlice) UpdateAllP added in v0.9.9

func (o TwitterTweetSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type TwitterUser added in v0.9.9

type TwitterUser struct {
	ID          int64  `boil:"id" json:"id" toml:"id" yaml:"id"`
	Username    string `boil:"username" json:"username" toml:"username" yaml:"username"`
	AccountID   string `boil:"account_id" json:"account_id" toml:"account_id" yaml:"account_id"`
	DisplayName string `boil:"display_name" json:"display_name" toml:"display_name" yaml:"display_name"`

	R *twitterUserR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L twitterUserL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

TwitterUser is an object representing the database table.

func FindTwitterUser added in v0.9.9

func FindTwitterUser(exec boil.Executor, id int64, selectCols ...string) (*TwitterUser, error)

FindTwitterUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindTwitterUserG added in v0.9.9

func FindTwitterUserG(id int64, selectCols ...string) (*TwitterUser, error)

FindTwitterUserG retrieves a single record by ID.

func FindTwitterUserGP added in v0.9.9

func FindTwitterUserGP(id int64, selectCols ...string) *TwitterUser

FindTwitterUserGP retrieves a single record by ID, and panics on error.

func FindTwitterUserP added in v0.9.9

func FindTwitterUserP(exec boil.Executor, id int64, selectCols ...string) *TwitterUser

FindTwitterUserP retrieves a single record by ID with an executor, and panics on error.

func (*TwitterUser) AddUserTwitterTweets added in v0.9.9

func (o *TwitterUser) AddUserTwitterTweets(exec boil.Executor, insert bool, related ...*TwitterTweet) error

AddUserTwitterTweets adds the given related objects to the existing relationships of the twitter_user, optionally inserting them as new records. Appends related to o.R.UserTwitterTweets. Sets related.R.User appropriately.

func (*TwitterUser) AddUserTwitterTweetsG added in v0.9.9

func (o *TwitterUser) AddUserTwitterTweetsG(insert bool, related ...*TwitterTweet) error

AddUserTwitterTweetsG adds the given related objects to the existing relationships of the twitter_user, optionally inserting them as new records. Appends related to o.R.UserTwitterTweets. Sets related.R.User appropriately. Uses the global database handle.

func (*TwitterUser) AddUserTwitterTweetsGP added in v0.9.9

func (o *TwitterUser) AddUserTwitterTweetsGP(insert bool, related ...*TwitterTweet)

AddUserTwitterTweetsGP adds the given related objects to the existing relationships of the twitter_user, optionally inserting them as new records. Appends related to o.R.UserTwitterTweets. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*TwitterUser) AddUserTwitterTweetsP added in v0.9.9

func (o *TwitterUser) AddUserTwitterTweetsP(exec boil.Executor, insert bool, related ...*TwitterTweet)

AddUserTwitterTweetsP adds the given related objects to the existing relationships of the twitter_user, optionally inserting them as new records. Appends related to o.R.UserTwitterTweets. Sets related.R.User appropriately. Panics on error.

func (*TwitterUser) Delete added in v0.9.9

func (o *TwitterUser) Delete(exec boil.Executor) error

Delete deletes a single TwitterUser record with an executor. Delete will match against the primary key column to find the record to delete.

func (*TwitterUser) DeleteG added in v0.9.9

func (o *TwitterUser) DeleteG() error

DeleteG deletes a single TwitterUser record. DeleteG will match against the primary key column to find the record to delete.

func (*TwitterUser) DeleteGP added in v0.9.9

func (o *TwitterUser) DeleteGP()

DeleteGP deletes a single TwitterUser record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*TwitterUser) DeleteP added in v0.9.9

func (o *TwitterUser) DeleteP(exec boil.Executor)

DeleteP deletes a single TwitterUser record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*TwitterUser) Insert added in v0.9.9

func (o *TwitterUser) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*TwitterUser) InsertG added in v0.9.9

func (o *TwitterUser) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*TwitterUser) InsertGP added in v0.9.9

func (o *TwitterUser) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*TwitterUser) InsertP added in v0.9.9

func (o *TwitterUser) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*TwitterUser) Reload added in v0.9.9

func (o *TwitterUser) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*TwitterUser) ReloadG added in v0.9.9

func (o *TwitterUser) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*TwitterUser) ReloadGP added in v0.9.9

func (o *TwitterUser) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*TwitterUser) ReloadP added in v0.9.9

func (o *TwitterUser) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*TwitterUser) Update added in v0.9.9

func (o *TwitterUser) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the TwitterUser. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*TwitterUser) UpdateG added in v0.9.9

func (o *TwitterUser) UpdateG(whitelist ...string) error

UpdateG a single TwitterUser record. See Update for whitelist behavior description.

func (*TwitterUser) UpdateGP added in v0.9.9

func (o *TwitterUser) UpdateGP(whitelist ...string)

UpdateGP a single TwitterUser record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*TwitterUser) UpdateP added in v0.9.9

func (o *TwitterUser) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the TwitterUser, and panics on error. See Update for whitelist behavior description.

func (*TwitterUser) Upsert added in v0.9.9

func (o *TwitterUser) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*TwitterUser) UpsertG added in v0.9.9

func (o *TwitterUser) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*TwitterUser) UpsertGP added in v0.9.9

func (o *TwitterUser) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*TwitterUser) UpsertP added in v0.9.9

func (o *TwitterUser) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

func (*TwitterUser) UserTwitterTweets added in v0.9.9

func (o *TwitterUser) UserTwitterTweets(exec boil.Executor, mods ...qm.QueryMod) twitterTweetQuery

UserTwitterTweets retrieves all the twitter_tweet's twitter tweets with an executor via user_id column.

func (*TwitterUser) UserTwitterTweetsG added in v0.9.9

func (o *TwitterUser) UserTwitterTweetsG(mods ...qm.QueryMod) twitterTweetQuery

UserTwitterTweetsG retrieves all the twitter_tweet's twitter tweets via user_id column.

type TwitterUserSlice added in v0.9.9

type TwitterUserSlice []*TwitterUser

TwitterUserSlice is an alias for a slice of pointers to TwitterUser. This should generally be used opposed to []TwitterUser.

func (TwitterUserSlice) DeleteAll added in v0.9.9

func (o TwitterUserSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (TwitterUserSlice) DeleteAllG added in v0.9.9

func (o TwitterUserSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (TwitterUserSlice) DeleteAllGP added in v0.9.9

func (o TwitterUserSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (TwitterUserSlice) DeleteAllP added in v0.9.9

func (o TwitterUserSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*TwitterUserSlice) ReloadAll added in v0.9.9

func (o *TwitterUserSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TwitterUserSlice) ReloadAllG added in v0.9.9

func (o *TwitterUserSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*TwitterUserSlice) ReloadAllGP added in v0.9.9

func (o *TwitterUserSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*TwitterUserSlice) ReloadAllP added in v0.9.9

func (o *TwitterUserSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (TwitterUserSlice) UpdateAll added in v0.9.9

func (o TwitterUserSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (TwitterUserSlice) UpdateAllG added in v0.9.9

func (o TwitterUserSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (TwitterUserSlice) UpdateAllGP added in v0.9.9

func (o TwitterUserSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (TwitterUserSlice) UpdateAllP added in v0.9.9

func (o TwitterUserSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

type User

type User struct {
	ID        int64       `boil:"id" json:"id" toml:"id" yaml:"id"`
	Email     string      `boil:"email" json:"email" toml:"email" yaml:"email"`
	Name      null.String `boil:"name" json:"name,omitempty" toml:"name" yaml:"name,omitempty"`
	Phone     null.String `boil:"phone" json:"phone,omitempty" toml:"phone" yaml:"phone,omitempty"`
	Comments  null.String `boil:"comments" json:"comments,omitempty" toml:"comments" yaml:"comments,omitempty"`
	CreatedAt time.Time   `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`
	UpdatedAt null.Time   `boil:"updated_at" json:"updated_at,omitempty" toml:"updated_at" yaml:"updated_at,omitempty"`
	DeletedAt null.Time   `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *userR `boil:"-" json:"-" toml:"-" yaml:"-"`
	L userL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

User is an object representing the database table.

func FindUser

func FindUser(exec boil.Executor, id int64, selectCols ...string) (*User, error)

FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.

func FindUserG

func FindUserG(id int64, selectCols ...string) (*User, error)

FindUserG retrieves a single record by ID.

func FindUserGP

func FindUserGP(id int64, selectCols ...string) *User

FindUserGP retrieves a single record by ID, and panics on error.

func FindUserP

func FindUserP(exec boil.Executor, id int64, selectCols ...string) *User

FindUserP retrieves a single record by ID with an executor, and panics on error.

func (*User) AddCollectionI18ns

func (o *User) AddCollectionI18ns(exec boil.Executor, insert bool, related ...*CollectionI18n) error

AddCollectionI18ns adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.User appropriately.

func (*User) AddCollectionI18nsG

func (o *User) AddCollectionI18nsG(insert bool, related ...*CollectionI18n) error

AddCollectionI18nsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddCollectionI18nsGP

func (o *User) AddCollectionI18nsGP(insert bool, related ...*CollectionI18n)

AddCollectionI18nsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*User) AddCollectionI18nsP

func (o *User) AddCollectionI18nsP(exec boil.Executor, insert bool, related ...*CollectionI18n)

AddCollectionI18nsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.CollectionI18ns. Sets related.R.User appropriately. Panics on error.

func (*User) AddContentUnitI18ns

func (o *User) AddContentUnitI18ns(exec boil.Executor, insert bool, related ...*ContentUnitI18n) error

AddContentUnitI18ns adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.User appropriately.

func (*User) AddContentUnitI18nsG

func (o *User) AddContentUnitI18nsG(insert bool, related ...*ContentUnitI18n) error

AddContentUnitI18nsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddContentUnitI18nsGP

func (o *User) AddContentUnitI18nsGP(insert bool, related ...*ContentUnitI18n)

AddContentUnitI18nsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*User) AddContentUnitI18nsP

func (o *User) AddContentUnitI18nsP(exec boil.Executor, insert bool, related ...*ContentUnitI18n)

AddContentUnitI18nsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.ContentUnitI18ns. Sets related.R.User appropriately. Panics on error.

func (*User) AddOperations

func (o *User) AddOperations(exec boil.Executor, insert bool, related ...*Operation) error

AddOperations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.User appropriately.

func (*User) AddOperationsG

func (o *User) AddOperationsG(insert bool, related ...*Operation) error

AddOperationsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddOperationsGP

func (o *User) AddOperationsGP(insert bool, related ...*Operation)

AddOperationsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*User) AddOperationsP

func (o *User) AddOperationsP(exec boil.Executor, insert bool, related ...*Operation)

AddOperationsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Operations. Sets related.R.User appropriately. Panics on error.

func (*User) AddPersonI18ns

func (o *User) AddPersonI18ns(exec boil.Executor, insert bool, related ...*PersonI18n) error

AddPersonI18ns adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.User appropriately.

func (*User) AddPersonI18nsG

func (o *User) AddPersonI18nsG(insert bool, related ...*PersonI18n) error

AddPersonI18nsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddPersonI18nsGP

func (o *User) AddPersonI18nsGP(insert bool, related ...*PersonI18n)

AddPersonI18nsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*User) AddPersonI18nsP

func (o *User) AddPersonI18nsP(exec boil.Executor, insert bool, related ...*PersonI18n)

AddPersonI18nsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PersonI18ns. Sets related.R.User appropriately. Panics on error.

func (*User) AddPublisherI18ns

func (o *User) AddPublisherI18ns(exec boil.Executor, insert bool, related ...*PublisherI18n) error

AddPublisherI18ns adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.User appropriately.

func (*User) AddPublisherI18nsG

func (o *User) AddPublisherI18nsG(insert bool, related ...*PublisherI18n) error

AddPublisherI18nsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddPublisherI18nsGP

func (o *User) AddPublisherI18nsGP(insert bool, related ...*PublisherI18n)

AddPublisherI18nsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*User) AddPublisherI18nsP

func (o *User) AddPublisherI18nsP(exec boil.Executor, insert bool, related ...*PublisherI18n)

AddPublisherI18nsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.PublisherI18ns. Sets related.R.User appropriately. Panics on error.

func (*User) AddTagI18ns

func (o *User) AddTagI18ns(exec boil.Executor, insert bool, related ...*TagI18n) error

AddTagI18ns adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.User appropriately.

func (*User) AddTagI18nsG

func (o *User) AddTagI18nsG(insert bool, related ...*TagI18n) error

AddTagI18nsG adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.User appropriately. Uses the global database handle.

func (*User) AddTagI18nsGP

func (o *User) AddTagI18nsGP(insert bool, related ...*TagI18n)

AddTagI18nsGP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.User appropriately. Uses the global database handle and panics on error.

func (*User) AddTagI18nsP

func (o *User) AddTagI18nsP(exec boil.Executor, insert bool, related ...*TagI18n)

AddTagI18nsP adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.TagI18ns. Sets related.R.User appropriately. Panics on error.

func (*User) CollectionI18ns

func (o *User) CollectionI18ns(exec boil.Executor, mods ...qm.QueryMod) collectionI18nQuery

CollectionI18ns retrieves all the collection_i18n's collection i18n with an executor.

func (*User) CollectionI18nsG

func (o *User) CollectionI18nsG(mods ...qm.QueryMod) collectionI18nQuery

CollectionI18nsG retrieves all the collection_i18n's collection i18n.

func (*User) ContentUnitI18ns

func (o *User) ContentUnitI18ns(exec boil.Executor, mods ...qm.QueryMod) contentUnitI18nQuery

ContentUnitI18ns retrieves all the content_unit_i18n's content unit i18n with an executor.

func (*User) ContentUnitI18nsG

func (o *User) ContentUnitI18nsG(mods ...qm.QueryMod) contentUnitI18nQuery

ContentUnitI18nsG retrieves all the content_unit_i18n's content unit i18n.

func (*User) Delete

func (o *User) Delete(exec boil.Executor) error

Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.

func (*User) DeleteG

func (o *User) DeleteG() error

DeleteG deletes a single User record. DeleteG will match against the primary key column to find the record to delete.

func (*User) DeleteGP

func (o *User) DeleteGP()

DeleteGP deletes a single User record. DeleteGP will match against the primary key column to find the record to delete. Panics on error.

func (*User) DeleteP

func (o *User) DeleteP(exec boil.Executor)

DeleteP deletes a single User record with an executor. DeleteP will match against the primary key column to find the record to delete. Panics on error.

func (*User) Insert

func (o *User) Insert(exec boil.Executor, whitelist ...string) error

Insert a single record using an executor. Whitelist behavior: If a whitelist is provided, only those columns supplied are inserted No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns without a default value are included (i.e. name, age) - All columns with a default, but non-zero are included (i.e. health = 75)

func (*User) InsertG

func (o *User) InsertG(whitelist ...string) error

InsertG a single record. See Insert for whitelist behavior description.

func (*User) InsertGP

func (o *User) InsertGP(whitelist ...string)

InsertGP a single record, and panics on error. See Insert for whitelist behavior description.

func (*User) InsertP

func (o *User) InsertP(exec boil.Executor, whitelist ...string)

InsertP a single record using an executor, and panics on error. See Insert for whitelist behavior description.

func (*User) Operations

func (o *User) Operations(exec boil.Executor, mods ...qm.QueryMod) operationQuery

Operations retrieves all the operation's operations with an executor.

func (*User) OperationsG

func (o *User) OperationsG(mods ...qm.QueryMod) operationQuery

OperationsG retrieves all the operation's operations.

func (*User) PersonI18ns

func (o *User) PersonI18ns(exec boil.Executor, mods ...qm.QueryMod) personI18nQuery

PersonI18ns retrieves all the person_i18n's person i18n with an executor.

func (*User) PersonI18nsG

func (o *User) PersonI18nsG(mods ...qm.QueryMod) personI18nQuery

PersonI18nsG retrieves all the person_i18n's person i18n.

func (*User) PublisherI18ns

func (o *User) PublisherI18ns(exec boil.Executor, mods ...qm.QueryMod) publisherI18nQuery

PublisherI18ns retrieves all the publisher_i18n's publisher i18n with an executor.

func (*User) PublisherI18nsG

func (o *User) PublisherI18nsG(mods ...qm.QueryMod) publisherI18nQuery

PublisherI18nsG retrieves all the publisher_i18n's publisher i18n.

func (*User) Reload

func (o *User) Reload(exec boil.Executor) error

Reload refetches the object from the database using the primary keys with an executor.

func (*User) ReloadG

func (o *User) ReloadG() error

ReloadG refetches the object from the database using the primary keys.

func (*User) ReloadGP

func (o *User) ReloadGP()

ReloadGP refetches the object from the database and panics on error.

func (*User) ReloadP

func (o *User) ReloadP(exec boil.Executor)

ReloadP refetches the object from the database with an executor. Panics on error.

func (*User) RemoveCollectionI18ns

func (o *User) RemoveCollectionI18ns(exec boil.Executor, related ...*CollectionI18n) error

RemoveCollectionI18ns relationships from objects passed in. Removes related items from R.CollectionI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*User) RemoveCollectionI18nsG

func (o *User) RemoveCollectionI18nsG(related ...*CollectionI18n) error

RemoveCollectionI18nsG relationships from objects passed in. Removes related items from R.CollectionI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.

func (*User) RemoveCollectionI18nsGP

func (o *User) RemoveCollectionI18nsGP(related ...*CollectionI18n)

RemoveCollectionI18nsGP relationships from objects passed in. Removes related items from R.CollectionI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.

func (*User) RemoveCollectionI18nsP

func (o *User) RemoveCollectionI18nsP(exec boil.Executor, related ...*CollectionI18n)

RemoveCollectionI18nsP relationships from objects passed in. Removes related items from R.CollectionI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.

func (*User) RemoveContentUnitI18ns

func (o *User) RemoveContentUnitI18ns(exec boil.Executor, related ...*ContentUnitI18n) error

RemoveContentUnitI18ns relationships from objects passed in. Removes related items from R.ContentUnitI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*User) RemoveContentUnitI18nsG

func (o *User) RemoveContentUnitI18nsG(related ...*ContentUnitI18n) error

RemoveContentUnitI18nsG relationships from objects passed in. Removes related items from R.ContentUnitI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.

func (*User) RemoveContentUnitI18nsGP

func (o *User) RemoveContentUnitI18nsGP(related ...*ContentUnitI18n)

RemoveContentUnitI18nsGP relationships from objects passed in. Removes related items from R.ContentUnitI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.

func (*User) RemoveContentUnitI18nsP

func (o *User) RemoveContentUnitI18nsP(exec boil.Executor, related ...*ContentUnitI18n)

RemoveContentUnitI18nsP relationships from objects passed in. Removes related items from R.ContentUnitI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.

func (*User) RemoveOperations

func (o *User) RemoveOperations(exec boil.Executor, related ...*Operation) error

RemoveOperations relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*User) RemoveOperationsG

func (o *User) RemoveOperationsG(related ...*Operation) error

RemoveOperationsG relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.

func (*User) RemoveOperationsGP

func (o *User) RemoveOperationsGP(related ...*Operation)

RemoveOperationsGP relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.

func (*User) RemoveOperationsP

func (o *User) RemoveOperationsP(exec boil.Executor, related ...*Operation)

RemoveOperationsP relationships from objects passed in. Removes related items from R.Operations (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.

func (*User) RemovePersonI18ns

func (o *User) RemovePersonI18ns(exec boil.Executor, related ...*PersonI18n) error

RemovePersonI18ns relationships from objects passed in. Removes related items from R.PersonI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*User) RemovePersonI18nsG

func (o *User) RemovePersonI18nsG(related ...*PersonI18n) error

RemovePersonI18nsG relationships from objects passed in. Removes related items from R.PersonI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.

func (*User) RemovePersonI18nsGP

func (o *User) RemovePersonI18nsGP(related ...*PersonI18n)

RemovePersonI18nsGP relationships from objects passed in. Removes related items from R.PersonI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.

func (*User) RemovePersonI18nsP

func (o *User) RemovePersonI18nsP(exec boil.Executor, related ...*PersonI18n)

RemovePersonI18nsP relationships from objects passed in. Removes related items from R.PersonI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.

func (*User) RemovePublisherI18ns

func (o *User) RemovePublisherI18ns(exec boil.Executor, related ...*PublisherI18n) error

RemovePublisherI18ns relationships from objects passed in. Removes related items from R.PublisherI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*User) RemovePublisherI18nsG

func (o *User) RemovePublisherI18nsG(related ...*PublisherI18n) error

RemovePublisherI18nsG relationships from objects passed in. Removes related items from R.PublisherI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.

func (*User) RemovePublisherI18nsGP

func (o *User) RemovePublisherI18nsGP(related ...*PublisherI18n)

RemovePublisherI18nsGP relationships from objects passed in. Removes related items from R.PublisherI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.

func (*User) RemovePublisherI18nsP

func (o *User) RemovePublisherI18nsP(exec boil.Executor, related ...*PublisherI18n)

RemovePublisherI18nsP relationships from objects passed in. Removes related items from R.PublisherI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.

func (*User) RemoveTagI18ns

func (o *User) RemoveTagI18ns(exec boil.Executor, related ...*TagI18n) error

RemoveTagI18ns relationships from objects passed in. Removes related items from R.TagI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User.

func (*User) RemoveTagI18nsG

func (o *User) RemoveTagI18nsG(related ...*TagI18n) error

RemoveTagI18nsG relationships from objects passed in. Removes related items from R.TagI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle.

func (*User) RemoveTagI18nsGP

func (o *User) RemoveTagI18nsGP(related ...*TagI18n)

RemoveTagI18nsGP relationships from objects passed in. Removes related items from R.TagI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Uses the global database handle and panics on error.

func (*User) RemoveTagI18nsP

func (o *User) RemoveTagI18nsP(exec boil.Executor, related ...*TagI18n)

RemoveTagI18nsP relationships from objects passed in. Removes related items from R.TagI18ns (uses pointer comparison, removal does not keep order) Sets related.R.User. Panics on error.

func (*User) SetCollectionI18ns

func (o *User) SetCollectionI18ns(exec boil.Executor, insert bool, related ...*CollectionI18n) error

SetCollectionI18ns removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's CollectionI18ns accordingly. Replaces o.R.CollectionI18ns with related. Sets related.R.User's CollectionI18ns accordingly.

func (*User) SetCollectionI18nsG

func (o *User) SetCollectionI18nsG(insert bool, related ...*CollectionI18n) error

SetCollectionI18nsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's CollectionI18ns accordingly. Replaces o.R.CollectionI18ns with related. Sets related.R.User's CollectionI18ns accordingly. Uses the global database handle.

func (*User) SetCollectionI18nsGP

func (o *User) SetCollectionI18nsGP(insert bool, related ...*CollectionI18n)

SetCollectionI18nsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's CollectionI18ns accordingly. Replaces o.R.CollectionI18ns with related. Sets related.R.User's CollectionI18ns accordingly. Uses the global database handle and panics on error.

func (*User) SetCollectionI18nsP

func (o *User) SetCollectionI18nsP(exec boil.Executor, insert bool, related ...*CollectionI18n)

SetCollectionI18nsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's CollectionI18ns accordingly. Replaces o.R.CollectionI18ns with related. Sets related.R.User's CollectionI18ns accordingly. Panics on error.

func (*User) SetContentUnitI18ns

func (o *User) SetContentUnitI18ns(exec boil.Executor, insert bool, related ...*ContentUnitI18n) error

SetContentUnitI18ns removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's ContentUnitI18ns accordingly. Replaces o.R.ContentUnitI18ns with related. Sets related.R.User's ContentUnitI18ns accordingly.

func (*User) SetContentUnitI18nsG

func (o *User) SetContentUnitI18nsG(insert bool, related ...*ContentUnitI18n) error

SetContentUnitI18nsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's ContentUnitI18ns accordingly. Replaces o.R.ContentUnitI18ns with related. Sets related.R.User's ContentUnitI18ns accordingly. Uses the global database handle.

func (*User) SetContentUnitI18nsGP

func (o *User) SetContentUnitI18nsGP(insert bool, related ...*ContentUnitI18n)

SetContentUnitI18nsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's ContentUnitI18ns accordingly. Replaces o.R.ContentUnitI18ns with related. Sets related.R.User's ContentUnitI18ns accordingly. Uses the global database handle and panics on error.

func (*User) SetContentUnitI18nsP

func (o *User) SetContentUnitI18nsP(exec boil.Executor, insert bool, related ...*ContentUnitI18n)

SetContentUnitI18nsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's ContentUnitI18ns accordingly. Replaces o.R.ContentUnitI18ns with related. Sets related.R.User's ContentUnitI18ns accordingly. Panics on error.

func (*User) SetOperations

func (o *User) SetOperations(exec boil.Executor, insert bool, related ...*Operation) error

SetOperations removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.User's Operations accordingly.

func (*User) SetOperationsG

func (o *User) SetOperationsG(insert bool, related ...*Operation) error

SetOperationsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.User's Operations accordingly. Uses the global database handle.

func (*User) SetOperationsGP

func (o *User) SetOperationsGP(insert bool, related ...*Operation)

SetOperationsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.User's Operations accordingly. Uses the global database handle and panics on error.

func (*User) SetOperationsP

func (o *User) SetOperationsP(exec boil.Executor, insert bool, related ...*Operation)

SetOperationsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's Operations accordingly. Replaces o.R.Operations with related. Sets related.R.User's Operations accordingly. Panics on error.

func (*User) SetPersonI18ns

func (o *User) SetPersonI18ns(exec boil.Executor, insert bool, related ...*PersonI18n) error

SetPersonI18ns removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PersonI18ns accordingly. Replaces o.R.PersonI18ns with related. Sets related.R.User's PersonI18ns accordingly.

func (*User) SetPersonI18nsG

func (o *User) SetPersonI18nsG(insert bool, related ...*PersonI18n) error

SetPersonI18nsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PersonI18ns accordingly. Replaces o.R.PersonI18ns with related. Sets related.R.User's PersonI18ns accordingly. Uses the global database handle.

func (*User) SetPersonI18nsGP

func (o *User) SetPersonI18nsGP(insert bool, related ...*PersonI18n)

SetPersonI18nsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PersonI18ns accordingly. Replaces o.R.PersonI18ns with related. Sets related.R.User's PersonI18ns accordingly. Uses the global database handle and panics on error.

func (*User) SetPersonI18nsP

func (o *User) SetPersonI18nsP(exec boil.Executor, insert bool, related ...*PersonI18n)

SetPersonI18nsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PersonI18ns accordingly. Replaces o.R.PersonI18ns with related. Sets related.R.User's PersonI18ns accordingly. Panics on error.

func (*User) SetPublisherI18ns

func (o *User) SetPublisherI18ns(exec boil.Executor, insert bool, related ...*PublisherI18n) error

SetPublisherI18ns removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PublisherI18ns accordingly. Replaces o.R.PublisherI18ns with related. Sets related.R.User's PublisherI18ns accordingly.

func (*User) SetPublisherI18nsG

func (o *User) SetPublisherI18nsG(insert bool, related ...*PublisherI18n) error

SetPublisherI18nsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PublisherI18ns accordingly. Replaces o.R.PublisherI18ns with related. Sets related.R.User's PublisherI18ns accordingly. Uses the global database handle.

func (*User) SetPublisherI18nsGP

func (o *User) SetPublisherI18nsGP(insert bool, related ...*PublisherI18n)

SetPublisherI18nsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PublisherI18ns accordingly. Replaces o.R.PublisherI18ns with related. Sets related.R.User's PublisherI18ns accordingly. Uses the global database handle and panics on error.

func (*User) SetPublisherI18nsP

func (o *User) SetPublisherI18nsP(exec boil.Executor, insert bool, related ...*PublisherI18n)

SetPublisherI18nsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's PublisherI18ns accordingly. Replaces o.R.PublisherI18ns with related. Sets related.R.User's PublisherI18ns accordingly. Panics on error.

func (*User) SetTagI18ns

func (o *User) SetTagI18ns(exec boil.Executor, insert bool, related ...*TagI18n) error

SetTagI18ns removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's TagI18ns accordingly. Replaces o.R.TagI18ns with related. Sets related.R.User's TagI18ns accordingly.

func (*User) SetTagI18nsG

func (o *User) SetTagI18nsG(insert bool, related ...*TagI18n) error

SetTagI18nsG removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's TagI18ns accordingly. Replaces o.R.TagI18ns with related. Sets related.R.User's TagI18ns accordingly. Uses the global database handle.

func (*User) SetTagI18nsGP

func (o *User) SetTagI18nsGP(insert bool, related ...*TagI18n)

SetTagI18nsGP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's TagI18ns accordingly. Replaces o.R.TagI18ns with related. Sets related.R.User's TagI18ns accordingly. Uses the global database handle and panics on error.

func (*User) SetTagI18nsP

func (o *User) SetTagI18nsP(exec boil.Executor, insert bool, related ...*TagI18n)

SetTagI18nsP removes all previously related items of the user replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.User's TagI18ns accordingly. Replaces o.R.TagI18ns with related. Sets related.R.User's TagI18ns accordingly. Panics on error.

func (*User) TagI18ns

func (o *User) TagI18ns(exec boil.Executor, mods ...qm.QueryMod) tagI18nQuery

TagI18ns retrieves all the tag_i18n's tag i18n with an executor.

func (*User) TagI18nsG

func (o *User) TagI18nsG(mods ...qm.QueryMod) tagI18nQuery

TagI18nsG retrieves all the tag_i18n's tag i18n.

func (*User) Update

func (o *User) Update(exec boil.Executor, whitelist ...string) error

Update uses an executor to update the User. Whitelist behavior: If a whitelist is provided, only the columns given are updated. No whitelist behavior: Without a whitelist, columns are inferred by the following rules: - All columns are inferred to start with - All primary keys are subtracted from this set Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.

func (*User) UpdateG

func (o *User) UpdateG(whitelist ...string) error

UpdateG a single User record. See Update for whitelist behavior description.

func (*User) UpdateGP

func (o *User) UpdateGP(whitelist ...string)

UpdateGP a single User record. UpdateGP takes a whitelist of column names that should be updated. Panics on error. See Update for whitelist behavior description.

func (*User) UpdateP

func (o *User) UpdateP(exec boil.Executor, whitelist ...string)

UpdateP uses an executor to update the User, and panics on error. See Update for whitelist behavior description.

func (*User) Upsert

func (o *User) Upsert(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

Upsert attempts an insert using an executor, and does an update or ignore on conflict.

func (*User) UpsertG

func (o *User) UpsertG(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string) error

UpsertG attempts an insert, and does an update or ignore on conflict.

func (*User) UpsertGP

func (o *User) UpsertGP(updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertGP attempts an insert, and does an update or ignore on conflict. Panics on error.

func (*User) UpsertP

func (o *User) UpsertP(exec boil.Executor, updateOnConflict bool, conflictColumns []string, updateColumns []string, whitelist ...string)

UpsertP attempts an insert using an executor, and does an update or ignore on conflict. UpsertP panics on error.

type UserSlice

type UserSlice []*User

UserSlice is an alias for a slice of pointers to User. This should generally be used opposed to []User.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(exec boil.Executor) error

DeleteAll deletes all rows in the slice, using an executor.

func (UserSlice) DeleteAllG

func (o UserSlice) DeleteAllG() error

DeleteAllG deletes all rows in the slice.

func (UserSlice) DeleteAllGP

func (o UserSlice) DeleteAllGP()

DeleteAllGP deletes all rows in the slice, and panics on error.

func (UserSlice) DeleteAllP

func (o UserSlice) DeleteAllP(exec boil.Executor)

DeleteAllP deletes all rows in the slice, using an executor, and panics on error.

func (*UserSlice) ReloadAll

func (o *UserSlice) ReloadAll(exec boil.Executor) error

ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*UserSlice) ReloadAllG

func (o *UserSlice) ReloadAllG() error

ReloadAllG refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.

func (*UserSlice) ReloadAllGP

func (o *UserSlice) ReloadAllGP()

ReloadAllGP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (*UserSlice) ReloadAllP

func (o *UserSlice) ReloadAllP(exec boil.Executor)

ReloadAllP refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice. Panics on error.

func (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(exec boil.Executor, cols M) error

UpdateAll updates all rows with the specified column values, using an executor.

func (UserSlice) UpdateAllG

func (o UserSlice) UpdateAllG(cols M) error

UpdateAllG updates all rows with the specified column values.

func (UserSlice) UpdateAllGP

func (o UserSlice) UpdateAllGP(cols M)

UpdateAllGP updates all rows with the specified column values, and panics on error.

func (UserSlice) UpdateAllP

func (o UserSlice) UpdateAllP(exec boil.Executor, cols M)

UpdateAllP updates all rows with the specified column values, and panics on error.

Jump to

Keyboard shortcuts

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