Please add a new feature to the ORM that allows you to create a record from an existing one. See [1]
I had thought about something similar to how you can create a structure from another in Rust
class MyModel(Model):
a = Field()
a = Field()
c= Field.int()
foo = MyModel.get(id=1)
bar = MyModel.copy(foo) # Copy a, b and c
bar_2 = MyModel.copy(a='emmett', foo) # Copy b and c, but not a
bar_2 = MyModel.copy(foo, a='emmett') # Copy b and c, but not a
Thanks
[1] https://github.com/emmett-framework/emmett/discussions/393
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too