Update of /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage
In directory sc8-pr-cvs1:/tmp/cvs-serv20613/doc/HomePage
Modified Files:
features.tex quick_overview.tex
Log Message:
Added notes about on-the-fly creation of python modules/classes based on a model
Index: features.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage/features.tex,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** features.tex 16 Nov 2003 16:24:59 -0000 1.1
--- features.tex 16 Nov 2003 16:49:23 -0000 1.2
***************
*** 51,56 ****
\item Generation of database schemas (including: primary keys, foreign keys,
! referential constraints), generation of python code templates ready to
! be used.
\item Support for transparent mapping of (class) inheritance in relational
--- 51,64 ----
\item Generation of database schemas (including: primary keys, foreign keys,
! referential constraints),
!
! \item Generation of python code templates ready to be used\footnote{Note that
! code generation is not the only way to go, and is only provided so that
! one can easily bootstrap modules/classes based on a model. Python
! classes and modules can be dynamically built from a model at runtime; if
! you're interested in such a feature, you want to have a look at
! \begin{rawhtml}<a
! href="https://sourceforge.net/tracker/index.php?func=detail&aid=814055&group_id=58935&atid=489337">this
! patch</a>\end{rawhtml} for details. }
\item Support for transparent mapping of (class) inheritance in relational
Index: quick_overview.tex
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/doc/HomePage/quick_overview.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** quick_overview.tex 11 Nov 2003 22:25:05 -0000 1.3
--- quick_overview.tex 16 Nov 2003 16:49:23 -0000 1.4
***************
*** 85,102 ****
{\tt shell> mdl_generate_python_code.py sample_pymodel.py}
\item[Generate the corresponding database schema]
Either get the coresponding sql statements:
\begin{verbatim}
! shell> mdl_generate_DB_schema.py -c -A sample_pymodel.py
\end{verbatim}
%\begin{verbatim}
! %shell> mdl_generate_DB_schema.py -c -A sample_pymodel.py
! %DROP SEQUENCE PK_SEQ_PERSON;
! %DROP SEQUENCE PK_SEQ_ADDRESS;
! %ALTER TABLE ADDRESS DROP CONSTRAINT person;
! %ALTER TABLE PERSON DROP CONSTRAINT PERSON_pkey;
! %ALTER TABLE ADDRESS DROP CONSTRAINT ADDRESS_pkey;
! %DROP TABLE PERSON;
! %DROP TABLE ADDRESS;
%CREATE TABLE PERSON (
% FIRST_NAME VARCHAR(40) ,
--- 85,102 ----
{\tt shell> mdl_generate_python_code.py sample_pymodel.py}
+ Note: python modules and classes can also be generated dynamically on the
+ fly.\\
+ If you're interested in such a feature, you want to have a look at
+ \begin{rawhtml}<a
+ href="https://sourceforge.net/tracker/index.php?func=detail&aid=814055&group_id=58935&atid=489337">this
+ patch</a>\end{rawhtml} for details.
+
\item[Generate the corresponding database schema]
Either get the coresponding sql statements:
\begin{verbatim}
! shell> mdl_generate_DB_schema.py -c -C sample_pymodel.py
\end{verbatim}
%\begin{verbatim}
! %shell> mdl_generate_DB_schema.py -c -C sample_pymodel.py
%CREATE TABLE PERSON (
% FIRST_NAME VARCHAR(40) ,
***************
*** 117,127 ****
\begin{rawhtml}
<pre>
- DROP SEQUENCE PK_SEQ_PERSON;
- DROP SEQUENCE PK_SEQ_ADDRESS;
- <strong>ALTER</strong> <strong>TABLE</strong> ADDRESS DROP <strong>CONSTRAINT</strong> person;
- <strong>ALTER</strong> <strong>TABLE</strong> PERSON DROP <strong>CONSTRAINT</strong> PERSON_pkey;
- <strong>ALTER</strong> <strong>TABLE</strong> ADDRESS DROP <strong>CONSTRAINT</strong> ADDRESS_pkey;
- DROP <strong>TABLE</strong> PERSON;
- DROP <strong>TABLE</strong> ADDRESS;
<strong>CREATE</strong> <strong>TABLE</strong> PERSON (
FIRST_NAME <font color="#2040a0"><strong>VARCHAR</strong></font><strong>(</strong>40) ,
--- 117,120 ----
|