Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9d9c8acd authored by Yannick Li's avatar Yannick Li
Browse files

Make dbName private

parent 6d1b9e15
No related branches found
No related tags found
1 merge request!6Resolve "Update to c-crdtlib v1.0.0"
......@@ -85,7 +85,7 @@ class Collection {
val objectUId : CObjectUId = CObjectUId(this.id, type, objectId)
coroutineBlocking {
this.openedObjects[objectUId] = CServiceAdapter.getObject(this.attachedSession.dbName, objectUId)
this.openedObjects[objectUId] = CServiceAdapter.getObject(this.attachedSession.getDbName(), objectUId)
}
return this.openedObjects[objectUId]
}
......
......@@ -39,7 +39,7 @@ class Session {
/**
* Database name
*/
val dbName: String
private val dbName: String
/**
* The client unique identifier
......@@ -82,7 +82,15 @@ class Session {
// Not yet implemented
throw RuntimeException("Method pull is not yet supported.")
}
/**
* Get the database name
*/
@Name("getDbName")
fun getDbName() : String {
return this.dbName
}
/**
* Opens a given collection with the given read-only mode.
* @param collectionUId the collection unique identifier.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment