diff options
author | drh <drh@noemail.net> | 2017-10-12 20:37:20 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-10-12 20:37:20 +0000 |
commit | 88dd668942076194e2af73d6668cd9d872f20d0c (patch) | |
tree | 4cbf7e046ad573e2a9cd9560d51244c122d379eb /src/main.c | |
parent | aa62d2e48fe554bddeccab8837f344452137ded4 (diff) | |
parent | 277ee81babd94ce08cda6c57596759dec457f35b (diff) | |
download | sqlite-88dd668942076194e2af73d6668cd9d872f20d0c.tar.gz sqlite-88dd668942076194e2af73d6668cd9d872f20d0c.zip |
Add the sqlite_dbpage virtual table (enabled using SQLITE_ENABLE_DBPAGE_VTAB).
Make that virtual table and dbstat available to the command-line shell.
FossilOrigin-Name: eaeeb09d4aa1dbccdd2488af8461e2a8c8a53d92c63fd56330be041ad72a9e4a
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 3d7609ce5..49613f6c7 100644 --- a/src/main.c +++ b/src/main.c @@ -3054,6 +3054,12 @@ static int openDatabase( } #endif +#ifdef SQLITE_ENABLE_DBPAGE_VTAB + if( !db->mallocFailed && rc==SQLITE_OK){ + rc = sqlite3DbpageRegister(db); + } +#endif + #ifdef SQLITE_ENABLE_DBSTAT_VTAB if( !db->mallocFailed && rc==SQLITE_OK){ rc = sqlite3DbstatRegister(db); |