SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to avoid tuples, another way is by calling the first, one or all methods:
first
one
all
query = db.engine.execute("SELECT * FROM blogs " "WHERE id = 1 ") assert query.first().name == "Welcome to my blog"