C# 클래스 BerkeleyDB.CursorConfig

A class representing configuration parameters for Cursor
파일 보기 프로젝트 열기: yasuhirokimura/db18 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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