lundi 30 mars 2015

SQLAlchemy core find if row with primary key exists

I would have thought there would be obvious answer to this everywhere but extensive Googling hasn't turned up an obvious answer.


What is the most effective way to find out if a row with a given primary key exists?


I'm using SQLAlchemy core with sqlite on Python 3.


Aucun commentaire:

Enregistrer un commentaire