home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2005 June / PCpro_2005_06.ISO / files / opensource / xamp / xampp-win32.exe / xampp / example.ini < prev    next >
Encoding:
INI File  |  2004-10-01  |  4.2 KB  |  128 lines

  1. ; Example INI File
  2.  
  3. [DB]
  4.  
  5.  
  6. ;portability = 15
  7.         ; if you are working with oracle (or plan to) - this will do things
  8.         ; like force lowercase table names (see the PEAR DB manual
  9.  
  10. [DB_DataObject]
  11.  
  12. database        = mysql://username:password@localhost/database
  13.         ; the default database dsn see pear spec for more details
  14.  
  15.  
  16.  
  17. schema_location = /home/me/Projects/myapplication/DataObjects
  18.         ;directory where the database ini files are..
  19.  
  20. ; ini_{databaseName} = /path/to/ini/file.ini:/path/to_another_ini/file.ini
  21.         ; you can also configure manually the ini_file location 
  22.         ; (and the links is expected to be in the
  23.         ; same location) for each database by using the syntax
  24.         ; use a PATH_SEPERATOR to load multiple files.
  25.         ; BEST USED WITH database_{databasename}  = dsn...
  26.  
  27.  
  28. ; links_{databaseName} = /path/to/databases/links.ini
  29.         ; allows you to specify a specific links.ini file for a database
  30.         ; or project.
  31.  
  32. class_location  = /home/me/Projects/myapplication/DataObjects
  33.         ; directory where the Table classes are..
  34.  
  35. require_prefix  = DataObjects/
  36.         ;  prefix for the 'require statement'
  37.  
  38. class_prefix    = DataObjects_
  39.         ; Prefix Mapping of table name to PHP Class
  40.  
  41. ;table_example   = example
  42.         ; use database example for table example
  43.  
  44. ;database_example = mysql://username:password@host/database
  45.         ; use this dsn for database example
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52. ;               the generator settings (optional)
  53.  
  54. extends_location =      
  55. ;               string added to php file for 'include('DB/DataObject');'
  56. ;               usefull if you want to add an extra layer - eg. a table level auth scheme..
  57. ;               optional    :: default = DB/DataObject.php
  58.  
  59.  
  60. extends =           
  61. ;               string used in Table_XXX extends YYYY {
  62. ;               usefull if you want to add an extra layer - eg. a table level auth scheme..
  63. ;               optional    :: default = DB_DataObject
  64.  
  65. generator_class_rewrite = 
  66.  
  67. ; alter the extends field when updating a class (defaults to only replacing DB_DataObject)
  68. ; use ANY to will replace all extends with either DB_DataObject or the value of extends (above)
  69. ; use specific_name to replace 'specific_name'  with either DB_DataObject or the value of extends (above)
  70.  
  71.  
  72.  
  73. debug = 0
  74. ;               default debugging level 
  75.  
  76. debug_ignore_updates = 0
  77. ;               behaviour changed in > 0.10 so that you have to manually turn of updates
  78. ;         rather than it automatically being done by setting debug to  > 1
  79.  
  80.  
  81. dont_die = 0
  82. ;        if you set this to true or 1, then dataobjects will not die
  83. ;        on major errors like database connection etc. or programming errors
  84. ;        - you probably want to do this on a live server - and 
  85. ;        write a pear error handler.. - to send you an email!
  86.  
  87. ;quote_identifiers = 0
  88. ;        Quote table and column names when building queries - this relies on the 
  89. ;        quoteIdentifier method being available in PEAR::DB (it should be introduced in 1.5 final or 1.6)
  90.  
  91.  
  92. ;keep_query_after_fetch = 0
  93. ;        From 1.4 on the query building will be cleared after a fetch(1.5), or find(1.4)
  94. ;        To disable this behavior set this to 1
  95.  
  96.  
  97.  
  98.  
  99.  
  100. ; THIS IS DEPRECIATED NOW - define the method sequenceKey() to return array(false,false)
  101. ; to stop useage of sequence keys.
  102. ; see sequenceKey Manual page for more details.
  103. ; ignore_sequence_keys = 
  104.  
  105.  
  106.  
  107. ; THIS IS DEPRECIATED NOW - define the method sequenceKey() to return array(false,false)
  108. ;sequence_{tablename} = {column}
  109. ;        specify which column is autoincremented/nextval'd
  110. ;sequence_{tablename} = {column}:{sequence_name}
  111. ;        specify which column is nextval'd, and the sequence name to use for the column.
  112.  
  113. dont_use_pear_sequences = 0
  114. ;        If a table does not have a Native (autoincrement etc.) - and it has a primary
  115. ;        key, it is assumed that the table should use pear's getNextID to 
  116. ;        emulate sequences.. - if this is not required set this to 1
  117.  
  118.  
  119. ;generator_include_regex = /^FOO_.*/i
  120. ;generator_exclude_regex = /^tmp_.*/i
  121. ;        include and exclude tables from being read by the generator
  122.  
  123. build_views = 0
  124. ;        for postgres, you can build dataobjects for views as well 
  125. ;        I believe it postgres also supports updating on views (nice feature)
  126. ;               *** NOTE *** You will have to manually define keys() / sequenceKeys()
  127. ;               As the generator can not recognize these automatically 
  128.