X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=p_s%2Fps_table%2Fps_table.go;fp=p_s%2Fps_table%2Fps_table.go;h=e16d4b7004db70ef3491e74bc29a86d6358d34d8;hb=52d3c00ce729f908f342e10f48818b112dec0130;hp=0000000000000000000000000000000000000000;hpb=b958730449ac1d927c267373a68b9ae54b72c454;p=pstop.git diff --git a/p_s/ps_table/ps_table.go b/p_s/ps_table/ps_table.go new file mode 100644 index 0000000..e16d4b7 --- /dev/null +++ b/p_s/ps_table/ps_table.go @@ -0,0 +1,22 @@ +// This file contains the library routines for managing the +// table_lock_waits_summary_by_table table. +package ps_table + +import ( + "database/sql" + "time" +) + +// a table of rows +type Tabler interface { + Collect(dbh *sql.DB) + SyncReferenceValues() + Headings() string + RowContent(max_rows int) []string + TotalRowContent() string + EmptyRowContent() string + Description() string + SetNow() + Last() time.Time + SetWantRelativeStats(want_relative_stats bool) +}