// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.30.0 // source: UpsertStylePosts.sql package store import ( "context" ) const upsertStylePosts = `-- name: UpsertStylePosts :exec INSERT INTO user_style_posts (user_id, platform, post_id, post_text) VALUES ($1, $2, $3, $4) ON CONFLICT (user_id, platform, post_id) DO UPDATE SET post_text = EXCLUDED.post_text, created_at = now() ` type UpsertStylePostsParams struct { UserID string Platform string PostID string PostText string } func (q *Queries) UpsertStylePosts(ctx context.Context, arg UpsertStylePostsParams) error { _, err := q.db.ExecContext(ctx, upsertStylePosts, arg.UserID, arg.Platform, arg.PostID, arg.PostText, ) return err }