public void Put(byte[] key, long keyLength, byte[] value, long valueLength, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null) { Native.Instance.rocksdb_put(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, keyLength, value, valueLength, cf); }
public void Put(byte[] key, byte[] value, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null) { Put(key, key.GetLongLength(0), value, value.GetLongLength(0), cf, writeOptions); }
public void Put(Span <byte> key, Span <byte> value, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null) { Put(key, key.Length, value, value.Length, cf, writeOptions); }
public void Remove(byte[] key, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null) { Remove(key, key.Length, cf, writeOptions); }
public void Put(string key, string value, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null, Encoding encoding = null) { Native.Instance.rocksdb_put(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, value, cf, encoding ?? DefaultEncoding); }
public void Remove(string key, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null) { Native.Instance.rocksdb_delete(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, cf); }
public void Write(WriteBatchWithIndex writeBatch, WriteOptions writeOptions = null) { Native.Instance.rocksdb_write_writebatch_wi(Handle, (writeOptions ?? DefaultWriteOptions).Handle, writeBatch.Handle); }
public Transaction NewTransaction(WriteOptions wop, TransactionOptions txnOptions) { return(new Transaction(this, wop, txnOptions)); }
public void Remove(byte[] key, long keyLength, ColumnFamilyHandle cf = null, WriteOptions writeOptions = null) { Native.Instance.rocksdb_delete(Handle, (writeOptions ?? DefaultWriteOptions).Handle, key, keyLength); }
public void Write(WriteBatch writeBatch, WriteOptions writeOptions = null) { Native.Instance.rocksdb_write(Handle, (writeOptions ?? defaultWriteOptions).Handle, writeBatch.Handle); }