// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.30.0 // source: GetStylePostByID.sql package store import ( "context" ) const getStylePostByID = `-- name: GetStylePostByID :one SELECT post_id, post_text FROM user_style_posts WHERE user_id = $1 AND platform = $2 AND post_id = $3 ` type GetStylePostByIDParams struct { UserID string Platform string PostID string } type GetStylePostByIDRow struct { PostID string PostText string } func (q *Queries) GetStylePostByID(ctx context.Context, arg GetStylePostByIDParams) (GetStylePostByIDRow, error) { row := q.db.QueryRowContext(ctx, getStylePostByID, arg.UserID, arg.Platform, arg.PostID) var i GetStylePostByIDRow err := row.Scan(&i.PostID, &i.PostText) return i, err }