Skip to content

Conversation

marek-jelo-jelinek
Copy link

This PR introduces the ability to set a custom name for the internal thread used by aiosqlite.Connection. The new thread_name parameter is available in both aiosqlite.connect() and the Connection constructor. When specified, the thread will be started with the provided name, making it easier to identify in debuggers and profiling tools.

Example usage:
db = await aiosqlite.connect(..., thread_name="aiosqlite-thread")

This change is fully backward compatible; the thread_name parameter is optional and defaults to the previous behavior.

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.

1 participant