sqlamp是sqlalchemy的物化路径的实现。

sqlamp的Python项目详细描述


sqlamp是一种高效算法的实现 具有分层数据结构–物化路径sqlamp 使用(并依赖于)SQLAlchemy

物化路径是一种在关系中存储(和获取)树的方法 数据库。它是嵌套集与相邻集之间的折衷 关于简单性和效率的关系。方法得到推广 在他的书中。瓦迪姆 方法的描述可以在他的文章Trees in SQL: Nested Sets and Materialized Path (by Vadim Tropashko)中阅读。

实现的功能:

  • Setting up with ^{tt1}$ or without it.
  • Saving node roots – if no parent set for node.
  • Saving child nodes – if node has some parent. The whole dirty job of setting values in utility fields is done by sqlamp.
  • Fetching node’s descendants, ancestors and children using the most efficient way available.
  • Autochecking exhaustion of tree size limits (maximum number of children and maximum nesting level) is done during session flush.
  • Rebuilding all trees and any subtree on the basis of Adjacency Relations.
  • Collapsing flat tree returned from query to recursive structure.
  • Node classes may use polymorphic inheritance.
  • Nodes and whole trees/subtrees can be moved around or removed entirely.

已知工作支持的dbms包括sqlite(使用3.6.14进行测试)。 MySQL(使用服务器版本5.1.34的myisam和innodb进行测试) 和PostgreSQL(使用8.3.7测试),但是sqlamp应该使用任何 sqlalchemy支持的其他dbms。

支持的sqlalchemy版本包括当前的次要版本 分支0.5和0.6以及0.7.2之后的0.7。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何从同步请求中获取响应代码   具有深度复制的类中的Java oop getter/setter   java LDAP“简单”用户身份验证(JNDI Tomcat)不稳定?   java将Jenkins jnlp代理设置为通过API以编程方式使用WebSocket   java如何获取在servlet筛选器的静态块中启动的静态类的实例?   前两个数字的java charAt循环不能循环它   java在Spring引导执行器中是否有检查子服务运行状况的标准方法?   java我可以将jacksonmapped@JsonProperties推到“顶层”吗?   json JAVA:opencsv随机读取CSV单元格   无第三方应用程序的java捆绑包JRE   使用openidConnectClient功能的WAS Liberty中出现java无效cookie标头错误   java如何在Restful Web服务中从Http Post获取数组?   java如何读取安卓开发的JSON url?   如何在java IO中打开包含汉字的文件?