Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/njdevpro/closure-table

An implementation of the closure table pattern in Python + SQL
https://github.com/njdevpro/closure-table

closure-table hierarchical-data hierarchical-models python-sql sql tree-structure

Last synced: 8 days ago
JSON representation

An implementation of the closure table pattern in Python + SQL

Awesome Lists containing this project

README

        

# Closure-Table
An implementation of the closure table pattern in Python + SQL

A closure table is a table that permits to represent hierarchical data or a tree structure in a SQL table and query them efficiently without having to create recursive queries.

See for instance: https://technobytz.com/closure_table_store_hierarchical_data.html

This particular program was written for use with SQLite but the SQL is standard and thus adaptation to other databases should be straightforward.

Published under MIT license