Get information schema from sqlite db
I want to get a list of all tables and their columns from the current database, like:

     table1
      - column1
      - column2
      - column3
     table2
      - column1
      - column2

I tried:

`SELECT * FROM sqlite_master WHERE type=? ORDER BY name;`

(`?` is `'table'`)

but I get only the table list, without the columns :(

If I remove the WHERE clause I get this error:

    SQLSTATE[HY000]: General error: 25 bind or column index out of range

If I replace `table` with `column` I get nothing...

Help please?

Get information schema from sqlite db
===

I want to get a list of all tables and their columns from the current database, like:

     table1
      - column1
      - column2
      - column3
     table2
      - column1
      - column2

I tried:

`SELECT * FROM sqlite_master WHERE type=? ORDER BY name;`

(`?` is `'table'`)

but I get only the table list, without the columns :(

If I remove the WHERE clause I get this error:

    SQLSTATE[HY000]: General error: 25 bind or column index out of range

If I replace `table` with `column` I get nothing...

Help please?
