sqlalchemy models for ltree.
Project description
SQLAlchemy Ltree Model Mixins
Synopsis
import ltree
from sqlalchemy import (
Column,
Integer,
Text,
)
from sqlalchemy.orm import (
Session,
)
class UnorderedNode(Base, ltree.LtreeMixin):
__tablename__ = 'ltree_nodes'
id = Column(Integer, primary_key=True)
name = Column(Text, nullable=False)
class OrderedNode(Base, ltree.OLtreeMixin):
__tablename__ = 'oltree_nodes'
id = Column(Integer, primary_key=True)
name = Column(Text, nullable=False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ltree_models-0.0.11.tar.gz
(6.9 kB
view hashes)
Built Distribution
Close
Hashes for ltree_models-0.0.11-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 35c9d975d90998edf9c1806a3b0e924b514179a652273afa7f3c07063d4aecc5 |
|
MD5 | 89f99492f4c9238dc403152c7d612a3c |
|
BLAKE2b-256 | 3eeabe51c7ac242927798d85fec32215534bf377bafa40512ac6784b0594e322 |