Guest User

Untitled

a guest
Jan 15th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.53 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!-- This is an example mapping file for PyDAO. -->
  3. <mapping>
  4.    <database name="CinciLMS">
  5.       <!-- One or the other of the two below options.
  6.           The schema used for generation can be sourced
  7.           during code generation or from a schema xml file. -->
  8.       <schema type="MySQL">
  9.          <params database="CinciLMS" host="localhost" port="3306"
  10.            user="root"/>
  11.          <input prompt="MySQL Password:" hidden="true" name="passwd"/>
  12.       </schema>
  13.  
  14.       <!--<generate code="XML" out="cincilms.schema.xml"/>-->
  15.       <generate code="PHP/MySQLi" out="build"/>
  16.      
  17.       <!-- By default, all tables are included if no table
  18.           elements exist.  If any table elements exist,
  19.           only those tables are included, unless
  20.           alltables is specified.  Specify alltables
  21.           and then individual table elements if you want
  22.           to include every table but want special mapping
  23.           for some tables. -->
  24.       <alltables/>
  25.  
  26.       <table name="Users">
  27.          <!--By default, all columns are included if no
  28.              column elements exist.  If any column elements exist,
  29.              only those columns are included, unless allcolumns is
  30.              is specified.  Only indexes referenced by name are
  31.              included unless allindexes is specified.-->
  32.          <column name="Username" as="LoginName"/>
  33.          <column name="PasswordHash" as="PasswordHashThing"/>
  34.          <allcolumns/>
  35.       </table>
  36.    </database>
  37. </mapping>
Add Comment
Please, Sign In to add comment