3.0.0
Released Sqlg
3.0.0
on TinkerPop
3.2.6
This is a breaking change release. Testing before upgrading production systems is strongly recommended.
Upgrade instructions
-
TinkerPop added
supportsNullPropertyValues
which Sqlg supports. i.e.supportsNullPropertyValues = true
. Before3.0.0
client code had to call
Property.isPresent()
to check for null values.isPresent
will now returntrue
if the property exist in the schema, regardless of the value. To do a null check call(property.isPresent() && property.value() != null)
. A request has been made to TinkerPop to add aisNull
to theProperty
interface. -
Properties are now specified using a
PropertyDefinition
. Before 3.0.0 a VertexLabel/EdgeLabel property would be defined with just a name and aPropertyType
.schema.ensureVertexLabelExist("LabelName", new LinkedHashMap<>() {{ put("propertyName", PropertyType.STRING); }});
this now needs to be refactored to,
schema.ensureVertexLabelExist("LabelName", new LinkedHashMap<>() {{ put("propertyName", PropertyDefinition.of(PropertyType.STRING)); }});
i.e. wrapping the
PropertyType
with aPropertyDefinition