DEV Community

Discussion on: SQLAlchemy Expression Language - Just Enough

Collapse
 
guarin1949 profile image
Warren Cartwright

Did you test any of this post? I found a bunch of typos, etc. delete_many_items_by_id needs to have the same variable (ids) in the signature and the Item.delete statement. items_el.py needs to import create_connection from db.core.initializer, select from sqlalchemy.sql, and Integer from sqlalchemy. Otherwise I have enjoyed your posts; this last one provided an interesting exercise in debugging...

Collapse
 
spaceofmiah profile image
Osazuwa J. Agbonze • Edited

Thanks @guarin1949 for taking the time to read through my posts. I also do appreciate your feedback 🙂. I did run through the reported concerns and yes, there was an issue with the argument name which has been updated now. While you consider the debugging as an interesting one, sorry you had to deal with that mismatch.

This article is a series in which your concerns about the import statement has been treated in previous post -- here are the references:

ref to create_connection import

For this purpose, SQLAlchemy provides a select function which can be imported from sqlalchemy.sql module.

Above quote is an extract from this article ( On this one, I'll be more explicit in my future articles as the provided block code snippet didn't capture it but i made a statement on it and also the git repo reflected it)

Thanks again Warren for the comment and report. You just made this article better by reporting the observed issues. 🙏

here is a link to github for the complete source code
github.com/spaceofmiah/practical-r...