Changeset [c29566d22b108ffe1418dc8e8109bb08525281f6] by Andreas Ronge

January 19th, 2014 @ 05:09 PM

Started impl. type converters for Date, Time and DateTime #305

This will be called before saving to the database (Neo4j::ActiveNode::Persistance) and reading properties from the database (Neo4j::ActiveNode::Initialize).

It should use the type value from the active_attr. gem
E.g. Person._attribute_type(:born) #=> DateTime
Each property has to be checked before reading and writing to Neo4j and translated if of type Date, DateTime or Time

Committed by Andreas Ronge

  • A lib/neo4j/type_converters.rb
  • A spec/integration/type_converters/type_converters_spec.rb
  • M Gemfile
  • M
  • M lib/neo4j.rb
  • M spec/spec_helper.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails