|
[Webware-checkins] CVS: Webware/MiddleKit/Docs RelNotes-X.Y.html,1.4,1.5 UsersGuide.html,1.25,1.26
From: Chuck Esterbrook <echuck@us...> - 2004-02-28 01:37
|
Update of /cvsroot/webware/Webware/MiddleKit/Docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28838/Docs Modified Files: RelNotes-X.Y.html UsersGuide.html Log Message: - added new SQLDefault key for attributes Index: RelNotes-X.Y.html =================================================================== RCS file: /cvsroot/webware/Webware/MiddleKit/Docs/RelNotes-X.Y.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** RelNotes-X.Y.html 24 Feb 2004 02:04:13 -0000 1.4 --- RelNotes-X.Y.html 28 Feb 2004 01:20:31 -0000 1.5 *************** *** 57,61 **** <h2>New Features</h2> <ul> ! <li> * </ul> --- 57,61 ---- <h2>New Features</h2> <ul> ! <li> You can specify a <b>SQLDefault</b> for attributes. <a href=UsersGuide.html#MT_SQLDefault>docs</a> </ul> Index: UsersGuide.html =================================================================== RCS file: /cvsroot/webware/Webware/MiddleKit/Docs/UsersGuide.html,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** UsersGuide.html 24 Feb 2004 02:04:13 -0000 1.25 --- UsersGuide.html 28 Feb 2004 01:20:31 -0000 1.26 *************** *** 38,41 **** --- 38,42 ---- <br> <a href="#MT_DeletingObjects">Deleting objects</a> <br> <a href="#MT_DerivedAttributes">Derived attributes</a> + <br> <a href="#MT_SQLDefault">SQLDefault</a> <br> <a href="#ModelInheritance"><font size=+1>Model Inheritance</font></a> <br> <a href="#RelatedLinks"><font size=+1>Related Links</font></a> *************** *** 437,440 **** --- 438,446 ---- + <a name=MT_SQLDefault><h3>SQLDefault</h3></a> + + <p> MiddleKit will use the <b>Default</b> of attributes to generate a <b>DEFAULT <i>sqlValue</i></b> in the attribute's portion of the SQL CREATE statement, taking care to quote strings properly. This default value is also used in the Python class. But on occasion you may have a need to specify an alternative SQL default (such as <b>GetDate()</b>). When that happens, specify a <b>SQLDefault</b> for the attribute. If you do this in the <b>Extras</b> column, quote the SQL; for example, SQLDefault='GetDate()'. MiddleKit will pass this Python string down to the CREATE statement. + + <a name=ModelInheritance><h2>Model Inheritance</h2></a> |
| Thread | Author | Date |
|---|---|---|
| [Webware-checkins] CVS: Webware/MiddleKit/Docs RelNotes-X.Y.html,1.4,1.5 UsersGuide.html,1.25,1.26 | Chuck Esterbrook <echuck@us...> |