Skip to content

Commit

Permalink
table: added function to return table Metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatczuk committed Nov 15, 2018
1 parent b7e4f7e commit dcec9d0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions table/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func New(m Metadata) *Table {
return t
}

// Metadata returns copy of table metadata.
func (t *Table) Metadata() Metadata {
return t.metadata
}

// Name returns table name.
func (t *Table) Name() string {
return t.metadata.Name
Expand Down

0 comments on commit dcec9d0

Please sign in to comment.