Skip to content

[Feature] Support borrow session for contextual execution#386

Merged
BeautyyuYanli merged 3 commits intodevfrom
yanli/context_execute
Dec 12, 2025
Merged

[Feature] Support borrow session for contextual execution#386
BeautyyuYanli merged 3 commits intodevfrom
yanli/context_execute

Conversation

@BeautyyuYanli
Copy link
Contributor

@BeautyyuYanli BeautyyuYanli commented Dec 11, 2025

async def contextual_example():
    async with await NebulaAsyncClient.connect(
        hosts=["127.0.0.1:9669"],
        username="root",
        password="NebulaGraph01",
        session_pool_config=SessionPoolConfig(),
    ) as client:
        print("Connected to the server...")
        async with client.borrow() as session:
            await session.execute("SESSION SET GRAPH movie")
            res = await session.execute("MATCH (v:Movie) RETURN count(v)")
            res.print()

📚 Documentation preview 📚: https://nebulagraph-python--386.org.readthedocs.build/en/386/

@BeautyyuYanli BeautyyuYanli changed the title [Feature] Support borrow session on client [Feature] Support borrow session for contextual execution Dec 11, 2025
@BeautyyuYanli BeautyyuYanli merged commit f8fde4d into dev Dec 12, 2025
2 checks passed
@BeautyyuYanli BeautyyuYanli deleted the yanli/context_execute branch December 12, 2025 08:25
Nicole00 pushed a commit that referenced this pull request Jan 21, 2026
* support borrow session on client

* add doc

* run lint
Nicole00 added a commit that referenced this pull request Jan 21, 2026
* run ruff and fix lint (#385)

* [Feature] Support borrow session for contextual execution (#386)

* support borrow session on client

* add doc

* run lint

* fix typo (#387)

* add example for NebulaPool (#390)

* fix time overflow for hour 25 (#391)

* fix None list value (#392)

* fix duration type bug (#395)

* update doc for special types (#396)

* upadte doc for special types

* update start desc

* update doc (#397)

---------

Co-authored-by: 盐粒 Yanli <yanli.yu@vesoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants