How to create instance of a table entry but not added in ponyorm?
问题 How can I use a create an instance of a table definition without inserting a row to the corresponding Table. For example what I would like is: from pony import orm from pony.orm import Required db = orm.Database() class User(db.Entity): name = Required(str) address = Optional(str) db.bind(provider='sqlite', filename=':memory:') db.generate_mapping(create_tables=True) bob = User(name='bob') ### CODE FROM HERE ON IS WRONG BUT SHOWCASES WHAT I WANT # So far the database has not been modified bob