Subversion-Projekte lars-tiefland.ci

Revision

Revision 68 | Revision 2049 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 68 Revision 1257
Zeile 85... Zeile 85...
85
	 * Create database
85
	 * Create database
86
	 *
86
	 *
87
	 * @param	string	$db_name
87
	 * @param	string	$db_name
88
	 * @return	bool
88
	 * @return	bool
89
	 */
89
	 */
90
	public function create_database($db_name = '')
90
	public function create_database($db_name)
91
	{
91
	{
92
		// In SQLite, a database is created when you connect to the database.
92
		// In SQLite, a database is created when you connect to the database.
93
		// We'll return TRUE so that an error isn't generated
93
		// We'll return TRUE so that an error isn't generated
94
		return TRUE;
94
		return TRUE;
95
	}
95
	}
Zeile 100... Zeile 100...
100
	 * Drop database
100
	 * Drop database
101
	 *
101
	 *
102
	 * @param	string	$db_name	(ignored)
102
	 * @param	string	$db_name	(ignored)
103
	 * @return	bool
103
	 * @return	bool
104
	 */
104
	 */
105
	public function drop_database($db_name = '')
105
	public function drop_database($db_name)
106
	{
106
	{
107
		// In SQLite, a database is dropped when we delete a file
107
		// In SQLite, a database is dropped when we delete a file
108
		if (file_exists($this->db->database))
108
		if (file_exists($this->db->database))
109
		{
109
		{
110
			// We need to close the pseudo-connection first
110
			// We need to close the pseudo-connection first