(name string)
| 80 | } |
| 81 | |
| 82 | func (this *Table) DeleteChain(name string) error { |
| 83 | chain, err := this.GetChain(name) |
| 84 | if err != nil { |
| 85 | if err == ErrChainNotFound { |
| 86 | return nil |
| 87 | } |
| 88 | return err |
| 89 | } |
| 90 | this.conn.Raw().DelChain(chain.Raw()) |
| 91 | return this.conn.Commit() |
| 92 | } |
| 93 | |
| 94 | func (this *Table) GetSet(name string) (*Set, error) { |
| 95 | rawSet, err := this.conn.Raw().GetSetByName(this.rawTable, name) |