在Pony ORM上指定我的表時,出現此錯誤。 File "business.py", line 79, in <module>
db.generate_mapping()
File "<string>", line 2, in generate_mapping
File "/home/ancinedev/.pyenv/versions/3.6.1/lib/pytho
在我上PonyORM瞭解entity inheritance,我採取了以下由於我的好奇: from pony.orm import *
db = Database()
class Person(db.Entity):
classtype = Discriminator(str)
name = Required(str)
PrimaryKey(classty