C# OJAI Client API
MapRDB.Driver.MapRDBConnection Class Reference
Inheritance diagram for MapRDB.Driver.MapRDBConnection:
MapRDB.Driver.IConnection

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
 

Member Function Documentation

◆ CheckConnection()

void MapRDB.Driver.MapRDBConnection.CheckConnection ( )
private

Check if connection is closed.

◆ Close()

void MapRDB.Driver.MapRDBConnection.Close ( )

Close this connection.

Implements MapRDB.Driver.IConnection.

◆ CreateStore()

IDocumentStore MapRDB.Driver.MapRDBConnection.CreateStore ( string  storePath)

Create new store.

Implements MapRDB.Driver.IConnection.

◆ CreateStoreAsync()

async Task<IDocumentStore> MapRDB.Driver.MapRDBConnection.CreateStoreAsync ( string  storePath)

Create new store asynchronously.

Implements MapRDB.Driver.IConnection.

◆ DeleteStore()

bool MapRDB.Driver.MapRDBConnection.DeleteStore ( string  storePath)

Delete store.

Implements MapRDB.Driver.IConnection.

◆ DeleteStoreAsync()

async Task<bool> MapRDB.Driver.MapRDBConnection.DeleteStoreAsync ( string  storePath)

Delete store asynchronously.

Implements MapRDB.Driver.IConnection.

◆ GetOrCreateStore()

IDocumentStore MapRDB.Driver.MapRDBConnection.GetOrCreateStore ( string  storePath)

If store exist, returns existed store. Else create and returns new store.

◆ GetOrCreateStoreAsync()

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.

◆ GetStore()

IDocumentStore MapRDB.Driver.MapRDBConnection.GetStore ( string  storePath)

Get existed store.

Implements MapRDB.Driver.IConnection.

◆ GetStoreAsync()

async Task<IDocumentStore> MapRDB.Driver.MapRDBConnection.GetStoreAsync ( string  storePath)

Get existed store asynchronously.

Implements MapRDB.Driver.IConnection.

◆ NewDocument() [1/3]

IDocument MapRDB.Driver.MapRDBConnection.NewDocument ( )

Create new empty document.

Implements MapRDB.Driver.IConnection.

◆ NewDocument() [2/3]

IDocument MapRDB.Driver.MapRDBConnection.NewDocument ( string  jsonString)

Create new document from JSON string.

Implements MapRDB.Driver.IConnection.

◆ NewDocument() [3/3]

IDocument MapRDB.Driver.MapRDBConnection.NewDocument ( IDictionary< string, OjaiValue dictionary)

Create new document from dictionary.

Implements MapRDB.Driver.IConnection.

◆ NewDocumentMutation()

IDocumentMutation MapRDB.Driver.MapRDBConnection.NewDocumentMutation ( )

Create new document mutation.

Implements MapRDB.Driver.IConnection.

◆ NewQuery()

IQuery MapRDB.Driver.MapRDBConnection.NewQuery ( )

Create new query.

Implements MapRDB.Driver.IConnection.

◆ NewQueryCondition()

IQueryCondition MapRDB.Driver.MapRDBConnection.NewQueryCondition ( )

Create new query condition.

Implements MapRDB.Driver.IConnection.

◆ PingCall()

async void MapRDB.Driver.MapRDBConnection.PingCall ( )
private

Ping request.

◆ StoreExist()

bool MapRDB.Driver.MapRDBConnection.StoreExist ( string  storePath)

Check if store exists.

Implements MapRDB.Driver.IConnection.

◆ StoreExistAsync()

async Task<bool> MapRDB.Driver.MapRDBConnection.StoreExistAsync ( string  storePath)

Check if store exists asynchronously.

Implements MapRDB.Driver.IConnection.