From 4d02a63e6408e718a70ab93d9cdde051799083a5 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 16 Nov 2006 22:30:15 +0000 Subject: [PATCH] added firebird export driver --- lib/Doctrine/Export/Firebird.php | 58 ++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lib/Doctrine/Export/Firebird.php diff --git a/lib/Doctrine/Export/Firebird.php b/lib/Doctrine/Export/Firebird.php new file mode 100644 index 000000000..ef013a322 --- /dev/null +++ b/lib/Doctrine/Export/Firebird.php @@ -0,0 +1,58 @@ +. + */ +Doctrine::autoload('Doctrine_Export'); +/** + * Doctrine_Export_Sqlite + * + * @package Doctrine + * @author Konsta Vesterinen + * @author Lukas Smith (PEAR MDB2 library) + * @author Lorenzo Alberton (PEAR MDB2 Interbase driver) + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Export_Firebird extends Doctrine_Export { + /** + * create a new database + * + * @param string $name name of the database that should be created + * @return void + */ + public function createDatabase($name) { + throw new Doctrine_Export_Firebird_Exception( + 'PHP Interbase API does not support direct queries. You have to ' . + 'create the db manually by using isql command or a similar program'); + } + /** + * drop an existing database + * + * @param string $name name of the database that should be dropped + * @return void + */ + public function dropDatabase($name) { + throw new Doctrine_Export_Firebird_Exception( + 'PHP Interbase API does not support direct queries. You have ' . + 'to drop the db manually by using isql command or a similar program'); + } +}