table: added function to return table Metadata

This commit is contained in:
Michał Matczuk committed 2018-11-15 15:45:49 +01:00
1 parent b7e4f7e8b7
commit dcec9d031f
1 file changed
+5
+5
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