PostgreSQL HStore格式化程序
pghstore的Python项目详细描述
这个小模块实现了hstore的格式化程序和加载程序, 存储简单键值对的PostgreSQL提供的模块之一。
>>> dumps({u'a': u'1'}) '"a"=>"1"' >>> loads('"a"=>"1"') {u'a': u'1'} >>> src = [('pgsql', 'mysql'), ('python', 'php'), ('gevent', 'nodejs')] >>> loads(dumps(src), return_type=list) [(u'pgsql', u'mysql'), (u'python', u'php'), (u'gevent', u'nodejs')]
通过使用pip或 easy_install:
$ pip install pghstore
访问网站阅读其文档:
http://styleshare.github.com/pghstore/
更改日志
版本0.9.1
2012年1月2日发布。
- 现在它知道了NULL值。NULL值变成Nonein Python,反之亦然。
版本0.9.0
2011年12月22日发布。
- 初始版本。