Skip to main content

max / makenotwork

746 B · 15 lines History Blame Raw
1 {
2 "db_name": "PostgreSQL",
3 "query": "\n WITH moved AS (\n DELETE FROM pending_s3_deletions\n WHERE id = ANY($1)\n RETURNING id, s3_key, bucket, source, created_at, attempts, last_attempted_at\n )\n INSERT INTO pending_s3_deletions_dead_letter\n (id, s3_key, bucket, source, created_at, attempts, last_attempted_at)\n SELECT id, s3_key, bucket, source, created_at, attempts, last_attempted_at\n FROM moved\n ON CONFLICT (id) DO NOTHING\n ",
4 "describe": {
5 "columns": [],
6 "parameters": {
7 "Left": [
8 "UuidArray"
9 ]
10 },
11 "nullable": []
12 },
13 "hash": "94e5ea852c5bf35a798c65965823071169cbb0de4e3fa024bbf8604b0ba75063"
14 }
15