DbStat via JDBC
I tried to use or create the DBSTAT virtual table using JDBC.
Is this because the database was created without some parameters? Is it any way to create these statistics on an existing database? There are cases when people create a database, and later realize that they need statistics.
SELECT * FROM dbstat; -- no such a table
CREATE VIRTUAL TABLE temp.stat USING dbstat(main) -- no such a module: dbstat;
(2) By curmudgeon on 2020-12-28 10:47:43 in reply to 1 [source]
"The DBSTAT virtual table is available on all database connections when SQLite is built using the SQLITE_ENABLE_DBSTAT_VTAB compile-time option."
I've no knowledge of JDBC so not sure how you can implement that.
I use Sqlite as https://github.com/xerial/sqlite-jdbc Does I have to ask this project team to enable this option?