Documentation
¶
Index ¶
- Variables
- func AddAffiliationHook(hookPoint boil.HookPoint, affiliationHook AffiliationHook)
- func AddBookmarkHook(hookPoint boil.HookPoint, bookmarkHook BookmarkHook)
- func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)
- func AddCommunitiesRestaurantHook(hookPoint boil.HookPoint, communitiesRestaurantHook CommunitiesRestaurantHook)
- func AddCommunityHook(hookPoint boil.HookPoint, communityHook CommunityHook)
- func AddInviteTokenHook(hookPoint boil.HookPoint, inviteTokenHook InviteTokenHook)
- func AddRestaurantHook(hookPoint boil.HookPoint, restaurantHook RestaurantHook)
- func AddSchemaMigrationHook(hookPoint boil.HookPoint, schemaMigrationHook SchemaMigrationHook)
- func AddUserHook(hookPoint boil.HookPoint, userHook UserHook)
- func AffiliationExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Affiliations(mods ...qm.QueryMod) affiliationQuery
- func BookmarkExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Bookmarks(mods ...qm.QueryMod) bookmarkQuery
- func CommentExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Comments(mods ...qm.QueryMod) commentQuery
- func Communities(mods ...qm.QueryMod) communityQuery
- func CommunitiesRestaurantExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func CommunitiesRestaurants(mods ...qm.QueryMod) communitiesRestaurantQuery
- func CommunityExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func InviteTokenExists(ctx context.Context, exec boil.ContextExecutor, tokenDigest string) (bool, error)
- func InviteTokens(mods ...qm.QueryMod) inviteTokenQuery
- func NewQuery(mods ...qm.QueryMod) *queries.Query
- func RestaurantExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Restaurants(mods ...qm.QueryMod) restaurantQuery
- func SchemaMigrationExists(ctx context.Context, exec boil.ContextExecutor, version int64) (bool, error)
- func SchemaMigrations(mods ...qm.QueryMod) schemaMigrationQuery
- func UserExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
- func Users(mods ...qm.QueryMod) userQuery
- type Affiliation
- func (o *Affiliation) Community(mods ...qm.QueryMod) communityQuery
- func (o *Affiliation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Affiliation) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Affiliation) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Affiliation) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Affiliation) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Affiliation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Affiliation) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *Affiliation) User(mods ...qm.QueryMod) userQuery
- type AffiliationHook
- type AffiliationSlice
- type Bookmark
- func (o *Bookmark) Community(mods ...qm.QueryMod) communityQuery
- func (o *Bookmark) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Bookmark) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Bookmark) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Bookmark) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Bookmark) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
- func (o *Bookmark) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Bookmark) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- func (o *Bookmark) User(mods ...qm.QueryMod) userQuery
- type BookmarkHook
- type BookmarkSlice
- type Comment
- func (o *Comment) Community(mods ...qm.QueryMod) communityQuery
- func (o *Comment) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Comment) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Comment) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Comment) Restaurant(mods ...qm.QueryMod) restaurantQuery
- func (o *Comment) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Comment) SetRestaurant(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Comment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Comment) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CommentHook
- type CommentSlice
- type CommunitiesRestaurant
- func (o *CommunitiesRestaurant) Community(mods ...qm.QueryMod) communityQuery
- func (o *CommunitiesRestaurant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CommunitiesRestaurant) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *CommunitiesRestaurant) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *CommunitiesRestaurant) Restaurant(mods ...qm.QueryMod) restaurantQuery
- func (o *CommunitiesRestaurant) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CommunitiesRestaurant) SetRestaurant(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *CommunitiesRestaurant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *CommunitiesRestaurant) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CommunitiesRestaurantHook
- type CommunitiesRestaurantSlice
- func (o CommunitiesRestaurantSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *CommunitiesRestaurantSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o CommunitiesRestaurantSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type Community
- func (o *Community) AddAffiliations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Community) AddBookmarks(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Community) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Community) AddCommunitiesRestaurants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Community) AddInviteTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Community) Affiliations(mods ...qm.QueryMod) affiliationQuery
- func (o *Community) Bookmarks(mods ...qm.QueryMod) bookmarkQuery
- func (o *Community) Comments(mods ...qm.QueryMod) commentQuery
- func (o *Community) CommunitiesRestaurants(mods ...qm.QueryMod) communitiesRestaurantQuery
- func (o *Community) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Community) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Community) InviteTokens(mods ...qm.QueryMod) inviteTokenQuery
- func (o *Community) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Community) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Community) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type CommunityHook
- type CommunitySlice
- type InviteToken
- func (o *InviteToken) Community(mods ...qm.QueryMod) communityQuery
- func (o *InviteToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *InviteToken) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *InviteToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *InviteToken) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *InviteToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *InviteToken) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type InviteTokenHook
- type InviteTokenSlice
- type M
- type Restaurant
- func (o *Restaurant) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Restaurant) AddCommunitiesRestaurants(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *Restaurant) Comments(mods ...qm.QueryMod) commentQuery
- func (o *Restaurant) CommunitiesRestaurants(mods ...qm.QueryMod) communitiesRestaurantQuery
- func (o *Restaurant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *Restaurant) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *Restaurant) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *Restaurant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *Restaurant) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type RestaurantHook
- type RestaurantSlice
- type SchemaMigration
- func (o *SchemaMigration) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SchemaMigration) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *SchemaMigration) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *SchemaMigration) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type SchemaMigrationHook
- type SchemaMigrationSlice
- func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *SchemaMigrationSlice) ReloadAll(ctx context.Context, exec boil.ContextExecutor) error
- func (o SchemaMigrationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
- type User
- func (o *User) AddAffiliations(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) AddBookmarks(ctx context.Context, exec boil.ContextExecutor, insert bool, ...) error
- func (o *User) Affiliations(mods ...qm.QueryMod) affiliationQuery
- func (o *User) Bookmarks(mods ...qm.QueryMod) bookmarkQuery
- func (o *User) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
- func (o *User) Insert(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) error
- func (o *User) Reload(ctx context.Context, exec boil.ContextExecutor) error
- func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
- func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, ...) error
- type UserHook
- type UserSlice
Constants ¶
This section is empty.
Variables ¶
var AffiliationColumns = struct { ID string CommunityID string UserID string CreatedAt string }{ ID: "id", CommunityID: "community_id", UserID: "user_id", CreatedAt: "created_at", }
var AffiliationRels = struct { Community string User string }{ Community: "Community", User: "User", }
AffiliationRels is where relationship names are stored.
var AffiliationTableColumns = struct { ID string CommunityID string UserID string CreatedAt string }{ ID: "affiliation.id", CommunityID: "affiliation.community_id", UserID: "affiliation.user_id", CreatedAt: "affiliation.created_at", }
var AffiliationWhere = struct { ID whereHelperint64 CommunityID whereHelperint64 UserID whereHelperint64 CreatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CommunityID: whereHelperint64{/* contains filtered or unexported fields */}, UserID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var BookmarkColumns = struct { ID string CommunityID string UserID string CreatedAt string }{ ID: "id", CommunityID: "community_id", UserID: "user_id", CreatedAt: "created_at", }
var BookmarkRels = struct { Community string User string }{ Community: "Community", User: "User", }
BookmarkRels is where relationship names are stored.
var BookmarkTableColumns = struct { ID string CommunityID string UserID string CreatedAt string }{ ID: "bookmarks.id", CommunityID: "bookmarks.community_id", UserID: "bookmarks.user_id", CreatedAt: "bookmarks.created_at", }
var BookmarkWhere = struct { ID whereHelperint64 CommunityID whereHelperint64 UserID whereHelperint64 CreatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CommunityID: whereHelperint64{/* contains filtered or unexported fields */}, UserID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var CommentColumns = struct { ID string CommunityID string RestaurantID string Body string CreatedAt string UpdatedAt string }{ ID: "id", CommunityID: "community_id", RestaurantID: "restaurant_id", Body: "body", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var CommentRels = struct { Community string Restaurant string }{ Community: "Community", Restaurant: "Restaurant", }
CommentRels is where relationship names are stored.
var CommentTableColumns = struct { ID string CommunityID string RestaurantID string Body string CreatedAt string UpdatedAt string }{ ID: "comments.id", CommunityID: "comments.community_id", RestaurantID: "comments.restaurant_id", Body: "comments.body", CreatedAt: "comments.created_at", UpdatedAt: "comments.updated_at", }
var CommentWhere = struct { ID whereHelperint64 CommunityID whereHelperint64 RestaurantID whereHelperint64 Body whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CommunityID: whereHelperint64{/* contains filtered or unexported fields */}, RestaurantID: whereHelperint64{/* contains filtered or unexported fields */}, Body: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var CommunitiesRestaurantColumns = struct { ID string CommunityID string RestaurantID string CreatedAt string }{ ID: "id", CommunityID: "community_id", RestaurantID: "restaurant_id", CreatedAt: "created_at", }
var CommunitiesRestaurantRels = struct { Community string Restaurant string }{ Community: "Community", Restaurant: "Restaurant", }
CommunitiesRestaurantRels is where relationship names are stored.
var CommunitiesRestaurantTableColumns = struct { ID string CommunityID string RestaurantID string CreatedAt string }{ ID: "communities_restaurants.id", CommunityID: "communities_restaurants.community_id", RestaurantID: "communities_restaurants.restaurant_id", CreatedAt: "communities_restaurants.created_at", }
var CommunitiesRestaurantWhere = struct { ID whereHelperint64 CommunityID whereHelperint64 RestaurantID whereHelperint64 CreatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, CommunityID: whereHelperint64{/* contains filtered or unexported fields */}, RestaurantID: whereHelperint64{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var CommunityColumns = struct { ID string Name string Description string Latitude string Longitude string ImageFile string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", Description: "description", Latitude: "latitude", Longitude: "longitude", ImageFile: "image_file", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var CommunityRels = struct { Affiliations string Bookmarks string Comments string CommunitiesRestaurants string InviteTokens string }{ Affiliations: "Affiliations", Bookmarks: "Bookmarks", Comments: "Comments", CommunitiesRestaurants: "CommunitiesRestaurants", InviteTokens: "InviteTokens", }
CommunityRels is where relationship names are stored.
var CommunityTableColumns = struct { ID string Name string Description string Latitude string Longitude string ImageFile string CreatedAt string UpdatedAt string }{ ID: "communities.id", Name: "communities.name", Description: "communities.description", Latitude: "communities.latitude", Longitude: "communities.longitude", ImageFile: "communities.image_file", CreatedAt: "communities.created_at", UpdatedAt: "communities.updated_at", }
var CommunityWhere = struct { ID whereHelperint64 Name whereHelperstring Description whereHelperstring Latitude whereHelpernull_Float64 Longitude whereHelpernull_Float64 ImageFile whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Description: whereHelperstring{/* contains filtered or unexported fields */}, Latitude: whereHelpernull_Float64{/* contains filtered or unexported fields */}, Longitude: whereHelpernull_Float64{/* contains filtered or unexported fields */}, ImageFile: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var ErrSyncFail = errors.New("models_gen: failed to synchronize data after insert")
ErrSyncFail occurs during insert when the record could not be retrieved in order to populate default value information. This usually happens when LastInsertId fails or there was a primary key configuration that was not resolvable.
var InviteTokenColumns = struct { TokenDigest string ExpiresAt string CommunityID string IssuedAt string }{ TokenDigest: "token_digest", ExpiresAt: "expires_at", CommunityID: "community_id", IssuedAt: "issued_at", }
var InviteTokenRels = struct { Community string }{ Community: "Community", }
InviteTokenRels is where relationship names are stored.
var InviteTokenTableColumns = struct { TokenDigest string ExpiresAt string CommunityID string IssuedAt string }{ TokenDigest: "invite_tokens.token_digest", ExpiresAt: "invite_tokens.expires_at", CommunityID: "invite_tokens.community_id", IssuedAt: "invite_tokens.issued_at", }
var InviteTokenWhere = struct { TokenDigest whereHelperstring ExpiresAt whereHelpertime_Time CommunityID whereHelperint64 IssuedAt whereHelpertime_Time }{ TokenDigest: whereHelperstring{/* contains filtered or unexported fields */}, ExpiresAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, CommunityID: whereHelperint64{/* contains filtered or unexported fields */}, IssuedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var RestaurantColumns = struct { ID string Name string Latitude string Longitude string Address string URL string ImageURL string Source string SourceID string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", Latitude: "latitude", Longitude: "longitude", Address: "address", URL: "url", ImageURL: "image_url", Source: "source", SourceID: "source_id", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var RestaurantRels = struct { Comments string CommunitiesRestaurants string }{ Comments: "Comments", CommunitiesRestaurants: "CommunitiesRestaurants", }
RestaurantRels is where relationship names are stored.
var RestaurantTableColumns = struct { ID string Name string Latitude string Longitude string Address string URL string ImageURL string Source string SourceID string CreatedAt string UpdatedAt string }{ ID: "restaurants.id", Name: "restaurants.name", Latitude: "restaurants.latitude", Longitude: "restaurants.longitude", Address: "restaurants.address", URL: "restaurants.url", ImageURL: "restaurants.image_url", Source: "restaurants.source", SourceID: "restaurants.source_id", CreatedAt: "restaurants.created_at", UpdatedAt: "restaurants.updated_at", }
var RestaurantWhere = struct { ID whereHelperint64 Name whereHelperstring Latitude whereHelpernull_Float64 Longitude whereHelpernull_Float64 Address whereHelperstring URL whereHelperstring ImageURL whereHelpernull_String Source whereHelperstring SourceID whereHelperstring CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, Latitude: whereHelpernull_Float64{/* contains filtered or unexported fields */}, Longitude: whereHelpernull_Float64{/* contains filtered or unexported fields */}, Address: whereHelperstring{/* contains filtered or unexported fields */}, URL: whereHelperstring{/* contains filtered or unexported fields */}, ImageURL: whereHelpernull_String{/* contains filtered or unexported fields */}, Source: whereHelperstring{/* contains filtered or unexported fields */}, SourceID: whereHelperstring{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
var SchemaMigrationColumns = struct { Version string Dirty string }{ Version: "version", Dirty: "dirty", }
var SchemaMigrationRels = struct {
}{}
SchemaMigrationRels is where relationship names are stored.
var SchemaMigrationTableColumns = struct { Version string Dirty string }{ Version: "schema_migrations.version", Dirty: "schema_migrations.dirty", }
var SchemaMigrationWhere = struct { Version whereHelperint64 Dirty whereHelperbool }{ Version: whereHelperint64{/* contains filtered or unexported fields */}, Dirty: whereHelperbool{/* contains filtered or unexported fields */}, }
var TableNames = struct { Affiliation string Bookmarks string Comments string Communities string CommunitiesRestaurants string InviteTokens string Restaurants string SchemaMigrations string Users string }{ Affiliation: "affiliation", Bookmarks: "bookmarks", Comments: "comments", Communities: "communities", CommunitiesRestaurants: "communities_restaurants", InviteTokens: "invite_tokens", Restaurants: "restaurants", SchemaMigrations: "schema_migrations", Users: "users", }
var UserColumns = struct { ID string Name string ProfileImageFile string CreatedAt string UpdatedAt string }{ ID: "id", Name: "name", ProfileImageFile: "profile_image_file", CreatedAt: "created_at", UpdatedAt: "updated_at", }
var UserRels = struct { Affiliations string Bookmarks string }{ Affiliations: "Affiliations", Bookmarks: "Bookmarks", }
UserRels is where relationship names are stored.
var UserTableColumns = struct { ID string Name string ProfileImageFile string CreatedAt string UpdatedAt string }{ ID: "users.id", Name: "users.name", ProfileImageFile: "users.profile_image_file", CreatedAt: "users.created_at", UpdatedAt: "users.updated_at", }
var UserWhere = struct { ID whereHelperint64 Name whereHelperstring ProfileImageFile whereHelpernull_String CreatedAt whereHelpertime_Time UpdatedAt whereHelpertime_Time }{ ID: whereHelperint64{/* contains filtered or unexported fields */}, Name: whereHelperstring{/* contains filtered or unexported fields */}, ProfileImageFile: whereHelpernull_String{/* contains filtered or unexported fields */}, CreatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, UpdatedAt: whereHelpertime_Time{/* contains filtered or unexported fields */}, }
Functions ¶
func AddAffiliationHook ¶
func AddAffiliationHook(hookPoint boil.HookPoint, affiliationHook AffiliationHook)
AddAffiliationHook registers your hook function for all future operations.
func AddBookmarkHook ¶
func AddBookmarkHook(hookPoint boil.HookPoint, bookmarkHook BookmarkHook)
AddBookmarkHook registers your hook function for all future operations.
func AddCommentHook ¶
func AddCommentHook(hookPoint boil.HookPoint, commentHook CommentHook)
AddCommentHook registers your hook function for all future operations.
func AddCommunitiesRestaurantHook ¶
func AddCommunitiesRestaurantHook(hookPoint boil.HookPoint, communitiesRestaurantHook CommunitiesRestaurantHook)
AddCommunitiesRestaurantHook registers your hook function for all future operations.
func AddCommunityHook ¶
func AddCommunityHook(hookPoint boil.HookPoint, communityHook CommunityHook)
AddCommunityHook registers your hook function for all future operations.
func AddInviteTokenHook ¶
func AddInviteTokenHook(hookPoint boil.HookPoint, inviteTokenHook InviteTokenHook)
AddInviteTokenHook registers your hook function for all future operations.
func AddRestaurantHook ¶
func AddRestaurantHook(hookPoint boil.HookPoint, restaurantHook RestaurantHook)
AddRestaurantHook 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 AddUserHook ¶
AddUserHook registers your hook function for all future operations.
func AffiliationExists ¶
AffiliationExists checks if the Affiliation row exists.
func Affiliations ¶
Affiliations retrieves all the records using an executor.
func BookmarkExists ¶
BookmarkExists checks if the Bookmark row exists.
func CommentExists ¶
CommentExists checks if the Comment row exists.
func Communities ¶
Communities retrieves all the records using an executor.
func CommunitiesRestaurantExists ¶
func CommunitiesRestaurantExists(ctx context.Context, exec boil.ContextExecutor, iD int64) (bool, error)
CommunitiesRestaurantExists checks if the CommunitiesRestaurant row exists.
func CommunitiesRestaurants ¶
CommunitiesRestaurants retrieves all the records using an executor.
func CommunityExists ¶
CommunityExists checks if the Community row exists.
func InviteTokenExists ¶
func InviteTokenExists(ctx context.Context, exec boil.ContextExecutor, tokenDigest string) (bool, error)
InviteTokenExists checks if the InviteToken row exists.
func InviteTokens ¶
InviteTokens retrieves all the records using an executor.
func RestaurantExists ¶
RestaurantExists checks if the Restaurant row exists.
func Restaurants ¶
Restaurants 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 ¶
SchemaMigrations retrieves all the records using an executor.
func UserExists ¶
UserExists checks if the User row exists.
Types ¶
type Affiliation ¶
type Affiliation struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CommunityID int64 `boil:"community_id" json:"community_id" toml:"community_id" yaml:"community_id"` UserID int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *affiliationR `boil:"-" json:"-" toml:"-" yaml:"-"` L affiliationL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Affiliation is an object representing the database table.
func FindAffiliation ¶
func FindAffiliation(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Affiliation, error)
FindAffiliation retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Affiliation) Community ¶
func (o *Affiliation) Community(mods ...qm.QueryMod) communityQuery
Community pointed to by the foreign key.
func (*Affiliation) Delete ¶
func (o *Affiliation) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Affiliation record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Affiliation) Insert ¶
func (o *Affiliation) 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 (*Affiliation) Reload ¶
func (o *Affiliation) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Affiliation) SetCommunity ¶
func (o *Affiliation) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Community) error
SetCommunity of the affiliation to the related item. Sets o.R.Community to related. Adds o to related.R.Affiliations.
func (*Affiliation) SetUser ¶
func (o *Affiliation) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the affiliation to the related item. Sets o.R.User to related. Adds o to related.R.Affiliations.
func (*Affiliation) Update ¶
func (o *Affiliation) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Affiliation. 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 (*Affiliation) Upsert ¶
func (o *Affiliation) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
func (*Affiliation) User ¶
func (o *Affiliation) User(mods ...qm.QueryMod) userQuery
User pointed to by the foreign key.
type AffiliationHook ¶
type AffiliationHook func(context.Context, boil.ContextExecutor, *Affiliation) error
AffiliationHook is the signature for custom Affiliation hook methods
type AffiliationSlice ¶
type AffiliationSlice []*Affiliation
AffiliationSlice is an alias for a slice of pointers to Affiliation. This should almost always be used instead of []Affiliation.
func (AffiliationSlice) DeleteAll ¶
func (o AffiliationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*AffiliationSlice) ReloadAll ¶
func (o *AffiliationSlice) 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 (AffiliationSlice) UpdateAll ¶
func (o AffiliationSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Bookmark ¶
type Bookmark struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CommunityID int64 `boil:"community_id" json:"community_id" toml:"community_id" yaml:"community_id"` UserID int64 `boil:"user_id" json:"user_id" toml:"user_id" yaml:"user_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *bookmarkR `boil:"-" json:"-" toml:"-" yaml:"-"` L bookmarkL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Bookmark is an object representing the database table.
func FindBookmark ¶
func FindBookmark(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Bookmark, error)
FindBookmark retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Bookmark) Delete ¶
Delete deletes a single Bookmark record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Bookmark) Insert ¶
func (o *Bookmark) 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 (*Bookmark) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Bookmark) SetCommunity ¶
func (o *Bookmark) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Community) error
SetCommunity of the bookmark to the related item. Sets o.R.Community to related. Adds o to related.R.Bookmarks.
func (*Bookmark) SetUser ¶
func (o *Bookmark) SetUser(ctx context.Context, exec boil.ContextExecutor, insert bool, related *User) error
SetUser of the bookmark to the related item. Sets o.R.User to related. Adds o to related.R.Bookmarks.
func (*Bookmark) Update ¶
func (o *Bookmark) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Bookmark. 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 (*Bookmark) Upsert ¶
func (o *Bookmark) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type BookmarkHook ¶
BookmarkHook is the signature for custom Bookmark hook methods
type BookmarkSlice ¶
type BookmarkSlice []*Bookmark
BookmarkSlice is an alias for a slice of pointers to Bookmark. This should almost always be used instead of []Bookmark.
func (BookmarkSlice) DeleteAll ¶
func (o BookmarkSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*BookmarkSlice) ReloadAll ¶
func (o *BookmarkSlice) 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 (BookmarkSlice) UpdateAll ¶
func (o BookmarkSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Comment ¶
type Comment struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CommunityID int64 `boil:"community_id" json:"community_id" toml:"community_id" yaml:"community_id"` RestaurantID int64 `boil:"restaurant_id" json:"restaurant_id" toml:"restaurant_id" yaml:"restaurant_id"` Body string `boil:"body" json:"body" toml:"body" yaml:"body"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *commentR `boil:"-" json:"-" toml:"-" yaml:"-"` L commentL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Comment is an object representing the database table.
func FindComment ¶
func FindComment(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Comment, error)
FindComment retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Comment) Delete ¶
Delete deletes a single Comment record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Comment) Insert ¶
func (o *Comment) 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 (*Comment) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Comment) Restaurant ¶
Restaurant pointed to by the foreign key.
func (*Comment) SetCommunity ¶
func (o *Comment) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Community) error
SetCommunity of the comment to the related item. Sets o.R.Community to related. Adds o to related.R.Comments.
func (*Comment) SetRestaurant ¶
func (o *Comment) SetRestaurant(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Restaurant) error
SetRestaurant of the comment to the related item. Sets o.R.Restaurant to related. Adds o to related.R.Comments.
func (*Comment) Update ¶
func (o *Comment) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Comment. 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 (*Comment) Upsert ¶
func (o *Comment) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CommentHook ¶
CommentHook is the signature for custom Comment hook methods
type CommentSlice ¶
type CommentSlice []*Comment
CommentSlice is an alias for a slice of pointers to Comment. This should almost always be used instead of []Comment.
func (CommentSlice) DeleteAll ¶
func (o CommentSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CommentSlice) ReloadAll ¶
func (o *CommentSlice) 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 (CommentSlice) UpdateAll ¶
func (o CommentSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type CommunitiesRestaurant ¶
type CommunitiesRestaurant struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` CommunityID int64 `boil:"community_id" json:"community_id" toml:"community_id" yaml:"community_id"` RestaurantID int64 `boil:"restaurant_id" json:"restaurant_id" toml:"restaurant_id" yaml:"restaurant_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` R *communitiesRestaurantR `boil:"-" json:"-" toml:"-" yaml:"-"` L communitiesRestaurantL `boil:"-" json:"-" toml:"-" yaml:"-"` }
CommunitiesRestaurant is an object representing the database table.
func FindCommunitiesRestaurant ¶
func FindCommunitiesRestaurant(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*CommunitiesRestaurant, error)
FindCommunitiesRestaurant retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*CommunitiesRestaurant) Community ¶
func (o *CommunitiesRestaurant) Community(mods ...qm.QueryMod) communityQuery
Community pointed to by the foreign key.
func (*CommunitiesRestaurant) Delete ¶
func (o *CommunitiesRestaurant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single CommunitiesRestaurant record with an executor. Delete will match against the primary key column to find the record to delete.
func (*CommunitiesRestaurant) Insert ¶
func (o *CommunitiesRestaurant) 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 (*CommunitiesRestaurant) Reload ¶
func (o *CommunitiesRestaurant) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*CommunitiesRestaurant) Restaurant ¶
func (o *CommunitiesRestaurant) Restaurant(mods ...qm.QueryMod) restaurantQuery
Restaurant pointed to by the foreign key.
func (*CommunitiesRestaurant) SetCommunity ¶
func (o *CommunitiesRestaurant) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Community) error
SetCommunity of the communitiesRestaurant to the related item. Sets o.R.Community to related. Adds o to related.R.CommunitiesRestaurants.
func (*CommunitiesRestaurant) SetRestaurant ¶
func (o *CommunitiesRestaurant) SetRestaurant(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Restaurant) error
SetRestaurant of the communitiesRestaurant to the related item. Sets o.R.Restaurant to related. Adds o to related.R.CommunitiesRestaurants.
func (*CommunitiesRestaurant) Update ¶
func (o *CommunitiesRestaurant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the CommunitiesRestaurant. 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 (*CommunitiesRestaurant) Upsert ¶
func (o *CommunitiesRestaurant) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CommunitiesRestaurantHook ¶
type CommunitiesRestaurantHook func(context.Context, boil.ContextExecutor, *CommunitiesRestaurant) error
CommunitiesRestaurantHook is the signature for custom CommunitiesRestaurant hook methods
type CommunitiesRestaurantSlice ¶
type CommunitiesRestaurantSlice []*CommunitiesRestaurant
CommunitiesRestaurantSlice is an alias for a slice of pointers to CommunitiesRestaurant. This should almost always be used instead of []CommunitiesRestaurant.
func (CommunitiesRestaurantSlice) DeleteAll ¶
func (o CommunitiesRestaurantSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CommunitiesRestaurantSlice) ReloadAll ¶
func (o *CommunitiesRestaurantSlice) 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 (CommunitiesRestaurantSlice) UpdateAll ¶
func (o CommunitiesRestaurantSlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type Community ¶
type Community struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Description string `boil:"description" json:"description" toml:"description" yaml:"description"` Latitude null.Float64 `boil:"latitude" json:"latitude,omitempty" toml:"latitude" yaml:"latitude,omitempty"` Longitude null.Float64 `boil:"longitude" json:"longitude,omitempty" toml:"longitude" yaml:"longitude,omitempty"` // 画像のファイル名 ImageFile string `boil:"image_file" json:"image_file" toml:"image_file" yaml:"image_file"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *communityR `boil:"-" json:"-" toml:"-" yaml:"-"` L communityL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Community is an object representing the database table.
func FindCommunity ¶
func FindCommunity(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Community, error)
FindCommunity retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Community) AddAffiliations ¶
func (o *Community) AddAffiliations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Affiliation) error
AddAffiliations adds the given related objects to the existing relationships of the community, optionally inserting them as new records. Appends related to o.R.Affiliations. Sets related.R.Community appropriately.
func (*Community) AddBookmarks ¶
func (o *Community) AddBookmarks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Bookmark) error
AddBookmarks adds the given related objects to the existing relationships of the community, optionally inserting them as new records. Appends related to o.R.Bookmarks. Sets related.R.Community appropriately.
func (*Community) AddComments ¶
func (o *Community) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error
AddComments adds the given related objects to the existing relationships of the community, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Community appropriately.
func (*Community) AddCommunitiesRestaurants ¶
func (o *Community) AddCommunitiesRestaurants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CommunitiesRestaurant) error
AddCommunitiesRestaurants adds the given related objects to the existing relationships of the community, optionally inserting them as new records. Appends related to o.R.CommunitiesRestaurants. Sets related.R.Community appropriately.
func (*Community) AddInviteTokens ¶
func (o *Community) AddInviteTokens(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*InviteToken) error
AddInviteTokens adds the given related objects to the existing relationships of the community, optionally inserting them as new records. Appends related to o.R.InviteTokens. Sets related.R.Community appropriately.
func (*Community) Affiliations ¶
Affiliations retrieves all the affiliation's Affiliations with an executor.
func (*Community) CommunitiesRestaurants ¶
CommunitiesRestaurants retrieves all the communities_restaurant's CommunitiesRestaurants with an executor.
func (*Community) Delete ¶
Delete deletes a single Community record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Community) Insert ¶
func (o *Community) 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 (*Community) InviteTokens ¶
InviteTokens retrieves all the invite_token's InviteTokens with an executor.
func (*Community) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*Community) Update ¶
func (o *Community) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Community. 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 (*Community) Upsert ¶
func (o *Community) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type CommunityHook ¶
CommunityHook is the signature for custom Community hook methods
type CommunitySlice ¶
type CommunitySlice []*Community
CommunitySlice is an alias for a slice of pointers to Community. This should almost always be used instead of []Community.
func (CommunitySlice) DeleteAll ¶
func (o CommunitySlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*CommunitySlice) ReloadAll ¶
func (o *CommunitySlice) 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 (CommunitySlice) UpdateAll ¶
func (o CommunitySlice) UpdateAll(ctx context.Context, exec boil.ContextExecutor, cols M) (int64, error)
UpdateAll updates all rows with the specified column values, using an executor.
type InviteToken ¶
type InviteToken struct { TokenDigest string `boil:"token_digest" json:"token_digest" toml:"token_digest" yaml:"token_digest"` ExpiresAt time.Time `boil:"expires_at" json:"expires_at" toml:"expires_at" yaml:"expires_at"` CommunityID int64 `boil:"community_id" json:"community_id" toml:"community_id" yaml:"community_id"` IssuedAt time.Time `boil:"issued_at" json:"issued_at" toml:"issued_at" yaml:"issued_at"` R *inviteTokenR `boil:"-" json:"-" toml:"-" yaml:"-"` L inviteTokenL `boil:"-" json:"-" toml:"-" yaml:"-"` }
InviteToken is an object representing the database table.
func FindInviteToken ¶
func FindInviteToken(ctx context.Context, exec boil.ContextExecutor, tokenDigest string, selectCols ...string) (*InviteToken, error)
FindInviteToken retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*InviteToken) Community ¶
func (o *InviteToken) Community(mods ...qm.QueryMod) communityQuery
Community pointed to by the foreign key.
func (*InviteToken) Delete ¶
func (o *InviteToken) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single InviteToken record with an executor. Delete will match against the primary key column to find the record to delete.
func (*InviteToken) Insert ¶
func (o *InviteToken) 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 (*InviteToken) Reload ¶
func (o *InviteToken) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*InviteToken) SetCommunity ¶
func (o *InviteToken) SetCommunity(ctx context.Context, exec boil.ContextExecutor, insert bool, related *Community) error
SetCommunity of the inviteToken to the related item. Sets o.R.Community to related. Adds o to related.R.InviteTokens.
func (*InviteToken) Update ¶
func (o *InviteToken) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the InviteToken. 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 (*InviteToken) Upsert ¶
func (o *InviteToken) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type InviteTokenHook ¶
type InviteTokenHook func(context.Context, boil.ContextExecutor, *InviteToken) error
InviteTokenHook is the signature for custom InviteToken hook methods
type InviteTokenSlice ¶
type InviteTokenSlice []*InviteToken
InviteTokenSlice is an alias for a slice of pointers to InviteToken. This should almost always be used instead of []InviteToken.
func (InviteTokenSlice) DeleteAll ¶
func (o InviteTokenSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*InviteTokenSlice) ReloadAll ¶
func (o *InviteTokenSlice) 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 (InviteTokenSlice) UpdateAll ¶
func (o InviteTokenSlice) 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 Restaurant ¶
type Restaurant struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` Latitude null.Float64 `boil:"latitude" json:"latitude,omitempty" toml:"latitude" yaml:"latitude,omitempty"` Longitude null.Float64 `boil:"longitude" json:"longitude,omitempty" toml:"longitude" yaml:"longitude,omitempty"` // 住所 Address string `boil:"address" json:"address" toml:"address" yaml:"address"` // レストラン情報の取得元のレストランのURL URL string `boil:"url" json:"url" toml:"url" yaml:"url"` // 画像のURL ImageURL null.String `boil:"image_url" json:"image_url,omitempty" toml:"image_url" yaml:"image_url,omitempty"` // レストラン情報の取得元 Source string `boil:"source" json:"source" toml:"source" yaml:"source"` // レストラン情報の取得元のレストランID SourceID string `boil:"source_id" json:"source_id" toml:"source_id" yaml:"source_id"` CreatedAt time.Time `boil:"created_at" json:"created_at" toml:"created_at" yaml:"created_at"` UpdatedAt time.Time `boil:"updated_at" json:"updated_at" toml:"updated_at" yaml:"updated_at"` R *restaurantR `boil:"-" json:"-" toml:"-" yaml:"-"` L restaurantL `boil:"-" json:"-" toml:"-" yaml:"-"` }
Restaurant is an object representing the database table.
func FindRestaurant ¶
func FindRestaurant(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*Restaurant, error)
FindRestaurant retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*Restaurant) AddComments ¶
func (o *Restaurant) AddComments(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Comment) error
AddComments adds the given related objects to the existing relationships of the restaurant, optionally inserting them as new records. Appends related to o.R.Comments. Sets related.R.Restaurant appropriately.
func (*Restaurant) AddCommunitiesRestaurants ¶
func (o *Restaurant) AddCommunitiesRestaurants(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*CommunitiesRestaurant) error
AddCommunitiesRestaurants adds the given related objects to the existing relationships of the restaurant, optionally inserting them as new records. Appends related to o.R.CommunitiesRestaurants. Sets related.R.Restaurant appropriately.
func (*Restaurant) Comments ¶
func (o *Restaurant) Comments(mods ...qm.QueryMod) commentQuery
Comments retrieves all the comment's Comments with an executor.
func (*Restaurant) CommunitiesRestaurants ¶
func (o *Restaurant) CommunitiesRestaurants(mods ...qm.QueryMod) communitiesRestaurantQuery
CommunitiesRestaurants retrieves all the communities_restaurant's CommunitiesRestaurants with an executor.
func (*Restaurant) Delete ¶
func (o *Restaurant) Delete(ctx context.Context, exec boil.ContextExecutor) (int64, error)
Delete deletes a single Restaurant record with an executor. Delete will match against the primary key column to find the record to delete.
func (*Restaurant) Insert ¶
func (o *Restaurant) 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 (*Restaurant) Reload ¶
func (o *Restaurant) Reload(ctx context.Context, exec boil.ContextExecutor) error
Reload refetches the object from the database using the primary keys with an executor.
func (*Restaurant) Update ¶
func (o *Restaurant) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the Restaurant. 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 (*Restaurant) Upsert ¶
func (o *Restaurant) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type RestaurantHook ¶
type RestaurantHook func(context.Context, boil.ContextExecutor, *Restaurant) error
RestaurantHook is the signature for custom Restaurant hook methods
type RestaurantSlice ¶
type RestaurantSlice []*Restaurant
RestaurantSlice is an alias for a slice of pointers to Restaurant. This should almost always be used instead of []Restaurant.
func (RestaurantSlice) DeleteAll ¶
func (o RestaurantSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*RestaurantSlice) ReloadAll ¶
func (o *RestaurantSlice) 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 (RestaurantSlice) UpdateAll ¶
func (o RestaurantSlice) 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:"-" json:"-" toml:"-" yaml:"-"` 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 ¶
func (o *SchemaMigration) Reload(ctx context.Context, exec boil.ContextExecutor) error
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, 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 ¶
func (o SchemaMigrationSlice) DeleteAll(ctx context.Context, exec boil.ContextExecutor) (int64, error)
DeleteAll deletes all rows in the slice, using an executor.
func (*SchemaMigrationSlice) ReloadAll ¶
func (o *SchemaMigrationSlice) 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 (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.
type User ¶
type User struct { ID int64 `boil:"id" json:"id" toml:"id" yaml:"id"` Name string `boil:"name" json:"name" toml:"name" yaml:"name"` // プロフィール画像のファイル名 ProfileImageFile null.String `boil:"profile_image_file" json:"profile_image_file,omitempty" toml:"profile_image_file" yaml:"profile_image_file,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"` R *userR `boil:"-" json:"-" toml:"-" yaml:"-"` L userL `boil:"-" json:"-" toml:"-" yaml:"-"` }
User is an object representing the database table.
func FindUser ¶
func FindUser(ctx context.Context, exec boil.ContextExecutor, iD int64, selectCols ...string) (*User, error)
FindUser retrieves a single record by ID with an executor. If selectCols is empty Find will return all columns.
func (*User) AddAffiliations ¶
func (o *User) AddAffiliations(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Affiliation) error
AddAffiliations adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Affiliations. Sets related.R.User appropriately.
func (*User) AddBookmarks ¶
func (o *User) AddBookmarks(ctx context.Context, exec boil.ContextExecutor, insert bool, related ...*Bookmark) error
AddBookmarks adds the given related objects to the existing relationships of the user, optionally inserting them as new records. Appends related to o.R.Bookmarks. Sets related.R.User appropriately.
func (*User) Affiliations ¶
Affiliations retrieves all the affiliation's Affiliations with an executor.
func (*User) Delete ¶
Delete deletes a single User record with an executor. Delete will match against the primary key column to find the record to delete.
func (*User) Insert ¶
Insert a single record using an executor. See boil.Columns.InsertColumnSet documentation to understand column list inference for inserts.
func (*User) Reload ¶
Reload refetches the object from the database using the primary keys with an executor.
func (*User) Update ¶
func (o *User) Update(ctx context.Context, exec boil.ContextExecutor, columns boil.Columns) (int64, error)
Update uses an executor to update the User. See boil.Columns.UpdateColumnSet documentation to understand column list inference for updates. Update does not automatically update the record in case of default values. Use .Reload() to refresh the records.
func (*User) Upsert ¶
func (o *User) Upsert(ctx context.Context, exec boil.ContextExecutor, updateColumns, insertColumns boil.Columns) error
Upsert attempts an insert using an executor, and does an update or ignore on conflict. See boil.Columns documentation for how to properly use updateColumns and insertColumns.
type UserSlice ¶
type UserSlice []*User
UserSlice is an alias for a slice of pointers to User. This should almost always be used instead of []User.