Posted on September 3rd, 2010 at 10:51 AM by admin

SQLAlchemy is just ingenious. I must admit I haven’t worked with any other ORM before, yet SQLAlchemy is more than that. I have been working with it’s query language for years (4-5) and just recently I started to tuck into orm. …

Posted on September 3rd, 2010 at 10:27 AM by admin

まる 1 日かかって Python, SQLAlchemy 経由で Firebird データベースが扱えるようになったけれど、なにを行ってきたのか忘れそうなので覚書を残す。記録をとっておかないと名前に惹かれてつかってみようと思い至ったもののあっさり挫折した 3 年前の自分 …

Posted on September 3rd, 2010 at 10:20 AM by admin

I’m new to SQLAlchemy. I currently have: ev = model.EnumerationValue(key=key_level_2, code=level_2) ev.keyvalues =

Posted on September 3rd, 2010 at 9:35 AM by admin

DBAPIError.instance(statement, parameters, e, connection_invalidated=is_disconnect) sqlalchemy.exc.OperationalError: (OperationalError) no such table: config u’SELECT config.id AS config_id, config."clientId" AS "config_clientId" …

Posted on September 3rd, 2010 at 9:20 AM by admin

For the storage, I’ve picked SQLAlchemy and python-ldap. I don’t really use the ORM part of SQLAlchemy and write pretty raw SQL queries to avoid any extra overhead. The benefit of the ORM was null here anyways, since all storage I/O are …

Posted on September 3rd, 2010 at 9:15 AM by admin

This means that APSW can not be used as a driver for other python modules, such as SQL Alchemy. Luckily, there is a n undocumented (see comments) feature of the SQLite3 module in Python: The constructor can take an APSW connection and …

Posted on September 3rd, 2010 at 9:03 AM by admin

本来 SQLAlchemy ではテーブル定義(SQLAlchemy.Table のインスタンス)と対応する Python クラス(自作)を別々につくり、両者をマッピングして使用することとなっている*1。しかし、そこまでの機能は必要ないユーザーが多数ということで、 …

Posted on September 3rd, 2010 at 7:39 AM by admin

这是基于已经联接至某些相关实体的查询的典型用法(多对一的情况下屡见不鲜),此时我们更倾向于相关实体一步到位的载入到结果对象,而不需要浪费额外的查询,也不需要通过joinedload() 方法自动联接。 >>> from sqlalchemy.orm import contains_eager …

Posted on September 3rd, 2010 at 6:56 AM by admin

Our current focus has been bringing it up to compatibility with SQLAlchemy and Django, and we have by and large achieved that goal with a high level of performance. Check it out at http://www.pymysql.org/. …

Posted on September 3rd, 2010 at 3:12 AM by admin

webhelpers.paginate: – Allow all versions of SQLAlchemy > 0.3. – convert "_range" and "_pagelink" function to Page class method so that they can be overridden – pager "onclick" argument use template string value. …