没有宇宙数据库图形数据库模拟器



我有一个使用Azure cosmos db的Xamain应用程序,包括文档API和图形API。

为了避免付费(对于家庭用户来说成本很高(,我使用"Azure Cosmos DB 模拟器",但它只支持文档数据库!

那么,是否有一些解决方案可以拥有本地使用的本地图形数据库,该数据库与 Azure 图形 API 兼容?

谢谢

我们计划在Microsoft Ignite大会上发布的模拟器版本将支持所有Cosmos DB API,包括Graph API。请留意此版本。

来自 : Microsoft Doc 和 apache-tinkerpop-gremlin-console-3.3.4.

Gremlin API
Start emulator from an administrator command prompt with "/EnableGremlinEndpoint". Alternatively you can also set the environment variable AZURE_COSMOS_EMULATOR_GREMLIN_ENDPOINT=true
Install apache-tinkerpop-gremlin-console-3.3.4.
In the emulator's Data Explorer create a database "db1" and a collection "coll1"; for the partition key, choose "/name"
Run the following commands in a regular command prompt window:

cd /d C:sdkapache-tinkerpop-gremlin-console-3.3.4-binapache-tinkerpop-gremlin-console-3.3.4
copy /y confremote.yaml confremote-localcompute.yaml
notepad.exe confremote-localcompute.yaml
hosts: [localhost]
port: 8901
username: /dbs/db1/colls/coll1
password: C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
connectionPool: {
enableSsl: false}
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0,
config: { serializeResultToString: true  }}
bingremlin.bat
In the Gremlin shell run the following commands to connect to the Gremlin endpoint:

:remote connect tinkerpop.server conf/remote-localcompute.yaml
:remote console
:> g.V()
:> g.addV('person1').property(id, '1').property('name', 'somename1')
:> g.addV('person2').property(id, '2').property('name', 'somename2')
:> g.V()

您可以通过模拟器使用它,但您不应该有任何资源管理器视图

最新更新