Finally, thank you guys. @lungben, I checked your repositories. It looks very interesting.
I already found solution, what I wanted to do.
f = CSV.File(body, header=0, delim=';', skipto = 4, footerskip = 1)
df = f |> DataFrame
row_strings = map(eachrow(df)) do row
s = ""
for c in 1:length(row)
s *= ismissing(row[c]) ? "," : "$(row[c]),"
end
s[1:end-1]*"\n"
end
copyin = LibPQ.CopyIn("COPY datasets FROM STDIN (FORMAT CSV, HEADER FALSE);", row_strings)
local conn
conn = connect()
execute(conn, copyin)