{ "db_name": "PostgreSQL", "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 ", "describe": { "columns": [ { "ordinal": 0, "name": "transaction_id!: TransactionId", "type_info": "Uuid" }, { "ordinal": 1, "name": "seller_id!: UserId", "type_info": "Uuid" }, { "ordinal": 2, "name": "amount_cents!: Cents", "type_info": "Int8" } ], "parameters": { "Left": [] }, "nullable": [ false, true, false ] }, "hash": "4a03016f8c84ebe12ea6ba0e603d02e60b133a248fd856b7b1b7bb574c0fd110" }