(key string)
| 142 | } |
| 143 | |
| 144 | func (this *Table[T]) Exist(key string) (found bool, err error) { |
| 145 | if this.isClosed { |
| 146 | return false, NewTableClosedErr(this.name) |
| 147 | } |
| 148 | |
| 149 | _, closer, err := this.db.store.rawDB.Get(this.FullKey(key)) |
| 150 | if err != nil { |
| 151 | if IsNotFound(err) { |
| 152 | return false, nil |
| 153 | } |
| 154 | return false, err |
| 155 | } |
| 156 | defer func() { |
| 157 | _ = closer.Close() |
| 158 | }() |
| 159 | |
| 160 | return true, nil |
| 161 | } |
| 162 | |
| 163 | func (this *Table[T]) Get(key string) (value T, err error) { |
| 164 | if this.isClosed { |
nothing calls this directly
no test coverage detected