Skip to content

Commit 047c1f8

Browse files
committedSep 5, 2023
Update template.
1 parent c44449d commit 047c1f8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎utils/templates/connection.py

+11
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,17 @@ def inputtypehandler(self, value: Callable) -> None:
465465
self._verify_connected()
466466
self._impl.inputtypehandler = value
467467

468+
@property
469+
def instance_name(self) -> str:
470+
"""
471+
Returns the instance name associated with the connection. This is the
472+
equivalent of the SQL expression:
473+
474+
sys_context('userenv', 'instance_name')
475+
"""
476+
self._verify_connected()
477+
return self._impl.get_instance_name()
478+
468479
@property
469480
def internal_name(self) -> str:
470481
"""

0 commit comments

Comments
 (0)
Please sign in to comment.