| 1 |
{ |
| 2 |
"db_name": "PostgreSQL", |
| 3 |
"query": "\n UPDATE transactions\n SET platform_credit_claimed_at = NOW()\n WHERE id = (\n SELECT id FROM transactions\n WHERE status = 'completed'\n AND platform_credit_cents > 0\n AND platform_credit_settled_at IS NULL\n AND platform_credit_claimed_at IS NULL\n ORDER BY completed_at\n LIMIT 1\n FOR UPDATE SKIP LOCKED\n )\n RETURNING id AS \"transaction_id!: TransactionId\",\n seller_id AS \"seller_id!: UserId\",\n platform_credit_cents AS \"amount_cents!: Cents\"\n ", |
| 4 |
"describe": { |
| 5 |
"columns": [ |
| 6 |
{ |
| 7 |
"ordinal": 0, |
| 8 |
"name": "transaction_id!: TransactionId", |
| 9 |
"type_info": "Uuid" |
| 10 |
}, |
| 11 |
{ |
| 12 |
"ordinal": 1, |
| 13 |
"name": "seller_id!: UserId", |
| 14 |
"type_info": "Uuid" |
| 15 |
}, |
| 16 |
{ |
| 17 |
"ordinal": 2, |
| 18 |
"name": "amount_cents!: Cents", |
| 19 |
"type_info": "Int8" |
| 20 |
} |
| 21 |
], |
| 22 |
"parameters": { |
| 23 |
"Left": [] |
| 24 |
}, |
| 25 |
"nullable": [ |
| 26 |
false, |
| 27 |
true, |
| 28 |
false |
| 29 |
] |
| 30 |
}, |
| 31 |
"hash": "4a03016f8c84ebe12ea6ba0e603d02e60b133a248fd856b7b1b7bb574c0fd110" |
| 32 |
} |
| 33 |
|