全部搜尋項
trixie  ] [  sid  ]
[ 原始碼: python-django-tree-queries  ]

套件:python3-django-tree-queries(0.19-1)

python3-django-tree-queries 的相關連結

Screenshot

Debian 的資源:

下載原始碼套件 python-django-tree-queries

維護小組:

外部的資源:

相似套件:

Adjacency-list trees for Django (Python3 version)

Query Django model trees using adjacency lists and recursive common table expressions. Supports PostgreSQL, sqlite3 and MariaDB and MySQL.

Features and limitations:

 * Supports only integer and UUID primary keys (for now).
 * Allows specifying ordering among siblings.
 * Uses the correct definition of depth, where root nodes have a depth of
   zero.
 * The parent foreign key must be named "parent" at the moment.
 * The fields added by the common table expression always are tree_depth,
   tree_path and tree_ordering. The names cannot be changed. tree_depth is an
   integer, tree_path an array of primary keys and tree_ordering an array of
   values used for ordering nodes within their siblings.
 * Besides adding the fields mentioned above the package only adds queryset
   methods for ordering siblings and filtering ancestors and descendants.
 * Little code, and relatively simple when compared to other tree management
   solutions for Django. No redundant values so the only way to end up with
   corrupt data is by introducing a loop in the tree structure (making it a
   graph). The TreeNode abstract model class has some protection against this.
 * Supports only trees with max. 50 levels on MySQL/MariaDB, since those
   databases do not support arrays and require a maximum length for the
   tree_path and tree_ordering upfront.

This package contains the Python 3 version of the library.

其他與 python3-django-tree-queries 有關的套件

  • 依賴
  • 推薦
  • 建議
  • 增強

下載 python3-django-tree-queries

下載可用於所有硬體架構的
硬體架構 套件大小 安裝後大小 檔案
all 17。9 kB61。0 kB [檔案列表]