Skip to content

allancalix/recursive-doc-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recursive-doc-model

Explores using a relational model to express a recursive document model where one document (origin) can reference another (destination). Destination documents can also contain references.

The first question explored here is how can we collect a specific attriibute, in this case ingredients, for all documents referenced by the origin document (either directly or indirectly).

Try it yourself

Depends on:

  1. psql
  2. docker compose (built in to newer Docker cli versions)

Commands

  # Start
  make
  # Stop
  make clean

  # Example query
  psql "postgres://admin:test123@localhost:5432" -f sql/query.sql

About

Explores recursive document models using Postgresql

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published