()
| 271 | } |
| 272 | |
| 273 | func (db *DB) NewWriteBatch() driver.IWriteBatch { |
| 274 | wb := &WriteBatch{ |
| 275 | db: db, |
| 276 | wbatch: new(leveldb.Batch), |
| 277 | } |
| 278 | return wb |
| 279 | } |
| 280 | |
| 281 | func (db *DB) NewIterator() driver.IIterator { |
| 282 | db.mu.RLock() |
no outgoing calls