Skip to content

Commit fd12697

Browse files
committed
Expose underlying connection in Session
1 parent f03877b commit fd12697

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

include/sqlgen/Session.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ class Session {
8686
return conn_->write(_begin, _end);
8787
}
8888

89+
int native_socket() const noexcept;
90+
91+
/// Expose the underlying connection for now.
92+
ConnPtr connection() { return conn_; }
93+
8994
private:
9095
/// The underlying connection object.
9196
ConnPtr conn_;

0 commit comments

Comments
 (0)