C# OJAI Client API
|
Public Member Functions | |
MapRDBConnection (string connectionString) | |
IDocumentStore | CreateStore (string storePath) |
Create new store. More... | |
async Task< IDocumentStore > | CreateStoreAsync (string storePath) |
Create new store asynchronously. More... | |
IDocumentStore | GetOrCreateStore (string storePath) |
If store exist, returns existed store. Else create and returns new store. More... | |
async Task< IDocumentStore > | GetOrCreateStoreAsync (string storePath) |
Check asynchronously if store exist, and returns existed store. Else create and returns new store asynchronously. More... | |
IDocumentStore | GetStore (string storePath) |
Get existed store. More... | |
async Task< IDocumentStore > | GetStoreAsync (string storePath) |
Get existed store asynchronously. More... | |
bool | DeleteStore (string storePath) |
Delete store. More... | |
async Task< bool > | DeleteStoreAsync (string storePath) |
Delete store asynchronously. More... | |
bool | StoreExist (string storePath) |
Check if store exists. More... | |
async Task< bool > | StoreExistAsync (string storePath) |
Check if store exists asynchronously. More... | |
IDocument | NewDocument () |
Create new empty document. More... | |
IDocument | NewDocument (string jsonString) |
Create new document from JSON string. More... | |
IDocument | NewDocument (IDictionary< string, OjaiValue > dictionary) |
Create new document from dictionary. More... | |
IDocumentMutation | NewDocumentMutation () |
Create new document mutation. More... | |
IQueryCondition | NewQueryCondition () |
Create new query condition. More... | |
IQuery | NewQuery () |
Create new query. More... | |
void | Close () |
Close this connection. More... | |
Private Member Functions | |
async void | PingCall () |
Ping request. More... | |
void | CheckConnection () |
Check if connection is closed. More... | |
Private Attributes | |
Channel | _channel |
MapRDbServer.MapRDbServerClient | _client |
bool | _isClosed |
|
private |
Check if connection is closed.
void MapRDB.Driver.MapRDBConnection.Close | ( | ) |
Close this connection.
Implements MapRDB.Driver.IConnection.
IDocumentStore MapRDB.Driver.MapRDBConnection.CreateStore | ( | string | storePath | ) |
Create new store.
Implements MapRDB.Driver.IConnection.
async Task<IDocumentStore> MapRDB.Driver.MapRDBConnection.CreateStoreAsync | ( | string | storePath | ) |
Create new store asynchronously.
Implements MapRDB.Driver.IConnection.
bool MapRDB.Driver.MapRDBConnection.DeleteStore | ( | string | storePath | ) |
Delete store.
Implements MapRDB.Driver.IConnection.
async Task<bool> MapRDB.Driver.MapRDBConnection.DeleteStoreAsync | ( | string | storePath | ) |
Delete store asynchronously.
Implements MapRDB.Driver.IConnection.
IDocumentStore MapRDB.Driver.MapRDBConnection.GetOrCreateStore | ( | string | storePath | ) |
If store exist, returns existed store. Else create and returns new store.
async Task<IDocumentStore> MapRDB.Driver.MapRDBConnection.GetOrCreateStoreAsync | ( | string | storePath | ) |
Check asynchronously if store exist, and returns existed store. Else create and returns new store asynchronously.
IDocumentStore MapRDB.Driver.MapRDBConnection.GetStore | ( | string | storePath | ) |
Get existed store.
Implements MapRDB.Driver.IConnection.
async Task<IDocumentStore> MapRDB.Driver.MapRDBConnection.GetStoreAsync | ( | string | storePath | ) |
Get existed store asynchronously.
Implements MapRDB.Driver.IConnection.
IDocument MapRDB.Driver.MapRDBConnection.NewDocument | ( | ) |
Create new empty document.
Implements MapRDB.Driver.IConnection.
IDocument MapRDB.Driver.MapRDBConnection.NewDocument | ( | string | jsonString | ) |
Create new document from JSON string.
Implements MapRDB.Driver.IConnection.
Create new document from dictionary.
Implements MapRDB.Driver.IConnection.
IDocumentMutation MapRDB.Driver.MapRDBConnection.NewDocumentMutation | ( | ) |
Create new document mutation.
Implements MapRDB.Driver.IConnection.
IQuery MapRDB.Driver.MapRDBConnection.NewQuery | ( | ) |
Create new query.
Implements MapRDB.Driver.IConnection.
IQueryCondition MapRDB.Driver.MapRDBConnection.NewQueryCondition | ( | ) |
Create new query condition.
Implements MapRDB.Driver.IConnection.
|
private |
Ping request.
bool MapRDB.Driver.MapRDBConnection.StoreExist | ( | string | storePath | ) |
Check if store exists.
Implements MapRDB.Driver.IConnection.
async Task<bool> MapRDB.Driver.MapRDBConnection.StoreExistAsync | ( | string | storePath | ) |
Check if store exists asynchronously.
Implements MapRDB.Driver.IConnection.