tarantool / tarantool/tarantool-python
Managing Transactions
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Python
- Sterne
- 108
- Forks
- 51
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
Hi,
Is there a way to manage transactions through the library?
In tarantool, transaction is started with box.begin() and committed with box.commit() functions. But I couldn't find any methods in the library to manage the transactions.
What I would like to do is, begin a transaction, make updates/inserts to a space and then commit the transaction.
I tried adding some functions like below and calling these functions from the library, but it didn't work.
function begin_transaction(dummy)
box.begin()
end
function commit_transaction(dummy)
box.commit()
end
Thank you.
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Der Issue nennt keine Dateien, Tests oder Einstiegspunkte; beginne damit zu ermitteln, wie die Python-Bibliothek Tarantool-Funktionen aufruft und wie spaces aktualisiert werden. Vergleiche diesen Pfad mit dem Verhalten von Tarantools box.begin() und box.commit(), und definiere die Fertigstellung als eine unterstützte Möglichkeit, Updates oder Inserts zu gruppieren und zu committen, mit Tests, die den Transaktionsablauf abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- databases
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100