SQLObject 1.1.3 Publish Python database object Relational mappings

Source: Internet
Author: User
Keywords Python sqlobject Object Relational mapping
Tags aliyun class example http mysql object relational mapping object relational mappings package

Sqlobject is a Python database object relational mapping. For example, a library will wrap your database table in a Python class. Currently supports MySQL through the MYSQLDB package, supported by the PSYCOPG package postgresql,sqlite,firebird,maxdb (SAP DB), MS SQL and Sybase. Also supports the Python 2.4 version.

SQLObject version 1.1.3 Fixes bugs in http://www.aliyun.com/zixun/aggregation/14171.html ">postgres.

Example:

This is just a fragment, creating a simple class that encapsulates a table:

>>> from sqlobject import *>>>>>> sqlhub.processconnection = Connectionforuri (' sqlite:/: Memory: ') >>>>>> class person (SQLObject): ... fname = Stringcol () ... mi = stringcol (length=1, default= None) ... lname = Stringcol () ...>>> person.createtable ()

Software Information http://sqlobject.org/

Download Address: http://pypi.python.org/packages/source/S/SQLObject/SQLObject-1.1.3.tar.gz#md5=09c865d5d08e9242e81a3e1e6bafda0b

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.