Documentation ¶
Index ¶
- Variables
- func AddExifHook(hookPoint boil.HookPoint, exifHook ExifHook)
- func AddOauthClientHook(hookPoint boil.HookPoint, oauthClientHook OauthClientHook)
- func AddOauthClientRedirectURLHook(hookPoint boil.HookPoint, ...)
- func AddPhotoFileHook(hookPoint boil.HookPoint, photoFileHook PhotoFileHook)
- func AddPhotoHook(hookPoint boil.HookPoint, photoHook PhotoHook)
- func AddPhotoThumbnailHook(hookPoint boil.HookPoint, photoThumbnailHook PhotoThumbnailHook)
- func AddUserAuthHook(hookPoint boil.HookPoint, userAuthHook UserAuthHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AddUserPasswordHook(hookPoint boil.HookPoint, userPasswordHook UserPasswordHook)
- func ExifExists(ctx context.Context, exec boil.ContextExecutor, exifID int) (bool, error)
- func Exifs(mods ...qm.QueryMod) exifQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func OauthClientExists(ctx context.Context, exec boil.ContextExecutor, oauthClientID string) (bool, error)
- func OauthClientRedirectURLExists(ctx context.Context, exec boil.ContextExecutor, oauthClientRedirectURLID int) (bool, error)
- func OauthClientRedirectUrls(mods ...qm.QueryMod) oauthClientRedirectURLQuery
- func OauthClients(mods ...qm.QueryMod) oauthClientQuery
- func PhotoExists(ctx context.Context, exec boil.ContextExecutor, photoID int) (bool, error)
- func PhotoFileExists(ctx context.Context, exec boil.ContextExecutor, photoFileID int) (bool, error)
- func PhotoFiles(mods ...qm.QueryMod) photoFileQuery
- func PhotoThumbnailExists(ctx context.Context, exec boil.ContextExecutor, photoID int, ...) (bool, error)
- func PhotoThumbnails(mods ...qm.QueryMod) photoThumbnailQuery
- func Photos(mods ...qm.QueryMod) photoQuery
- func UserAuthExists(ctx context.Context, exec boil.ContextExecutor, userID string, ...) (bool, error)
- func UserAuths(mods ...qm.QueryMod) userAuthQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)
- func UserPasswordExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)
- func UserPasswords(mods ...qm.QueryMod) userPasswordQuery
- func Users(mods ...qm.QueryMod) userQuery
- type Exif
- func (o *Exif) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Exif) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Exif) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Exif) Photo(mods ...qm.QueryMod) photoQuery
- func (o *Exif) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Exif) SetPhoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Photo) error
- func (o *Exif) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Exif) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type ExifHook
- type ExifSlice
- type M
- type OauthClient
- func (o *OauthClient) AddOauthClientRedirectUrls(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OauthClient) AddUserAuths(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OauthClient) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthClient) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *OauthClient) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OauthClient) OauthClientRedirectUrls(mods ...qm.QueryMod) oauthClientRedirectURLQuery
- func (o *OauthClient) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OauthClient) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OauthClient) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *OauthClient) UserAuths(mods ...qm.QueryMod) userAuthQuery
- type OauthClientHook
- type OauthClientRedirectURL
- func (o *OauthClientRedirectURL) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthClientRedirectURL) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *OauthClientRedirectURL) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *OauthClientRedirectURL) OauthClient(mods ...qm.QueryMod) oauthClientQuery
- func (o *OauthClientRedirectURL) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *OauthClientRedirectURL) SetOauthClient(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *OauthClientRedirectURL) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *OauthClientRedirectURL) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type OauthClientRedirectURLHook
- type OauthClientRedirectURLSlice
- func (o OauthClientRedirectURLSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *OauthClientRedirectURLSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o OauthClientRedirectURLSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type OauthClientSlice
- type Photo
- func (o *Photo) AddExifs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Exif) error
- func (o *Photo) AddPhotoFiles(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Photo) AddPhotoThumbnails(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Photo) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Photo) Exifs(mods ...qm.QueryMod) exifQuery
- func (o *Photo) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *Photo) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Photo) PhotoFiles(mods ...qm.QueryMod) photoFileQuery
- func (o *Photo) PhotoThumbnails(mods ...qm.QueryMod) photoThumbnailQuery
- func (o *Photo) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Photo) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Photo) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type PhotoFile
- func (o *PhotoFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PhotoFile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PhotoFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PhotoFile) Photo(mods ...qm.QueryMod) photoQuery
- func (o *PhotoFile) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PhotoFile) SetPhoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Photo) error
- func (o *PhotoFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PhotoFile) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type PhotoFileHook
- type PhotoFileSlice
- type PhotoHook
- type PhotoSlice
- type PhotoThumbnail
- func (o *PhotoThumbnail) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PhotoThumbnail) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *PhotoThumbnail) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *PhotoThumbnail) Photo(mods ...qm.QueryMod) photoQuery
- func (o *PhotoThumbnail) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *PhotoThumbnail) SetPhoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Photo) error
- func (o *PhotoThumbnail) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *PhotoThumbnail) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type PhotoThumbnailHook
- type PhotoThumbnailSlice
- func (o PhotoThumbnailSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *PhotoThumbnailSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o PhotoThumbnailSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type User
- func (o *User) AddUserAuths(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) SetUserPassword(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *User) UserAuths(mods ...qm.QueryMod) userAuthQuery
- func (o *User) UserPassword(mods ...qm.QueryMod) userPasswordQuery
- type UserAuth
- func (o *UserAuth) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserAuth) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserAuth) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserAuth) OauthClient(mods ...qm.QueryMod) oauthClientQuery
- func (o *UserAuth) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserAuth) SetOauthClient(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *UserAuth) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *UserAuth) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserAuth) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *UserAuth) User(mods ...qm.QueryMod) userQuery
- type UserAuthHook
- type UserAuthSlice
- type UserHook
- type UserPassword
- func (o *UserPassword) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *UserPassword) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
- func (o *UserPassword) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *UserPassword) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *UserPassword) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *UserPassword) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *UserPassword) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *UserPassword) User(mods ...qm.QueryMod) userQuery
- type UserPasswordHook
- type UserPasswordSlice
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var ErrSyncFail = errors.New("dbmodels: 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.
var ExifColumns = struct { ExifID string PhotoID string TagID string TagName string TagType string ValueString string SortOrder string CreatedAt string UpdatedAt string }{ ExifID: "exif_id", PhotoID: "photo_id", TagID: "tag_id", TagName: "tag_name", TagType: "tag_type", ValueString: "value_string", SortOrder: "sort_order", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var ExifRels = struct { Photo string }{ Photo: "Photo", }
ExifRels is where relationship names are stored.
var ExifTableColumns = struct { ExifID string PhotoID string TagID string TagName string TagType string ValueString string SortOrder string CreatedAt string UpdatedAt string }{ ExifID: "exif.exif_id", PhotoID: "exif.photo_id", TagID: "exif.tag_id", TagName: "exif.tag_name", TagType: "exif.tag_type", ValueString: "exif.value_string", SortOrder: "exif.sort_order", CreatedAt: "exif.created_at", UpdatedAt: "exif.updated_at", }
var ExifWhere = struct { ExifID whereHelperint PhotoID whereHelperint TagID whereHelperint TagName whereHelperstring TagType whereHelperstring ValueString whereHelperstring SortOrder whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ExifID: whereHelperint{/* contains filtered or unexported fields */}, PhotoID: whereHelperint{/* contains filtered or unexported fields */}, TagID: whereHelperint{/* contains filtered or unexported fields */}, TagName: whereHelperstring{/* contains filtered or unexported fields */}, TagType: whereHelperstring{/* contains filtered or unexported fields */}, ValueString: whereHelperstring{/* contains filtered or unexported fields */}, SortOrder: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var OauthClientColumns = struct { OauthClientID string Name string ClientSecret string Scope string ClientType string CreatedAt string UpdatedAt string }{ OauthClientID: "oauth_client_id", Name: "name", ClientSecret: "client_secret", Scope: "scope", ClientType: "client_type", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var OauthClientRedirectURLColumns = struct { OauthClientID string RedirectURL string OauthClientRedirectURLID string CreatedAt string UpdatedAt string }{ OauthClientID: "oauth_client_id", RedirectURL: "redirect_url", OauthClientRedirectURLID: "oauth_client_redirect_url_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var OauthClientRedirectURLRels = struct { OauthClient string }{ OauthClient: "OauthClient", }
OauthClientRedirectURLRels is where relationship names are stored.
var OauthClientRedirectURLTableColumns = struct { OauthClientID string RedirectURL string OauthClientRedirectURLID string CreatedAt string UpdatedAt string }{ OauthClientID: "oauth_client_redirect_urls.oauth_client_id", RedirectURL: "oauth_client_redirect_urls.redirect_url", OauthClientRedirectURLID: "oauth_client_redirect_urls.oauth_client_redirect_url_id", CreatedAt: "oauth_client_redirect_urls.created_at", UpdatedAt: "oauth_client_redirect_urls.updated_at", }
var OauthClientRedirectURLWhere = struct { OauthClientID whereHelperstring RedirectURL whereHelperstring OauthClientRedirectURLID whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ OauthClientID: whereHelperstring{/* contains filtered or unexported fields */}, RedirectURL: whereHelperstring{/* contains filtered or unexported fields */}, OauthClientRedirectURLID: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var OauthClientRels = struct { OauthClientRedirectUrls string UserAuths string }{ OauthClientRedirectUrls: "OauthClientRedirectUrls", UserAuths: "UserAuths", }
OauthClientRels is where relationship names are stored.
var OauthClientTableColumns = struct { OauthClientID string Name string ClientSecret string Scope string ClientType string CreatedAt string UpdatedAt string }{ OauthClientID: "oauth_clients.oauth_client_id", Name: "oauth_clients.name", ClientSecret: "oauth_clients.client_secret", Scope: "oauth_clients.scope", ClientType: "oauth_clients.client_type", CreatedAt: "oauth_clients.created_at", UpdatedAt: "oauth_clients.updated_at", }
var OauthClientWhere = struct { OauthClientID whereHelperstring Name whereHelperstring ClientSecret whereHelperstring Scope whereHelperstring ClientType whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ OauthClientID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, ClientSecret: whereHelperstring{/* contains filtered or unexported fields */}, Scope: whereHelperstring{/* contains filtered or unexported fields */}, ClientType: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var PhotoColumns = struct { PhotoID string Name string ImportedAt string CreatedAt string UpdatedAt string FileNameHash string }{ PhotoID: "photo_id", Name: "name", ImportedAt: "imported_at", CreatedAt: "created_at", UpdatedAt: "updated_at", FileNameHash: "file_name_hash", }
var PhotoFileColumns = struct { PhotoFileID string PhotoID string FileType string FilePath string ImportedAt string FileHash string CreatedAt string UpdatedAt string }{ PhotoFileID: "photo_file_id", PhotoID: "photo_id", FileType: "file_type", FilePath: "file_path", ImportedAt: "imported_at", FileHash: "file_hash", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PhotoFileRels = struct { Photo string }{ Photo: "Photo", }
PhotoFileRels is where relationship names are stored.
var PhotoFileTableColumns = struct { PhotoFileID string PhotoID string FileType string FilePath string ImportedAt string FileHash string CreatedAt string UpdatedAt string }{ PhotoFileID: "photo_files.photo_file_id", PhotoID: "photo_files.photo_id", FileType: "photo_files.file_type", FilePath: "photo_files.file_path", ImportedAt: "photo_files.imported_at", FileHash: "photo_files.file_hash", CreatedAt: "photo_files.created_at", UpdatedAt: "photo_files.updated_at", }
var PhotoFileWhere = struct { PhotoFileID whereHelperint PhotoID whereHelperint FileType whereHelperstring FilePath whereHelperstring ImportedAt whereHelpertime_Time FileHash whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ PhotoFileID: whereHelperint{/* contains filtered or unexported fields */}, PhotoID: whereHelperint{/* contains filtered or unexported fields */}, FileType: whereHelperstring{/* contains filtered or unexported fields */}, FilePath: whereHelperstring{/* contains filtered or unexported fields */}, ImportedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, FileHash: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var PhotoRels = struct { Exifs string PhotoFiles string PhotoThumbnails string }{ Exifs: "Exifs", PhotoFiles: "PhotoFiles", PhotoThumbnails: "PhotoThumbnails", }
PhotoRels is where relationship names are stored.
var PhotoTableColumns = struct { PhotoID string Name string ImportedAt string CreatedAt string UpdatedAt string FileNameHash string }{ PhotoID: "photos.photo_id", Name: "photos.name", ImportedAt: "photos.imported_at", CreatedAt: "photos.created_at", UpdatedAt: "photos.updated_at", FileNameHash: "photos.file_name_hash", }
var PhotoThumbnailColumns = struct { PhotoID string ThumbnailName string FilePath string CreatedAt string UpdatedAt string }{ PhotoID: "photo_id", ThumbnailName: "thumbnail_name", FilePath: "file_path", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var PhotoThumbnailRels = struct { Photo string }{ Photo: "Photo", }
PhotoThumbnailRels is where relationship names are stored.
var PhotoThumbnailTableColumns = struct { PhotoID string ThumbnailName string FilePath string CreatedAt string UpdatedAt string }{ PhotoID: "photo_thumbnails.photo_id", ThumbnailName: "photo_thumbnails.thumbnail_name", FilePath: "photo_thumbnails.file_path", CreatedAt: "photo_thumbnails.created_at", UpdatedAt: "photo_thumbnails.updated_at", }
var PhotoThumbnailWhere = struct { PhotoID whereHelperint ThumbnailName whereHelperstring FilePath whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ PhotoID: whereHelperint{/* contains filtered or unexported fields */}, ThumbnailName: whereHelperstring{/* contains filtered or unexported fields */}, FilePath: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var PhotoWhere = struct { PhotoID whereHelperint Name whereHelperstring ImportedAt whereHelpertime_Time CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time FileNameHash whereHelperstring }{ PhotoID: whereHelperint{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, ImportedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, FileNameHash: whereHelperstring{/* contains filtered or unexported fields */}, }
var TableNames = struct { Exif string OauthClientRedirectUrls string OauthClients string PhotoFiles string PhotoThumbnails string Photos string UserAuth string UserPasswords string Users string }{ Exif: "exif", OauthClientRedirectUrls: "oauth_client_redirect_urls", OauthClients: "oauth_clients", PhotoFiles: "photo_files", PhotoThumbnails: "photo_thumbnails", Photos: "photos", UserAuth: "user_auth", UserPasswords: "user_passwords", Users: "users", }
var UserAuthColumns = struct { UserID string OauthClientID string RefreshToken string RefreshTokenPublishedAt string CreatedAt string UpdatedAt string }{ UserID: "user_id", OauthClientID: "oauth_client_id", RefreshToken: "refresh_token", RefreshTokenPublishedAt: "refresh_token_published_at", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserAuthRels = struct { OauthClient string User string }{ OauthClient: "OauthClient", User: "User", }
UserAuthRels is where relationship names are stored.
var UserAuthTableColumns = struct { UserID string OauthClientID string RefreshToken string RefreshTokenPublishedAt string CreatedAt string UpdatedAt string }{ UserID: "user_auth.user_id", OauthClientID: "user_auth.oauth_client_id", RefreshToken: "user_auth.refresh_token", RefreshTokenPublishedAt: "user_auth.refresh_token_published_at", CreatedAt: "user_auth.created_at", UpdatedAt: "user_auth.updated_at", }
var UserAuthWhere = struct { UserID whereHelperstring OauthClientID whereHelperstring RefreshToken whereHelperstring RefreshTokenPublishedAt whereHelperint64 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ UserID: whereHelperstring{/* contains filtered or unexported fields */}, OauthClientID: whereHelperstring{/* contains filtered or unexported fields */}, RefreshToken: whereHelperstring{/* contains filtered or unexported fields */}, RefreshTokenPublishedAt: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserColumns = struct { UserID string Name string Status string CreatedAt string UpdatedAt string }{ UserID: "user_id", Name: "name", Status: "status", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserPasswordColumns = struct { UserID string Password string LastModifiedAt string IsInitialized string CreatedAt string UpdatedAt string }{ UserID: "user_id", Password: "password", LastModifiedAt: "last_modified_at", IsInitialized: "is_initialized", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserPasswordRels = struct { User string }{ User: "User", }
UserPasswordRels is where relationship names are stored.
var UserPasswordTableColumns = struct { UserID string Password string LastModifiedAt string IsInitialized string CreatedAt string UpdatedAt string }{ UserID: "user_passwords.user_id", Password: "user_passwords.password", LastModifiedAt: "user_passwords.last_modified_at", IsInitialized: "user_passwords.is_initialized", CreatedAt: "user_passwords.created_at", UpdatedAt: "user_passwords.updated_at", }
var UserPasswordWhere = struct { UserID whereHelperstring Password whereHelperstring LastModifiedAt whereHelpertime_Time IsInitialized whereHelperint8 CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ UserID: whereHelperstring{/* contains filtered or unexported fields */}, Password: whereHelperstring{/* contains filtered or unexported fields */}, LastModifiedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, IsInitialized: whereHelperint8{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var UserRels = struct { UserPassword string UserAuths string }{ UserPassword: "UserPassword", UserAuths: "UserAuths", }
UserRels is where relationship names are stored.
var UserTableColumns = struct { UserID string Name string Status string CreatedAt string UpdatedAt string }{ UserID: "users.user_id", Name: "users.name", Status: "users.status", CreatedAt: "users.created_at", UpdatedAt: "users.updated_at", }
var UserWhere = struct { UserID whereHelperstring Name whereHelperstring Status whereHelperint CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ UserID: whereHelperstring{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Status: whereHelperint{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ViewNames = struct {
}{}
Functions ¶
func AddExifHook ¶
AddExifHook registers your hook function for all future operations.
func AddOauthClientHook ¶
func AddOauthClientHook(hookPoint boil.HookPoint, oauthClientHook OauthClientHook)
AddOauthClientHook registers your hook function for all future operations.
func AddOauthClientRedirectURLHook ¶
func AddOauthClientRedirectURLHook(hookPoint boil.HookPoint, oauthClientRedirectURLHook OauthClientRedirectURLHook)
AddOauthClientRedirectURLHook registers your hook function for all future operations.
func AddPhotoFileHook ¶
func AddPhotoFileHook(hookPoint boil.HookPoint, photoFileHook PhotoFileHook)
AddPhotoFileHook registers your hook function for all future operations.
func AddPhotoHook ¶
AddPhotoHook registers your hook function for all future operations.
func AddPhotoThumbnailHook ¶
func AddPhotoThumbnailHook(hookPoint boil.HookPoint, photoThumbnailHook PhotoThumbnailHook)
AddPhotoThumbnailHook registers your hook function for all future operations.
func AddUserAuthHook ¶
func AddUserAuthHook(hookPoint boil.HookPoint, userAuthHook UserAuthHook)
AddUserAuthHook registers your hook function for all future operations.
func AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AddUserPasswordHook ¶
func AddUserPasswordHook(hookPoint boil.HookPoint, userPasswordHook UserPasswordHook)
AddUserPasswordHook registers your hook function for all future operations.
func ExifExists ¶
ExifExists checks if the Exif row exists.
func OauthClientExists ¶
func OauthClientExists(ctx context.Context, exec boil.ContextExecutor, oauthClientID string) (bool, error)
OauthClientExists checks if the OauthClient row exists.
func OauthClientRedirectURLExists ¶
func OauthClientRedirectURLExists(ctx context.Context, exec boil.ContextExecutor, oauthClientRedirectURLID int) (bool, error)
OauthClientRedirectURLExists checks if the OauthClientRedirectURL row exists.
func OauthClientRedirectUrls ¶
OauthClientRedirectUrls retrieves all the records using an executor.
func OauthClients ¶
OauthClients retrieves all the records using an executor.
func PhotoExists ¶
PhotoExists checks if the Photo row exists.
func PhotoFileExists ¶
PhotoFileExists checks if the PhotoFile row exists.
func PhotoFiles ¶
PhotoFiles retrieves all the records using an executor.
func PhotoThumbnailExists ¶
func PhotoThumbnailExists(ctx context.Context, exec boil.ContextExecutor, photoID int, thumbnailName string) (bool, error)
PhotoThumbnailExists checks if the PhotoThumbnail row exists.
func PhotoThumbnails ¶
PhotoThumbnails retrieves all the records using an executor.
func UserAuthExists ¶
func UserAuthExists(ctx context.Context, exec boil.ContextExecutor, userID string, oauthClientID string) (bool, error)
UserAuthExists checks if the UserAuth row exists.
func UserExists ¶
UserExists checks if the User row exists.
func UserPasswordExists ¶
func UserPasswordExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)
UserPasswordExists checks if the UserPassword row exists.
func UserPasswords ¶
UserPasswords retrieves all the records using an executor.
Types ¶
type Exif ¶
type Exif struct { ExifID int `boil:"exif_id" json:"exif_id" toml:"exif_id" yaml:"exif_id"` PhotoID int `boil:"photo_id" json:"photo_id" toml:"photo_id" yaml:"photo_id"` TagID int `boil:"tag_id" json:"tag_id" toml:"tag_id" yaml:"tag_id"` TagName string `boil:"tag_name" json:"tag_name" toml:"tag_name" yaml:"tag_name"` TagType string `boil:"tag_type" json:"tag_type" toml:"tag_type" yaml:"tag_type"` ValueString string `boil:"value_string" json:"value_string" toml:"value_string" yaml:"value_string"` SortOrder int `boil:"sort_order" json:"sort_order" toml:"sort_order" yaml:"sort_order"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *exifR `boil:"-" json:"-" toml:"-" yaml:"-"` L exifL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Exif is an object representing the database table.
func FindExif ¶
func FindExif(ctx context.Context, exec boil.ContextExecutor, exifID int, selectCols ...string) (*Exif, error)
FindExif retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Exif) Delete ¶
Delete deletes a single Exif record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Exif) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Exif) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Exif) SetPhoto ¶
func (o *Exif) SetPhoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Photo) error
SetPhoto of the exif to the related item. Sets o.R.Photo to related. Adds o to related.R.Exifs.
func (*Exif) Update ¶
func (o *Exif) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Exif. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Exif) Upsert ¶
func (o *Exif) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type ExifSlice ¶
type ExifSlice []*Exif
ExifSlice is an alias for a slice of pointers to Exif. This should almost always be used instead of []Exif.
type M ¶
type M map[string]interface{}
M type is for providing columns and column values to UpdateAll.
type OauthClient ¶
type OauthClient struct { OauthClientID string `boil:"oauth_client_id" json:"oauth_client_id" toml:"oauth_client_id" yaml:"oauth_client_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` ClientSecret string `boil:"client_secret" json:"client_secret" toml:"client_secret" yaml:"client_secret"` Scope string `boil:"scope" json:"scope" toml:"scope" yaml:"scope"` ClientType int `boil:"client_type" json:"client_type" toml:"client_type" yaml:"client_type"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *oauthClientR `boil:"-" json:"-" toml:"-" yaml:"-"` L oauthClientL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OauthClient is an object representing the database table.
func FindOauthClient ¶
func FindOauthClient(ctx context.Context, exec boil.ContextExecutor, oauthClientID string, selectCols ...string) (*OauthClient, error)
FindOauthClient retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*OauthClient) AddOauthClientRedirectUrls ¶
func (o *OauthClient) AddOauthClientRedirectUrls(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*OauthClientRedirectURL) error
AddOauthClientRedirectUrls adds the given related objects to the existing relationships of the oauth_client, optionally inserting them as new records. Appends related to o.R.OauthClientRedirectUrls. Sets related.R.OauthClient appropriately.
func (*OauthClient) AddUserAuths ¶
func (o *OauthClient) AddUserAuths(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserAuth) error
AddUserAuths adds the given related objects to the existing relationships of the oauth_client, optionally inserting them as new records. Appends related to o.R.UserAuths. Sets related.R.OauthClient appropriately.
func (*OauthClient) Delete ¶
func (o *OauthClient) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OauthClient record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OauthClient) Exists ¶
func (o *OauthClient) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the OauthClient row exists.
func (*OauthClient) Insert ¶
func (o *OauthClient) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*OauthClient) OauthClientRedirectUrls ¶
func (o *OauthClient) OauthClientRedirectUrls(mods ...qm.QueryMod) oauthClientRedirectURLQuery
OauthClientRedirectUrls retrieves all the oauth_client_redirect_url's OauthClientRedirectUrls with an executor.
func (*OauthClient) Reload ¶
func (o *OauthClient) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OauthClient) Update ¶
func (o *OauthClient) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OauthClient. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*OauthClient) Upsert ¶
func (o *OauthClient) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*OauthClient) UserAuths ¶
func (o *OauthClient) UserAuths(mods ...qm.QueryMod) userAuthQuery
UserAuths retrieves all the user_auth's UserAuths with an executor.
type OauthClientHook ¶
type OauthClientHook func(context.Context, boil.ContextExecutor, *OauthClient) error
OauthClientHook is the signature for custom OauthClient hook methods
type OauthClientRedirectURL ¶
type OauthClientRedirectURL struct { OauthClientID string `boil:"oauth_client_id" json:"oauth_client_id" toml:"oauth_client_id" yaml:"oauth_client_id"` RedirectURL string `boil:"redirect_url" json:"redirect_url" toml:"redirect_url" yaml:"redirect_url"` OauthClientRedirectURLID int `` /* 143-byte string literal not displayed */ CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *oauthClientRedirectURLR `boil:"-" json:"-" toml:"-" yaml:"-"` L oauthClientRedirectURLL `boil:"-" json:"-" toml:"-" yaml:"-"` }
OauthClientRedirectURL is an object representing the database table.
func FindOauthClientRedirectURL ¶
func FindOauthClientRedirectURL(ctx context.Context, exec boil.ContextExecutor, oauthClientRedirectURLID int, selectCols ...string) (*OauthClientRedirectURL, error)
FindOauthClientRedirectURL retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*OauthClientRedirectURL) Delete ¶
func (o *OauthClientRedirectURL) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single OauthClientRedirectURL record with an executor. Delete will match against the primary key column to find the record to delete.
func (*OauthClientRedirectURL) Exists ¶
func (o *OauthClientRedirectURL) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the OauthClientRedirectURL row exists.
func (*OauthClientRedirectURL) Insert ¶
func (o *OauthClientRedirectURL) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*OauthClientRedirectURL) OauthClient ¶
func (o *OauthClientRedirectURL) OauthClient(mods ...qm.QueryMod) oauthClientQuery
OauthClient pointed to by the foreign key.
func (*OauthClientRedirectURL) Reload ¶
func (o *OauthClientRedirectURL) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*OauthClientRedirectURL) SetOauthClient ¶
func (o *OauthClientRedirectURL) SetOauthClient(ctx context.Context, exec boil.ContextExecutor, insert bool, related *OauthClient) error
SetOauthClient of the oauthClientRedirectURL to the related item. Sets o.R.OauthClient to related. Adds o to related.R.OauthClientRedirectUrls.
func (*OauthClientRedirectURL) Update ¶
func (o *OauthClientRedirectURL) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the OauthClientRedirectURL. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*OauthClientRedirectURL) Upsert ¶
func (o *OauthClientRedirectURL) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type OauthClientRedirectURLHook ¶
type OauthClientRedirectURLHook func(context.Context, boil.ContextExecutor, *OauthClientRedirectURL) error
OauthClientRedirectURLHook is the signature for custom OauthClientRedirectURL hook methods
type OauthClientRedirectURLSlice ¶
type OauthClientRedirectURLSlice []*OauthClientRedirectURL
OauthClientRedirectURLSlice is an alias for a slice of pointers to OauthClientRedirectURL. This should almost always be used instead of []OauthClientRedirectURL.
func (OauthClientRedirectURLSlice) DeleteAll ¶
func (o OauthClientRedirectURLSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OauthClientRedirectURLSlice) ReloadAll ¶
func (o *OauthClientRedirectURLSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OauthClientRedirectURLSlice) UpdateAll ¶
func (o OauthClientRedirectURLSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type OauthClientSlice ¶
type OauthClientSlice []*OauthClient
OauthClientSlice is an alias for a slice of pointers to OauthClient. This should almost always be used instead of []OauthClient.
func (OauthClientSlice) DeleteAll ¶
func (o OauthClientSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*OauthClientSlice) ReloadAll ¶
func (o *OauthClientSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (OauthClientSlice) UpdateAll ¶
func (o OauthClientSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Photo ¶
type Photo struct { PhotoID int `boil:"photo_id" json:"photo_id" toml:"photo_id" yaml:"photo_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` ImportedAt time.Time `boil:"imported_at" json:"imported_at" toml:"imported_at" yaml:"imported_at"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` FileNameHash string `boil:"file_name_hash" json:"file_name_hash" toml:"file_name_hash" yaml:"file_name_hash"` R *photoR `boil:"-" json:"-" toml:"-" yaml:"-"` L photoL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Photo is an object representing the database table.
func FindPhoto ¶
func FindPhoto(ctx context.Context, exec boil.ContextExecutor, photoID int, selectCols ...string) (*Photo, error)
FindPhoto retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Photo) AddExifs ¶
func (o *Photo) AddExifs(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Exif) error
AddExifs adds the given related objects to the existing relationships of the photo, optionally inserting them as new records. Appends related to o.R.Exifs. Sets related.R.Photo appropriately.
func (*Photo) AddPhotoFiles ¶
func (o *Photo) AddPhotoFiles(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PhotoFile) error
AddPhotoFiles adds the given related objects to the existing relationships of the photo, optionally inserting them as new records. Appends related to o.R.PhotoFiles. Sets related.R.Photo appropriately.
func (*Photo) AddPhotoThumbnails ¶
func (o *Photo) AddPhotoThumbnails(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*PhotoThumbnail) error
AddPhotoThumbnails adds the given related objects to the existing relationships of the photo, optionally inserting them as new records. Appends related to o.R.PhotoThumbnails. Sets related.R.Photo appropriately.
func (*Photo) Delete ¶
Delete deletes a single Photo record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Photo) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*Photo) PhotoFiles ¶
PhotoFiles retrieves all the photo_file's PhotoFiles with an executor.
func (*Photo) PhotoThumbnails ¶
PhotoThumbnails retrieves all the photo_thumbnail's PhotoThumbnails with an executor.
func (*Photo) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Photo) Update ¶
func (o *Photo) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Photo. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*Photo) Upsert ¶
func (o *Photo) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type PhotoFile ¶
type PhotoFile struct { PhotoFileID int `boil:"photo_file_id" json:"photo_file_id" toml:"photo_file_id" yaml:"photo_file_id"` PhotoID int `boil:"photo_id" json:"photo_id" toml:"photo_id" yaml:"photo_id"` FileType string `boil:"file_type" json:"file_type" toml:"file_type" yaml:"file_type"` FilePath string `boil:"file_path" json:"file_path" toml:"file_path" yaml:"file_path"` ImportedAt time.Time `boil:"imported_at" json:"imported_at" toml:"imported_at" yaml:"imported_at"` FileHash string `boil:"file_hash" json:"file_hash" toml:"file_hash" yaml:"file_hash"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *photoFileR `boil:"-" json:"-" toml:"-" yaml:"-"` L photoFileL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PhotoFile is an object representing the database table.
func FindPhotoFile ¶
func FindPhotoFile(ctx context.Context, exec boil.ContextExecutor, photoFileID int, selectCols ...string) (*PhotoFile, error)
FindPhotoFile retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*PhotoFile) Delete ¶
Delete deletes a single PhotoFile record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PhotoFile) Insert ¶
func (o *PhotoFile) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*PhotoFile) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*PhotoFile) SetPhoto ¶
func (o *PhotoFile) SetPhoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Photo) error
SetPhoto of the photoFile to the related item. Sets o.R.Photo to related. Adds o to related.R.PhotoFiles.
func (*PhotoFile) Update ¶
func (o *PhotoFile) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PhotoFile. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*PhotoFile) Upsert ¶
func (o *PhotoFile) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type PhotoFileHook ¶
PhotoFileHook is the signature for custom PhotoFile hook methods
type PhotoFileSlice ¶
type PhotoFileSlice []*PhotoFile
PhotoFileSlice is an alias for a slice of pointers to PhotoFile. This should almost always be used instead of []PhotoFile.
func (PhotoFileSlice) DeleteAll ¶
func (o PhotoFileSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PhotoFileSlice) ReloadAll ¶
func (o *PhotoFileSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PhotoFileSlice) UpdateAll ¶
func (o PhotoFileSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type PhotoSlice ¶
type PhotoSlice []*Photo
PhotoSlice is an alias for a slice of pointers to Photo. This should almost always be used instead of []Photo.
func (PhotoSlice) DeleteAll ¶
func (o PhotoSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PhotoSlice) ReloadAll ¶
func (o *PhotoSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PhotoSlice) UpdateAll ¶
func (o PhotoSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type PhotoThumbnail ¶
type PhotoThumbnail struct { PhotoID int `boil:"photo_id" json:"photo_id" toml:"photo_id" yaml:"photo_id"` ThumbnailName string `boil:"thumbnail_name" json:"thumbnail_name" toml:"thumbnail_name" yaml:"thumbnail_name"` FilePath string `boil:"file_path" json:"file_path" toml:"file_path" yaml:"file_path"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *photoThumbnailR `boil:"-" json:"-" toml:"-" yaml:"-"` L photoThumbnailL `boil:"-" json:"-" toml:"-" yaml:"-"` }
PhotoThumbnail is an object representing the database table.
func FindPhotoThumbnail ¶
func FindPhotoThumbnail(ctx context.Context, exec boil.ContextExecutor, photoID int, thumbnailName string, selectCols ...string) (*PhotoThumbnail, error)
FindPhotoThumbnail retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*PhotoThumbnail) Delete ¶
func (o *PhotoThumbnail) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single PhotoThumbnail record with an executor. Delete will match against the primary key column to find the record to delete.
func (*PhotoThumbnail) Exists ¶
func (o *PhotoThumbnail) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the PhotoThumbnail row exists.
func (*PhotoThumbnail) Insert ¶
func (o *PhotoThumbnail) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*PhotoThumbnail) Photo ¶
func (o *PhotoThumbnail) Photo(mods ...qm.QueryMod) photoQuery
Photo pointed to by the foreign key.
func (*PhotoThumbnail) Reload ¶
func (o *PhotoThumbnail) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*PhotoThumbnail) SetPhoto ¶
func (o *PhotoThumbnail) SetPhoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Photo) error
SetPhoto of the photoThumbnail to the related item. Sets o.R.Photo to related. Adds o to related.R.PhotoThumbnails.
func (*PhotoThumbnail) Update ¶
func (o *PhotoThumbnail) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the PhotoThumbnail. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*PhotoThumbnail) Upsert ¶
func (o *PhotoThumbnail) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type PhotoThumbnailHook ¶
type PhotoThumbnailHook func(context.Context, boil.ContextExecutor, *PhotoThumbnail) error
PhotoThumbnailHook is the signature for custom PhotoThumbnail hook methods
type PhotoThumbnailSlice ¶
type PhotoThumbnailSlice []*PhotoThumbnail
PhotoThumbnailSlice is an alias for a slice of pointers to PhotoThumbnail. This should almost always be used instead of []PhotoThumbnail.
func (PhotoThumbnailSlice) DeleteAll ¶
func (o PhotoThumbnailSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*PhotoThumbnailSlice) ReloadAll ¶
func (o *PhotoThumbnailSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (PhotoThumbnailSlice) UpdateAll ¶
func (o PhotoThumbnailSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type User ¶
type User struct { UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Status int `boil:"status" json:"status" toml:"status" yaml:"status"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AddUserAuths ¶
func (o *User) AddUserAuths(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*UserAuth) error
AddUserAuths adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.UserAuths. Sets related.R.User appropriately.
func (*User) Delete ¶
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) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) SetUserPassword ¶
func (o *User) SetUserPassword(ctx context.Context, exec boil.ContextExecutor, insert bool, related *UserPassword) error
SetUserPassword of the user to the related item. Sets o.R.UserPassword to related. Adds o to related.R.User.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*User) UserPassword ¶
UserPassword pointed to by the foreign key.
type UserAuth ¶
type UserAuth struct { UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` OauthClientID string `boil:"oauth_client_id" json:"oauth_client_id" toml:"oauth_client_id" yaml:"oauth_client_id"` RefreshToken string `boil:"refresh_token" json:"refresh_token" toml:"refresh_token" yaml:"refresh_token"` RefreshTokenPublishedAt int64 `` /* 135-byte string literal not displayed */ CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *userAuthR `boil:"-" json:"-" toml:"-" yaml:"-"` L userAuthL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserAuth is an object representing the database table.
func FindUserAuth ¶
func FindUserAuth(ctx context.Context, exec boil.ContextExecutor, userID string, oauthClientID string, selectCols ...string) (*UserAuth, error)
FindUserAuth retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserAuth) Delete ¶
Delete deletes a single UserAuth record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserAuth) Insert ¶
func (o *UserAuth) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*UserAuth) OauthClient ¶
OauthClient pointed to by the foreign key.
func (*UserAuth) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*UserAuth) SetOauthClient ¶
func (o *UserAuth) SetOauthClient(ctx context.Context, exec boil.ContextExecutor, insert bool, related *OauthClient) error
SetOauthClient of the userAuth to the related item. Sets o.R.OauthClient to related. Adds o to related.R.UserAuths.
func (*UserAuth) SetUser ¶
func (o *UserAuth) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the userAuth to the related item. Sets o.R.User to related. Adds o to related.R.UserAuths.
func (*UserAuth) Update ¶
func (o *UserAuth) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserAuth. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*UserAuth) Upsert ¶
func (o *UserAuth) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type UserAuthHook ¶
UserAuthHook is the signature for custom UserAuth hook methods
type UserAuthSlice ¶
type UserAuthSlice []*UserAuth
UserAuthSlice is an alias for a slice of pointers to UserAuth. This should almost always be used instead of []UserAuth.
func (UserAuthSlice) DeleteAll ¶
func (o UserAuthSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserAuthSlice) ReloadAll ¶
func (o *UserAuthSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (UserAuthSlice) UpdateAll ¶
func (o UserAuthSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UserPassword ¶
type UserPassword struct { UserID string `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` Password string `boil:"password" json:"password" toml:"password" yaml:"password"` LastModifiedAt time.Time `boil:"last_modified_at" json:"last_modified_at" toml:"last_modified_at" yaml:"last_modified_at"` IsInitialized int8 `boil:"is_initialized" json:"is_initialized" toml:"is_initialized" yaml:"is_initialized"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *userPasswordR `boil:"-" json:"-" toml:"-" yaml:"-"` L userPasswordL `boil:"-" json:"-" toml:"-" yaml:"-"` }
UserPassword is an object representing the database table.
func FindUserPassword ¶
func FindUserPassword(ctx context.Context, exec boil.ContextExecutor, userID string, selectCols ...string) (*UserPassword, error)
FindUserPassword retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*UserPassword) Delete ¶
func (o *UserPassword) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single UserPassword record with an executor. Delete will match against the primary key column to find the record to delete.
func (*UserPassword) Exists ¶
func (o *UserPassword) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)
Exists checks if the UserPassword row exists.
func (*UserPassword) Insert ¶
func (o *UserPassword) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*UserPassword) Reload ¶
func (o *UserPassword) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*UserPassword) SetUser ¶
func (o *UserPassword) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the userPassword to the related item. Sets o.R.User to related. Adds o to related.R.UserPassword.
func (*UserPassword) Update ¶
func (o *UserPassword) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the UserPassword. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*UserPassword) Upsert ¶
func (o *UserPassword) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*UserPassword) User ¶
func (o *UserPassword) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type UserPasswordHook ¶
type UserPasswordHook func(context.Context, boil.ContextExecutor, *UserPassword) error
UserPasswordHook is the signature for custom UserPassword hook methods
type UserPasswordSlice ¶
type UserPasswordSlice []*UserPassword
UserPasswordSlice is an alias for a slice of pointers to UserPassword. This should almost always be used instead of []UserPassword.
func (UserPasswordSlice) DeleteAll ¶
func (o UserPasswordSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*UserPasswordSlice) ReloadAll ¶
func (o *UserPasswordSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
ReloadAll refetches every row with matching primary key column values and overwrites the original object slice with the newly updated slice.
func (UserPasswordSlice) UpdateAll ¶
func (o UserPasswordSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.