-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #770 from neo4j-contrib/task/767-improve-inspection
Task/767 improve inspection
- Loading branch information
Showing
5 changed files
with
167 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from neomodel import StructuredNode, StringProperty, RelationshipTo, ArrayProperty, FloatProperty, BooleanProperty, DateTimeProperty, IntegerProperty | ||
from neomodel.contrib.spatial_properties import PointProperty | ||
|
||
class ScriptsTestNode(StructuredNode): | ||
personal_id = StringProperty(unique_index=True) | ||
name = StringProperty(index=True) | ||
rel = RelationshipTo("ScriptsTestNode", "REL") | ||
|
||
|
||
class EveryPropertyTypeNode(StructuredNode): | ||
array_property = ArrayProperty(StringProperty()) | ||
float_property = FloatProperty() | ||
boolean_property = BooleanProperty() | ||
point_property = PointProperty(crs='wgs-84') | ||
string_property = StringProperty() | ||
datetime_property = DateTimeProperty() | ||
integer_property = IntegerProperty() | ||
|
||
|
||
class NoPropertyNode(StructuredNode): | ||
pass | ||
|
||
|
||
class NoPropertyRelNode(StructuredNode): | ||
no_prop_rel = RelationshipTo("NoPropertyRelNode", "NO_PROP_REL") | ||
|
26 changes: 26 additions & 0 deletions
26
test/data/neomodel_inspect_database_output_pre_5_7_light.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from neomodel import StructuredNode, StringProperty, RelationshipTo, ArrayProperty, FloatProperty, BooleanProperty, DateTimeProperty, IntegerProperty | ||
from neomodel.contrib.spatial_properties import PointProperty | ||
|
||
class ScriptsTestNode(StructuredNode): | ||
personal_id = StringProperty(unique_index=True) | ||
name = StringProperty(index=True) | ||
rel = RelationshipTo("ScriptsTestNode", "REL") | ||
|
||
|
||
class EveryPropertyTypeNode(StructuredNode): | ||
array_property = ArrayProperty(StringProperty()) | ||
float_property = FloatProperty() | ||
boolean_property = BooleanProperty() | ||
point_property = PointProperty(crs='wgs-84') | ||
string_property = StringProperty() | ||
datetime_property = DateTimeProperty() | ||
integer_property = IntegerProperty() | ||
|
||
|
||
class NoPropertyNode(StructuredNode): | ||
pass | ||
|
||
|
||
class NoPropertyRelNode(StructuredNode): | ||
no_prop_rel = RelationshipTo("NoPropertyRelNode", "NO_PROP_REL") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters