Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <!-- This is an example mapping file for PyDAO. -->
- <mapping>
- <database name="CinciLMS">
- <!-- One or the other of the two below options.
- The schema used for generation can be sourced
- during code generation or from a schema xml file. -->
- <schema type="MySQL">
- <params database="CinciLMS" host="localhost" port="3306"
- user="root"/>
- <input prompt="MySQL Password:" hidden="true" name="passwd"/>
- </schema>
- <!--<generate code="XML" out="cincilms.schema.xml"/>-->
- <generate code="PHP/MySQLi" out="build"/>
- <!-- By default, all tables are included if no table
- elements exist. If any table elements exist,
- only those tables are included, unless
- alltables is specified. Specify alltables
- and then individual table elements if you want
- to include every table but want special mapping
- for some tables. -->
- <alltables/>
- <table name="Users">
- <!--By default, all columns are included if no
- column elements exist. If any column elements exist,
- only those columns are included, unless allcolumns is
- is specified. Only indexes referenced by name are
- included unless allindexes is specified.-->
- <column name="Username" as="LoginName"/>
- <column name="PasswordHash" as="PasswordHashThing"/>
- <allcolumns/>
- </table>
- </database>
- </mapping>
Add Comment
Please, Sign In to add comment