[SQL-CVS] r1158 - SQLObject/trunk/docs
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2005-10-27 22:54:02
|
Author: test Date: 2005-10-27 22:53:56 +0000 (Thu, 27 Oct 2005) New Revision: 1158 Modified: SQLObject/trunk/docs/sqlobject-admin.txt Log: Little layout fix Modified: SQLObject/trunk/docs/sqlobject-admin.txt =================================================================== --- SQLObject/trunk/docs/sqlobject-admin.txt 2005-10-27 18:09:39 UTC (rev 1157) +++ SQLObject/trunk/docs/sqlobject-admin.txt 2005-10-27 22:53:56 UTC (rev 1158) @@ -98,12 +98,13 @@ after table creation. createSQL can be a string with a single SQL command, a list of SQL commands, or a dictionary with keys that are dbNames and values that are either single SQL command string or a list -of SQL commands. An example follows: +of SQL commands. An example follows:: -:: class MyTable(SQLObject): class sqlmeta: - createSQL = {'postgres': ["ALTER TABLE my_table ADD CHECK(my_field != '');"]} + createSQL = {'postgres': [ + "ALTER TABLE my_table ADD CHECK(my_field != '');", + ]} myField = StringCol() The ``sql`` Command |