Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add asynchronous execution #109

Merged
merged 24 commits into from
Jun 12, 2019
Merged
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -630,4 +630,11 @@ function Base.show(io::IO, jl_conn::Connection)
end
end

socket(jl_conn::Connection) = RawFD(libpq_c.PQsocket(jl_conn.conn))
function socket(jl_conn::Connection)
socket_int = libpq_c.PQsocket(jl_conn.conn)
@static if Sys.iswindows()
Base.WindowsRawSocket(Ptr{Cvoid}(UInt64(socket_int)))
else
RawFD(socket_int)
iamed2 marked this conversation as resolved.
Show resolved Hide resolved
end
end