Jack Carver Mon Jun 27 03:38:28 -0400 2011

Subject: sqlite adapter (probably bug)

if (!file_exists($info->host))
throw new DatabaseException("Could not find sqlite db: $info->host");
$this->connection = new PDO;

when the dbfile located into some folder:
Fatal error: Uncaught exception 'ActiveRecord\DatabaseException' with message 'exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file

I fixed it so:
$db = $info->host . DIRECTORY_SEPARATOR . $info->db;
if (!file_exists($db))
throw new DatabaseException("Could not find sqlite db: $db");
$this->connection = new PDO;