Skip to content

Commit

Permalink
add StatisticsTable interface (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hendriks committed Jan 28, 2021
1 parent fb4fe61 commit 1e05f33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sql/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,14 @@ type ProjectedTable interface {
WithProjection(colNames []string) Table
}

// StatisticsTable is a table that can provide information about its number of rows and other facts to improve query
// planning performance.
type StatisticsTable interface {
Table
// NumRows returns the unfiltered count of rows contained in the table
NumRows(*Context) (uint64, error)
}

// IndexUsing is the desired storage type.
type IndexUsing byte

Expand Down

0 comments on commit 1e05f33

Please sign in to comment.