pragma database_list returns record set as any select statement. So
you can capture this record set from C code as you do with any other
select statement and based on that make your checking as you need.

Pavel

On Tue, Dec 15, 2009 at 12:58 PM, Angelo <ang.mont.c...@gmail.com> wrote:
> Hi to everybody,
>
> I'm using sqlite 3.6.16 both shell and C api.
> I need to make automatic check (from C code) of the opened database files (not
> connections) . With sqlite3_column_database_name I get just main, temp and not
> the name of the hard disk database file. From the shell I use pragma
> database_list and it's ok, but it's a manual check, not automatic. Is there a
> way to use the pragma database_list command and capture the output to make the
> automatic check in C code ?
>
> Thanks in advance
> Angelo
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to