From dcec9d031fb594a4bc470473d1c98d33656f93e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Matczuk?= Date: Thu, 15 Nov 2018 15:35:33 +0100 Subject: [PATCH] table: added function to return table Metadata --- table/table.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/table/table.go b/table/table.go index a4307a6..b93bf7f 100644 --- a/table/table.go +++ b/table/table.go @@ -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