MySQL Connector/Python Developer Guide

11.42 _mysql_connector.MySQL.thread_id() Method

Syntax:

thread_id = ccnx.thread_id()

Returns the current thread or connection ID.