![]() You can do this by adding the following dependency to your pom.xml file: Īfter adding the dependency, you need to configure ArangoDB in your Spring application. To get started, you first need to add the ArangoDB Java driver dependency to your Spring project. In this article, we will look at how to integrate ArangoDB with a Spring application. ifNoneMatchRevision - If not null the revision of the vertex in the database has toīe different to update the edge.ArangoDB is a popular open-source NoSQL database that provides a multi-model approach, which means that it supports multiple data models including document, key-value, and graph. keepNull - ifMatchRevision - If not null the revision of the vertex in the database has toīe equal to update the edge. Null if value contains "_to" attribute) waitForSync - Wait for sync. fromHandle - Document handle of vertex, where the edge comes from. value - The object to update the existing edge. ![]() edgeCollectionName - The name of the collection containing edge to update. Parameters: graphName - The name of the graph. ![]() This will only run successfully if the edge is contained within the Updates an edge with the given key by adding the content in the body. graphUpdateEdge public EdgeEntity graphUpdateEdge( String graphName,.Returns: a EdgeEntity object Throws: ArangoException ifNoneMatchRevision - If not null the revision of the vertex in the database has toīe different to replace the edge. ifMatchRevision - If not null the revision of the vertex in the database has toīe equal to replace the edge. The replacement should contain "_from" and "_to". Null if value contains "_to" attribute) value - The object to replace the existing edge. Null if value contains "_from" attribute) toHandle - Document handle of vertex, where the edge goes to. edgeCollectionName - The name of the collection containing edge to replace. Only run successfully if the edge is contained within the graph. Replaces an edge with the given key by the content in the body. setReplicationApplierConfig public ReplicationApplierConfigEntity setReplicationApplierConfig( ReplicationApplierConfigEntity replicationApplierConfigEntity).Returns: ReplicationApplierConfigEntity Throws: ArangoException autoStart - whether or not to auto-start the replication applier on (nextĪnd following) server starts adaptivePolling - if set to true, the replication applier will fall to sleep forĪn increasingly long period in case the logger server at theĮndpoint does not have any more replication events to apply. chunkSize - the requested maximum size for log transfer packets that is requestTimeout - the timeout (in seconds) for individual requests to theĮndpoint. ![]() This value is used for each connection attempt. connectTimeout - the timeout (in seconds) when attempting to connect to theĮndpoint. The endpoint in this number of attempts, it will stop itself. If the applier cannot establish a connection to maxConnectRetries - the maximum number of connection attempts the applier will username - an optional ArangoDB username to use when connecting to theĮndpoint password - the password to use when connecting to the endpoint. database - the name of the database on the endpoint. Parameters: endpoint - the logger server to connect to (e.g. Sets the configuration of the replication applier.
0 Comments
Leave a Reply. |