Refine search
@Deprecated @Description( "Change the current user's password. Deprecated by dbms.security.changePassword." ) @Procedure( name = "dbms.changePassword", mode = DBMS, deprecatedBy = "dbms.security.changePassword" ) public void changePasswordDeprecated( @Name( "password" ) String password ) throws InvalidArgumentsException, IOException { // TODO: Deprecate this and create a new procedure that takes password as a byte[] changePassword( password ); }
@Deprecated @Description( "Show the current user. Deprecated by dbms.showCurrentUser." ) @Procedure( name = "dbms.security.showCurrentUser", mode = DBMS, deprecatedBy = "dbms.showCurrentUser" ) public Stream<UserResult> showCurrentUserDeprecated() { return showCurrentUser(); }
@Description( "Visualize the schema of the data. Replaces db.schema." ) @Procedure( name = "db.schema.visualization", mode = READ ) public Stream<SchemaProcedure.GraphResult> schemaVisualization() { return Stream.of( new SchemaProcedure( graphDatabaseAPI, tx ).buildSchemaGraph() ); }
@Deprecated @Description( "Check if a relationship explicit index exists" ) @Procedure( name = "db.index.explicit.existsForRelationships", mode = READ, deprecatedBy = EXPLICIT_INDEX_DEPRECATION ) public Stream<BooleanResult> relationshipManualIndexExists( @Name( "indexName" ) String explicitIndexName ) { return Stream.of( new BooleanResult( graphDatabaseAPI.index().existsForRelationships( explicitIndexName ) ) ); }
@Deprecated @Description( "Check if a node explicit index exists" ) @Procedure( name = "db.index.explicit.existsForNodes", mode = READ, deprecatedBy = EXPLICIT_INDEX_DEPRECATION ) public Stream<BooleanResult> nodeManualIndexExists( @Name( "indexName" ) String explicitIndexName ) { return Stream.of( new BooleanResult( graphDatabaseAPI.index().existsForNodes( explicitIndexName ) ) ); }
@Admin @Description( "Retrieve the status of all available collector daemons, for this database." ) @Procedure( name = "db.stats.status", mode = Mode.READ ) public Stream<StatusResult> status() { CollectorStateMachine.Status status = dataCollector.queryCollector.status(); return Stream.of( new StatusResult( Sections.QUERIES, status.message, Collections.emptyMap() ) ); }
@Description( "Wait for an index to come online (for example: CALL db.awaitIndex(\":Person(name)\"))." ) @Procedure( name = "db.awaitIndex", mode = READ ) public void awaitIndex( @Name( "index" ) String index, @Name( value = "timeOutSeconds", defaultValue = "300" ) long timeout ) throws ProcedureException { try ( IndexProcedures indexProcedures = indexProcedures() ) { indexProcedures.awaitIndexByPattern( index, timeout, TimeUnit.SECONDS ); } }
@Deprecated @Description( "Show the schema of the data." ) @Procedure( name = "db.schema", mode = READ, deprecatedBy = DB_SCHEMA_DEPRECATION ) public Stream<SchemaProcedure.GraphResult> schema() { return schemaVisualization(); }
@Deprecated @Description( "Add a node to an explicit index based on a specified key and value" ) @Procedure( name = "db.index.explicit.addNode", mode = WRITE, deprecatedBy = EXPLICIT_INDEX_DEPRECATION ) public Stream<BooleanResult> nodeManualIndexAdd( @Name( "indexName" ) String explicitIndexName, @Name( "node" ) Node node, @Name( "key" ) String key, @Name( "value" ) Object value ) { graphDatabaseAPI.index().forNodes( explicitIndexName ).add( node, key, value ); // Failures will be expressed as exceptions before the return return Stream.of( new BooleanResult( Boolean.TRUE ) ); }
@Description( "Show the current user." ) @Procedure( name = "dbms.showCurrentUser", mode = DBMS ) public Stream<UserResult> showCurrentUser() { return Stream.of( userResultForName( securityContext.subject().username() ) ); }
@Description( "Similar to db.awaitIndex(index, timeout), except instead of an index pattern, the index is specified by name. " + "The name can be quoted by backticks, if necessary." ) @Procedure( name = "db.index.fulltext.awaitIndex", mode = READ ) public void awaitIndex( @Name( "index" ) String index, @Name( value = "timeOutSeconds", defaultValue = "300" ) long timeout ) throws ProcedureException { try ( IndexProcedures indexProcedures = indexProcedures() ) { indexProcedures.awaitIndexByName( index, timeout, TimeUnit.SECONDS ); } }
@Description( "Wait for the updates from recently committed transactions to be applied to any eventually-consistent fulltext indexes." ) @Procedure( name = "db.index.fulltext.awaitEventuallyConsistentIndexRefresh", mode = READ ) public void awaitRefresh() { accessor.awaitRefresh(); }