MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / Savepoint

Method Savepoint

Source/3rdParty/sqlite/SQLiteCpp/Savepoint.cpp:23–34  ·  view source on GitHub ↗

Begins the SQLite savepoint

Source from the content-addressed store, hash-verified

21
22// Begins the SQLite savepoint
23Savepoint::Savepoint(Database& aDatabase, const std::string& aName)
24 : mDatabase(aDatabase), msName(aName)
25{
26 // workaround because you cannot bind to SAVEPOINT
27 // escape name for use in query
28 Statement stmt(mDatabase, "SELECT quote(?)");
29 stmt.bind(1, msName);
30 stmt.executeStep();
31 msName = stmt.getColumn(0).getText();
32
33 mDatabase.exec(std::string("SAVEPOINT ") + msName);
34}
35
36// Safely rollback the savepoint if it has not been committed.
37Savepoint::~Savepoint()

Callers

nothing calls this directly

Calls 6

stringFunction · 0.85
getColumnMethod · 0.80
bindMethod · 0.65
execMethod · 0.65
executeStepMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected