Remove a few undocumented database-specific methods
This commit is contained in:
parent
9b80d946a9
commit
f640de4e81
@ -91,38 +91,6 @@ class SQLite extends DB_PDO {
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Load a database for the current connection
|
||||
*
|
||||
* @param string $db
|
||||
* @param string $name
|
||||
*/
|
||||
public function load_database($db, $name)
|
||||
{
|
||||
$sql = 'ATTACH DATABASE "'.$db.'" AS "'.$name.'"';
|
||||
$this->query($sql);
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Unload a database from the current connection
|
||||
*
|
||||
* @param string $name
|
||||
*/
|
||||
public function unload_database($name)
|
||||
{
|
||||
$sql = 'DETACH DATABASE ":name"';
|
||||
|
||||
$this->prepare_query($sql, array(
|
||||
':name' => $name,
|
||||
));
|
||||
|
||||
$this->statement->execute();
|
||||
}
|
||||
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Create sql for batch insert
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user