Fossil

Diff
Login

Differences From Artifact [d229ca8104]:

To Artifact [1a8cc8e4d6]:


377
378
379
380
381
382
383
384
385
386
387
388
389


390
391
392
393
394
395
396
/*
** WEBPAGE: repo-tabsize
**
** Show relative sizes of tables in the repository database.
*/
void repo_tabsize_page(void){
  Stmt q;
  login_check_credentials();
  int nPageFree;
  sqlite3_int64 fsize;
  char zBuf[100];
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }



  style_header("Repository Table Sizes");
  style_adunit_config(ADUNIT_RIGHT_OK);
  style_submenu_element("Stat", "Repository Stats", "stat");
  db_multi_exec(
    "CREATE VIRTUAL TABLE temp.dbx USING dbstat(%s);"
    "CREATE TEMP TABLE trans(name TEXT PRIMARY KEY, tabname TEXT)WITHOUT ROWID;"
    "INSERT INTO trans(name,tabname)"       







<



<

>
>







377
378
379
380
381
382
383

384
385
386

387
388
389
390
391
392
393
394
395
396
/*
** WEBPAGE: repo-tabsize
**
** Show relative sizes of tables in the repository database.
*/
void repo_tabsize_page(void){
  Stmt q;

  int nPageFree;
  sqlite3_int64 fsize;
  char zBuf[100];


  login_check_credentials();
  if( !g.perm.Read ){ login_needed(g.anon.Read); return; }
  style_header("Repository Table Sizes");
  style_adunit_config(ADUNIT_RIGHT_OK);
  style_submenu_element("Stat", "Repository Stats", "stat");
  db_multi_exec(
    "CREATE VIRTUAL TABLE temp.dbx USING dbstat(%s);"
    "CREATE TEMP TABLE trans(name TEXT PRIMARY KEY, tabname TEXT)WITHOUT ROWID;"
    "INSERT INTO trans(name,tabname)"