How Can I create a COPY function in the .xml mapper with myBatis? And what values this function will return? I think it is as
<copy id="copyFunction">
COPY (SELECT * FROM #{table_name} WHERE backup = 1) TO 'C:\var\audiobays\logs\audit\' || #{table_name} || '_deletions_(' || now()::DATE || '-' || days || ').csv'' CSV DELIMITER '','' HEADER;'
</copy>
But I'm not sure that it is what.
Can someone help me? Thank you!