dbmodels

package
v0.0.0-...-adb56df Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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",
}
View Source
var ExifRels = struct {
	Photo string
}{
	Photo: "Photo",
}

ExifRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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",
}
View Source
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",
}
View Source
var OauthClientRedirectURLRels = struct {
	OauthClient string
}{
	OauthClient: "OauthClient",
}

OauthClientRedirectURLRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
var OauthClientRels = struct {
	OauthClientRedirectUrls string
	UserAuths               string
}{
	OauthClientRedirectUrls: "OauthClientRedirectUrls",
	UserAuths:               "UserAuths",
}

OauthClientRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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",
}
View Source
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",
}
View Source
var PhotoFileRels = struct {
	Photo string
}{
	Photo: "Photo",
}

PhotoFileRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
var PhotoRels = struct {
	Exifs           string
	PhotoFiles      string
	PhotoThumbnails string
}{
	Exifs:           "Exifs",
	PhotoFiles:      "PhotoFiles",
	PhotoThumbnails: "PhotoThumbnails",
}

PhotoRels is where relationship names are stored.

View Source
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",
}
View Source
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",
}
View Source
var PhotoThumbnailRels = struct {
	Photo string
}{
	Photo: "Photo",
}

PhotoThumbnailRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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 */},
}
View Source
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",
}
View Source
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",
}
View Source
var UserAuthRels = struct {
	OauthClient string
	User        string
}{
	OauthClient: "OauthClient",
	User:        "User",
}

UserAuthRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
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",
}
View Source
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",
}
View Source
var UserPasswordRels = struct {
	User string
}{
	User: "User",
}

UserPasswordRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
var UserRels = struct {
	UserPassword string
	UserAuths    string
}{
	UserPassword: "UserPassword",
	UserAuths:    "UserAuths",
}

UserRels is where relationship names are stored.

View Source
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",
}
View Source
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 */},
}
View Source
var ViewNames = struct {
}{}

Functions

func AddExifHook

func AddExifHook(hookPoint boil.HookPoint, exifHook ExifHook)

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

func AddPhotoHook(hookPoint boil.HookPoint, photoHook PhotoHook)

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

func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)

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

func ExifExists(ctx context.Context, exec boil.ContextExecutor, exifID int) (bool, error)

ExifExists checks if the Exif row exists.

func Exifs

func Exifs(mods ...qm.QueryMod) exifQuery

Exifs retrieves all the records using an executor.

func NewQuery

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

NewQuery initializes a new Query using the passed in QueryMods

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

func OauthClientRedirectUrls(mods ...qm.QueryMod) oauthClientRedirectURLQuery

OauthClientRedirectUrls retrieves all the records using an executor.

func OauthClients

func OauthClients(mods ...qm.QueryMod) oauthClientQuery

OauthClients retrieves all the records using an executor.

func PhotoExists

func PhotoExists(ctx context.Context, exec boil.ContextExecutor, photoID int) (bool, error)

PhotoExists checks if the Photo row exists.

func PhotoFileExists

func PhotoFileExists(ctx context.Context, exec boil.ContextExecutor, photoFileID int) (bool, error)

PhotoFileExists checks if the PhotoFile row exists.

func PhotoFiles

func PhotoFiles(mods ...qm.QueryMod) photoFileQuery

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

func PhotoThumbnails(mods ...qm.QueryMod) photoThumbnailQuery

PhotoThumbnails retrieves all the records using an executor.

func Photos

func Photos(mods ...qm.QueryMod) photoQuery

Photos 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 UserAuths

func UserAuths(mods ...qm.QueryMod) userAuthQuery

UserAuths retrieves all the records using an executor.

func UserExists

func UserExists(ctx context.Context, exec boil.ContextExecutor, userID string) (bool, error)

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

func UserPasswords(mods ...qm.QueryMod) userPasswordQuery

UserPasswords retrieves all the records using an executor.

func Users

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

Users 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

func (o *Exif) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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) Exists

func (o *Exif) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Exif row exists.

func (*Exif) Insert

func (o *Exif) 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 (*Exif) Photo

func (o *Exif) Photo(mods ...qm.QueryMod) photoQuery

Photo pointed to by the foreign key.

func (*Exif) Reload

func (o *Exif) Reload(ctx context.Context, exec boil.ContextExecutor) error

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 ExifHook

type ExifHook func(context.Context, boil.ContextExecutor, *Exif) error

ExifHook is the signature for custom Exif hook methods

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.

func (ExifSlice) DeleteAll

func (o ExifSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*ExifSlice) ReloadAll

func (o *ExifSlice) 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 (ExifSlice) UpdateAll

func (o ExifSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

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

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

Exists checks if the OauthClientRedirectURL row exists.

func (*OauthClientRedirectURL) Insert

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

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

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

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

func (*OauthClientRedirectURLSlice) ReloadAll

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

func (o *Photo) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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) Exifs

func (o *Photo) Exifs(mods ...qm.QueryMod) exifQuery

Exifs retrieves all the exif's Exifs with an executor.

func (*Photo) Exists

func (o *Photo) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the Photo row exists.

func (*Photo) Insert

func (o *Photo) 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 (*Photo) PhotoFiles

func (o *Photo) PhotoFiles(mods ...qm.QueryMod) photoFileQuery

PhotoFiles retrieves all the photo_file's PhotoFiles with an executor.

func (*Photo) PhotoThumbnails

func (o *Photo) PhotoThumbnails(mods ...qm.QueryMod) photoThumbnailQuery

PhotoThumbnails retrieves all the photo_thumbnail's PhotoThumbnails with an executor.

func (*Photo) Reload

func (o *Photo) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

func (o *PhotoFile) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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) Exists

func (o *PhotoFile) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the PhotoFile row exists.

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) Photo

func (o *PhotoFile) Photo(mods ...qm.QueryMod) photoQuery

Photo pointed to by the foreign key.

func (*PhotoFile) Reload

func (o *PhotoFile) Reload(ctx context.Context, exec boil.ContextExecutor) error

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

type PhotoFileHook func(context.Context, boil.ContextExecutor, *PhotoFile) error

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 PhotoHook

type PhotoHook func(context.Context, boil.ContextExecutor, *Photo) error

PhotoHook is the signature for custom Photo hook methods

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

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

func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, 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) Exists

func (o *User) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the User row exists.

func (*User) Insert

func (o *User) 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 (*User) Reload

func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error

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) UserAuths

func (o *User) UserAuths(mods ...qm.QueryMod) userAuthQuery

UserAuths retrieves all the user_auth's UserAuths with an executor.

func (*User) UserPassword

func (o *User) UserPassword(mods ...qm.QueryMod) userPasswordQuery

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

func (o *UserAuth) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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) Exists

func (o *UserAuth) Exists(ctx context.Context, exec boil.ContextExecutor) (bool, error)

Exists checks if the UserAuth row exists.

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

func (o *UserAuth) OauthClient(mods ...qm.QueryMod) oauthClientQuery

OauthClient pointed to by the foreign key.

func (*UserAuth) Reload

func (o *UserAuth) Reload(ctx context.Context, exec boil.ContextExecutor) error

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.

func (*UserAuth) User

func (o *UserAuth) User(mods ...qm.QueryMod) userQuery

User pointed to by the foreign key.

type UserAuthHook

type UserAuthHook func(context.Context, boil.ContextExecutor, *UserAuth) error

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 UserHook

type UserHook func(context.Context, boil.ContextExecutor, *User) error

UserHook is the signature for custom User hook methods

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.

func (UserSlice) DeleteAll

func (o UserSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)

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

func (*UserSlice) ReloadAll

func (o *UserSlice) 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 (UserSlice) UpdateAll

func (o UserSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL