Documentation ¶
Index ¶
- type AddAccessibilityFeatureByReviewIDParams
- type CreateFavoriteParams
- type CreatePlaceParams
- type CreateReviewParams
- type CreateUserParams
- type DBTX
- type DeleteFavoriteByUserIdAndPlaceIdParams
- type Favorite
- type FindPlacesNearbyParams
- type FindReviewsByPlaceIdParams
- type FindReviewsByUserIDParams
- type Place
- type Queries
- func (q *Queries) AddAccessibilityFeatureByReviewID(ctx context.Context, arg AddAccessibilityFeatureByReviewIDParams) error
- func (q *Queries) CreateFavorite(ctx context.Context, arg CreateFavoriteParams) error
- func (q *Queries) CreatePlace(ctx context.Context, arg CreatePlaceParams) error
- func (q *Queries) CreateReview(ctx context.Context, arg CreateReviewParams) error
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
- func (q *Queries) DeleteFavoriteByUserIdAndPlaceId(ctx context.Context, arg DeleteFavoriteByUserIdAndPlaceIdParams) error
- func (q *Queries) DeletePlaceById(ctx context.Context, id string) error
- func (q *Queries) DeleteReviewById(ctx context.Context, id string) error
- func (q *Queries) DeleteUserById(ctx context.Context, id string) error
- func (q *Queries) FindFavoritesByUserId(ctx context.Context, userID sql.NullString) ([]sql.NullString, error)
- func (q *Queries) FindPlaceByGooglePlaceId(ctx context.Context, googlePlaceID sql.NullString) (Place, error)
- func (q *Queries) FindPlaceById(ctx context.Context, id string) (Place, error)
- func (q *Queries) FindPlacesByAccessibilityFeature(ctx context.Context, findINSET string) ([]Place, error)
- func (q *Queries) FindPlacesNearby(ctx context.Context, arg FindPlacesNearbyParams) ([]Place, error)
- func (q *Queries) FindReviewById(ctx context.Context, id string) (Review, error)
- func (q *Queries) FindReviewsByPlaceId(ctx context.Context, arg FindReviewsByPlaceIdParams) ([]Review, error)
- func (q *Queries) FindReviewsByUserID(ctx context.Context, arg FindReviewsByUserIDParams) ([]Review, error)
- func (q *Queries) FindUserByEmail(ctx context.Context, email string) (User, error)
- func (q *Queries) FindUserById(ctx context.Context, id string) (User, error)
- func (q *Queries) GetAllUsers(ctx context.Context) ([]User, error)
- func (q *Queries) UpdatePlaceById(ctx context.Context, arg UpdatePlaceByIdParams) error
- func (q *Queries) UpdateReviewById(ctx context.Context, arg UpdateReviewByIdParams) error
- func (q *Queries) UpdateUserById(ctx context.Context, arg UpdateUserByIdParams) error
- func (q *Queries) UpdateUserPointsByUserId(ctx context.Context, arg UpdateUserPointsByUserIdParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Review
- type UpdatePlaceByIdParams
- type UpdateReviewByIdParams
- type UpdateUserByIdParams
- type UpdateUserPointsByUserIdParams
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAccessibilityFeatureByReviewIDParams ¶
type AddAccessibilityFeatureByReviewIDParams struct { CONCAT interface{} ID string }
type CreateFavoriteParams ¶
type CreateFavoriteParams struct { UserID sql.NullString PlaceID sql.NullString }
type CreatePlaceParams ¶
type CreatePlaceParams struct { ID string GooglePlaceID sql.NullString Name sql.NullString FormattedAddress sql.NullString Lat sql.NullFloat64 Lng sql.NullFloat64 Icon sql.NullString Types json.RawMessage OpeningPeriods json.RawMessage Photos json.RawMessage Rating sql.NullFloat64 CreatedAt sql.NullTime UpdatedAt sql.NullTime }
type CreateReviewParams ¶
type CreateReviewParams struct { ID string PlaceID sql.NullString UserID sql.NullString Content sql.NullString Images json.RawMessage Rating sql.NullFloat64 Reactions json.RawMessage AccessibilityFeatures sql.NullString CreatedAt sql.NullTime UpdatedAt sql.NullTime }
type CreateUserParams ¶
type DeleteFavoriteByUserIdAndPlaceIdParams ¶
type DeleteFavoriteByUserIdAndPlaceIdParams struct { UserID sql.NullString PlaceID sql.NullString }
type Favorite ¶
type Favorite struct { PlaceID sql.NullString UserID sql.NullString }
type FindPlacesNearbyParams ¶
type FindPlacesNearbyParams struct { POINT float64 POINT_2 float64 Lat sql.NullFloat64 }
type FindReviewsByPlaceIdParams ¶
type FindReviewsByPlaceIdParams struct { PlaceID sql.NullString Limit int32 Offset int32 }
type FindReviewsByUserIDParams ¶
type FindReviewsByUserIDParams struct { UserID sql.NullString Limit int32 Offset int32 }
type Place ¶
type Place struct { ID string GooglePlaceID sql.NullString Name sql.NullString FormattedAddress sql.NullString Lat sql.NullFloat64 Lng sql.NullFloat64 Icon sql.NullString Types json.RawMessage OpeningPeriods json.RawMessage Photos json.RawMessage Rating sql.NullFloat64 CreatedAt sql.NullTime UpdatedAt sql.NullTime }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AddAccessibilityFeatureByReviewID ¶
func (q *Queries) AddAccessibilityFeatureByReviewID(ctx context.Context, arg AddAccessibilityFeatureByReviewIDParams) error
func (*Queries) CreateFavorite ¶
func (q *Queries) CreateFavorite(ctx context.Context, arg CreateFavoriteParams) error
func (*Queries) CreatePlace ¶
func (q *Queries) CreatePlace(ctx context.Context, arg CreatePlaceParams) error
func (*Queries) CreateReview ¶
func (q *Queries) CreateReview(ctx context.Context, arg CreateReviewParams) error
func (*Queries) CreateUser ¶
func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) error
func (*Queries) DeleteFavoriteByUserIdAndPlaceId ¶
func (q *Queries) DeleteFavoriteByUserIdAndPlaceId(ctx context.Context, arg DeleteFavoriteByUserIdAndPlaceIdParams) error
func (*Queries) DeletePlaceById ¶
func (*Queries) DeleteReviewById ¶
func (*Queries) DeleteUserById ¶
func (*Queries) FindFavoritesByUserId ¶
func (q *Queries) FindFavoritesByUserId(ctx context.Context, userID sql.NullString) ([]sql.NullString, error)
func (*Queries) FindPlaceByGooglePlaceId ¶
func (*Queries) FindPlaceById ¶
func (*Queries) FindPlacesByAccessibilityFeature ¶
func (*Queries) FindPlacesNearby ¶
func (*Queries) FindReviewById ¶
func (*Queries) FindReviewsByPlaceId ¶
func (*Queries) FindReviewsByUserID ¶
func (*Queries) FindUserByEmail ¶
func (*Queries) FindUserById ¶
func (*Queries) UpdatePlaceById ¶
func (q *Queries) UpdatePlaceById(ctx context.Context, arg UpdatePlaceByIdParams) error
func (*Queries) UpdateReviewById ¶
func (q *Queries) UpdateReviewById(ctx context.Context, arg UpdateReviewByIdParams) error
func (*Queries) UpdateUserById ¶
func (q *Queries) UpdateUserById(ctx context.Context, arg UpdateUserByIdParams) error
func (*Queries) UpdateUserPointsByUserId ¶
func (q *Queries) UpdateUserPointsByUserId(ctx context.Context, arg UpdateUserPointsByUserIdParams) error
type Review ¶
type Review struct { ID string PlaceID sql.NullString UserID sql.NullString Content sql.NullString Images json.RawMessage Rating sql.NullFloat64 Reactions json.RawMessage AccessibilityFeatures sql.NullString CreatedAt sql.NullTime UpdatedAt sql.NullTime }
type UpdatePlaceByIdParams ¶
type UpdatePlaceByIdParams struct { GooglePlaceID sql.NullString Name sql.NullString FormattedAddress sql.NullString Lat sql.NullFloat64 Lng sql.NullFloat64 Icon sql.NullString Types json.RawMessage OpeningPeriods json.RawMessage Photos json.RawMessage Rating sql.NullFloat64 UpdatedAt sql.NullTime ID string }
type UpdateReviewByIdParams ¶
type UpdateReviewByIdParams struct { Content sql.NullString Images json.RawMessage Rating sql.NullFloat64 Reactions json.RawMessage AccessibilityFeatures sql.NullString UpdatedAt sql.NullTime ID string }
type UpdateUserByIdParams ¶
Click to show internal directories.
Click to hide internal directories.