I am using SQLAlchemy without the ORM, i.e. using hand crafted SQL statememts to directly interact with the backend db. I am using PG as my backend db (psycopg2 as DB driver) in
Make sure you use fetchrow/fetch to receive the returning object
fetchrow/fetch
returning
insert_stmt = user.insert().values(name="homer", country_id="123").returning(user.c.id) row_id = await conn.fetchrow(insert_stmt)