load('database')->$db_group; } return new Minion_Migration_Database('__minion_faux', $config); } /** * The query stack used to store queries * @var array */ protected $_queries = array(); /** * Gets the stack of queries that have been executed * * @return array */ public function get_query_stack() { return $this->_queries; } /** * Resets the query stack to an empty state and returns the queries * * @return array Array of SQL queries that would've been executed */ public function reset_query_stack() { $queries = $this->_queries; $this->_queries = array(); return $queries; } /** * Appears to allow calling script to execute an SQL query, but merely logs * it and returns NULL * * @return NULL */ public function query($type, $sql, $as_object = FALSE, array $params = NULL) { $this->_queries[] = $sql; return NULL; } }