Skip to Main Content
Exploring Graphs with Elixir
book

Exploring Graphs with Elixir

by Tony Hammond
November 2022
Intermediate to advanced content levelIntermediate to advanced
294 pages
5h 58m
English
Pragmatic Bookshelf
Content preview from Exploring Graphs with Elixir

Building a Graph Store

It’s time to look at persistence.

We’re going to work with graphs of various types. We’ll want a place to store the graphs that we create and another place to source example graphs. We’ll also want to save the selected queries for the various graph types, each of which has its own query language.

In short, we’ll want a graph store. Let’s build one.

Creating a Storage Area

You’re going to set up a storage area in the usual place we use for bundling a project’s static files—the priv directory. First, create a new directory priv:

 .
 ├── README.md
 ├── lib
 │   └── ...
 ├── mix.exs
»├── priv
 └── test
  └── ...

Here’s the file organization we’ll create under priv:

 priv
»├── scripts
 │   ├── elixir
 │   └── shell
»└── storage ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Concurrent Data Processing in Elixir

Concurrent Data Processing in Elixir

Svilen Gospodinov

Publisher Resources

ISBN: 9798888650059Errata Page