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 ()
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.