Skip to content

Commit

Permalink
remove old asSync (#36)
Browse files Browse the repository at this point in the history
leftover when we merge Sync/Async connection types into a common
pq.Conn.
  • Loading branch information
urso authored Mar 25, 2024
1 parent fe17d3b commit 8c3c4f3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/pgzx/pq.zig
Original file line number Diff line number Diff line change
Expand Up @@ -197,13 +197,6 @@ pub const Conn = struct {
}
}

pub fn asSync(self: *Self) !Conn {
return Conn{
.conn = self.conn,
.allocator = self.allocator,
};
}

pub fn exec(self: *Self, query: [:0]const u8) !Result {
const rc = c.PQsendQuery(self.conn, query);
if (rc == 0) {
Expand Down

0 comments on commit 8c3c4f3

Please sign in to comment.