MDB2_Driver_pgsql
[ class tree: MDB2_Driver_pgsql ] [ index: MDB2_Driver_pgsql ] [ all elements ]

Source for file package_pgsql.php

Documentation is available at package_pgsql.php

  1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager.php';
  4.  
  5. $version '0.1.1';
  6. $notes = <<<EOT
  7. Warning: this release features numerous BC breaks!
  8.  
  9. There have been considerable improvements to the datatype, manager and reverse
  10. modules. Furthermore preliminary support for auto increment and primary keys
  11. has been added. Please note that making a field auto increment implies a single
  12. column primary key on this field.
  13.  
  14. - increased php dependency to 4.3.0 due to the usage of the streams API since beta5
  15. - fixed typo in _getTextDeclaration()
  16. - alterTable now needs the full definition to work (use getTableFieldDefinition
  17.  from Reverse module if you do not have a definition at hand) this eliminates the need
  18.  of the declaration part in the alterTable array.
  19. - fix PHP4.4 breakage
  20. - improved error mapping (ported from DB)
  21. - better detect if the query returned a result set or not in _doQuery()
  22. - minor tweaks to LOB handling
  23. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  24. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  25. - renamed MDB2_PORTABILITY_LOWERCASE to MDB2_PORTABILITY_FIX_CASE and use 'field_case' option to determine if to upper- or lowercase (CASE_LOWER/CASE_UPPER)
  26. - use array_key_exists() instead of isset() where possible
  27. - changed structure of field add/remove/change in alterTable() to match MDB2_Schema
  28. - added createIndex()
  29. - return 0 for manipulation queries when disable_query is enabled
  30. - tweaked getTableFieldDefinition() in reverse module
  31. - added getTypeDeclaration() in the datatype module
  32. - tweaked field changing in alterTable()
  33. - fixed alterTable() signature
  34.  
  35. open todo items:
  36. - implement native prepared queries
  37. EOT;
  38.  
  39. $package = new PEAR_PackageFileManager();
  40.  
  41. $result $package->setOptions(
  42.     array(
  43.         'packagefile'       => 'package_pgsql.xml',
  44.         'package'           => 'MDB2_Driver_pgsql',
  45.         'summary'           => 'pgsql MDB2 driver',
  46.         'description'       => 'This is the PostGreSQL MDB2 driver.',
  47.         'version'           => $version,
  48.         'state'             => 'beta',
  49.         'license'           => 'BSD License',
  50.         'filelistgenerator' => 'cvs',
  51.         'include'           => array('*pgsql*'),
  52.         'notes'             => $notes,
  53.         'changelogoldtonew' => false,
  54.         'simpleoutput'      => true,
  55.         'baseinstalldir'    => '/',
  56.         'packagedirectory'  => './',
  57.         'dir_roles'         => array(
  58.             'docs' => 'doc',
  59.              'examples' => 'doc',
  60.              'tests' => 'test',
  61.              'tests/templates' => 'test',
  62.         ),
  63.     )
  64. );
  65.  
  66. if (PEAR::isError($result)) {
  67.     echo $result->getMessage();
  68.     die();
  69. }
  70.  
  71. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  72.  
  73. $package->addDependency('php''4.3.0''ge''php'false);
  74. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  75. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  76. $package->addDependency('pgsql'null'has''ext'false);
  77.  
  78. $package->addglobalreplacement('package-info''@package_version@''version');
  79.  
  80. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  81.     $result $package->writePackageFile();
  82. else {
  83.     $result $package->debugPackageFile();
  84. }
  85.  
  86. if (PEAR::isError($result)) {
  87.     echo $result->getMessage();
  88.     die();
  89. }

Documentation generated on Mon, 11 Mar 2019 14:13:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.