runtime-conf.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <config>
  3. <!--
  4. #
  5. # L O G G I N G
  6. #
  7. # We use PEAR-compatible Log for all Propel logging and we embed the
  8. # log conf properties within our application configuration.
  9. #
  10. # type - the type of log (default 'file')
  11. # name - the name of log or path to file. (default './propel.log')
  12. # ident - the text used to identify the log messages
  13. # level - the log level
  14. # PEAR_LOG_EMERG 0
  15. # PEAR_LOG_ALERT 1
  16. # PEAR_LOG_CRIT 2
  17. # PEAR_LOG_ERR 3
  18. # PEAR_LOG_WARNING 4
  19. # PEAR_LOG_NOTICE 5
  20. # PEAR_LOG_INFO 6
  21. # PEAR_LOG_DEBUG 7
  22. #
  23. # Note that if you omit the <log> config section, Propel will not attempt to
  24. # configure a logger, and you will need to specify one manually using
  25. # Propel::setLogger() if you want Propel to log debug or error messages.
  26. -->
  27. <log>
  28. <ident>propel-bookstore</ident>
  29. <name>propel.log</name>
  30. <level>7</level>
  31. </log>
  32. <!--
  33. #
  34. # P R O P E L P R O P E R T I E S
  35. #
  36. # Note that you can configure multiple datasources; for example if your
  37. # project uses several databases.
  38. -->
  39. <propel>
  40. <datasources default="bookstore_namespaced">
  41. <datasource id="bookstore_namespaced">
  42. <!-- the Propel adapter to use for this connection -->
  43. <adapter>mysql</adapter>
  44. <!-- Connection parameters. See PDO documentation for DSN format and available option constants. -->
  45. <connection>
  46. <classname>DebugPDO</classname>
  47. <dsn>mysql:dbname=test</dsn>
  48. <!--
  49. For MySQL and Oracle you must specify username + password separate from DSN:
  50. <user>bookstore</user>
  51. <password></password>
  52. -->
  53. <options>
  54. <option id="ATTR_PERSISTENT">false</option>
  55. </options>
  56. <attributes>
  57. <!--
  58. For MySQL, you should also turn on prepared statement emulation,
  59. as prepared statements support is buggy in mysql driver
  60. -->
  61. <option id="ATTR_EMULATE_PREPARES">true</option>
  62. </attributes>
  63. <settings>
  64. <!-- Set the character set for client connection -->
  65. <setting id="charset">utf8</setting>
  66. <!-- you can also execute arbitrary queries after the connection is created
  67. <setting id="queries">
  68. <query>SELECT * FROM foo</query>
  69. <query>INSERT INTO BAR ('hey', 'there')</query>
  70. </setting>
  71. -->
  72. </settings>
  73. </connection>
  74. </datasource>
  75. </datasources>
  76. </propel>
  77. </config>