Method | Description | |
---|---|---|
Abort ( ) : void |
Abandon all the operations of the transaction instead of saving them. All cursors opened within the transaction will be closed by this call. The cursors and transaction handle will be freed and must not be used again after this call.
|
|
BeginTransaction ( ) : |
Begins a child transaction.
|
|
BeginTransaction ( TransactionBeginFlags beginFlags ) : |
Begin a child transaction.
|
|
Commit ( ) : void |
Commit all the operations of a transaction into the database. All cursors opened within the transaction will be closed by this call. The cursors and transaction handle will be freed and must not be used again after this call.
|
|
ContainsKey ( |
Check whether data exists in database.
|
|
CreateCursor ( |
Create a cursor. Cursors are associated with a specific transaction and database and may not span threads.
|
|
Delete ( |
Delete items from a database. This function removes key/data pairs from the database. If the database does not support sorted duplicate data items (MDB_DUPSORT) the data parameter is ignored. If the database supports sorted duplicates and the data parameter is NULL, all of the duplicate data items for the key will be deleted. Otherwise, if the data parameter is non-NULL only the matching data item will be deleted. This function will return MDB_NOTFOUND if the specified key/data pair is not in the database.
|
|
Delete ( |
Delete items from a database. This function removes key/data pairs from the database. If the database does not support sorted duplicate data items (MDB_DUPSORT) the data parameter is ignored. If the database supports sorted duplicates and the data parameter is NULL, all of the duplicate data items for the key will be deleted. Otherwise, if the data parameter is non-NULL only the matching data item will be deleted. This function will return MDB_NOTFOUND if the specified key/data pair is not in the database.
|
|
Dispose ( ) : void |
Dispose this transaction and deallocate all resources associated with it (including databases).
|
|
DropDatabase ( |
Drops the database.
|
|
Equals ( object obj ) : bool | ||
Get ( |
Get value from a database.
|
|
GetEntriesCount ( |
The number of items in the database.
|
|
GetHashCode ( ) : int | ||
Handle ( ) : |
||
OpenDatabase ( string name = null, |
Opens a database in context of this transaction.
|
|
Put ( |
Put data into a database.
|
|
Renew ( ) : void |
Renew current transaction.
|
|
Reset ( ) : void |
Reset current transaction.
|
|
TruncateDatabase ( |
Truncates all data from the database.
|
|
TryGet ( |
Tries to get a value by its key.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Abort this transaction and deallocate all resources associated with it (including databases).
|
Method | Description | |
---|---|---|
LightningTransaction ( |
Created new instance of LightningTransaction
|
|
OnParentStateChanging ( LightningTransactionState state ) : void |
public BeginTransaction ( ) : |
||
return |
public BeginTransaction ( TransactionBeginFlags beginFlags ) : |
||
beginFlags | TransactionBeginFlags | Options for a new transaction. |
return |
public ContainsKey ( |
||
db | Database. | |
key | byte | Key. |
return | bool |
public CreateCursor ( |
||
db | A database. | |
return | LightningDB.LightningCursor |
public Delete ( |
||
db | A database handle returned by mdb_dbi_open() | |
key | byte | The key to delete from the database |
return | void |
public Delete ( |
||
db | A database handle returned by mdb_dbi_open() | |
key | byte | The key to delete from the database |
value | byte | The data to delete (optional) |
return | void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | True if called from Dispose. |
return | void |
public DropDatabase ( |
||
database | ||
return | void |
public Get ( |
||
db | Database | |
key | byte | Key byte array. |
return | byte[] |
public GetEntriesCount ( |
||
db | The database we are counting items in. | |
return | long |
public OpenDatabase ( string name = null, |
||
name | string | Database name (optional). If null then the default name is used. |
configuration | Database open options. | |
return |
public Put ( |
||
db | Database. | |
key | byte | Key byte array. |
value | byte | Value byte array. |
options | PutOptions | Operation options (optional). |
return | void |
public TruncateDatabase ( |
||
database | ||
return | void |
public TryGet ( |
||
db | Database. | |
key | byte | Key byte array. |
value | byte | Value byte array if exists. |
return | bool |