mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Initial implementation of the sqlite3_file_control() interface.
Compiles and passes all historical tests but the new method is itself untested. (CVS 4353) FossilOrigin-Name: d3ab3e3911f10b17d0859a34f4f007c790a0cd82
This commit is contained in:
11
src/pager.c
11
src/pager.c
@@ -18,7 +18,7 @@
|
||||
** file simultaneously, or one process from reading the database while
|
||||
** another is writing.
|
||||
**
|
||||
** @(#) $Id: pager.c,v 1.381 2007/08/30 08:08:17 danielk1977 Exp $
|
||||
** @(#) $Id: pager.c,v 1.382 2007/08/31 16:11:36 drh Exp $
|
||||
*/
|
||||
#ifndef SQLITE_OMIT_DISKIO
|
||||
#include "sqliteInt.h"
|
||||
@@ -4822,6 +4822,15 @@ const sqlite3_vfs *sqlite3PagerVfs(Pager *pPager){
|
||||
return pPager->pVfs;
|
||||
}
|
||||
|
||||
/*
|
||||
** Return the file handle for the database file associated
|
||||
** with the pager. This might return NULL if the file has
|
||||
** not yet been opened.
|
||||
*/
|
||||
sqlite3_file *sqlite3PagerFile(Pager *pPager){
|
||||
return pPager->fd;
|
||||
}
|
||||
|
||||
/*
|
||||
** Return the directory of the database file.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user