C# Класс BerkeleyDB.CursorConfig

A class representing configuration parameters for Cursor
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IsolationDegree Isolation
Priority BerkeleyDB.CachePriority
SnapshotIsolation bool
WriteCursor bool

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
CursorConfig ( ) : System

Instantiate a new CursorConfig object

Описание методов

CursorConfig() публичный Метод

Instantiate a new CursorConfig object
public CursorConfig ( ) : System
Результат System

Описание свойств

IsolationDegree публичное свойство

The isolation degree that the cursor should use.

Isolation.DEGREE_TWO ensures the stability of the current data item read by this cursor but permits data read by this cursor to be modified or deleted prior to the commit of the transaction for this cursor.

Isolation.DEGREE_ONE allows read operations performed by the cursor to return modified but not yet committed data. Silently ignored if the DatabaseConfig.ReadUncommitted was not specified when the underlying database was opened.

public Isolation IsolationDegree
Результат Isolation

Priority публичное свойство

The cache priority for pages referenced by the cursor.
The priority of a page biases the replacement algorithm to be more or less likely to discard a page when space is needed in the buffer pool. The bias is temporary, and pages are eventually discarded if they are not referenced again. The setting is only advisory, and does not guarantee pages will be treated in a specific way.
public CachePriority,BerkeleyDB Priority
Результат BerkeleyDB.CachePriority

SnapshotIsolation публичное свойство

Configure a transactional cursor to operate with read-only snapshot isolation. For databases with DatabaseConfig.UseMVCC set, data values are read as they are when the cursor is opened, without taking read locks.

This setting implicitly begins a transaction that is committed when the cursor is closed.

This setting is silently ignored if DatabaseConfig.UseMVCC is not set on the underlying database or if a transaction is supplied to BaseDatabase.Cursor

public bool SnapshotIsolation
Результат bool

WriteCursor публичное свойство

If true, specify that the cursor is used to update the database. The underlying database environment must have been opened with DatabaseEnvironmentConfig.UseCDB set.
public bool WriteCursor
Результат bool