Opened 84 minutes ago
Last modified 34 minutes ago
#37045 assigned New feature
Deprecate and rename django.db.transaction.savepoint
| Reported by: | Lily | Owned by: | Samuel Searles-Bryant |
|---|---|---|---|
| Component: | Database layer (models, ORM) | Version: | |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
I proposed this in https://github.com/django/new-features/issues/138 and it is now accepted.
Rename savepoint to savepoint_create and add a new savepoint function as a deprecated alias or wrapper for savepoint_create. Once the deprecation period has ended remove savepoint. This will free the name for use for a higher-level savepoint context manager.
Change History (3)
comment:1 by , 84 minutes ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:2 by , 83 minutes ago
| Owner: | set to |
|---|---|
| Status: | new → assigned |
comment:3 by , 34 minutes ago
Note:
See TracTickets
for help on using tickets.
BaseDatabaseWrapperalso has asavepointmethod (and a private_savepoint). We could also rename those, but that's not necessary.