@@ -16,7 +16,7 @@ Database object
1616 Exception.
1717
1818
19- .. py :method :: put(key, value, sync = False , disable_wal = False )
19+ .. py :method :: put(key, value, sync = False , disable_wal = False , ignore_missing_column_families = False , no_slowdown = False , low_pri = False )
2020
2121 Set the database entry for "key" to "value".
2222
@@ -42,16 +42,35 @@ Database object
4242 If ``True ``, writes will not first go to the write ahead log,
4343 and the write may got lost after a crash.
4444
45- .. py :method :: delete(key, sync = False , disable_wal = False )
45+ :param bool ignore_missing_column_families:
46+ If ``True `` and if user is trying to write to column families that don't exist
47+ (they were dropped), ignore the write (don't return an error). If there
48+ are multiple writes in a WriteBatch, other writes will succeed.
49+
50+ :param bool no_slowdown:
51+ If ``True `` and we need to wait or sleep for the write request, fails
52+ immediately with Status::Incomplete().
53+
54+ :param bool low_pri:
55+ If ``True ``, this write request is of lower priority if compaction is
56+ behind. In this case, no_slowdown = true, the request will be cancelled
57+ immediately with Status::Incomplete() returned. Otherwise, it will be
58+ slowed down. The slowdown value is determined by RocksDB to guarantee
59+ it introduces minimum impacts to high priority writes.
60+
61+ .. py :method :: delete(key, sync = False , disable_wal = False , ignore_missing_column_families = False , no_slowdown = False , low_pri = False )
4662
4763 Remove the database entry for "key".
4864
4965 :param bytes key: Name to delete
5066 :param sync: See :py:meth: `rocksdb.DB.put `
5167 :param disable_wal: See :py:meth: `rocksdb.DB.put `
68+ :param ignore_missing_column_families: See :py:meth: `rocksdb.DB.put `
69+ :param no_slowdown: See :py:meth: `rocksdb.DB.put `
70+ :param low_pri: See :py:meth: `rocksdb.DB.put `
5271 :raises rocksdb.errors.NotFound: If the key did not exists
5372
54- .. py :method :: merge(key, value, sync = False , disable_wal = False )
73+ .. py :method :: merge(key, value, sync = False , disable_wal = False , ignore_missing_column_families = False , no_slowdown = False , low_pri = False )
5574
5675 Merge the database entry for "key" with "value".
5776 The semantics of this operation is determined by the user provided
@@ -64,13 +83,16 @@ Database object
6483 no :py:attr: `rocksdb.Options.merge_operator ` was set at creation
6584
6685
67- .. py :method :: write(batch, sync = False , disable_wal = False )
86+ .. py :method :: write(batch, sync = False , disable_wal = False , ignore_missing_column_families = False , no_slowdown = False , low_pri = False )
6887
6988 Apply the specified updates to the database.
7089
7190 :param rocksdb.WriteBatch batch: Batch to apply
7291 :param sync: See :py:meth: `rocksdb.DB.put `
7392 :param disable_wal: See :py:meth: `rocksdb.DB.put `
93+ :param ignore_missing_column_families: See :py:meth: `rocksdb.DB.put `
94+ :param no_slowdown: See :py:meth: `rocksdb.DB.put `
95+ :param low_pri: See :py:meth: `rocksdb.DB.put `
7496
7597 .. py :method :: get(key, verify_checksums = False , fill_cache = True , snapshot = None , read_tier = " all" )
7698
0 commit comments