models

package
v0.0.0-...-a602de9 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSyncFail = errors.New("models: 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 GphotosAlbumColumns = struct {
	ID      string
	Usecase string
}{
	ID:      "id",
	Usecase: "usecase",
}
View Source
var GphotosAlbumRels = struct {
	AlbumGphotosPhotos string
}{
	AlbumGphotosPhotos: "AlbumGphotosPhotos",
}

GphotosAlbumRels is where relationship names are stored.

View Source
var GphotosAlbumTableColumns = struct {
	ID      string
	Usecase string
}{
	ID:      "gphotos_albums.id",
	Usecase: "gphotos_albums.usecase",
}
View Source
var GphotosAlbumWhere = struct {
	ID      whereHelperstring
	Usecase whereHelperstring
}{
	ID:      whereHelperstring{/* contains filtered or unexported fields */},
	Usecase: whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var GphotosPhotoColumns = struct {
	ID           string
	AlbumID      string
	CreationTime string
	LastSeen     string
	ImageID      string
}{
	ID:           "id",
	AlbumID:      "album_id",
	CreationTime: "creation_time",
	LastSeen:     "last_seen",
	ImageID:      "image_id",
}
View Source
var GphotosPhotoRels = struct {
	Album             string
	Image             string
	GphotoMealGphotos string
}{
	Album:             "Album",
	Image:             "Image",
	GphotoMealGphotos: "GphotoMealGphotos",
}

GphotosPhotoRels is where relationship names are stored.

View Source
var GphotosPhotoTableColumns = struct {
	ID           string
	AlbumID      string
	CreationTime string
	LastSeen     string
	ImageID      string
}{
	ID:           "gphotos_photos.id",
	AlbumID:      "gphotos_photos.album_id",
	CreationTime: "gphotos_photos.creation_time",
	LastSeen:     "gphotos_photos.last_seen",
	ImageID:      "gphotos_photos.image_id",
}
View Source
var GphotosPhotoWhere = struct {
	ID           whereHelperstring
	AlbumID      whereHelperstring
	CreationTime whereHelpertime_Time
	LastSeen     whereHelpertime_Time
	ImageID      whereHelperstring
}{
	ID:           whereHelperstring{/* contains filtered or unexported fields */},
	AlbumID:      whereHelperstring{/* contains filtered or unexported fields */},
	CreationTime: whereHelpertime_Time{/* contains filtered or unexported fields */},
	LastSeen:     whereHelpertime_Time{/* contains filtered or unexported fields */},
	ImageID:      whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var ImageColumns = struct {
	ID       string
	BlurHash string
	Source   string
	TakenAt  string
}{
	ID:       "id",
	BlurHash: "blur_hash",
	Source:   "source",
	TakenAt:  "taken_at",
}
View Source
var ImageRels = struct {
	GphotosPhotos string
	NotionImages  string
}{
	GphotosPhotos: "GphotosPhotos",
	NotionImages:  "NotionImages",
}

ImageRels is where relationship names are stored.

View Source
var ImageTableColumns = struct {
	ID       string
	BlurHash string
	Source   string
	TakenAt  string
}{
	ID:       "images.id",
	BlurHash: "images.blur_hash",
	Source:   "images.source",
	TakenAt:  "images.taken_at",
}
View Source
var ImageWhere = struct {
	ID       whereHelperstring
	BlurHash whereHelperstring
	Source   whereHelperstring
	TakenAt  whereHelpernull_Time
}{
	ID:       whereHelperstring{/* contains filtered or unexported fields */},
	BlurHash: whereHelperstring{/* contains filtered or unexported fields */},
	Source:   whereHelperstring{/* contains filtered or unexported fields */},
	TakenAt:  whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var IngredientColumns = struct {
	ID                 string
	Name               string
	FDCID              string
	ParentIngredientID string
}{
	ID:                 "id",
	Name:               "name",
	FDCID:              "fdc_id",
	ParentIngredientID: "parent_ingredient_id",
}
View Source
var IngredientRels = struct {
	ParentIngredient            string
	IngredientUnits             string
	ParentIngredientIngredients string
	RecipeSectionIngredients    string
}{
	ParentIngredient:            "ParentIngredient",
	IngredientUnits:             "IngredientUnits",
	ParentIngredientIngredients: "ParentIngredientIngredients",
	RecipeSectionIngredients:    "RecipeSectionIngredients",
}

IngredientRels is where relationship names are stored.

View Source
var IngredientTableColumns = struct {
	ID                 string
	Name               string
	FDCID              string
	ParentIngredientID string
}{
	ID:                 "ingredients.id",
	Name:               "ingredients.name",
	FDCID:              "ingredients.fdc_id",
	ParentIngredientID: "ingredients.parent_ingredient_id",
}
View Source
var IngredientUnitColumns = struct {
	ID           string
	IngredientID string
	UnitA        string
	AmountA      string
	UnitB        string
	AmountB      string
	Source       string
}{
	ID:           "id",
	IngredientID: "ingredient_id",
	UnitA:        "unit_a",
	AmountA:      "amount_a",
	UnitB:        "unit_b",
	AmountB:      "amount_b",
	Source:       "source",
}
View Source
var IngredientUnitRels = struct {
	Ingredient string
}{
	Ingredient: "Ingredient",
}

IngredientUnitRels is where relationship names are stored.

View Source
var IngredientUnitTableColumns = struct {
	ID           string
	IngredientID string
	UnitA        string
	AmountA      string
	UnitB        string
	AmountB      string
	Source       string
}{
	ID:           "ingredient_units.id",
	IngredientID: "ingredient_units.ingredient_id",
	UnitA:        "ingredient_units.unit_a",
	AmountA:      "ingredient_units.amount_a",
	UnitB:        "ingredient_units.unit_b",
	AmountB:      "ingredient_units.amount_b",
	Source:       "ingredient_units.source",
}
View Source
var IngredientUnitWhere = struct {
	ID           whereHelperint
	IngredientID whereHelperstring
	UnitA        whereHelperstring
	AmountA      whereHelpertypes_Decimal
	UnitB        whereHelperstring
	AmountB      whereHelpertypes_Decimal
	Source       whereHelperstring
}{
	ID:           whereHelperint{/* contains filtered or unexported fields */},
	IngredientID: whereHelperstring{/* contains filtered or unexported fields */},
	UnitA:        whereHelperstring{/* contains filtered or unexported fields */},
	AmountA:      whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	UnitB:        whereHelperstring{/* contains filtered or unexported fields */},
	AmountB:      whereHelpertypes_Decimal{/* contains filtered or unexported fields */},
	Source:       whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var IngredientWhere = struct {
	ID                 whereHelperstring
	Name               whereHelperstring
	FDCID              whereHelpernull_Int
	ParentIngredientID whereHelpernull_String
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	Name:               whereHelperstring{/* contains filtered or unexported fields */},
	FDCID:              whereHelpernull_Int{/* contains filtered or unexported fields */},
	ParentIngredientID: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var KVColumns = struct {
	Key   string
	Value string
}{
	Key:   "key",
	Value: "value",
}
View Source
var KVRels = struct {
}{}

KVRels is where relationship names are stored.

View Source
var KVTableColumns = struct {
	Key   string
	Value string
}{
	Key:   "kv.key",
	Value: "kv.value",
}
View Source
var KVWhere = struct {
	Key   whereHelperstring
	Value whereHelpertypes_JSON
}{
	Key:   whereHelperstring{/* contains filtered or unexported fields */},
	Value: whereHelpertypes_JSON{/* contains filtered or unexported fields */},
}
View Source
var MealColumns = struct {
	ID         string
	Name       string
	NotionLink string
	AteAt      string
}{
	ID:         "id",
	Name:       "name",
	NotionLink: "notion_link",
	AteAt:      "ate_at",
}
View Source
var MealGphotoColumns = struct {
	MealID            string
	GphotosID         string
	HighlightRecipeID string
}{
	MealID:            "meal_id",
	GphotosID:         "gphotos_id",
	HighlightRecipeID: "highlight_recipe_id",
}
View Source
var MealGphotoRels = struct {
	Gphoto          string
	HighlightRecipe string
	Meal            string
}{
	Gphoto:          "Gphoto",
	HighlightRecipe: "HighlightRecipe",
	Meal:            "Meal",
}

MealGphotoRels is where relationship names are stored.

View Source
var MealGphotoTableColumns = struct {
	MealID            string
	GphotosID         string
	HighlightRecipeID string
}{
	MealID:            "meal_gphoto.meal_id",
	GphotosID:         "meal_gphoto.gphotos_id",
	HighlightRecipeID: "meal_gphoto.highlight_recipe_id",
}
View Source
var MealGphotoWhere = struct {
	MealID            whereHelperstring
	GphotosID         whereHelperstring
	HighlightRecipeID whereHelpernull_String
}{
	MealID:            whereHelperstring{/* contains filtered or unexported fields */},
	GphotosID:         whereHelperstring{/* contains filtered or unexported fields */},
	HighlightRecipeID: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var MealRecipeColumns = struct {
	MealID     string
	RecipeID   string
	Multiplier string
}{
	MealID:     "meal_id",
	RecipeID:   "recipe_id",
	Multiplier: "multiplier",
}
View Source
var MealRecipeRels = struct {
	Meal   string
	Recipe string
}{
	Meal:   "Meal",
	Recipe: "Recipe",
}

MealRecipeRels is where relationship names are stored.

View Source
var MealRecipeTableColumns = struct {
	MealID     string
	RecipeID   string
	Multiplier string
}{
	MealID:     "meal_recipe.meal_id",
	RecipeID:   "meal_recipe.recipe_id",
	Multiplier: "meal_recipe.multiplier",
}
View Source
var MealRecipeWhere = struct {
	MealID     whereHelperstring
	RecipeID   whereHelperstring
	Multiplier whereHelpertypes_NullDecimal
}{
	MealID:     whereHelperstring{/* contains filtered or unexported fields */},
	RecipeID:   whereHelperstring{/* contains filtered or unexported fields */},
	Multiplier: whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
}
View Source
var MealRels = struct {
	MealGphotos         string
	MealRecipes         string
	NotionNotionRecipes string
}{
	MealGphotos:         "MealGphotos",
	MealRecipes:         "MealRecipes",
	NotionNotionRecipes: "NotionNotionRecipes",
}

MealRels is where relationship names are stored.

View Source
var MealTableColumns = struct {
	ID         string
	Name       string
	NotionLink string
	AteAt      string
}{
	ID:         "meals.id",
	Name:       "meals.name",
	NotionLink: "meals.notion_link",
	AteAt:      "meals.ate_at",
}
View Source
var MealWhere = struct {
	ID         whereHelperstring
	Name       whereHelperstring
	NotionLink whereHelpernull_String
	AteAt      whereHelpertime_Time
}{
	ID:         whereHelperstring{/* contains filtered or unexported fields */},
	Name:       whereHelperstring{/* contains filtered or unexported fields */},
	NotionLink: whereHelpernull_String{/* contains filtered or unexported fields */},
	AteAt:      whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var NotionImageColumns = struct {
	BlockID  string
	PageID   string
	LastSeen string
	ImageID  string
}{
	BlockID:  "block_id",
	PageID:   "page_id",
	LastSeen: "last_seen",
	ImageID:  "image_id",
}
View Source
var NotionImageRels = struct {
	Image string
	Page  string
}{
	Image: "Image",
	Page:  "Page",
}

NotionImageRels is where relationship names are stored.

View Source
var NotionImageTableColumns = struct {
	BlockID  string
	PageID   string
	LastSeen string
	ImageID  string
}{
	BlockID:  "notion_image.block_id",
	PageID:   "notion_image.page_id",
	LastSeen: "notion_image.last_seen",
	ImageID:  "notion_image.image_id",
}
View Source
var NotionImageWhere = struct {
	BlockID  whereHelperstring
	PageID   whereHelperstring
	LastSeen whereHelpertime_Time
	ImageID  whereHelperstring
}{
	BlockID:  whereHelperstring{/* contains filtered or unexported fields */},
	PageID:   whereHelperstring{/* contains filtered or unexported fields */},
	LastSeen: whereHelpertime_Time{/* contains filtered or unexported fields */},
	ImageID:  whereHelperstring{/* contains filtered or unexported fields */},
}
View Source
var NotionRecipeColumns = struct {
	NotionID  string
	PageID    string
	PageTitle string
	Meta      string
	LastSeen  string
	RecipeID  string
	AteAt     string
	Scale     string
	DeletedAt string
}{
	NotionID:  "notion_id",
	PageID:    "page_id",
	PageTitle: "page_title",
	Meta:      "meta",
	LastSeen:  "last_seen",
	RecipeID:  "recipe_id",
	AteAt:     "ate_at",
	Scale:     "scale",
	DeletedAt: "deleted_at",
}
View Source
var NotionRecipeRels = struct {
	Recipe           string
	PageNotionImages string
	Meals            string
}{
	Recipe:           "Recipe",
	PageNotionImages: "PageNotionImages",
	Meals:            "Meals",
}

NotionRecipeRels is where relationship names are stored.

View Source
var NotionRecipeTableColumns = struct {
	NotionID  string
	PageID    string
	PageTitle string
	Meta      string
	LastSeen  string
	RecipeID  string
	AteAt     string
	Scale     string
	DeletedAt string
}{
	NotionID:  "notion_recipe.notion_id",
	PageID:    "notion_recipe.page_id",
	PageTitle: "notion_recipe.page_title",
	Meta:      "notion_recipe.meta",
	LastSeen:  "notion_recipe.last_seen",
	RecipeID:  "notion_recipe.recipe_id",
	AteAt:     "notion_recipe.ate_at",
	Scale:     "notion_recipe.scale",
	DeletedAt: "notion_recipe.deleted_at",
}
View Source
var NotionRecipeWhere = struct {
	NotionID  whereHelperstring
	PageID    whereHelperstring
	PageTitle whereHelperstring
	Meta      whereHelpernull_JSON
	LastSeen  whereHelpertime_Time
	RecipeID  whereHelpernull_String
	AteAt     whereHelpernull_Time
	Scale     whereHelpertypes_NullDecimal
	DeletedAt whereHelpernull_Time
}{
	NotionID:  whereHelperstring{/* contains filtered or unexported fields */},
	PageID:    whereHelperstring{/* contains filtered or unexported fields */},
	PageTitle: whereHelperstring{/* contains filtered or unexported fields */},
	Meta:      whereHelpernull_JSON{/* contains filtered or unexported fields */},
	LastSeen:  whereHelpertime_Time{/* contains filtered or unexported fields */},
	RecipeID:  whereHelpernull_String{/* contains filtered or unexported fields */},
	AteAt:     whereHelpernull_Time{/* contains filtered or unexported fields */},
	Scale:     whereHelpertypes_NullDecimal{/* contains filtered or unexported fields */},
	DeletedAt: whereHelpernull_Time{/* contains filtered or unexported fields */},
}
View Source
var RecipeColumns = struct {
	ID        string
	CreatedAt string
}{
	ID:        "id",
	CreatedAt: "created_at",
}
View Source
var RecipeDetailColumns = struct {
	ID              string
	RecipeID        string
	Name            string
	Equipment       string
	Source          string
	Servings        string
	Quantity        string
	Unit            string
	Version         string
	IsLatestVersion string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
	Tags            string
}{
	ID:              "id",
	RecipeID:        "recipe_id",
	Name:            "name",
	Equipment:       "equipment",
	Source:          "source",
	Servings:        "servings",
	Quantity:        "quantity",
	Unit:            "unit",
	Version:         "version",
	IsLatestVersion: "is_latest_version",
	CreatedAt:       "created_at",
	UpdatedAt:       "updated_at",
	DeletedAt:       "deleted_at",
	Tags:            "tags",
}
View Source
var RecipeDetailRels = struct {
	Recipe         string
	RecipeSections string
}{
	Recipe:         "Recipe",
	RecipeSections: "RecipeSections",
}

RecipeDetailRels is where relationship names are stored.

View Source
var RecipeDetailTableColumns = struct {
	ID              string
	RecipeID        string
	Name            string
	Equipment       string
	Source          string
	Servings        string
	Quantity        string
	Unit            string
	Version         string
	IsLatestVersion string
	CreatedAt       string
	UpdatedAt       string
	DeletedAt       string
	Tags            string
}{
	ID:              "recipe_details.id",
	RecipeID:        "recipe_details.recipe_id",
	Name:            "recipe_details.name",
	Equipment:       "recipe_details.equipment",
	Source:          "recipe_details.source",
	Servings:        "recipe_details.servings",
	Quantity:        "recipe_details.quantity",
	Unit:            "recipe_details.unit",
	Version:         "recipe_details.version",
	IsLatestVersion: "recipe_details.is_latest_version",
	CreatedAt:       "recipe_details.created_at",
	UpdatedAt:       "recipe_details.updated_at",
	DeletedAt:       "recipe_details.deleted_at",
	Tags:            "recipe_details.tags",
}
View Source
var RecipeDetailWhere = struct {
	ID              whereHelperstring
	RecipeID        whereHelperstring
	Name            whereHelperstring
	Equipment       whereHelpernull_String
	Source          whereHelpernull_JSON
	Servings        whereHelpernull_Int
	Quantity        whereHelpernull_Int
	Unit            whereHelpernull_String
	Version         whereHelperint
	IsLatestVersion whereHelpernull_Bool
	CreatedAt       whereHelpertime_Time
	UpdatedAt       whereHelpertime_Time
	DeletedAt       whereHelpernull_Time
	Tags            whereHelpertypes_StringArray
}{
	ID:              whereHelperstring{/* contains filtered or unexported fields */},
	RecipeID:        whereHelperstring{/* contains filtered or unexported fields */},
	Name:            whereHelperstring{/* contains filtered or unexported fields */},
	Equipment:       whereHelpernull_String{/* contains filtered or unexported fields */},
	Source:          whereHelpernull_JSON{/* contains filtered or unexported fields */},
	Servings:        whereHelpernull_Int{/* contains filtered or unexported fields */},
	Quantity:        whereHelpernull_Int{/* contains filtered or unexported fields */},
	Unit:            whereHelpernull_String{/* contains filtered or unexported fields */},
	Version:         whereHelperint{/* contains filtered or unexported fields */},
	IsLatestVersion: whereHelpernull_Bool{/* contains filtered or unexported fields */},
	CreatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	UpdatedAt:       whereHelpertime_Time{/* contains filtered or unexported fields */},
	DeletedAt:       whereHelpernull_Time{/* contains filtered or unexported fields */},
	Tags:            whereHelpertypes_StringArray{/* contains filtered or unexported fields */},
}
View Source
var RecipeRels = struct {
	HighlightRecipeMealGphotos string
	MealRecipes                string
	NotionRecipes              string
	RecipeDetails              string
	RecipeSectionIngredients   string
}{
	HighlightRecipeMealGphotos: "HighlightRecipeMealGphotos",
	MealRecipes:                "MealRecipes",
	NotionRecipes:              "NotionRecipes",
	RecipeDetails:              "RecipeDetails",
	RecipeSectionIngredients:   "RecipeSectionIngredients",
}

RecipeRels is where relationship names are stored.

View Source
var RecipeSectionColumns = struct {
	ID                string
	RecipeDetailID    string
	Sort              string
	DurationTimerange string
}{
	ID:                "id",
	RecipeDetailID:    "recipe_detail_id",
	Sort:              "sort",
	DurationTimerange: "duration_timerange",
}
View Source
var RecipeSectionIngredientColumns = struct {
	ID                 string
	SectionID          string
	Sort               string
	IngredientID       string
	RecipeID           string
	Amounts            string
	Adjective          string
	Original           string
	Optional           string
	SubForIngredientID string
}{
	ID:                 "id",
	SectionID:          "section_id",
	Sort:               "sort",
	IngredientID:       "ingredient_id",
	RecipeID:           "recipe_id",
	Amounts:            "amounts",
	Adjective:          "adjective",
	Original:           "original",
	Optional:           "optional",
	SubForIngredientID: "sub_for_ingredient_id",
}
View Source
var RecipeSectionIngredientRels = struct {
	Ingredient                               string
	Recipe                                   string
	Section                                  string
	SubForIngredient                         string
	SubForIngredientRecipeSectionIngredients string
}{
	Ingredient:                               "Ingredient",
	Recipe:                                   "Recipe",
	Section:                                  "Section",
	SubForIngredient:                         "SubForIngredient",
	SubForIngredientRecipeSectionIngredients: "SubForIngredientRecipeSectionIngredients",
}

RecipeSectionIngredientRels is where relationship names are stored.

View Source
var RecipeSectionIngredientTableColumns = struct {
	ID                 string
	SectionID          string
	Sort               string
	IngredientID       string
	RecipeID           string
	Amounts            string
	Adjective          string
	Original           string
	Optional           string
	SubForIngredientID string
}{
	ID:                 "recipe_section_ingredients.id",
	SectionID:          "recipe_section_ingredients.section_id",
	Sort:               "recipe_section_ingredients.sort",
	IngredientID:       "recipe_section_ingredients.ingredient_id",
	RecipeID:           "recipe_section_ingredients.recipe_id",
	Amounts:            "recipe_section_ingredients.amounts",
	Adjective:          "recipe_section_ingredients.adjective",
	Original:           "recipe_section_ingredients.original",
	Optional:           "recipe_section_ingredients.optional",
	SubForIngredientID: "recipe_section_ingredients.sub_for_ingredient_id",
}
View Source
var RecipeSectionIngredientWhere = struct {
	ID                 whereHelperstring
	SectionID          whereHelperstring
	Sort               whereHelpernull_Int
	IngredientID       whereHelpernull_String
	RecipeID           whereHelpernull_String
	Amounts            whereHelpertypes_JSON
	Adjective          whereHelpernull_String
	Original           whereHelpernull_String
	Optional           whereHelpernull_Bool
	SubForIngredientID whereHelpernull_String
}{
	ID:                 whereHelperstring{/* contains filtered or unexported fields */},
	SectionID:          whereHelperstring{/* contains filtered or unexported fields */},
	Sort:               whereHelpernull_Int{/* contains filtered or unexported fields */},
	IngredientID:       whereHelpernull_String{/* contains filtered or unexported fields */},
	RecipeID:           whereHelpernull_String{/* contains filtered or unexported fields */},
	Amounts:            whereHelpertypes_JSON{/* contains filtered or unexported fields */},
	Adjective:          whereHelpernull_String{/* contains filtered or unexported fields */},
	Original:           whereHelpernull_String{/* contains filtered or unexported fields */},
	Optional:           whereHelpernull_Bool{/* contains filtered or unexported fields */},
	SubForIngredientID: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var RecipeSectionInstructionColumns = struct {
	ID          string
	SectionID   string
	Sort        string
	Instruction string
}{
	ID:          "id",
	SectionID:   "section_id",
	Sort:        "sort",
	Instruction: "instruction",
}
View Source
var RecipeSectionInstructionRels = struct {
	Section string
}{
	Section: "Section",
}

RecipeSectionInstructionRels is where relationship names are stored.

View Source
var RecipeSectionInstructionTableColumns = struct {
	ID          string
	SectionID   string
	Sort        string
	Instruction string
}{
	ID:          "recipe_section_instructions.id",
	SectionID:   "recipe_section_instructions.section_id",
	Sort:        "recipe_section_instructions.sort",
	Instruction: "recipe_section_instructions.instruction",
}
View Source
var RecipeSectionInstructionWhere = struct {
	ID          whereHelperstring
	SectionID   whereHelperstring
	Sort        whereHelpernull_Int
	Instruction whereHelpernull_String
}{
	ID:          whereHelperstring{/* contains filtered or unexported fields */},
	SectionID:   whereHelperstring{/* contains filtered or unexported fields */},
	Sort:        whereHelpernull_Int{/* contains filtered or unexported fields */},
	Instruction: whereHelpernull_String{/* contains filtered or unexported fields */},
}
View Source
var RecipeSectionRels = struct {
	RecipeDetail                     string
	SectionRecipeSectionIngredients  string
	SectionRecipeSectionInstructions string
}{
	RecipeDetail:                     "RecipeDetail",
	SectionRecipeSectionIngredients:  "SectionRecipeSectionIngredients",
	SectionRecipeSectionInstructions: "SectionRecipeSectionInstructions",
}

RecipeSectionRels is where relationship names are stored.

View Source
var RecipeSectionTableColumns = struct {
	ID                string
	RecipeDetailID    string
	Sort              string
	DurationTimerange string
}{
	ID:                "recipe_sections.id",
	RecipeDetailID:    "recipe_sections.recipe_detail_id",
	Sort:              "recipe_sections.sort",
	DurationTimerange: "recipe_sections.duration_timerange",
}
View Source
var RecipeSectionWhere = struct {
	ID                whereHelperstring
	RecipeDetailID    whereHelperstring
	Sort              whereHelpernull_Int
	DurationTimerange whereHelpernull_JSON
}{
	ID:                whereHelperstring{/* contains filtered or unexported fields */},
	RecipeDetailID:    whereHelperstring{/* contains filtered or unexported fields */},
	Sort:              whereHelpernull_Int{/* contains filtered or unexported fields */},
	DurationTimerange: whereHelpernull_JSON{/* contains filtered or unexported fields */},
}
View Source
var RecipeTableColumns = struct {
	ID        string
	CreatedAt string
}{
	ID:        "recipes.id",
	CreatedAt: "recipes.created_at",
}
View Source
var RecipeWhere = struct {
	ID        whereHelperstring
	CreatedAt whereHelpertime_Time
}{
	ID:        whereHelperstring{/* contains filtered or unexported fields */},
	CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */},
}
View Source
var SchemaMigrationColumns = struct {
	Version string
	Dirty   string
}{
	Version: "version",
	Dirty:   "dirty",
}
View Source
var SchemaMigrationRels = struct {
}{}

SchemaMigrationRels is where relationship names are stored.

View Source
var SchemaMigrationTableColumns = struct {
	Version string
	Dirty   string
}{
	Version: "schema_migrations.version",
	Dirty:   "schema_migrations.dirty",
}
View Source
var SchemaMigrationWhere = struct {
	Version whereHelperint64
	Dirty   whereHelperbool
}{
	Version: whereHelperint64{/* contains filtered or unexported fields */},
	Dirty:   whereHelperbool{/* contains filtered or unexported fields */},
}
View Source
var TableNames = struct {
	GphotosAlbums             string
	GphotosPhotos             string
	Images                    string
	IngredientUnits           string
	Ingredients               string
	KV                        string
	MealGphoto                string
	MealRecipe                string
	Meals                     string
	NotionImage               string
	NotionMeal                string
	NotionRecipe              string
	RecipeDetails             string
	RecipeSectionIngredients  string
	RecipeSectionInstructions string
	RecipeSections            string
	Recipes                   string
	SchemaMigrations          string
}{
	GphotosAlbums:             "gphotos_albums",
	GphotosPhotos:             "gphotos_photos",
	Images:                    "images",
	IngredientUnits:           "ingredient_units",
	Ingredients:               "ingredients",
	KV:                        "kv",
	MealGphoto:                "meal_gphoto",
	MealRecipe:                "meal_recipe",
	Meals:                     "meals",
	NotionImage:               "notion_image",
	NotionMeal:                "notion_meal",
	NotionRecipe:              "notion_recipe",
	RecipeDetails:             "recipe_details",
	RecipeSectionIngredients:  "recipe_section_ingredients",
	RecipeSectionInstructions: "recipe_section_instructions",
	RecipeSections:            "recipe_sections",
	Recipes:                   "recipes",
	SchemaMigrations:          "schema_migrations",
}
View Source
var ViewNames = struct {
}{}

Functions

func AddGphotosAlbumHook

func AddGphotosAlbumHook(hookPoint boil.HookPoint, gphotosAlbumHook GphotosAlbumHook)

AddGphotosAlbumHook registers your hook function for all future operations.

func AddGphotosPhotoHook

func AddGphotosPhotoHook(hookPoint boil.HookPoint, gphotosPhotoHook GphotosPhotoHook)

AddGphotosPhotoHook registers your hook function for all future operations.

func AddImageHook

func AddImageHook(hookPoint boil.HookPoint, imageHook ImageHook)

AddImageHook registers your hook function for all future operations.

func AddIngredientHook

func AddIngredientHook(hookPoint boil.HookPoint, ingredientHook IngredientHook)

AddIngredientHook registers your hook function for all future operations.

func AddIngredientUnitHook

func AddIngredientUnitHook(hookPoint boil.HookPoint, ingredientUnitHook IngredientUnitHook)

AddIngredientUnitHook registers your hook function for all future operations.

func AddKVHook

func AddKVHook(hookPoint boil.HookPoint, kvHook KVHook)

AddKVHook registers your hook function for all future operations.

func AddMealGphotoHook

func AddMealGphotoHook(hookPoint boil.HookPoint, mealGphotoHook MealGphotoHook)

AddMealGphotoHook registers your hook function for all future operations.

func AddMealHook

func AddMealHook(hookPoint boil.HookPoint, mealHook MealHook)

AddMealHook registers your hook function for all future operations.

func AddMealRecipeHook

func AddMealRecipeHook(hookPoint boil.HookPoint, mealRecipeHook MealRecipeHook)

AddMealRecipeHook registers your hook function for all future operations.

func AddNotionImageHook

func AddNotionImageHook(hookPoint boil.HookPoint, notionImageHook NotionImageHook)

AddNotionImageHook registers your hook function for all future operations.

func AddNotionRecipeHook

func AddNotionRecipeHook(hookPoint boil.HookPoint, notionRecipeHook NotionRecipeHook)

AddNotionRecipeHook registers your hook function for all future operations.

func AddRecipeDetailHook

func AddRecipeDetailHook(hookPoint boil.HookPoint, recipeDetailHook RecipeDetailHook)

AddRecipeDetailHook registers your hook function for all future operations.

func AddRecipeHook

func AddRecipeHook(hookPoint boil.HookPoint, recipeHook RecipeHook)

AddRecipeHook registers your hook function for all future operations.

func AddRecipeSectionHook

func AddRecipeSectionHook(hookPoint boil.HookPoint, recipeSectionHook RecipeSectionHook)

AddRecipeSectionHook registers your hook function for all future operations.

func AddRecipeSectionIngredientHook

func AddRecipeSectionIngredientHook(hookPoint boil.HookPoint, recipeSectionIngredientHook RecipeSectionIngredientHook)

AddRecipeSectionIngredientHook registers your hook function for all future operations.

func AddRecipeSectionInstructionHook

func AddRecipeSectionInstructionHook(hookPoint boil.HookPoint, recipeSectionInstructionHook RecipeSectionInstructionHook)

AddRecipeSectionInstructionHook registers your hook function for all future operations.

func AddSchemaMigrationHook

func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)

AddSchemaMigrationHook registers your hook function for all future operations.

func GphotosAlbumExists

func GphotosAlbumExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GphotosAlbumExists checks if the GphotosAlbum row exists.

func GphotosAlbums

func GphotosAlbums(mods ...qm.QueryMod) gphotosAlbumQuery

GphotosAlbums retrieves all the records using an executor.

func GphotosPhotoExists

func GphotosPhotoExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

GphotosPhotoExists checks if the GphotosPhoto row exists.

func GphotosPhotos

func GphotosPhotos(mods ...qm.QueryMod) gphotosPhotoQuery

GphotosPhotos retrieves all the records using an executor.

func ImageExists

func ImageExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

ImageExists checks if the Image row exists.

func Images

func Images(mods ...qm.QueryMod) imageQuery

Images retrieves all the records using an executor.

func IngredientExists

func IngredientExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

IngredientExists checks if the Ingredient row exists.

func IngredientUnitExists

func IngredientUnitExists(ctx context.Context, exec boil.ContextExecutor, iD int) (bool, error)

IngredientUnitExists checks if the IngredientUnit row exists.

func IngredientUnits

func IngredientUnits(mods ...qm.QueryMod) ingredientUnitQuery

IngredientUnits retrieves all the records using an executor.

func Ingredients

func Ingredients(mods ...qm.QueryMod) ingredientQuery

Ingredients retrieves all the records using an executor.

func KVExists

func KVExists(ctx context.Context, exec boil.ContextExecutor, key string) (bool, error)

KVExists checks if the KV row exists.

func KVS

func KVS(mods ...qm.QueryMod) kvQuery

KVS retrieves all the records using an executor.

func MealExists

func MealExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

MealExists checks if the Meal row exists.

func MealGphotoExists

func MealGphotoExists(ctx context.Context, exec boil.ContextExecutor, mealID string, gphotosID string) (bool, error)

MealGphotoExists checks if the MealGphoto row exists.

func MealGphotos

func MealGphotos(mods ...qm.QueryMod) mealGphotoQuery

MealGphotos retrieves all the records using an executor.

func MealRecipeExists

func MealRecipeExists(ctx context.Context, exec boil.ContextExecutor, mealID string, recipeID string) (bool, error)

MealRecipeExists checks if the MealRecipe row exists.

func MealRecipes

func MealRecipes(mods ...qm.QueryMod) mealRecipeQuery

MealRecipes retrieves all the records using an executor.

func Meals

func Meals(mods ...qm.QueryMod) mealQuery

Meals 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 NotionImageExists

func NotionImageExists(ctx context.Context, exec boil.ContextExecutor, blockID string, pageID string) (bool, error)

NotionImageExists checks if the NotionImage row exists.

func NotionImages

func NotionImages(mods ...qm.QueryMod) notionImageQuery

NotionImages retrieves all the records using an executor.

func NotionRecipeExists

func NotionRecipeExists(ctx context.Context, exec boil.ContextExecutor, notionID string) (bool, error)

NotionRecipeExists checks if the NotionRecipe row exists.

func NotionRecipes

func NotionRecipes(mods ...qm.QueryMod) notionRecipeQuery

NotionRecipes retrieves all the records using an executor.

func RecipeDetailExists

func RecipeDetailExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RecipeDetailExists checks if the RecipeDetail row exists.

func RecipeDetails

func RecipeDetails(mods ...qm.QueryMod) recipeDetailQuery

RecipeDetails retrieves all the records using an executor.

func RecipeExists

func RecipeExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RecipeExists checks if the Recipe row exists.

func RecipeSectionExists

func RecipeSectionExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RecipeSectionExists checks if the RecipeSection row exists.

func RecipeSectionIngredientExists

func RecipeSectionIngredientExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RecipeSectionIngredientExists checks if the RecipeSectionIngredient row exists.

func RecipeSectionIngredients

func RecipeSectionIngredients(mods ...qm.QueryMod) recipeSectionIngredientQuery

RecipeSectionIngredients retrieves all the records using an executor.

func RecipeSectionInstructionExists

func RecipeSectionInstructionExists(ctx context.Context, exec boil.ContextExecutor, iD string) (bool, error)

RecipeSectionInstructionExists checks if the RecipeSectionInstruction row exists.

func RecipeSectionInstructions

func RecipeSectionInstructions(mods ...qm.QueryMod) recipeSectionInstructionQuery

RecipeSectionInstructions retrieves all the records using an executor.

func RecipeSections

func RecipeSections(mods ...qm.QueryMod) recipeSectionQuery

RecipeSections retrieves all the records using an executor.

func Recipes

func Recipes(mods ...qm.QueryMod) recipeQuery

Recipes retrieves all the records using an executor.

func SchemaMigrationExists

func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)

SchemaMigrationExists checks if the SchemaMigration row exists.

func SchemaMigrations

func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery

SchemaMigrations retrieves all the records using an executor.

Types

type GphotosAlbum

type GphotosAlbum struct {
	ID      string `boil:"id" json:"id" toml:"id" yaml:"id"`
	Usecase string `boil:"usecase" json:"usecase" toml:"usecase" yaml:"usecase"`

	R *gphotosAlbumR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L gphotosAlbumL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GphotosAlbum is an object representing the database table.

func FindGphotosAlbum

func FindGphotosAlbum(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GphotosAlbum, error)

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

func (*GphotosAlbum) AddAlbumGphotosPhotos

func (o *GphotosAlbum) AddAlbumGphotosPhotos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GphotosPhoto) error

AddAlbumGphotosPhotos adds the given related objects to the existing relationships of the gphotos_album, optionally inserting them as new records. Appends related to o.R.AlbumGphotosPhotos. Sets related.R.Album appropriately.

func (*GphotosAlbum) AlbumGphotosPhotos

func (o *GphotosAlbum) AlbumGphotosPhotos(mods ...qm.QueryMod) gphotosPhotoQuery

AlbumGphotosPhotos retrieves all the gphotos_photo's GphotosPhotos with an executor via album_id column.

func (*GphotosAlbum) Delete

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

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

func (*GphotosAlbum) Insert

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

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

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

func (*GphotosAlbum) Update

func (o *GphotosAlbum) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GphotosAlbum. 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 (*GphotosAlbum) Upsert

func (o *GphotosAlbum) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 GphotosAlbumHook

type GphotosAlbumHook func(context.Context, boil.ContextExecutor, *GphotosAlbum) error

GphotosAlbumHook is the signature for custom GphotosAlbum hook methods

type GphotosAlbumSlice

type GphotosAlbumSlice []*GphotosAlbum

GphotosAlbumSlice is an alias for a slice of pointers to GphotosAlbum. This should almost always be used instead of []GphotosAlbum.

func (GphotosAlbumSlice) DeleteAll

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

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

func (*GphotosAlbumSlice) ReloadAll

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

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

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

type GphotosPhoto

type GphotosPhoto struct {
	ID           string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	AlbumID      string    `boil:"album_id" json:"album_id" toml:"album_id" yaml:"album_id"`
	CreationTime time.Time `boil:"creation_time" json:"creation_time" toml:"creation_time" yaml:"creation_time"`
	LastSeen     time.Time `boil:"last_seen" json:"last_seen" toml:"last_seen" yaml:"last_seen"`
	ImageID      string    `boil:"image_id" json:"image_id" toml:"image_id" yaml:"image_id"`

	R *gphotosPhotoR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L gphotosPhotoL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

GphotosPhoto is an object representing the database table.

func FindGphotosPhoto

func FindGphotosPhoto(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*GphotosPhoto, error)

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

func (*GphotosPhoto) AddGphotoMealGphotos

func (o *GphotosPhoto) AddGphotoMealGphotos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MealGphoto) error

AddGphotoMealGphotos adds the given related objects to the existing relationships of the gphotos_photo, optionally inserting them as new records. Appends related to o.R.GphotoMealGphotos. Sets related.R.Gphoto appropriately.

func (*GphotosPhoto) Album

func (o *GphotosPhoto) Album(mods ...qm.QueryMod) gphotosAlbumQuery

Album pointed to by the foreign key.

func (*GphotosPhoto) Delete

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

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

func (*GphotosPhoto) GphotoMealGphotos

func (o *GphotosPhoto) GphotoMealGphotos(mods ...qm.QueryMod) mealGphotoQuery

GphotoMealGphotos retrieves all the meal_gphoto's MealGphotos with an executor via gphotos_id column.

func (*GphotosPhoto) Image

func (o *GphotosPhoto) Image(mods ...qm.QueryMod) imageQuery

Image pointed to by the foreign key.

func (*GphotosPhoto) Insert

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

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

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

func (*GphotosPhoto) SetAlbum

func (o *GphotosPhoto) SetAlbum(ctx context.Context, exec boil.ContextExecutor, insert bool, related *GphotosAlbum) error

SetAlbum of the gphotosPhoto to the related item. Sets o.R.Album to related. Adds o to related.R.AlbumGphotosPhotos.

func (*GphotosPhoto) SetImage

func (o *GphotosPhoto) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error

SetImage of the gphotosPhoto to the related item. Sets o.R.Image to related. Adds o to related.R.GphotosPhotos.

func (*GphotosPhoto) Update

func (o *GphotosPhoto) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the GphotosPhoto. 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 (*GphotosPhoto) Upsert

func (o *GphotosPhoto) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 GphotosPhotoHook

type GphotosPhotoHook func(context.Context, boil.ContextExecutor, *GphotosPhoto) error

GphotosPhotoHook is the signature for custom GphotosPhoto hook methods

type GphotosPhotoSlice

type GphotosPhotoSlice []*GphotosPhoto

GphotosPhotoSlice is an alias for a slice of pointers to GphotosPhoto. This should almost always be used instead of []GphotosPhoto.

func (GphotosPhotoSlice) DeleteAll

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

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

func (*GphotosPhotoSlice) ReloadAll

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

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

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

type Image

type Image struct {
	ID       string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	BlurHash string    `boil:"blur_hash" json:"blur_hash" toml:"blur_hash" yaml:"blur_hash"`
	Source   string    `boil:"source" json:"source" toml:"source" yaml:"source"`
	TakenAt  null.Time `boil:"taken_at" json:"taken_at,omitempty" toml:"taken_at" yaml:"taken_at,omitempty"`

	R *imageR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L imageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Image is an object representing the database table.

func FindImage

func FindImage(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Image, error)

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

func (*Image) AddGphotosPhotos

func (o *Image) AddGphotosPhotos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*GphotosPhoto) error

AddGphotosPhotos adds the given related objects to the existing relationships of the image, optionally inserting them as new records. Appends related to o.R.GphotosPhotos. Sets related.R.Image appropriately.

func (*Image) AddNotionImages

func (o *Image) AddNotionImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NotionImage) error

AddNotionImages adds the given related objects to the existing relationships of the image, optionally inserting them as new records. Appends related to o.R.NotionImages. Sets related.R.Image appropriately.

func (*Image) Delete

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

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

func (*Image) GphotosPhotos

func (o *Image) GphotosPhotos(mods ...qm.QueryMod) gphotosPhotoQuery

GphotosPhotos retrieves all the gphotos_photo's GphotosPhotos with an executor.

func (*Image) Insert

func (o *Image) 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 (*Image) NotionImages

func (o *Image) NotionImages(mods ...qm.QueryMod) notionImageQuery

NotionImages retrieves all the notion_image's NotionImages with an executor.

func (*Image) Reload

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

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

func (*Image) Update

func (o *Image) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Image. 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 (*Image) Upsert

func (o *Image) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 ImageHook

type ImageHook func(context.Context, boil.ContextExecutor, *Image) error

ImageHook is the signature for custom Image hook methods

type ImageSlice

type ImageSlice []*Image

ImageSlice is an alias for a slice of pointers to Image. This should almost always be used instead of []Image.

func (ImageSlice) DeleteAll

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

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

func (*ImageSlice) ReloadAll

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

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

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

type Ingredient

type Ingredient struct {
	ID                 string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name               string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	FDCID              null.Int    `boil:"fdc_id" json:"fdc_id,omitempty" toml:"fdc_id" yaml:"fdc_id,omitempty"`
	ParentIngredientID null.String `` /* 131-byte string literal not displayed */

	R *ingredientR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L ingredientL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Ingredient is an object representing the database table.

func FindIngredient

func FindIngredient(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Ingredient, error)

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

func (*Ingredient) AddIngredientUnits

func (o *Ingredient) AddIngredientUnits(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*IngredientUnit) error

AddIngredientUnits adds the given related objects to the existing relationships of the ingredient, optionally inserting them as new records. Appends related to o.R.IngredientUnits. Sets related.R.Ingredient appropriately.

func (*Ingredient) AddParentIngredientIngredients

func (o *Ingredient) AddParentIngredientIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Ingredient) error

AddParentIngredientIngredients adds the given related objects to the existing relationships of the ingredient, optionally inserting them as new records. Appends related to o.R.ParentIngredientIngredients. Sets related.R.ParentIngredient appropriately.

func (*Ingredient) AddRecipeSectionIngredients

func (o *Ingredient) AddRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

AddRecipeSectionIngredients adds the given related objects to the existing relationships of the ingredient, optionally inserting them as new records. Appends related to o.R.RecipeSectionIngredients. Sets related.R.Ingredient appropriately.

func (*Ingredient) Delete

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

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

func (*Ingredient) IngredientUnits

func (o *Ingredient) IngredientUnits(mods ...qm.QueryMod) ingredientUnitQuery

IngredientUnits retrieves all the ingredient_unit's IngredientUnits with an executor.

func (*Ingredient) Insert

func (o *Ingredient) 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 (*Ingredient) ParentIngredient

func (o *Ingredient) ParentIngredient(mods ...qm.QueryMod) ingredientQuery

ParentIngredient pointed to by the foreign key.

func (*Ingredient) ParentIngredientIngredients

func (o *Ingredient) ParentIngredientIngredients(mods ...qm.QueryMod) ingredientQuery

ParentIngredientIngredients retrieves all the ingredient's Ingredients with an executor via parent_ingredient_id column.

func (*Ingredient) RecipeSectionIngredients

func (o *Ingredient) RecipeSectionIngredients(mods ...qm.QueryMod) recipeSectionIngredientQuery

RecipeSectionIngredients retrieves all the recipe_section_ingredient's RecipeSectionIngredients with an executor.

func (*Ingredient) Reload

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

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

func (*Ingredient) RemoveParentIngredient

func (o *Ingredient) RemoveParentIngredient(ctx context.Context, exec boil.ContextExecutor, related *Ingredient) error

RemoveParentIngredient relationship. Sets o.R.ParentIngredient to nil. Removes o from all passed in related items' relationships struct.

func (*Ingredient) RemoveParentIngredientIngredients

func (o *Ingredient) RemoveParentIngredientIngredients(ctx context.Context, exec boil.ContextExecutor, related ...*Ingredient) error

RemoveParentIngredientIngredients relationships from objects passed in. Removes related items from R.ParentIngredientIngredients (uses pointer comparison, removal does not keep order) Sets related.R.ParentIngredient.

func (*Ingredient) RemoveRecipeSectionIngredients

func (o *Ingredient) RemoveRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, related ...*RecipeSectionIngredient) error

RemoveRecipeSectionIngredients relationships from objects passed in. Removes related items from R.RecipeSectionIngredients (uses pointer comparison, removal does not keep order) Sets related.R.Ingredient.

func (*Ingredient) SetParentIngredient

func (o *Ingredient) SetParentIngredient(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Ingredient) error

SetParentIngredient of the ingredient to the related item. Sets o.R.ParentIngredient to related. Adds o to related.R.ParentIngredientIngredients.

func (*Ingredient) SetParentIngredientIngredients

func (o *Ingredient) SetParentIngredientIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Ingredient) error

SetParentIngredientIngredients removes all previously related items of the ingredient replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.ParentIngredient's ParentIngredientIngredients accordingly. Replaces o.R.ParentIngredientIngredients with related. Sets related.R.ParentIngredient's ParentIngredientIngredients accordingly.

func (*Ingredient) SetRecipeSectionIngredients

func (o *Ingredient) SetRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

SetRecipeSectionIngredients removes all previously related items of the ingredient replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Ingredient's RecipeSectionIngredients accordingly. Replaces o.R.RecipeSectionIngredients with related. Sets related.R.Ingredient's RecipeSectionIngredients accordingly.

func (*Ingredient) Update

func (o *Ingredient) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Ingredient. 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 (*Ingredient) Upsert

func (o *Ingredient) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 IngredientHook

type IngredientHook func(context.Context, boil.ContextExecutor, *Ingredient) error

IngredientHook is the signature for custom Ingredient hook methods

type IngredientSlice

type IngredientSlice []*Ingredient

IngredientSlice is an alias for a slice of pointers to Ingredient. This should almost always be used instead of []Ingredient.

func (IngredientSlice) DeleteAll

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

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

func (*IngredientSlice) ReloadAll

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

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

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

type IngredientUnit

type IngredientUnit struct {
	ID           int           `boil:"id" json:"id" toml:"id" yaml:"id"`
	IngredientID string        `boil:"ingredient_id" json:"ingredient_id" toml:"ingredient_id" yaml:"ingredient_id"`
	UnitA        string        `boil:"unit_a" json:"unit_a" toml:"unit_a" yaml:"unit_a"`
	AmountA      types.Decimal `boil:"amount_a" json:"amount_a" toml:"amount_a" yaml:"amount_a"`
	UnitB        string        `boil:"unit_b" json:"unit_b" toml:"unit_b" yaml:"unit_b"`
	AmountB      types.Decimal `boil:"amount_b" json:"amount_b" toml:"amount_b" yaml:"amount_b"`
	Source       string        `boil:"source" json:"source" toml:"source" yaml:"source"`

	R *ingredientUnitR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L ingredientUnitL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

IngredientUnit is an object representing the database table.

func FindIngredientUnit

func FindIngredientUnit(ctx context.Context, exec boil.ContextExecutor, iD int, selectCols ...string) (*IngredientUnit, error)

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

func (*IngredientUnit) Delete

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

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

func (*IngredientUnit) Ingredient

func (o *IngredientUnit) Ingredient(mods ...qm.QueryMod) ingredientQuery

Ingredient pointed to by the foreign key.

func (*IngredientUnit) Insert

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

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

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

func (*IngredientUnit) SetIngredient

func (o *IngredientUnit) SetIngredient(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Ingredient) error

SetIngredient of the ingredientUnit to the related item. Sets o.R.Ingredient to related. Adds o to related.R.IngredientUnits.

func (*IngredientUnit) Update

func (o *IngredientUnit) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the IngredientUnit. 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 (*IngredientUnit) Upsert

func (o *IngredientUnit) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 IngredientUnitHook

type IngredientUnitHook func(context.Context, boil.ContextExecutor, *IngredientUnit) error

IngredientUnitHook is the signature for custom IngredientUnit hook methods

type IngredientUnitSlice

type IngredientUnitSlice []*IngredientUnit

IngredientUnitSlice is an alias for a slice of pointers to IngredientUnit. This should almost always be used instead of []IngredientUnit.

func (IngredientUnitSlice) DeleteAll

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

func (*IngredientUnitSlice) ReloadAll

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

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

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

type KV

type KV struct {
	Key   string     `boil:"key" json:"key" toml:"key" yaml:"key"`
	Value types.JSON `boil:"value" json:"value" toml:"value" yaml:"value"`

	R *kvR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L kvL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

KV is an object representing the database table.

func FindKV

func FindKV(ctx context.Context, exec boil.ContextExecutor, key string, selectCols ...string) (*KV, error)

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

func (*KV) Delete

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

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

func (*KV) Insert

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

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

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

func (*KV) Update

func (o *KV) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the KV. 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 (*KV) Upsert

func (o *KV) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 KVHook

type KVHook func(context.Context, boil.ContextExecutor, *KV) error

KVHook is the signature for custom KV hook methods

type KVSlice

type KVSlice []*KV

KVSlice is an alias for a slice of pointers to KV. This should almost always be used instead of []KV.

func (KVSlice) DeleteAll

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

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

func (*KVSlice) ReloadAll

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

func (o KVSlice) 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 Meal

type Meal struct {
	ID         string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	Name       string      `boil:"name" json:"name" toml:"name" yaml:"name"`
	NotionLink null.String `boil:"notion_link" json:"notion_link,omitempty" toml:"notion_link" yaml:"notion_link,omitempty"`
	AteAt      time.Time   `boil:"ate_at" json:"ate_at" toml:"ate_at" yaml:"ate_at"`

	R *mealR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L mealL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Meal is an object representing the database table.

func FindMeal

func FindMeal(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Meal, error)

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

func (*Meal) AddMealGphotos

func (o *Meal) AddMealGphotos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MealGphoto) error

AddMealGphotos adds the given related objects to the existing relationships of the meal, optionally inserting them as new records. Appends related to o.R.MealGphotos. Sets related.R.Meal appropriately.

func (*Meal) AddMealRecipes

func (o *Meal) AddMealRecipes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MealRecipe) error

AddMealRecipes adds the given related objects to the existing relationships of the meal, optionally inserting them as new records. Appends related to o.R.MealRecipes. Sets related.R.Meal appropriately.

func (*Meal) AddNotionNotionRecipes

func (o *Meal) AddNotionNotionRecipes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NotionRecipe) error

AddNotionNotionRecipes adds the given related objects to the existing relationships of the meal, optionally inserting them as new records. Appends related to o.R.NotionNotionRecipes. Sets related.R.Meals appropriately.

func (*Meal) Delete

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

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

func (*Meal) Insert

func (o *Meal) 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 (*Meal) MealGphotos

func (o *Meal) MealGphotos(mods ...qm.QueryMod) mealGphotoQuery

MealGphotos retrieves all the meal_gphoto's MealGphotos with an executor.

func (*Meal) MealRecipes

func (o *Meal) MealRecipes(mods ...qm.QueryMod) mealRecipeQuery

MealRecipes retrieves all the meal_recipe's MealRecipes with an executor.

func (*Meal) NotionNotionRecipes

func (o *Meal) NotionNotionRecipes(mods ...qm.QueryMod) notionRecipeQuery

NotionNotionRecipes retrieves all the notion_recipe's NotionRecipes with an executor via notion_id column.

func (*Meal) Reload

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

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

func (*Meal) RemoveNotionNotionRecipes

func (o *Meal) RemoveNotionNotionRecipes(ctx context.Context, exec boil.ContextExecutor, related ...*NotionRecipe) error

RemoveNotionNotionRecipes relationships from objects passed in. Removes related items from R.NotionNotionRecipes (uses pointer comparison, removal does not keep order) Sets related.R.Meals.

func (*Meal) SetNotionNotionRecipes

func (o *Meal) SetNotionNotionRecipes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NotionRecipe) error

SetNotionNotionRecipes removes all previously related items of the meal replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Meals's NotionNotionRecipes accordingly. Replaces o.R.NotionNotionRecipes with related. Sets related.R.Meals's NotionNotionRecipes accordingly.

func (*Meal) Update

func (o *Meal) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Meal. 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 (*Meal) Upsert

func (o *Meal) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 MealGphoto

type MealGphoto struct {
	MealID            string      `boil:"meal_id" json:"meal_id" toml:"meal_id" yaml:"meal_id"`
	GphotosID         string      `boil:"gphotos_id" json:"gphotos_id" toml:"gphotos_id" yaml:"gphotos_id"`
	HighlightRecipeID null.String `` /* 127-byte string literal not displayed */

	R *mealGphotoR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L mealGphotoL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MealGphoto is an object representing the database table.

func FindMealGphoto

func FindMealGphoto(ctx context.Context, exec boil.ContextExecutor, mealID string, gphotosID string, selectCols ...string) (*MealGphoto, error)

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

func (*MealGphoto) Delete

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

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

func (*MealGphoto) Gphoto

func (o *MealGphoto) Gphoto(mods ...qm.QueryMod) gphotosPhotoQuery

Gphoto pointed to by the foreign key.

func (*MealGphoto) HighlightRecipe

func (o *MealGphoto) HighlightRecipe(mods ...qm.QueryMod) recipeQuery

HighlightRecipe pointed to by the foreign key.

func (*MealGphoto) Insert

func (o *MealGphoto) 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 (*MealGphoto) Meal

func (o *MealGphoto) Meal(mods ...qm.QueryMod) mealQuery

Meal pointed to by the foreign key.

func (*MealGphoto) Reload

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

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

func (*MealGphoto) RemoveHighlightRecipe

func (o *MealGphoto) RemoveHighlightRecipe(ctx context.Context, exec boil.ContextExecutor, related *Recipe) error

RemoveHighlightRecipe relationship. Sets o.R.HighlightRecipe to nil. Removes o from all passed in related items' relationships struct.

func (*MealGphoto) SetGphoto

func (o *MealGphoto) SetGphoto(ctx context.Context, exec boil.ContextExecutor, insert bool, related *GphotosPhoto) error

SetGphoto of the mealGphoto to the related item. Sets o.R.Gphoto to related. Adds o to related.R.GphotoMealGphotos.

func (*MealGphoto) SetHighlightRecipe

func (o *MealGphoto) SetHighlightRecipe(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Recipe) error

SetHighlightRecipe of the mealGphoto to the related item. Sets o.R.HighlightRecipe to related. Adds o to related.R.HighlightRecipeMealGphotos.

func (*MealGphoto) SetMeal

func (o *MealGphoto) SetMeal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Meal) error

SetMeal of the mealGphoto to the related item. Sets o.R.Meal to related. Adds o to related.R.MealGphotos.

func (*MealGphoto) Update

func (o *MealGphoto) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MealGphoto. 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 (*MealGphoto) Upsert

func (o *MealGphoto) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 MealGphotoHook

type MealGphotoHook func(context.Context, boil.ContextExecutor, *MealGphoto) error

MealGphotoHook is the signature for custom MealGphoto hook methods

type MealGphotoSlice

type MealGphotoSlice []*MealGphoto

MealGphotoSlice is an alias for a slice of pointers to MealGphoto. This should almost always be used instead of []MealGphoto.

func (MealGphotoSlice) DeleteAll

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

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

func (*MealGphotoSlice) ReloadAll

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

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

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

type MealHook

type MealHook func(context.Context, boil.ContextExecutor, *Meal) error

MealHook is the signature for custom Meal hook methods

type MealRecipe

type MealRecipe struct {
	MealID     string            `boil:"meal_id" json:"meal_id" toml:"meal_id" yaml:"meal_id"`
	RecipeID   string            `boil:"recipe_id" json:"recipe_id" toml:"recipe_id" yaml:"recipe_id"`
	Multiplier types.NullDecimal `boil:"multiplier" json:"multiplier,omitempty" toml:"multiplier" yaml:"multiplier,omitempty"`

	R *mealRecipeR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L mealRecipeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

MealRecipe is an object representing the database table.

func FindMealRecipe

func FindMealRecipe(ctx context.Context, exec boil.ContextExecutor, mealID string, recipeID string, selectCols ...string) (*MealRecipe, error)

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

func (*MealRecipe) Delete

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

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

func (*MealRecipe) Insert

func (o *MealRecipe) 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 (*MealRecipe) Meal

func (o *MealRecipe) Meal(mods ...qm.QueryMod) mealQuery

Meal pointed to by the foreign key.

func (*MealRecipe) Recipe

func (o *MealRecipe) Recipe(mods ...qm.QueryMod) recipeQuery

Recipe pointed to by the foreign key.

func (*MealRecipe) Reload

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

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

func (*MealRecipe) SetMeal

func (o *MealRecipe) SetMeal(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Meal) error

SetMeal of the mealRecipe to the related item. Sets o.R.Meal to related. Adds o to related.R.MealRecipes.

func (*MealRecipe) SetRecipe

func (o *MealRecipe) SetRecipe(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Recipe) error

SetRecipe of the mealRecipe to the related item. Sets o.R.Recipe to related. Adds o to related.R.MealRecipes.

func (*MealRecipe) Update

func (o *MealRecipe) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the MealRecipe. 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 (*MealRecipe) Upsert

func (o *MealRecipe) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 MealRecipeHook

type MealRecipeHook func(context.Context, boil.ContextExecutor, *MealRecipe) error

MealRecipeHook is the signature for custom MealRecipe hook methods

type MealRecipeSlice

type MealRecipeSlice []*MealRecipe

MealRecipeSlice is an alias for a slice of pointers to MealRecipe. This should almost always be used instead of []MealRecipe.

func (MealRecipeSlice) DeleteAll

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

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

func (*MealRecipeSlice) ReloadAll

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

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

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

type MealSlice

type MealSlice []*Meal

MealSlice is an alias for a slice of pointers to Meal. This should almost always be used instead of []Meal.

func (MealSlice) DeleteAll

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

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

func (*MealSlice) ReloadAll

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

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

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

type NotionImage

type NotionImage struct {
	BlockID  string    `boil:"block_id" json:"block_id" toml:"block_id" yaml:"block_id"`
	PageID   string    `boil:"page_id" json:"page_id" toml:"page_id" yaml:"page_id"`
	LastSeen time.Time `boil:"last_seen" json:"last_seen" toml:"last_seen" yaml:"last_seen"`
	ImageID  string    `boil:"image_id" json:"image_id" toml:"image_id" yaml:"image_id"`

	R *notionImageR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L notionImageL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NotionImage is an object representing the database table.

func FindNotionImage

func FindNotionImage(ctx context.Context, exec boil.ContextExecutor, blockID string, pageID string, selectCols ...string) (*NotionImage, error)

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

func (*NotionImage) Delete

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

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

func (*NotionImage) Image

func (o *NotionImage) Image(mods ...qm.QueryMod) imageQuery

Image pointed to by the foreign key.

func (*NotionImage) Insert

func (o *NotionImage) 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 (*NotionImage) Page

func (o *NotionImage) Page(mods ...qm.QueryMod) notionRecipeQuery

Page pointed to by the foreign key.

func (*NotionImage) Reload

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

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

func (*NotionImage) SetImage

func (o *NotionImage) SetImage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Image) error

SetImage of the notionImage to the related item. Sets o.R.Image to related. Adds o to related.R.NotionImages.

func (*NotionImage) SetPage

func (o *NotionImage) SetPage(ctx context.Context, exec boil.ContextExecutor, insert bool, related *NotionRecipe) error

SetPage of the notionImage to the related item. Sets o.R.Page to related. Adds o to related.R.PageNotionImages.

func (*NotionImage) Update

func (o *NotionImage) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the NotionImage. 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 (*NotionImage) Upsert

func (o *NotionImage) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 NotionImageHook

type NotionImageHook func(context.Context, boil.ContextExecutor, *NotionImage) error

NotionImageHook is the signature for custom NotionImage hook methods

type NotionImageSlice

type NotionImageSlice []*NotionImage

NotionImageSlice is an alias for a slice of pointers to NotionImage. This should almost always be used instead of []NotionImage.

func (NotionImageSlice) DeleteAll

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

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

func (*NotionImageSlice) ReloadAll

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

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

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

type NotionRecipe

type NotionRecipe struct {
	NotionID  string            `boil:"notion_id" json:"notion_id" toml:"notion_id" yaml:"notion_id"`
	PageID    string            `boil:"page_id" json:"page_id" toml:"page_id" yaml:"page_id"`
	PageTitle string            `boil:"page_title" json:"page_title" toml:"page_title" yaml:"page_title"`
	Meta      null.JSON         `boil:"meta" json:"meta,omitempty" toml:"meta" yaml:"meta,omitempty"`
	LastSeen  time.Time         `boil:"last_seen" json:"last_seen" toml:"last_seen" yaml:"last_seen"`
	RecipeID  null.String       `boil:"recipe_id" json:"recipe_id,omitempty" toml:"recipe_id" yaml:"recipe_id,omitempty"`
	AteAt     null.Time         `boil:"ate_at" json:"ate_at,omitempty" toml:"ate_at" yaml:"ate_at,omitempty"`
	Scale     types.NullDecimal `boil:"scale" json:"scale,omitempty" toml:"scale" yaml:"scale,omitempty"`
	DeletedAt null.Time         `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`

	R *notionRecipeR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L notionRecipeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

NotionRecipe is an object representing the database table.

func FindNotionRecipe

func FindNotionRecipe(ctx context.Context, exec boil.ContextExecutor, notionID string, selectCols ...string) (*NotionRecipe, error)

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

func (*NotionRecipe) AddMeals

func (o *NotionRecipe) AddMeals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Meal) error

AddMeals adds the given related objects to the existing relationships of the notion_recipe, optionally inserting them as new records. Appends related to o.R.Meals. Sets related.R.NotionNotionRecipes appropriately.

func (*NotionRecipe) AddPageNotionImages

func (o *NotionRecipe) AddPageNotionImages(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NotionImage) error

AddPageNotionImages adds the given related objects to the existing relationships of the notion_recipe, optionally inserting them as new records. Appends related to o.R.PageNotionImages. Sets related.R.Page appropriately.

func (*NotionRecipe) Delete

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

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

func (*NotionRecipe) Insert

func (o *NotionRecipe) 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 (*NotionRecipe) Meals

func (o *NotionRecipe) Meals(mods ...qm.QueryMod) mealQuery

Meals retrieves all the meal's Meals with an executor.

func (*NotionRecipe) PageNotionImages

func (o *NotionRecipe) PageNotionImages(mods ...qm.QueryMod) notionImageQuery

PageNotionImages retrieves all the notion_image's NotionImages with an executor via page_id column.

func (*NotionRecipe) Recipe

func (o *NotionRecipe) Recipe(mods ...qm.QueryMod) recipeQuery

Recipe pointed to by the foreign key.

func (*NotionRecipe) Reload

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

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

func (*NotionRecipe) RemoveMeals

func (o *NotionRecipe) RemoveMeals(ctx context.Context, exec boil.ContextExecutor, related ...*Meal) error

RemoveMeals relationships from objects passed in. Removes related items from R.Meals (uses pointer comparison, removal does not keep order) Sets related.R.NotionNotionRecipes.

func (*NotionRecipe) RemoveRecipe

func (o *NotionRecipe) RemoveRecipe(ctx context.Context, exec boil.ContextExecutor, related *Recipe) error

RemoveRecipe relationship. Sets o.R.Recipe to nil. Removes o from all passed in related items' relationships struct.

func (*NotionRecipe) SetMeals

func (o *NotionRecipe) SetMeals(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Meal) error

SetMeals removes all previously related items of the notion_recipe replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.NotionNotionRecipes's Meals accordingly. Replaces o.R.Meals with related. Sets related.R.NotionNotionRecipes's Meals accordingly.

func (*NotionRecipe) SetRecipe

func (o *NotionRecipe) SetRecipe(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Recipe) error

SetRecipe of the notionRecipe to the related item. Sets o.R.Recipe to related. Adds o to related.R.NotionRecipes.

func (*NotionRecipe) Update

func (o *NotionRecipe) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the NotionRecipe. 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 (*NotionRecipe) Upsert

func (o *NotionRecipe) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 NotionRecipeHook

type NotionRecipeHook func(context.Context, boil.ContextExecutor, *NotionRecipe) error

NotionRecipeHook is the signature for custom NotionRecipe hook methods

type NotionRecipeSlice

type NotionRecipeSlice []*NotionRecipe

NotionRecipeSlice is an alias for a slice of pointers to NotionRecipe. This should almost always be used instead of []NotionRecipe.

func (NotionRecipeSlice) DeleteAll

func (o NotionRecipeSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*NotionRecipeSlice) ReloadAll

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

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

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

type Recipe

type Recipe struct {
	ID        string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"`

	R *recipeR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L recipeL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

Recipe is an object representing the database table.

func FindRecipe

func FindRecipe(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*Recipe, error)

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

func (*Recipe) AddHighlightRecipeMealGphotos

func (o *Recipe) AddHighlightRecipeMealGphotos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MealGphoto) error

AddHighlightRecipeMealGphotos adds the given related objects to the existing relationships of the recipe, optionally inserting them as new records. Appends related to o.R.HighlightRecipeMealGphotos. Sets related.R.HighlightRecipe appropriately.

func (*Recipe) AddMealRecipes

func (o *Recipe) AddMealRecipes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MealRecipe) error

AddMealRecipes adds the given related objects to the existing relationships of the recipe, optionally inserting them as new records. Appends related to o.R.MealRecipes. Sets related.R.Recipe appropriately.

func (*Recipe) AddNotionRecipes

func (o *Recipe) AddNotionRecipes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NotionRecipe) error

AddNotionRecipes adds the given related objects to the existing relationships of the recipe, optionally inserting them as new records. Appends related to o.R.NotionRecipes. Sets related.R.Recipe appropriately.

func (*Recipe) AddRecipeDetails

func (o *Recipe) AddRecipeDetails(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeDetail) error

AddRecipeDetails adds the given related objects to the existing relationships of the recipe, optionally inserting them as new records. Appends related to o.R.RecipeDetails. Sets related.R.Recipe appropriately.

func (*Recipe) AddRecipeSectionIngredients

func (o *Recipe) AddRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

AddRecipeSectionIngredients adds the given related objects to the existing relationships of the recipe, optionally inserting them as new records. Appends related to o.R.RecipeSectionIngredients. Sets related.R.Recipe appropriately.

func (*Recipe) Delete

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

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

func (*Recipe) HighlightRecipeMealGphotos

func (o *Recipe) HighlightRecipeMealGphotos(mods ...qm.QueryMod) mealGphotoQuery

HighlightRecipeMealGphotos retrieves all the meal_gphoto's MealGphotos with an executor via highlight_recipe_id column.

func (*Recipe) Insert

func (o *Recipe) 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 (*Recipe) MealRecipes

func (o *Recipe) MealRecipes(mods ...qm.QueryMod) mealRecipeQuery

MealRecipes retrieves all the meal_recipe's MealRecipes with an executor.

func (*Recipe) NotionRecipes

func (o *Recipe) NotionRecipes(mods ...qm.QueryMod) notionRecipeQuery

NotionRecipes retrieves all the notion_recipe's NotionRecipes with an executor.

func (*Recipe) RecipeDetails

func (o *Recipe) RecipeDetails(mods ...qm.QueryMod) recipeDetailQuery

RecipeDetails retrieves all the recipe_detail's RecipeDetails with an executor.

func (*Recipe) RecipeSectionIngredients

func (o *Recipe) RecipeSectionIngredients(mods ...qm.QueryMod) recipeSectionIngredientQuery

RecipeSectionIngredients retrieves all the recipe_section_ingredient's RecipeSectionIngredients with an executor.

func (*Recipe) Reload

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

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

func (*Recipe) RemoveHighlightRecipeMealGphotos

func (o *Recipe) RemoveHighlightRecipeMealGphotos(ctx context.Context, exec boil.ContextExecutor, related ...*MealGphoto) error

RemoveHighlightRecipeMealGphotos relationships from objects passed in. Removes related items from R.HighlightRecipeMealGphotos (uses pointer comparison, removal does not keep order) Sets related.R.HighlightRecipe.

func (*Recipe) RemoveNotionRecipes

func (o *Recipe) RemoveNotionRecipes(ctx context.Context, exec boil.ContextExecutor, related ...*NotionRecipe) error

RemoveNotionRecipes relationships from objects passed in. Removes related items from R.NotionRecipes (uses pointer comparison, removal does not keep order) Sets related.R.Recipe.

func (*Recipe) RemoveRecipeSectionIngredients

func (o *Recipe) RemoveRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, related ...*RecipeSectionIngredient) error

RemoveRecipeSectionIngredients relationships from objects passed in. Removes related items from R.RecipeSectionIngredients (uses pointer comparison, removal does not keep order) Sets related.R.Recipe.

func (*Recipe) SetHighlightRecipeMealGphotos

func (o *Recipe) SetHighlightRecipeMealGphotos(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*MealGphoto) error

SetHighlightRecipeMealGphotos removes all previously related items of the recipe replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.HighlightRecipe's HighlightRecipeMealGphotos accordingly. Replaces o.R.HighlightRecipeMealGphotos with related. Sets related.R.HighlightRecipe's HighlightRecipeMealGphotos accordingly.

func (*Recipe) SetNotionRecipes

func (o *Recipe) SetNotionRecipes(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*NotionRecipe) error

SetNotionRecipes removes all previously related items of the recipe replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Recipe's NotionRecipes accordingly. Replaces o.R.NotionRecipes with related. Sets related.R.Recipe's NotionRecipes accordingly.

func (*Recipe) SetRecipeSectionIngredients

func (o *Recipe) SetRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

SetRecipeSectionIngredients removes all previously related items of the recipe replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.Recipe's RecipeSectionIngredients accordingly. Replaces o.R.RecipeSectionIngredients with related. Sets related.R.Recipe's RecipeSectionIngredients accordingly.

func (*Recipe) Update

func (o *Recipe) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the Recipe. 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 (*Recipe) Upsert

func (o *Recipe) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 RecipeDetail

type RecipeDetail struct {
	ID              string            `boil:"id" json:"id" toml:"id" yaml:"id"`
	RecipeID        string            `boil:"recipe_id" json:"recipe_id" toml:"recipe_id" yaml:"recipe_id"`
	Name            string            `boil:"name" json:"name" toml:"name" yaml:"name"`
	Equipment       null.String       `boil:"equipment" json:"equipment,omitempty" toml:"equipment" yaml:"equipment,omitempty"`
	Source          null.JSON         `boil:"source" json:"source,omitempty" toml:"source" yaml:"source,omitempty"`
	Servings        null.Int          `boil:"servings" json:"servings,omitempty" toml:"servings" yaml:"servings,omitempty"`
	Quantity        null.Int          `boil:"quantity" json:"quantity,omitempty" toml:"quantity" yaml:"quantity,omitempty"`
	Unit            null.String       `boil:"unit" json:"unit,omitempty" toml:"unit" yaml:"unit,omitempty"`
	Version         int               `boil:"version" json:"version" toml:"version" yaml:"version"`
	IsLatestVersion null.Bool         `boil:"is_latest_version" json:"is_latest_version,omitempty" toml:"is_latest_version" yaml:"is_latest_version,omitempty"`
	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"`
	DeletedAt       null.Time         `boil:"deleted_at" json:"deleted_at,omitempty" toml:"deleted_at" yaml:"deleted_at,omitempty"`
	Tags            types.StringArray `boil:"tags" json:"tags,omitempty" toml:"tags" yaml:"tags,omitempty"`

	R *recipeDetailR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L recipeDetailL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RecipeDetail is an object representing the database table.

func FindRecipeDetail

func FindRecipeDetail(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RecipeDetail, error)

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

func (*RecipeDetail) AddRecipeSections

func (o *RecipeDetail) AddRecipeSections(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSection) error

AddRecipeSections adds the given related objects to the existing relationships of the recipe_detail, optionally inserting them as new records. Appends related to o.R.RecipeSections. Sets related.R.RecipeDetail appropriately.

func (*RecipeDetail) Delete

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

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

func (*RecipeDetail) Insert

func (o *RecipeDetail) 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 (*RecipeDetail) Recipe

func (o *RecipeDetail) Recipe(mods ...qm.QueryMod) recipeQuery

Recipe pointed to by the foreign key.

func (*RecipeDetail) RecipeSections

func (o *RecipeDetail) RecipeSections(mods ...qm.QueryMod) recipeSectionQuery

RecipeSections retrieves all the recipe_section's RecipeSections with an executor.

func (*RecipeDetail) Reload

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

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

func (*RecipeDetail) SetRecipe

func (o *RecipeDetail) SetRecipe(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Recipe) error

SetRecipe of the recipeDetail to the related item. Sets o.R.Recipe to related. Adds o to related.R.RecipeDetails.

func (*RecipeDetail) Update

func (o *RecipeDetail) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RecipeDetail. 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 (*RecipeDetail) Upsert

func (o *RecipeDetail) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 RecipeDetailHook

type RecipeDetailHook func(context.Context, boil.ContextExecutor, *RecipeDetail) error

RecipeDetailHook is the signature for custom RecipeDetail hook methods

type RecipeDetailSlice

type RecipeDetailSlice []*RecipeDetail

RecipeDetailSlice is an alias for a slice of pointers to RecipeDetail. This should almost always be used instead of []RecipeDetail.

func (RecipeDetailSlice) DeleteAll

func (o RecipeDetailSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor, hardDelete bool) (int64, error)

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

func (*RecipeDetailSlice) ReloadAll

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

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

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

type RecipeHook

type RecipeHook func(context.Context, boil.ContextExecutor, *Recipe) error

RecipeHook is the signature for custom Recipe hook methods

type RecipeSection

type RecipeSection struct {
	ID                string    `boil:"id" json:"id" toml:"id" yaml:"id"`
	RecipeDetailID    string    `boil:"recipe_detail_id" json:"recipe_detail_id" toml:"recipe_detail_id" yaml:"recipe_detail_id"`
	Sort              null.Int  `boil:"sort" json:"sort,omitempty" toml:"sort" yaml:"sort,omitempty"`
	DurationTimerange null.JSON `boil:"duration_timerange" json:"duration_timerange,omitempty" toml:"duration_timerange" yaml:"duration_timerange,omitempty"`

	R *recipeSectionR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L recipeSectionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RecipeSection is an object representing the database table.

func FindRecipeSection

func FindRecipeSection(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RecipeSection, error)

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

func (*RecipeSection) AddSectionRecipeSectionIngredients

func (o *RecipeSection) AddSectionRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

AddSectionRecipeSectionIngredients adds the given related objects to the existing relationships of the recipe_section, optionally inserting them as new records. Appends related to o.R.SectionRecipeSectionIngredients. Sets related.R.Section appropriately.

func (*RecipeSection) AddSectionRecipeSectionInstructions

func (o *RecipeSection) AddSectionRecipeSectionInstructions(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionInstruction) error

AddSectionRecipeSectionInstructions adds the given related objects to the existing relationships of the recipe_section, optionally inserting them as new records. Appends related to o.R.SectionRecipeSectionInstructions. Sets related.R.Section appropriately.

func (*RecipeSection) Delete

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

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

func (*RecipeSection) Insert

func (o *RecipeSection) 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 (*RecipeSection) RecipeDetail

func (o *RecipeSection) RecipeDetail(mods ...qm.QueryMod) recipeDetailQuery

RecipeDetail pointed to by the foreign key.

func (*RecipeSection) Reload

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

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

func (*RecipeSection) SectionRecipeSectionIngredients

func (o *RecipeSection) SectionRecipeSectionIngredients(mods ...qm.QueryMod) recipeSectionIngredientQuery

SectionRecipeSectionIngredients retrieves all the recipe_section_ingredient's RecipeSectionIngredients with an executor via section_id column.

func (*RecipeSection) SectionRecipeSectionInstructions

func (o *RecipeSection) SectionRecipeSectionInstructions(mods ...qm.QueryMod) recipeSectionInstructionQuery

SectionRecipeSectionInstructions retrieves all the recipe_section_instruction's RecipeSectionInstructions with an executor via section_id column.

func (*RecipeSection) SetRecipeDetail

func (o *RecipeSection) SetRecipeDetail(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RecipeDetail) error

SetRecipeDetail of the recipeSection to the related item. Sets o.R.RecipeDetail to related. Adds o to related.R.RecipeSections.

func (*RecipeSection) Update

func (o *RecipeSection) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the RecipeSection. 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 (*RecipeSection) Upsert

func (o *RecipeSection) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 RecipeSectionHook

type RecipeSectionHook func(context.Context, boil.ContextExecutor, *RecipeSection) error

RecipeSectionHook is the signature for custom RecipeSection hook methods

type RecipeSectionIngredient

type RecipeSectionIngredient struct {
	ID                 string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	SectionID          string      `boil:"section_id" json:"section_id" toml:"section_id" yaml:"section_id"`
	Sort               null.Int    `boil:"sort" json:"sort,omitempty" toml:"sort" yaml:"sort,omitempty"`
	IngredientID       null.String `boil:"ingredient_id" json:"ingredient_id,omitempty" toml:"ingredient_id" yaml:"ingredient_id,omitempty"`
	RecipeID           null.String `boil:"recipe_id" json:"recipe_id,omitempty" toml:"recipe_id" yaml:"recipe_id,omitempty"`
	Amounts            types.JSON  `boil:"amounts" json:"amounts" toml:"amounts" yaml:"amounts"`
	Adjective          null.String `boil:"adjective" json:"adjective,omitempty" toml:"adjective" yaml:"adjective,omitempty"`
	Original           null.String `boil:"original" json:"original,omitempty" toml:"original" yaml:"original,omitempty"`
	Optional           null.Bool   `boil:"optional" json:"optional,omitempty" toml:"optional" yaml:"optional,omitempty"`
	SubForIngredientID null.String `` /* 135-byte string literal not displayed */

	R *recipeSectionIngredientR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L recipeSectionIngredientL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RecipeSectionIngredient is an object representing the database table.

func FindRecipeSectionIngredient

func FindRecipeSectionIngredient(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RecipeSectionIngredient, error)

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

func (*RecipeSectionIngredient) AddSubForIngredientRecipeSectionIngredients

func (o *RecipeSectionIngredient) AddSubForIngredientRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

AddSubForIngredientRecipeSectionIngredients adds the given related objects to the existing relationships of the recipe_section_ingredient, optionally inserting them as new records. Appends related to o.R.SubForIngredientRecipeSectionIngredients. Sets related.R.SubForIngredient appropriately.

func (*RecipeSectionIngredient) Delete

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

func (*RecipeSectionIngredient) Ingredient

func (o *RecipeSectionIngredient) Ingredient(mods ...qm.QueryMod) ingredientQuery

Ingredient pointed to by the foreign key.

func (*RecipeSectionIngredient) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RecipeSectionIngredient) Recipe

func (o *RecipeSectionIngredient) Recipe(mods ...qm.QueryMod) recipeQuery

Recipe pointed to by the foreign key.

func (*RecipeSectionIngredient) Reload

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

func (*RecipeSectionIngredient) RemoveIngredient

func (o *RecipeSectionIngredient) RemoveIngredient(ctx context.Context, exec boil.ContextExecutor, related *Ingredient) error

RemoveIngredient relationship. Sets o.R.Ingredient to nil. Removes o from all passed in related items' relationships struct.

func (*RecipeSectionIngredient) RemoveRecipe

func (o *RecipeSectionIngredient) RemoveRecipe(ctx context.Context, exec boil.ContextExecutor, related *Recipe) error

RemoveRecipe relationship. Sets o.R.Recipe to nil. Removes o from all passed in related items' relationships struct.

func (*RecipeSectionIngredient) RemoveSubForIngredient

func (o *RecipeSectionIngredient) RemoveSubForIngredient(ctx context.Context, exec boil.ContextExecutor, related *RecipeSectionIngredient) error

RemoveSubForIngredient relationship. Sets o.R.SubForIngredient to nil. Removes o from all passed in related items' relationships struct.

func (*RecipeSectionIngredient) RemoveSubForIngredientRecipeSectionIngredients

func (o *RecipeSectionIngredient) RemoveSubForIngredientRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, related ...*RecipeSectionIngredient) error

RemoveSubForIngredientRecipeSectionIngredients relationships from objects passed in. Removes related items from R.SubForIngredientRecipeSectionIngredients (uses pointer comparison, removal does not keep order) Sets related.R.SubForIngredient.

func (*RecipeSectionIngredient) Section

func (o *RecipeSectionIngredient) Section(mods ...qm.QueryMod) recipeSectionQuery

Section pointed to by the foreign key.

func (*RecipeSectionIngredient) SetIngredient

func (o *RecipeSectionIngredient) SetIngredient(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Ingredient) error

SetIngredient of the recipeSectionIngredient to the related item. Sets o.R.Ingredient to related. Adds o to related.R.RecipeSectionIngredients.

func (*RecipeSectionIngredient) SetRecipe

func (o *RecipeSectionIngredient) SetRecipe(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Recipe) error

SetRecipe of the recipeSectionIngredient to the related item. Sets o.R.Recipe to related. Adds o to related.R.RecipeSectionIngredients.

func (*RecipeSectionIngredient) SetSection

func (o *RecipeSectionIngredient) SetSection(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RecipeSection) error

SetSection of the recipeSectionIngredient to the related item. Sets o.R.Section to related. Adds o to related.R.SectionRecipeSectionIngredients.

func (*RecipeSectionIngredient) SetSubForIngredient

func (o *RecipeSectionIngredient) SetSubForIngredient(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RecipeSectionIngredient) error

SetSubForIngredient of the recipeSectionIngredient to the related item. Sets o.R.SubForIngredient to related. Adds o to related.R.SubForIngredientRecipeSectionIngredients.

func (*RecipeSectionIngredient) SetSubForIngredientRecipeSectionIngredients

func (o *RecipeSectionIngredient) SetSubForIngredientRecipeSectionIngredients(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*RecipeSectionIngredient) error

SetSubForIngredientRecipeSectionIngredients removes all previously related items of the recipe_section_ingredient replacing them completely with the passed in related items, optionally inserting them as new records. Sets o.R.SubForIngredient's SubForIngredientRecipeSectionIngredients accordingly. Replaces o.R.SubForIngredientRecipeSectionIngredients with related. Sets related.R.SubForIngredient's SubForIngredientRecipeSectionIngredients accordingly.

func (*RecipeSectionIngredient) SubForIngredient

func (o *RecipeSectionIngredient) SubForIngredient(mods ...qm.QueryMod) recipeSectionIngredientQuery

SubForIngredient pointed to by the foreign key.

func (*RecipeSectionIngredient) SubForIngredientRecipeSectionIngredients

func (o *RecipeSectionIngredient) SubForIngredientRecipeSectionIngredients(mods ...qm.QueryMod) recipeSectionIngredientQuery

SubForIngredientRecipeSectionIngredients retrieves all the recipe_section_ingredient's RecipeSectionIngredients with an executor via sub_for_ingredient_id column.

func (*RecipeSectionIngredient) Update

Update uses an executor to update the RecipeSectionIngredient. 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 (*RecipeSectionIngredient) Upsert

func (o *RecipeSectionIngredient) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 RecipeSectionIngredientHook

type RecipeSectionIngredientHook func(context.Context, boil.ContextExecutor, *RecipeSectionIngredient) error

RecipeSectionIngredientHook is the signature for custom RecipeSectionIngredient hook methods

type RecipeSectionIngredientSlice

type RecipeSectionIngredientSlice []*RecipeSectionIngredient

RecipeSectionIngredientSlice is an alias for a slice of pointers to RecipeSectionIngredient. This should almost always be used instead of []RecipeSectionIngredient.

func (RecipeSectionIngredientSlice) DeleteAll

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

func (*RecipeSectionIngredientSlice) ReloadAll

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

func (RecipeSectionIngredientSlice) UpdateAll

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

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

type RecipeSectionInstruction

type RecipeSectionInstruction struct {
	ID          string      `boil:"id" json:"id" toml:"id" yaml:"id"`
	SectionID   string      `boil:"section_id" json:"section_id" toml:"section_id" yaml:"section_id"`
	Sort        null.Int    `boil:"sort" json:"sort,omitempty" toml:"sort" yaml:"sort,omitempty"`
	Instruction null.String `boil:"instruction" json:"instruction,omitempty" toml:"instruction" yaml:"instruction,omitempty"`

	R *recipeSectionInstructionR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L recipeSectionInstructionL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

RecipeSectionInstruction is an object representing the database table.

func FindRecipeSectionInstruction

func FindRecipeSectionInstruction(ctx context.Context, exec boil.ContextExecutor, iD string, selectCols ...string) (*RecipeSectionInstruction, error)

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

func (*RecipeSectionInstruction) Delete

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

func (*RecipeSectionInstruction) Insert

Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.

func (*RecipeSectionInstruction) Reload

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

func (*RecipeSectionInstruction) Section

func (o *RecipeSectionInstruction) Section(mods ...qm.QueryMod) recipeSectionQuery

Section pointed to by the foreign key.

func (*RecipeSectionInstruction) SetSection

func (o *RecipeSectionInstruction) SetSection(ctx context.Context, exec boil.ContextExecutor, insert bool, related *RecipeSection) error

SetSection of the recipeSectionInstruction to the related item. Sets o.R.Section to related. Adds o to related.R.SectionRecipeSectionInstructions.

func (*RecipeSectionInstruction) Update

Update uses an executor to update the RecipeSectionInstruction. 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 (*RecipeSectionInstruction) Upsert

func (o *RecipeSectionInstruction) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 RecipeSectionInstructionHook

type RecipeSectionInstructionHook func(context.Context, boil.ContextExecutor, *RecipeSectionInstruction) error

RecipeSectionInstructionHook is the signature for custom RecipeSectionInstruction hook methods

type RecipeSectionInstructionSlice

type RecipeSectionInstructionSlice []*RecipeSectionInstruction

RecipeSectionInstructionSlice is an alias for a slice of pointers to RecipeSectionInstruction. This should almost always be used instead of []RecipeSectionInstruction.

func (RecipeSectionInstructionSlice) DeleteAll

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

func (*RecipeSectionInstructionSlice) ReloadAll

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

func (RecipeSectionInstructionSlice) UpdateAll

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

type RecipeSectionSlice

type RecipeSectionSlice []*RecipeSection

RecipeSectionSlice is an alias for a slice of pointers to RecipeSection. This should almost always be used instead of []RecipeSection.

func (RecipeSectionSlice) DeleteAll

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

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

func (*RecipeSectionSlice) ReloadAll

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

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

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

type RecipeSlice

type RecipeSlice []*Recipe

RecipeSlice is an alias for a slice of pointers to Recipe. This should almost always be used instead of []Recipe.

func (RecipeSlice) DeleteAll

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

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

func (*RecipeSlice) ReloadAll

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

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

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

type SchemaMigration

type SchemaMigration struct {
	Version int64 `boil:"version" json:"version" toml:"version" yaml:"version"`
	Dirty   bool  `boil:"dirty" json:"dirty" toml:"dirty" yaml:"dirty"`

	R *schemaMigrationR `boil:"rel" json:"rel" toml:"rel" yaml:"rel"`
	L schemaMigrationL  `boil:"-" json:"-" toml:"-" yaml:"-"`
}

SchemaMigration is an object representing the database table.

func FindSchemaMigration

func FindSchemaMigration(ctx context.Context, exec boil.ContextExecutor, version int64, selectCols ...string) (*SchemaMigration, error)

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

func (*SchemaMigration) Delete

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

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

func (*SchemaMigration) Insert

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

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

func (*SchemaMigration) Update

func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)

Update uses an executor to update the SchemaMigration. 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 (*SchemaMigration) Upsert

func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, updateOnConflict bool, conflictColumns []string, 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 SchemaMigrationHook

type SchemaMigrationHook func(context.Context, boil.ContextExecutor, *SchemaMigration) error

SchemaMigrationHook is the signature for custom SchemaMigration hook methods

type SchemaMigrationSlice

type SchemaMigrationSlice []*SchemaMigration

SchemaMigrationSlice is an alias for a slice of pointers to SchemaMigration. This should almost always be used instead of []SchemaMigration.

func (SchemaMigrationSlice) DeleteAll

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

func (*SchemaMigrationSlice) ReloadAll

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

func (SchemaMigrationSlice) UpdateAll

func (o SchemaMigrationSlice) 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