jsam(json存储访问方法)是一个用于json对象的“nosql”数据库。
jsam的Python项目详细描述
jsam的基本操作是get、put和remove,并有基本的支持 对于通过begin、commit和rollback进行的事务。所有存储对象 由整数键标识。
通过向jsam.jsurl.parse()提供一个url来打开jsam数据库 并对返回的对象调用open()方法。的语法 url取决于特定的“访问方法”。
当前存在以下URL类型:
* file: directory plain text JSON files * rcs: directory plain text JSON files under RCS * cvs: directory plain text JSON files under CVS (not tested) * svn: directory plain text JSON files under SVN (not tested) * sqlite: object trees stored in an SQLite3 database * mysql: object trees stored in a MySQL database (lightly tested) * pgsql: object trees stored in a PostgreSQL database (lightly tested)
查询方法包括:
* Collections: a jQuery/Django-like method-chained interface * XPath query language subset (only supported for SQL backends) * P4J (E4X-like) query language (only supported for SQL backends) which allows construction of "xpath" queries in Python using method chaining and operator overload, bridging the lexical divide between code and query.
- pydoc jsam.<;urltype>;\u jsam
- 提供有关<;urltype>;的url语法的信息
- pydoc jsam.jsam.jsam
- 提供有关jsam对象方法的信息
- pydoc jsam.xpath
- 提供有关xpath查询语法的信息(仅限sql后端)
- pydoc jsam.p4j
- 提供有关p4j python本机查询语法的信息
注意:
* uses Python 2.6+ supplied "json"; requires "simplejson" on Python 2.5 * file-based storage depends on POSIX file semantics * requires "MySQLdb" for MySQL * requires "psycopg2" for PostgreSQL
“jsam”这个名字是ibm大型机o/s数据“访问方法”的一个笑话。 (bdam、bsam、vsam、isam、qsam、bpam)。
“jsonstore”这个明显的名字已经被另一个包使用了 在python包索引(pypi)中。
url/uri语法抄袭自django,后者复制了sqlalchemy。