build.properties-sample 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. # -------------------------------------------------------------------
  2. #
  3. # P R O P E L C O N F I G U R A T I O N F I L E
  4. #
  5. # -------------------------------------------------------------------
  6. # This file contains some example properties. Ideally properties
  7. # should be specified in the project-specific build.properties file;
  8. # however, this file can be used to specify non-default properties
  9. # that you would like to use accross all of your Propel projects.
  10. # -------------------------------------------------------------------
  11. #
  12. propel.home = .
  13. # -------------------------------------------------------------------
  14. #
  15. # P R O J E C T
  16. #
  17. # -------------------------------------------------------------------
  18. # This is the name of your Propel project. The name of your Propel
  19. # project is used (by default) to determine where the generator will
  20. # find needed configuration files and will place resuilting build
  21. # files. E.g. if your project is named 'killerapp', Propel will
  22. # look here for schema.xml and runtime-conf.xml files:
  23. #
  24. # projects/killerapp/
  25. #
  26. # -------------------------------------------------------------------
  27. # You can set this here, but it's preferrable to set this in a
  28. # project-specific build.properties file.
  29. #
  30. # propel.project = bookstore
  31. # -------------------------------------------------------------------
  32. #
  33. # T A R G E T D A T A B A S E
  34. #
  35. # -------------------------------------------------------------------
  36. # This is the target database, only considered when generating
  37. # the SQL for your Propel project. Your possible choices are:
  38. #
  39. # mssql, mysql, oracle, pgsql, sqlite
  40. # -------------------------------------------------------------------
  41. # You can set this here, but it's preferrable to set this in a
  42. # project-specific build.properties file.
  43. #
  44. # propel.database = mysql
  45. # -------------------------------------------------------------------
  46. #
  47. # O B J E C T M O D E L I N F O R M A T I O N
  48. #
  49. # -------------------------------------------------------------------
  50. # These settings will allow you to customize the way your
  51. # Peer-based object model is created.
  52. # -------------------------------------------------------------------
  53. # addGenericAccessors
  54. # If true, Propel adds methods to get database fields by name/position.
  55. #
  56. # addGenericMutators
  57. # If true, Propel adds methods to set database fields by name/position.
  58. #
  59. # addSaveMethod
  60. # If true, Propel adds tracking code to determine how to save objects.
  61. #
  62. # addTimeStamp
  63. # If true, Propel true puts time stamps in phpdoc of generated om files.
  64. #
  65. # basePrefix
  66. # A string to pre-pend to the file names of base data and peer objects.
  67. #
  68. # complexObjectModel
  69. # If true, Propel generates data objects with collection support and
  70. # methods to easily retreive foreign key relationships.
  71. #
  72. # targetPackage
  73. # Sets the PHP "package" the om files will generated to, e.g.
  74. # "com.company.project.om".
  75. #
  76. # targetPlatform
  77. # Sets whether Propel is building classes for php5 (default)
  78. # or php4 (experimental).
  79. #
  80. # packageObjectModel
  81. # Sets whether Propel is packaging ObjectModel fro several
  82. # [package].schema.xml files. The <database package="packageName">
  83. # attribute has to be set then. (warning: this is experimental!)
  84. #
  85. # -------------------------------------------------------------------
  86. # classes will be put in (and included from) this directory
  87. # e.g. if package is "bookstore" then om will expect include('bookstore/Book.php'); to work.
  88. # use dot-path notation -- e.g. my.bookstore -> my/bookstore.
  89. #
  90. propel.targetPackage = ${propel.project}
  91. propel.addGenericAccessors = false
  92. propel.addGenericMutators = false
  93. propel.addSaveMethod = true
  94. propel.addTimeStamp = true
  95. propel.basePrefix = Base
  96. propel.complexObjectModel = true
  97. propel.targetPlatform = php5
  98. propel.packageObjectModel = false
  99. # -------------------------------------------------------------------
  100. #
  101. # D B C O N N E C T I O N S E T T I N G S
  102. #
  103. # -------------------------------------------------------------------
  104. # PDO connection settings. These connection settings are used by
  105. # build tagets that perform database operations (e.g. 'insert-sql',
  106. # 'reverse').
  107. #
  108. # You can set them here, but it's preferrable to set these properties
  109. # in a project-specific build.properties file.
  110. #
  111. # If you want to use a custom driver, specify it below, otherwise
  112. # leave it blank or comment it out to use Creole stock driver.
  113. #
  114. # propel.database.driver = creole.drivers.sqlite.SQLiteConnection
  115. # Note that if you do not wish to specify the database (e.g. if you
  116. # are using multiple databses) you can use the @DB@ token which
  117. # will be replaced with a database at runtime.
  118. #
  119. # propel.database.url = mysql:host=$host;dbname=$database
  120. # For MySQL or Oracle, you also need to specify username & password
  121. # propel.database.user = [db username]
  122. # propel.database.password = [db password]
  123. # Use the URL below to specify a DSN to used to create the database.
  124. # Note that this URL should not contain the database name, as you will
  125. # get an error if the database does not exist.
  126. # (This does not apply to SQLite since the databse is automatically created
  127. # when the connection is made -- if it does not already exist.)
  128. #
  129. # propel.database.createUrl = mysql:host=$host;dbname=$database
  130. # -------------------------------------------------------------------
  131. #
  132. # D A T A B A S E TO X M L
  133. #
  134. # -------------------------------------------------------------------
  135. #
  136. # samePhpName
  137. # If true, the reverse task will set the phpName attribute for the
  138. # tables and columns to be the same as SQL name.
  139. #
  140. # addVendorInfo
  141. # If true, the reverse task will add vendor specific information
  142. # to the database schema
  143. #
  144. # addValidators
  145. # Bitfield like option to turn on/off addition of Validator and
  146. # Rule tags to the schema. Uses a boolean syntax like in php.ini.
  147. # Allowed tokens are:
  148. # none add no validators)
  149. # all add all validators)
  150. # maxlength add maxlengths for string type columns)
  151. # maxvalue add maxvalue for numeric columns)
  152. # type add notmatch validators for numeric columns)
  153. # required add required validators for required columns)
  154. # unique add unique validators for unique indexes)
  155. # Allowed operators are:
  156. # & bitwise AND
  157. # | bitwise OR
  158. # ~ bitwise NOT
  159. #
  160. # -------------------------------------------------------------------
  161. # propel.samePhpName = false
  162. # propel.addVendorInfo=true
  163. # propel.addValidators=none
  164. # -------------------------------------------------------------------
  165. #
  166. # D A T A B A S E B U I L D C O N F I G
  167. #
  168. # -------------------------------------------------------------------
  169. # Some databases provide some configuration options that can be set
  170. # in this script.
  171. #
  172. # === MySQL
  173. # propel.mysql.tableType
  174. # Use this property to set the table type of generated tables (e.g. InnoDB, MyISAM).