tiedb is a key-value-value store, where every value is a key

and ‘tie’ associates and binds things together elegantly


example image

#!/bin/sh
source variables.sh

tie add recipe title "$pasta"
tie add recipe title "$fritters"

tie add "$pasta" title "$pasta"
tie add "$pasta" url $pasta_url
tie add "$pasta" url-youtube $pasta_yt
tie add "$pasta" tag pasta
tie add "$pasta" tag tomato
tie add "$pasta" tag basil
tie add "$pasta" tag chili

tie add "$fritters" title "$fritters"
tie add "$fritters" url $fritters_url
tie add "$fritters" url-youtube  $fritters_yt
tie add "$fritters" tag zucchini
tie add "$fritters" tag feta
tie add "$fritters" tag basil
tie add "$fritters" tag chili

tie get recipe
#recipe  title   Spaghetti Aglio e Olio
#recipe  title   Kolokithokeftedes

tie get pasta
# pasta   associated      Spaghetti Aglio e Olio

tie get basil chili # must be associated with both keys
#basil   associated      Spaghetti Aglio e Olio
#basil   associated      Greek Zucchini Fritters (Kolokithokeftedes)

tie get zucchini +url +title
#zucchini        associated      Kolokithokeftedes
#Kolokithokeftedes       url     http://goo.gl/2rKZKP
#Kolokithokeftedes       title   Kolokithokeftedes

tie get Kolokithokeftedes --table
#keys    tag     url     url-youtube     title
#Kolokithokeftedes       [zucchini, feta, basil, chili]  http://goo.gl/2rKZKP    https://youtu.be/0CH1rhKThk4    Kolokithokeftedes

tie batch get:Kolokithokeftedes "get:Spaghetti Aglio e Olio"
#Kolokithokeftedes       associated      recipe
#Kolokithokeftedes       tag     basil
#Kolokithokeftedes       tag     chili
#Kolokithokeftedes       url     http://goo.gl/2rKZKP
#Kolokithokeftedes       url-youtube     https://youtu.be/0CH1rhKThk4
#Kolokithokeftedes       tag     zucchini
#Kolokithokeftedes       tag     feta
#Kolokithokeftedes       associated      Kolokithokeftedes
#Kolokithokeftedes       title   Kolokithokeftedes
#Spaghetti Aglio e Olio  tag     pasta
#Spaghetti Aglio e Olio  associated      recipe
#Spaghetti Aglio e Olio  tag     tomato
#Spaghetti Aglio e Olio  tag     basil
#Spaghetti Aglio e Olio  associated      Spaghetti Aglio e Olio
#Spaghetti Aglio e Olio  title   Spaghetti Aglio e Olio
#Spaghetti Aglio e Olio  url     https://akispetretzikis.com/en/categories/zymarika/spaggeti-aglio-e-olio
#Spaghetti Aglio e Olio  url-youtube     https://youtu.be/pBs0B2jbICg
#Spaghetti Aglio e Olio  tag     chili

tie batch get:Kolokithokeftedes "get:Spaghetti Aglio e Olio" --table
#keys    tag     url     url-youtube     title
#Kolokithokeftedes       [basil, chili, zucchini, feta]  http://goo.gl/2rKZKP    https://youtu.be/0CH1rhKThk4    Kolokithokeftedes
#Spaghetti Aglio e Olio  [pasta, tomato, basil, chili]   https://akispetretzikis.com/en/categories/zymarika/spaggeti-aglio-e-olio     https://youtu.be/pBs0B2jbICg    Spaghetti Aglio e Olio

source variables.sh

Features