Cory O'Daniel
Cory O'Daniel
The words "first" and "free" being in proximity cause some strange things. This was tested on HEAD and the chronic 0.10.2. ``` ruby Chronic.parse("june 28th") #=> Sun, 28 Jun 2015...
Add a second descendants option that instead of tracking depth tracks the parent id and organizes the results in a tree structure instead of a list.
Returns Ancestors + source struct This is probably pretty easy to do now using the same CTE as ancestors but joining on id rather than parent_id... ```elixir breadcrumbs = Comment.path(comment)...
value `nil` in `where` cannot be cast to type :id (if you want to check for nils, use is_nil/1 instead) in query: from n in ArborBench.Node, where: n.id != type(^549844,...
The tree name could be prefixed on tree methods... ```elixir use Arbor.Tree, my_tree: opts, my_other_tree: more_opts ```
Consider moving each of the query/operations into their own module to make Arbor.Tree not so intense.
Can you document macros?
Get all nodes without children ```elixir leafs = Comment.leafs ```
Again, not sure if this is the libraries responsibility since its so simple to change the parent_id...