All Projects → mariocesar → django-ltree

mariocesar / django-ltree

Licence: MIT license
An ltree extension implementation to support hierarchical tree-like data using the native Postgres extension ltree in django models

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects
Makefile
30231 projects

Projects that are alternatives of or similar to django-ltree

Pg acoustid
PostgreSQL extension for working with AcoustID fingerprints
Stars: ✭ 6 (-87.5%)
Mutual labels:  postgresql-extension
Agensgraph Extension
A graph database extension for PostgreSQL
Stars: ✭ 170 (+254.17%)
Mutual labels:  postgresql-extension
incubator-age-viewer
Graph database optimized for fast analysis and real-time data processing. It is provided as an extension to PostgreSQL.
Stars: ✭ 123 (+156.25%)
Mutual labels:  postgresql-extension
Pg partman
Partition management extension for PostgreSQL
Stars: ✭ 1,085 (+2160.42%)
Mutual labels:  postgresql-extension
Decoderbufs
INACTIVE: A PostgreSQL logical decoder output plugin to deliver data as Protocol Buffers
Stars: ✭ 116 (+141.67%)
Mutual labels:  postgresql-extension
Tds fdw
A PostgreSQL foreign data wrapper to connect to TDS databases (Sybase and Microsoft SQL Server)
Stars: ✭ 238 (+395.83%)
Mutual labels:  postgresql-extension
Pg auto failover
Postgres extension and service for automated failover and high-availability
Stars: ✭ 564 (+1075%)
Mutual labels:  postgresql-extension
icu ext
PostgreSQL extension (in C) to expose functionality from the ICU library
Stars: ✭ 23 (-52.08%)
Mutual labels:  postgresql-extension
Pg hashids
Short unique id generator for PostgreSQL, using hashids
Stars: ✭ 164 (+241.67%)
Mutual labels:  postgresql-extension
login hook
Postgres database extension to mimic a logon trigger
Stars: ✭ 29 (-39.58%)
Mutual labels:  postgresql-extension
Plv8
V8 Engine Javascript Procedural Language add-on for PostgreSQL
Stars: ✭ 1,195 (+2389.58%)
Mutual labels:  postgresql-extension
Plsh
PL/sh is a procedural language handler for PostgreSQL that allows you to write stored procedures in a shell of your choice.
Stars: ✭ 111 (+131.25%)
Mutual labels:  postgresql-extension
Wasmer Postgres
💽🕸 Postgres library to run WebAssembly binaries.
Stars: ✭ 245 (+410.42%)
Mutual labels:  postgresql-extension
Pgx
Build Postgres Extensions with Rust!
Stars: ✭ 903 (+1781.25%)
Mutual labels:  postgresql-extension
django-ltree-demo
A demo for storing and querying trees in Django using PostgreSQL
Stars: ✭ 85 (+77.08%)
Mutual labels:  ltree
Pgrouting
Repository contains pgRouting library. Development branch is "develop", stable branch is "master"
Stars: ✭ 804 (+1575%)
Mutual labels:  postgresql-extension
Pguri
uri type for PostgreSQL
Stars: ✭ 235 (+389.58%)
Mutual labels:  postgresql-extension
PLSwift
PostgreSQL Functions in Swift
Stars: ✭ 39 (-18.75%)
Mutual labels:  postgresql-extension
mimeo
Extension for specialized, per-table replication between PostgreSQL instances
Stars: ✭ 74 (+54.17%)
Mutual labels:  postgresql-extension
Pg similarity
set of functions and operators for executing similarity queries
Stars: ✭ 250 (+420.83%)
Mutual labels:  postgresql-extension

django-ltree

A tree extension implementation to support hierarchical tree-like data in Django models, using the native Postgres extension ltree.

Postgresql has already a optimized and very useful tree implementation for data. The extension is ltree

This fork contains a backport to Django 1.11 and Python 3.6.

Test

Links

Install

pip install django-ltree

Then add django_ltree to INSTALLED_APPS in your Django project settings.

And make sure to run django_ltree migrations before you added the PathField

python manage.py migrate django_ltree

django_ltree migrations will install the ltree extension if not exist.

You can alternatively specify the django_ltree dependency in the migrations of your applications that requires PathField, and run migrations smoothly.

class Migration(migrations.Migration):
    dependencies = [
            ('django_ltree', '__latest__'),
    ]

Requires

  • Django 1.11 or superior
  • Python 2

Testing

Make sure you have Postgres installed. Then simply run tox in the root directory of the project.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].