Skip to content

Commit

Permalink
Replace db.schema by db.schema.visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
Lojjs committed Oct 15, 2018
1 parent 7830695 commit 31a16b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Expand Up @@ -221,9 +221,17 @@ public Stream<SchemaInfoResult> propertySchema()
return new SchemaCalculator( tx ).calculateTabularResultStream();
}

@Description( "Show the schema of the data." )
@Deprecated
@Description( "Show the schema of the data. Replaced by db.schema.visualization." )
@Procedure( name = "db.schema", mode = READ )
public Stream<SchemaProcedure.GraphResult> metaGraph()
{
return metaGraphVisualization();
}

@Description( "Visualize the schema of the data. Replaces db.schema." )
@Procedure( name = "db.schema.visualization", mode = READ )
public Stream<SchemaProcedure.GraphResult> metaGraphVisualization()
{
return Stream.of( new SchemaProcedure( graphDatabaseAPI, tx ).buildSchemaGraph() );
}
Expand Down
Expand Up @@ -285,7 +285,10 @@ public void shouldListCorrectBuiltinProcedures() throws Throwable
"Schedule resampling of all outdated indexes.", "READ" ),
record( "db.schema",
"db.schema() :: (nodes :: LIST? OF NODE?, relationships :: LIST? OF RELATIONSHIP?)",
"Show the schema of the data.", "READ" ),
"Show the schema of the data. Replaced by db.schema.visualization.", "READ" ),
record( "db.schema.visualization",
"db.schema.visualization() :: (nodes :: LIST? OF NODE?, relationships :: LIST? OF RELATIONSHIP?)",
"Visualize the schema of the data. Replaces db.schema.", "READ" ),
record( "okapi.schema",
"okapi.schema() :: (type :: STRING?, nodeLabelsOrRelType :: LIST? OF STRING?, property :: STRING?," +
" cypherTypes :: LIST? OF STRING?, nullable :: BOOLEAN?)",
Expand Down

0 comments on commit 31a16b6

Please sign in to comment.