Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PyMySQL/PyMySQL
/ insert_id
Method
insert_id
pymysql/connections.py:873–877 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
871
return
result.affected_rows
872
873
def
insert_id(self):
874
if
self._result:
875
return
self._result.insert_id
876
else
:
877
return
0
878
879
def
_execute_command(self, command, sql):
880
""
"
Callers
1
test_issue_66
Method · 0.80
Calls
no outgoing calls
Tested by
1
test_issue_66
Method · 0.64