Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for serializing custom parameter types #614

Draft
wants to merge 1 commit into
base: 5.0
Choose a base branch
from

Conversation

zolstein
Copy link

Add support for serializing custom types that define a particular SerializeNeo4j method.

  • Exposes a Packer interface to the public API that data can be serialized into.
  • Adds a check for a method SerializeNeo4j(Packer) on parameter types - if it exists, use it to serialize the value.
  • Moves serialization logic for dbtype types to SerializeNeo4j methods.
  • Rearranges some serialization logic into new Packer methods so that it can be accessed by the SerializeNeo4j methods - in particular for time.Time.

Add support for serializing custom types that define a particular
SerializeNeo4j method.

* Exposes a Packer interface to the public API that data can be
  serialized into.
* Adds a check for a method SerializeNeo4j(Packer) on parameter types -
  if it exists, use it to serialize the value.
* Moves serialization logic for dbtype types to SerializeNeo4j methods.
* Rearranges some serialization logic into new Packer methods so that it
  can be accessed by the SerializeNeo4j methods - in particular for
  time.Time.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant