Re: [sqlite] how to list table making a view

2005-05-27 Thread Lawrence Chitty
Dennis Cote wrote: Lawrence Chitty wrote: From what you explain above, would the following approach work to see if NDEBUG defined. > explain select null from sqlite_master. Now look for the OpenRead and see if p3 is a number (NDEBUG not defined) or 'sqlite_master' (NDEBUG defined). This is

Re: [sqlite] how to list table making a view

2005-05-27 Thread Dennis Cote
Lawrence Chitty wrote: From what you explain above, would the following approach work to see if NDEBUG defined. > explain select null from sqlite_master. Now look for the OpenRead and see if p3 is a number (NDEBUG not defined) or 'sqlite_master' (NDEBUG defined). This is one table we always

Re: [sqlite] how to list table making a view

2005-05-27 Thread Lawrence Chitty
Dennis Cote wrote: Noel Frankinet wrote: Lawrence Chitty wrote: You may be able to do this using the 'explain' statement for example, I have a view called 'myview'. Wrapping this into an sql select statement and proceeding this with explain e.g. > explain select null from myview gives a

Re: [sqlite] how to list table making a view

2005-05-27 Thread Noel Frankinet
Dennis Cote wrote: Noel Frankinet wrote: Lawrence Chitty wrote: You may be able to do this using the 'explain' statement for example, I have a view called 'myview'. Wrapping this into an sql select statement and proceeding this with explain e.g. > explain select null from myview gives a

Re: [sqlite] how to list table making a view

2005-05-27 Thread Dennis Cote
Noel Frankinet wrote: Lawrence Chitty wrote: You may be able to do this using the 'explain' statement for example, I have a view called 'myview'. Wrapping this into an sql select statement and proceeding this with explain e.g. > explain select null from myview gives a result set with the

Re: [sqlite] how to list table making a view

2005-05-27 Thread Noel Frankinet
Lawrence Chitty wrote: Noel Frankinet wrote: Hello, Is there a better way to list all table making a view than parsing SQL. Is there an API ? You may be able to do this using the 'explain' statement for example, I have a view called 'myview'. Wrapping this into an sql select statement a

Re: [sqlite] how to list table making a view

2005-05-26 Thread Lawrence Chitty
Noel Frankinet wrote: Hello, Is there a better way to list all table making a view than parsing SQL. Is there an API ? You may be able to do this using the 'explain' statement for example, I have a view called 'myview'. Wrapping this into an sql select statement and proceeding this with ex

Re: [sqlite] how to list table making a view

2005-05-26 Thread Noel Frankinet
Hans Bieshaar wrote: Noël Frankinet wrote: >Is there a better way to list all table making a view than parsing SQL. >Is there an API ? >I would like to show all table in a view (in a tree-view gadget). >Same question for the table schema, I do parse the SQL but its rather >fragile. I

Re: [sqlite] how to list table making a view

2005-05-26 Thread Peter Hermsdorf
are you looking for something like select * from sqlite_master; ? bye, peter Noel Frankinet wrote: Hello, Is there a better way to list all table making a view than parsing SQL. Is there an API ? I would like to show all table in a view (in a tree-view gadget). Same question for the table s

RE: [sqlite] how to list table making a view

2005-05-26 Thread Hans Bieshaar
Noël Frankinet wrote: >Is there a better way to list all table making a view than parsing SQL. >Is there an API ? >I would like to show all table in a view (in a tree-view gadget). >Same question for the table schema, I do parse the SQL but its rather >fragile. I am having a bit of di

[sqlite] how to list table making a view

2005-05-26 Thread Noel Frankinet
Hello, Is there a better way to list all table making a view than parsing SQL. Is there an API ? I would like to show all table in a view (in a tree-view gadget). Same question for the table schema, I do parse the SQL but its rather fragile. I'm still in 2.8 Thank you. -- Noël Frankinet Gis