table: added function to return table Metadata
This commit is contained in:
1 parent
b7e4f7e8b7
commit
dcec9d031f
1 file changed
+5
@@ -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