| 40 | } |
| 41 | |
| 42 | func (m *tableSchemaMutator) ListTables(namespace string) (tableNames []string, err error) { |
| 43 | var tableListProto pb.EntityList |
| 44 | tableListProto, _, err = readEntityList(m.txnStore, utils.SchemaListKey(namespace)) |
| 45 | if err != nil { |
| 46 | return |
| 47 | } |
| 48 | |
| 49 | for _, t := range tableListProto.Entities { |
| 50 | if !t.Tomstoned { |
| 51 | tableNames = append(tableNames, t.Name) |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | return tableNames, nil |
| 56 | } |
| 57 | |
| 58 | func (m *tableSchemaMutator) GetTable(namespace, name string) (table *metaCom.Table, err error) { |
| 59 | var schemaProto pb.EntityConfig |