File tree Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Expand file tree Collapse file tree 1 file changed +1
-23
lines changed Original file line number Diff line number Diff line change 1- # Async Connect Wrapper Implementation
1+ # Async Connect Wrapper: Design & Implementation
22
33## Overview
44
@@ -92,28 +92,6 @@ async def _connect_coro() -> SnowflakeConnection:
9292```
9393Defers connection creation and establishment until await time, not at ` connect() ` call time.
9494
95- ## Verification
96-
97- ``` python
98- # Metadata preservation
99- assert connect.__name__ == " connect"
100- assert hasattr (connect, " __wrapped__" )
101- assert callable (connect)
102-
103- # Return type is hybrid awaitable + context manager
104- result = connect(account = " test" )
105- assert hasattr (result, " __await__" ) # Awaitable
106- assert hasattr (result, " __aenter__" ) # Async context manager
107- assert hasattr (result, " send" ) # Full coroutine protocol
108- ```
109-
110- ## Backwards Compatibility
111-
112- - ✅ Existing code using ` await aio.connect(...) ` works unchanged
113- - ✅ Metadata available for IDE tooltips and introspection
114- - ✅ Full coroutine protocol support for advanced/external tooling
115- - ✅ No breaking changes
116-
11795## File Location
11896
11997` src/snowflake/connector/aio/__init__.py `
You can’t perform that action at this time.
0 commit comments