Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
dbad2625
Commit
dbad2625
authored
Dec 28, 2006
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Doctrine_Import driver base methods added
parent
e4fe1825
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
93 additions
and
26 deletions
+93
-26
Import.php
lib/Doctrine/Import.php
+93
-26
No files found.
lib/Doctrine/Import.php
View file @
dbad2625
...
...
@@ -18,18 +18,13 @@
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
Doctrine
::
autoload
(
'Doctrine_Connection_Module'
);
/**
* class Doctrine_Import
* Main responsible of performing import operation. Delegates database schema
* reading to a reader object and passes the result to a builder object which
* builds a Doctrine data model.
*
* @package Doctrine
* @category Object Relational Mapping
* @link www.phpdoctrine.com
...
...
@@ -37,40 +32,112 @@
* @since 1.0
* @version $Revision$
* @author Konsta Vesterinen <kvesteri@cc.hut.fi>
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
*/
class
Doctrine_Import
{
class
Doctrine_Import
extends
Doctrine_Connection_Module
{
/**
* lists all databases
*
* @return array
*/
public
function
listDatabases
()
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists all availible database functions
*
* @return array
*/
public
function
listFunctions
()
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists all database triggers
*
* @param string|null $database
* @return array
*/
public
function
listTriggers
(
$database
=
null
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists all database sequences
*
* @param string|null $database
* @return array
*/
public
function
listSequences
(
$database
=
null
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists table constraints
*
* @param string $table database table name
* @return array
*/
public
function
listTableConstraints
(
$table
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* @var Doctrine_Import_Reader $reader
* lists table constraints
*
* @param string $table database table name
* @return array
*/
private
$reader
;
public
function
listTableColumns
(
$table
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* @var Doctrine_Import_Builder $builder
* lists table constraints
*
* @param string $table database table name
* @return array
*/
private
$builder
;
public
function
listTableIndexes
(
$table
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists tables
*
* @param string|null $database
* @return array
*/
public
function
listTables
(
$database
=
null
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists table triggers
*
* @param string $table database table name
* @return array
*/
public
function
listTableTriggers
(
$table
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists table views
*
* @
return
* @
access public
* @
param string $table database table name
* @
return array
*/
public
function
import
(
)
{
public
function
listTableViews
(
$table
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
);
}
/**
* lists database users
*
* @param Doctrine_Import_Reader reader
* @return void
* @return array
*/
public
function
setReader
(
Doctrine_Import_Reader
$reader
)
{
$this
->
reader
=
$reader
;
public
function
listUsers
()
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
)
;
}
/**
* lists database views
*
* @param
Doctrine_Import_Builder builder
* @return
void
* @param
string|null $database
* @return
array
*/
public
function
setBuilder
(
Doctrine_Import_Builder
$builder
)
{
$this
->
builder
=
$builder
;
public
function
listViews
(
$database
=
null
)
{
throw
new
Doctrine_Import_Exception
(
__FUNCTION__
.
' not supported by this driver.'
)
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment