table: added function to return table Metadata

This commit is contained in:
Michał Matczuk
2018-11-15 15:35:33 +01:00
parent b7e4f7e8b7
commit dcec9d031f

View File

@@ -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