select id, task_id, network, tx_id, owner_address, receiver_address, transaction_type, resource_type, amount_sun, verified_total_limit, verified_total_weight, verified_resource_quantity, baseline_sun, after_sun, block_height, block_time, status, evidence, expires_at, confirmed_at, next_check_at, version, created_at, updated_at from rent_transaction
insert into rent_transaction
task_id,
network,
tx_id,
owner_address,
receiver_address,
transaction_type,
resource_type,
amount_sun,
verified_total_limit,
verified_total_weight,
verified_resource_quantity,
baseline_sun,
after_sun,
block_height,
block_time,
status,
evidence,
expires_at,
confirmed_at,
next_check_at,
version,
created_at,
updated_at,
#{taskId},
#{network},
#{txId},
#{ownerAddress},
#{receiverAddress},
#{transactionType},
#{resourceType},
#{amountSun},
#{verifiedTotalLimit},
#{verifiedTotalWeight},
#{verifiedResourceQuantity},
#{baselineSun},
#{afterSun},
#{blockHeight},
#{blockTime},
#{status},
#{evidence},
#{expiresAt},
#{confirmedAt},
#{nextCheckAt},
#{version},
#{createdAt},
#{updatedAt},
update rent_transaction
task_id = #{taskId},
network = #{network},
tx_id = #{txId},
owner_address = #{ownerAddress},
receiver_address = #{receiverAddress},
transaction_type = #{transactionType},
resource_type = #{resourceType},
amount_sun = #{amountSun},
verified_total_limit = #{verifiedTotalLimit},
verified_total_weight = #{verifiedTotalWeight},
verified_resource_quantity = #{verifiedResourceQuantity},
baseline_sun = #{baselineSun},
after_sun = #{afterSun},
block_height = #{blockHeight},
block_time = #{blockTime},
status = #{status},
evidence = #{evidence},
expires_at = #{expiresAt},
confirmed_at = #{confirmedAt},
next_check_at = #{nextCheckAt},
version = #{version},
created_at = #{createdAt},
updated_at = #{updatedAt},
where id = #{id}
delete from rent_transaction where id = #{id}
delete from rent_transaction where id in
#{id}