postgresql范围类型支持canonical的storm orm using pans

StormSpans的Python项目详细描述


暴雨跨度

Stormspans支持PostgreSQL range types 使用规范的Storm ORMPsycoSpansSpans

此包的功能可能与 storm-legacy在未来。

安装

Py> Pycopsas存在于PyPI。

pip install psycospans

文件

要获得完整的输出,请从shell运行pydoc stormspans

示例

fromspansimportintrangefromstorm.localsimport*fromstormspansimportIntRangeclassModel(Storm):id=Int(primary=True)span=IntRange(default=intrange(1,10))def__init__(self,span):self.span=span# NOTE: URI must start with postgres+spans://store=Store(create_database("postgres+spans://<url>"))store.execute("""
    CREATE TABLE int_range_test(
        id SERIAL,
        span int4range
    )
""")store.add(Model(intrange(1,100))store.commit()

更改日志

版本1.0.0

于2018年10月9日发布

  • 添加了对storm-legacy
  • 的支持
  • 增加了对Python3.4和更高版本的支持。注意这只适用于 storm-legacy,因为Storm与Python3不兼容

版本0.1.0

2014年6月12日发布

  • 初始提交

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

推荐PyPI第三方库


热门话题
来自Oozie Java Jobs的电子邮件   泛型Java映射。具有有界通配符的getOrDefault   java如何制作定制的Swing容器?   java断言使用正则表达式重新启动响应体   安卓 java正则表达式查找字符串中的所有空格   java循环语法不起作用   使用spring4@Transactional时,java事务不起作用   java三桨乒乓球命中检测   java Camera 2 Api错误不拍照的错误   java使用ServletContext从war外部读取Hibernate属性   性能如何禁用Java垃圾回收器?   如何通过MySQL触发器执行外部java函数?   使用Ecfbittorent下载torrent时出现java NegativeArraySizeException   java Android arraylist因迭代而崩溃   MyBatis中的java Delete查询没有删除任何内容