Skip to content

Commit

Permalink
Merge pull request #23 from scaleoutsoftware/main-olivier-cosmosdb
Browse files Browse the repository at this point in the history
Add cosmosdb support
  • Loading branch information
ripleyb authored Jul 12, 2024
2 parents 5d629ad + a2efb7e commit 37c5446
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.scaleoutsoftware.digitaltwin'
version '3.0.8'
version '3.0.9'

sourceCompatibility = JavaVersion.VERSION_12

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ public ModelSchema(
case SQLite:
case SQLServer:
case DynamoDb:
case CosmosDb:
enablePersistence = true;
azureDigitalTwinModelName = null;
break;
Expand Down Expand Up @@ -445,6 +446,7 @@ public ModelSchema(
case SQLite:
case SQLServer:
case DynamoDb:
case CosmosDb:
enablePersistence = true;
azureDigitalTwinModelName = null;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ public enum PersistenceProviderType implements Serializable {
* Enum for the Azure Digital Twin service.
*/
AzureDigitalTwinsService("AzureDigitalTwinsService", 1),
/**
* Enum for CosmosDB
*/
CosmosDb("Azure Cosmos DB", 6),

/**
* Enum for DynamoDB
*/
Expand Down Expand Up @@ -68,6 +73,8 @@ public static PersistenceProviderType fromString(String name) {
return SQLServer;
case "DynamoDB":
return DynamoDb;
case "Azure Cosmos DB":
return CosmosDb;
default:
return null;
}
Expand All @@ -92,6 +99,8 @@ public static PersistenceProviderType fromOrdinal(int ordinal) {
return SQLite;
case 5:
return DynamoDb;
case 6:
return CosmosDb;
default:
return null;
}
Expand Down

0 comments on commit 37c5446

Please sign in to comment.