tortoise / tortoise/tortoise-orm
callback on record insert, delete and update
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.6k
- Forks
- 516
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 9
Description
Is your feature request related to a problem? Please describe.
before insert table can not execute python function to convert data
Describe the solution you'd like
before insert table can execute python function to convert data
Describe alternatives you've considered
callback on record insert, delete and update
ref
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#callbacks-on-record-insert-delete-and-update
Additional context
sqlalchemy and sqlobject call these feature :
events
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the requested callbacks for record insert, delete, and update, with particular attention to the before-insert Python data-conversion use case. Compare the referenced web2py callbacks and the SQLAlchemy and SQLObject events mentioned in the issue, then define what complete callback behavior should cover.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100