On 5 May 2010 11:08, yogibabu <madra...@interia.pl> wrote: > > in php I declared database object: > $pdo = new PDO('sqlite:mybase.DB3'); > > i know how to get information about engine used in this connection, which > is: > $pdo->getAttribute(PDO::ATTR_DRIVER_NAME); ---> string 'sqlite' > > But I do not know how to get back the actual database file name back from > this object. Is it possible to be done from query to the database itself > (maybe some kind of PRAGMA) or from query to the object.
PRAGMA database_list; see http://www.sqlite.org/pragma.html#pragma_database_list Regards, Simon _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users