tock / ai.tock.shared / getDatabase

getDatabase

fun getDatabase(databaseNameProperty: String): MongoDatabase (source)

Return the sync database specified in the databaseNameProperty. if the env or system property is not found, use the databaseNameProperty as database name (remove "_mongo_db" string is present).