C# Class BerkeleyDB.CursorConfig

A class representing configuration parameters for Cursor
ファイルを表示 Open project: yasuhirokimura/db18 Class Usage Examples

Public Properties

Property Type Description
IsolationDegree Isolation
Priority BerkeleyDB.CachePriority
SnapshotIsolation bool
WriteCursor bool

Private Properties

Property Type Description

Public Methods

Method Description
CursorConfig ( ) : System

Instantiate a new CursorConfig object

Method Details

CursorConfig() public method

Instantiate a new CursorConfig object
public CursorConfig ( ) : System
return System

Property Details

IsolationDegree public_oe property

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
return Isolation

Priority public_oe property

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
return BerkeleyDB.CachePriority

SnapshotIsolation public_oe property

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
return bool

WriteCursor public_oe property

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
return bool