(name string)
| 138 | } |
| 139 | |
| 140 | func (this *Table) DeleteSet(name string) error { |
| 141 | set, err := this.GetSet(name) |
| 142 | if err != nil { |
| 143 | if err == ErrSetNotFound { |
| 144 | return nil |
| 145 | } |
| 146 | return err |
| 147 | } |
| 148 | |
| 149 | this.conn.Raw().DelSet(set.Raw()) |
| 150 | return this.conn.Commit() |
| 151 | } |
| 152 | |
| 153 | func (this *Table) Flush() error { |
| 154 | this.conn.Raw().FlushTable(this.rawTable) |