cvs: peardoc /en/package/database/mdb2 intro-manager-module.xml intro-module.xml intro-reverse-module.xml

From: Date: Fri, 02 Mar 2007 18:08:26 +0000
Subject: cvs: peardoc /en/package/database/mdb2 intro-manager-module.xml intro-module.xml intro-reverse-module.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9498@lists.php.net to get a copy of this message
takagi Fri Mar 2 18:08:26 2007 UTC Modified files: /peardoc/en/package/database/mdb2 intro-reverse-module.xml intro-module.xml intro-manager-module.xml Log: fix build.

http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-reverse-module.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/database/mdb2/intro-reverse-module.xml diff -u peardoc/en/package/database/mdb2/intro-reverse-module.xml:1.1 peardoc/en/package/database/mdb2/intro-reverse-module.xml:1.2 --- peardoc/en/package/database/mdb2/intro-reverse-module.xml:1.1 Tue Feb 27 19:29:14 2007 +++ peardoc/en/package/database/mdb2/intro-reverse-module.xml Fri Mar 2 18:08:26 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.database.mdb2.intro-reverse-module"> <refnamediv> @@ -157,23 +157,31 @@ You may use any of the following methods according to the information needed: <itemizedlist> <listitem> - <function>getTableIndexDefinition</function>: - requires a table name and an - index name to return information about the table index as an array + <simpara> + <function>getTableIndexDefinition</function>: - requires a table name and an + index name to return information about the table index as an array + </simpara> </listitem> <listitem> - <function>getTableConstraintDefinition</function>: requires a table name and - a constraint to query against. This will return any constraint definitions - that exist on the table. A constraint as is defined here is usually a - Primary Key or an Unique Key + <simpara> + <function>getTableConstraintDefinition</function>: requires a table name and + a constraint to query against. This will return any constraint definitions + that exist on the table. A constraint as is defined here is usually a + Primary Key or an Unique Key + </simpara> </listitem> <listitem> - <function>getSequenceDefinition</function>: requires a sequence name. It will - return information about the existing table sequence. The method will return - an array on success or an MDB2 error on failure. + <simpara> + <function>getSequenceDefinition</function>: requires a sequence name. It will + return information about the existing table sequence. The method will return + an array on success or an MDB2 error on failure. + </simpara> </listitem> <listitem> - <function>getTriggerDefinition</function>: takes a trigger name as an - argument, and will return information as an array on the trigger queried. + <simpara> + <function>getTriggerDefinition</function>: takes a trigger name as an + argument, and will return information as an array on the trigger queried. + </simpara> </listitem> </itemizedlist> </para> @@ -309,7 +317,7 @@ ]]> </programlisting> </example> - Changing the mode to <parameter>MDB2_TABLEINFO_ORDERTABLE<parameter> will give + Changing the mode to <parameter>MDB2_TABLEINFO_ORDERTABLE</parameter> will give us some additional information by adding additional dimensions to the array in which the table names are keys, and the field names are sub keys. This type of query can be useful when querying complex joins, where some field @@ -320,11 +328,11 @@ list of additional information about the field. This data is inconsistent between DBMS's due to the way each DBMS works: <itemizedlist> - <listitem><parameter>primary_key</parameter></listitem> - <listitem><parameter>unique_key</parameter></listitem> - <listitem><parameter>multiple_key</parameter></listitem> - <listitem><parameter>not_null</parameter></listitem> - <listitem><parameter>unsigned</parameter></listitem> + <listitem><simpara><parameter>primary_key</parameter></simpara></listitem> + <listitem><simpara><parameter>unique_key</parameter></simpara></listitem> + <listitem><simpara><parameter>multiple_key</parameter></simpara></listitem> + <listitem><simpara><parameter>not_null</parameter></simpara></listitem> + <listitem><simpara><parameter>unsigned</parameter></simpara></listitem> </itemizedlist> Most DBMS's only provide the <parameter>table</parameter> and <parameter>flags</parameter> elements if the result is a table name. @@ -332,7 +340,7 @@ the names of tables and fields will be lower- or upper-cased. If the case is set to <parameter>CASE_UPPER</parameter> all tables and fields will be uppercased, as is seen in Oracle and Firebird/Interbase, while - <parameter>CASE_LOWER</parameter> will lower case all fields and tables – + <parameter>CASE_LOWER</parameter> will lower case all fields and tables ? this is the default setting. </para> </refsect2> http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-module.xml?r1=1.11&r2=1.12&diff_format=u Index: peardoc/en/package/database/mdb2/intro-module.xml diff -u peardoc/en/package/database/mdb2/intro-module.xml:1.11 peardoc/en/package/database/mdb2/intro-module.xml:1.12 --- peardoc/en/package/database/mdb2/intro-module.xml:1.11 Wed Feb 28 13:09:33 2007 +++ peardoc/en/package/database/mdb2/intro-module.xml Fri Mar 2 18:08:26 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.11 $ --> +<!-- $Revision: 1.12 $ --> <refentry id="package.database.mdb2.intro-module"> <refnamediv> @@ -38,7 +38,7 @@ </listitem> <listitem> <simpara> - <link linkend="package.database.mdb2.intro-manager-module.xml">Manager module</link> + <link linkend="package.database.mdb2.intro-manager-module">Manager module</link> (<ulink url="http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2_Driver_Manager_Common.html">API</ulink>) - handles data definition language (DDL) abstraction and schema listing via the <classname>MDB2_Manager_Common</classname> class @@ -53,7 +53,7 @@ </listitem> <listitem> <simpara> - <link linkend="package.database.mdb2.intro-reverse-module.xml">Reverse module</link> + <link linkend="package.database.mdb2.intro-reverse-module">Reverse module</link> (<ulink url="http://pear.php.net/package/MDB2/docs/latest/MDB2/MDB2_Driver_Reverse_Common.html">API</ulink>) - handles schema reverse engineering abstraction via the <classname>MDB2_Reverse_Common</classname> class http://cvs.php.net/viewvc.cgi/peardoc/en/package/database/mdb2/intro-manager-module.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/package/database/mdb2/intro-manager-module.xml diff -u peardoc/en/package/database/mdb2/intro-manager-module.xml:1.1 peardoc/en/package/database/mdb2/intro-manager-module.xml:1.2 --- peardoc/en/package/database/mdb2/intro-manager-module.xml:1.1 Tue Feb 27 19:29:14 2007 +++ peardoc/en/package/database/mdb2/intro-manager-module.xml Fri Mar 2 18:08:26 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <refentry id="package.database.mdb2.intro-manager-module"> <refnamediv> @@ -300,8 +300,8 @@ </programlisting> </example> Note: Some RDBMS may choose to ignore the name of the constraint, for example - MySQL will not use the value <parameter>keyname<parameter> provided in the - method call, but will use <parameter>PRIMARY<parameter> when a primary key is + MySQL will not use the value <parameter>keyname</parameter> provided in the + method call, but will use <parameter>PRIMARY</parameter> when a primary key is created. </para> <para> @@ -345,11 +345,15 @@ defined as arrays with possible keys: <itemizedlist> <listitem> - <parameter>sorting</parameter>, with values <parameter>ascending</parameter> - and <parameter>descending</parameter> + <simpara> + <parameter>sorting</parameter>, with values <parameter>ascending</parameter> + and <parameter>descending</parameter> + </simpara> </listitem> <listitem> - <parameter>length<parameter>, integer value + <simpara> + <parameter>length</parameter>, integer value + </simpara> </listitem> </itemizedlist> Not all RDBMS will support index sorting or length, in these cases the drivers @@ -374,7 +378,7 @@ </example> </para> </refsect2> - <refsect2 id="package.database.mdb2.intro-manager-module.create-elements.create-constraints"> + <refsect2 id="package.database.mdb2.intro-manager-module.create-elements.create-sequences"> <title>Creating sequences</title> <para> The way MDB2 handles sequences is <link linkend="package.database.mdb2.intro-sequences">described here</link>. @@ -415,20 +419,30 @@ array with these keys: <itemizedlist> <listitem> - <parameter>name</parameter>: new name for the table. This is the only key - related to the table itself, the other keys contain field definitions + <simpara> + <parameter>name</parameter>: new name for the table. This is the only key + related to the table itself, the other keys contain field definitions + </simpara> </listitem> <listitem> - <parameter>add<parameter>: fields to be added + <simpara> + <parameter>add</parameter>: fields to be added + </simpara> </listitem> <listitem> - <parameter>remove<parameter>: fields to be removed + <simpara> + <parameter>remove</parameter>: fields to be removed + </simpara> </listitem> <listitem> - <parameter>change<parameter>: fields to be changed + <simpara> + <parameter>change</parameter>: fields to be changed + </simpara> </listitem> <listitem> - <parameter>rename<parameter>: fields to be renamed + <simpara> + <parameter>rename</parameter>: fields to be renamed + </simpara> </listitem> </itemizedlist> The values for add/remove/change/rename keys have slightly different structures, @@ -444,38 +458,60 @@ To see what's in the database, you can use the list*() family of functions, namely: <itemizedlist> <listitem> - <function>listDatabases</function> + <simpara> + <function>listDatabases</function> + </simpara> </listitem> <listitem> - <function>listFunctions</function> + <simpara> + <function>listFunctions</function> + </simpara> </listitem> <listitem> - <function>listSequences</function>: takes optional database name as a parameter. - If not supplied, the currently selected database is assumed. + <simpara> + <function>listSequences</function>: takes optional database name as a parameter. + If not supplied, the currently selected database is assumed. + </simpara> </listitem> <listitem> - <function>listTableConstraints</function>: takes a table name + <simpara> + <function>listTableConstraints</function>: takes a table name + </simpara> </listitem> <listitem> - <function>listTableFields</function>: takes a table name + <simpara> + <function>listTableFields</function>: takes a table name + </simpara> </listitem> <listitem> - <function>listTableIndexes</function>: takes a table name + <simpara> + <function>listTableIndexes</function>: takes a table name + </simpara> </listitem> <listitem> - <function>listTables</function>: takes an optional database name + <simpara> + <function>listTables</function>: takes an optional database name + </simpara> </listitem> <listitem> - <function>listTableTriggers</function>: takes a table name + <simpara> + <function>listTableTriggers</function>: takes a table name + </simpara> </listitem> <listitem> - <function>listTableViews</function>: takes a table name + <simpara> + <function>listTableViews</function>: takes a table name + </simpara> </listitem> <listitem> - <function>listUsers</function> + <simpara> + <function>listUsers</function> + </simpara> </listitem> <listitem> - <function>listViews</function>: takes an optional database name + <simpara> + <function>listViews</function>: takes an optional database name + </simpara> </listitem> </itemizedlist>
« previous php.pear.doc (#9498) next »