Does supabase have any example for storing tree st...
# help
l
Does supabase have any example for storing tree structures? I am looking if there is any implementation like this in Django so that I don't need to reinvent the wheel https://pypi.org/project/django-treebeard/
n
Hello @laubonghaudoi! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
g
Not looking at your link, basically Supabase uses Postgres so anything you find using Postgres database would likely help you not reinvent. You mentioned storing, so assume database, sorry if it is more client/framework oriented, then don't know.
n
laubonghaudoi (2022-04-10)
l
this django library has 3 different implementations of tree structures, 1. Adjacency List 2. Materialized Path 3. Nested Sets Does Postgresql haave such libraries?
g
Supabase is basically postgresql with add ons (auth,realtime, clients,functions). It is not a framework. There is a python client https://github.com/supabase-community which may or may not apply to your case. This mentions Supabase with Django: https://bjoern-holste.medium.com/django-hearts-supabase-8b251f77d206 Maybe someone else with specific experience with Django will jump in. In general though any database libraries are going to be with your framework or with Postgres as an extension.
n
Thread was archived by @laubonghaudoi. Anyone can send a message to unarchive it.
s
@laubonghaudoi Check the ltree extension: https://www.postgresql.org/docs/current/ltree.html