(table TableInterface)
| 32 | } |
| 33 | |
| 34 | func (this *DB) AddTable(table TableInterface) { |
| 35 | table.SetNamespace([]byte(this.Namespace() + table.Name() + "$")) |
| 36 | table.SetDB(this) |
| 37 | |
| 38 | this.mu.Lock() |
| 39 | defer this.mu.Unlock() |
| 40 | |
| 41 | this.tableMap[table.Name()] = table |
| 42 | } |
| 43 | |
| 44 | func (this *DB) Name() string { |
| 45 | return this.name |