table: added function to return table Metadata
This commit is contained in:
@@ -57,6 +57,11 @@ func New(m Metadata) *Table {
|
|||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Metadata returns copy of table metadata.
|
||||||
|
func (t *Table) Metadata() Metadata {
|
||||||
|
return t.metadata
|
||||||
|
}
|
||||||
|
|
||||||
// Name returns table name.
|
// Name returns table name.
|
||||||
func (t *Table) Name() string {
|
func (t *Table) Name() string {
|
||||||
return t.metadata.Name
|
return t.metadata.Name
|
||||||
|
|||||||
Reference in New Issue
Block a user