MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / emulated_lastrowid

Method emulated_lastrowid

test/requirements.py:1138–1151  ·  view source on GitHub ↗

target dialect retrieves cursor.lastrowid or an equivalent after an insert() construct executes.

(self)

Source from the content-addressed store, hash-verified

1136
1137 @property
1138 def emulated_lastrowid(self):
1139 """target dialect retrieves cursor.lastrowid or an equivalent
1140 after an insert() construct executes.
1141 """
1142 return fails_on_everything_except(
1143 "mysql",
1144 "mariadb",
1145 "sqlite+aiosqlite",
1146 "sqlite+pysqlite",
1147 "sqlite+pysqlite_numeric",
1148 "sqlite+pysqlite_dollar",
1149 "sqlite+pysqlcipher",
1150 "mssql",
1151 )
1152
1153 @property
1154 def database_discards_null_for_autoincrement(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected