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

Source for file package_mysql.php

Documentation is available at package_mysql.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. - ensure that instance is connected before using connection property in tableInfo()
  16. - added support for auto increment and primary key in schema.
  17. - alterTable now needs the full definition to work (use getTableFieldDefinition
  18.  from Reverse module if you do not have a definition at hand) this eliminates the need
  19.  of the declaration part in the alterTable array.
  20. - ensure that instance is connected before using connection property in tableInfo()
  21. - removed support for dummy_primary_key
  22. - fix PHP4.4 breakage
  23. - moved getInsertID() into core as lastInsertID()
  24. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  25. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  26. - 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)
  27. - count() -> !empty() where possible
  28. - use array_map() instead of array_flip(array_change_key_case(array_flip())) to fix case of array values
  29. - use array_key_exists() instead of isset() where possible
  30. - changed structure of field add/remove/change in alterTable() to match MDB2_Schema
  31. - removed subSelect() implementation (now in already included in common)
  32. - return 0 for manipulation queries when disable_query is enabled
  33. - tweaked handling of notnull and default in field reverse engineering
  34. - tweaked getTableFieldDefinition() in reverse module
  35. EOT;
  36.  
  37. $package = new PEAR_PackageFileManager();
  38.  
  39. $result $package->setOptions(
  40.     array(
  41.         'packagefile'       => 'package_mysql.xml',
  42.         'package'           => 'MDB2_Driver_mysql',
  43.         'summary'           => 'mysql MDB2 driver',
  44.         'description'       => 'This is the MySQL MDB2 driver.',
  45.         'version'           => $version,
  46.         'state'             => 'beta',
  47.         'license'           => 'BSD License',
  48.         'filelistgenerator' => 'cvs',
  49.         'ignore'            => array('*mysqli*'),
  50.         'include'           => array('*mysql*'),
  51.         'notes'             => $notes,
  52.         'changelogoldtonew' => false,
  53.         'simpleoutput'      => true,
  54.         'baseinstalldir'    => '/',
  55.         'packagedirectory'  => './',
  56.         'dir_roles'         => array(
  57.             'docs' => 'doc',
  58.              'examples' => 'doc',
  59.              'tests' => 'test',
  60.              'tests/templates' => 'test',
  61.         ),
  62.     )
  63. );
  64.  
  65. if (PEAR::isError($result)) {
  66.     echo $result->getMessage();
  67.     die();
  68. }
  69.  
  70. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  71.  
  72. $package->addDependency('php''4.3.0''ge''php'false);
  73. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  74. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  75. $package->addDependency('mysql'null'has''ext'false);
  76.  
  77. $package->addglobalreplacement('package-info''@package_version@''version');
  78.  
  79. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  80.     $result $package->writePackageFile();
  81. else {
  82.     $result $package->debugPackageFile();
  83. }
  84.  
  85. if (PEAR::isError($result)) {
  86.     echo $result->getMessage();
  87.     die();
  88. }

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