(name string)
| 92 | } |
| 93 | |
| 94 | func (this *Table) GetSet(name string) (*Set, error) { |
| 95 | rawSet, err := this.conn.Raw().GetSetByName(this.rawTable, name) |
| 96 | if err != nil { |
| 97 | if strings.Contains(err.Error(), "no such file or directory") { |
| 98 | return nil, ErrSetNotFound |
| 99 | } |
| 100 | return nil, err |
| 101 | } |
| 102 | |
| 103 | return NewSet(this.conn, rawSet), nil |
| 104 | } |
| 105 | |
| 106 | func (this *Table) AddSet(name string, options *SetOptions) (*Set, error) { |
| 107 | if len(name) > MaxSetNameLength { |