Skip to content

Changlog after Gem 0.79

topofocus edited this page Jul 16, 2019 · 23 revisions
  • OrientQuery: Arguments can be chained
  • OrientQuery: (Match-Syntax) methods connect and statement return an OrientQuery-Object instead of a Matchstatement.
  • Delete: Class#delete, Vertex#delete removed any record when called without a condition. Now: all: true is required
  SomeClass.delete all: true   # leads to an empty class
  • Edge.create: To put attributes (properties) to the edge, the keyword »set« is used. We are following the syntax of OrientDB#CreateEdge. As for Vertex#Create, the keyword :set is optional.
  • ORD.create_vertex, ORD.create_edge (file: class_utils.rb):: removed in favor of Vertex.create and Edge.create
  • ActiveOrient::Model Objects respond to to_human, which is alias by to_s
  • Vertex.edges selects adjacent edges by /pattern/ or by EDGE_CLASS. If a pattern is used, inheritance is respected. If a EDGE_CLASS is used, only edges of this particular class are selected.
  • Multiple connections supported
  • ORD.delete_class now correctly removes the database- and ruby-class
  • OrientQuery: Support for NULL values in queries: (Branch: Match)
  G.count( where:  abc: [nil]    # Array with nil element is translated into 'is NULL'
  G.update( set: {abc: nil} , where: 'something > 0' )  # Hash with nil-value translates to '= NULL'
  • Class.update: When updating multiple documents, the count of affected records is returned.
    Document.update: The updated record is returned (unchanged)

Clone this wiki locally