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 Lily, 84 minutes ago

Triage Stage: UnreviewedAccepted

comment:2 by Samuel Searles-Bryant, 83 minutes ago

Owner: set to Samuel Searles-Bryant
Status: newassigned

comment:3 by Samuel Searles-Bryant, 34 minutes ago

BaseDatabaseWrapper also has a savepoint method (and a private _savepoint). We could also rename those, but that's not necessary.

Note: See TracTickets for help on using tickets.
Back to Top