~ubuntu-branches/ubuntu/hardy/sqlite3/hardy

« back to all changes in this revision

Viewing changes to tool/spaceanal.tcl

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2006-10-12 21:55:37 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20061012215537-mgvrxoq8ee4nqxzh
Tags: 3.3.8-1
* New upstream version.
* Create lang_* files for documentation (closes: #310603).
* Enable column metadata functions (closes: #375352).

Show diffs side-by-side

added added

removed removed

Lines of Context:
119
119
# database, including the sqlite_master table.
120
120
#
121
121
set sql {
122
 
  SELECT name, rootpage FROM sqlite_master WHERE type='table'
 
122
  SELECT name, rootpage FROM sqlite_master
 
123
   WHERE type='table' AND rootpage>0
123
124
  UNION ALL
124
125
  SELECT 'sqlite_master', 1
125
126
  ORDER BY 1
582
583
# Output the summary statistics calculated above.
583
584
#
584
585
puts "/** Disk-Space Utilization Report For $file_to_analyze"
585
 
puts "*** As of [clock format [clock seconds] -format {%Y-%b-%d %H:%M:%S}]"
 
586
catch {
 
587
  puts "*** As of [clock format [clock seconds] -format {%Y-%b-%d %H:%M:%S}]"
 
588
}
586
589
puts ""
587
590
statline {Page size in bytes} $pageSize
588
591
statline {Pages in the whole file (measured)} $file_pgcnt