Start a read transaction on an historical snapshot
Start a read transaction on an historical snapshot
int sqlite3_snapshot_open( sqlite3 *db, const char *zSchema, sqlite3_snapshot *pSnapshot );
Important: This interface is experimental and is subject to change without notice.
The sqlite3_snapshot_open(D,S,P) interface starts a read transaction for schema S of database connection D such that the read transaction refers to historical snapshot P, rather than the most recent change to the database. The sqlite3_snapshot_open() interface returns SQLITE_OK on success or an appropriate error code if it fails.
In order to succeed, a call to sqlite3_snapshot_open(D,S,P) must be the first operation following the 登录查看完整内容