aiosql
aiosql copied to clipboard
Add support for accessing object attributes
It would be nice to support object attributes in queries:
-- name: add_person!
INSERT INTO Person(firstname, lastname) VALUES (:p.firstname, :p.lastname);
Then from Python:
db.add_person(conn, p=Person("Alan", "Turing"))
Any opinion?