Skip to content

Commit

Permalink
Add PGConnection accessor to PGSQLOutput
Browse files Browse the repository at this point in the history
  • Loading branch information
kdubb committed Oct 28, 2020
1 parent 6da2884 commit 45b16e6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
*/
package com.impossibl.postgres.jdbc;

import com.impossibl.postgres.api.jdbc.PGConnection;
import com.impossibl.postgres.system.Context;
import com.impossibl.postgres.types.Type;
import com.impossibl.postgres.utils.guava.ByteStreams;
Expand Down Expand Up @@ -75,6 +76,10 @@ public PGSQLOutput(Context context) {
this.attributeValues = new ArrayList<>();
}

public PGConnection getConnection() {
return (PGDirectConnection) context.unwrap();
}

public Type[] getAttributeTypes() {
return attributeTypes.toArray(EMPTY_TYPES);
}
Expand Down

0 comments on commit 45b16e6

Please sign in to comment.