aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-10-12 20:37:20 +0000
committerdrh <drh@noemail.net>2017-10-12 20:37:20 +0000
commit88dd668942076194e2af73d6668cd9d872f20d0c (patch)
tree4cbf7e046ad573e2a9cd9560d51244c122d379eb /src/main.c
parentaa62d2e48fe554bddeccab8837f344452137ded4 (diff)
parent277ee81babd94ce08cda6c57596759dec457f35b (diff)
downloadsqlite-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.c6
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);