aiosql icon indicating copy to clipboard operation
aiosql copied to clipboard

Add support for accessing object attributes

Open zx80 opened this issue 1 year ago • 0 comments

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?

zx80 avatar Feb 03 '24 14:02 zx80