Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/njdevpro/closure-table
- Owner: NJdevPro
- License: mit
- Created: 2019-03-14T10:49:22.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-13T13:35:20.000Z (about 2 years ago)
- Last Synced: 2024-10-30T02:24:01.526Z (18 days ago)
- Topics: closure-table, hierarchical-data, hierarchical-models, python-sql, sql, tree-structure
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Closure-Table
An implementation of the closure table pattern in Python + SQLA 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