def get_read_options(self, verify_checksum, fill_cache): ''' Get the options for a read operation on the database. :param verify_checksum: True to verify the checksum on read, False otherwise :param fill_cache: True to populate the cache on read, False otherwise :returns: The read options ''' options = LDB.leveldb_readoptions_create() LDB.leveldb_readoptions_set_verify_checksums(options, verify_checksum) LDB.leveldb_readoptions_set_fill_cache(options, fill_cache) return options