Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Why? What? When? Where? How? #1

Closed
4 tasks
nelsonic opened this issue Oct 31, 2018 · 2 comments
Closed
4 tasks

Why? What? When? Where? How? #1

nelsonic opened this issue Oct 31, 2018 · 2 comments
Assignees
Labels

Comments

@nelsonic
Copy link
Member

nelsonic commented Oct 31, 2018

Porting the Node.js module https://github.com/dwyl/aguid over to Elixir
for use as primary key in https://github.com/dwyl/alog

  • aguid/0 generates a pseudorandom UUID (always different) that conforms to spec: https://en.wikipedia.org/wiki/Universally_unique_identifier
    image

  • aguid/1 accepts a string or JSON (map) which is used to generate the deterministic UUID.
    This should always be the same and irreversible.

  • aguid/2 accepts the String or JSON (map) as aguid/1 but also accpets a "parent" UUID which should be referenced in the "child" UUID such that we can "lookup" the parent or "chain" of nodes.

@nelsonic
Copy link
Member Author

nelsonic commented Nov 2, 2018

"on hold" while we discuss the more fundamental question: should we use UUIDs? dwyl/alog#15

@nelsonic
Copy link
Member Author

nelsonic commented Jan 9, 2019

Closing in favour of: dwyl/cid#1

@nelsonic nelsonic closed this as completed Jan 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant