Question: I'm developing web site using Yii framework. I need form and use CActiveFormWidget. How can I style input fields and buttons with CSS? Which is the CSS class for button or textfield?

Answer: 
The SQLite API call you are using only accepts SQL:  

"The sqlite3\_exec() interface runs zero or more UTF-8 encoded, semicolon-separate SQL statements passed into its 2nd argument, in the context of the database connection passed in as its 1st argument." [from http://www.sqlite.org/c3ref/exec.html]

If you browse through the source of SQLite you can see that the .output command opens a file and then uses the sqlite3\_snprintf API to write the contents of the query result to the opened file handle.

The most recent source that shows what is happening is here:  

<http://www.sqlite.org/src/artifact/076e1c90d594644f36027c8ecff9a392cf2d3a06>

The relevant part for .output is this:

```
if( c=='o' && strncmp(azArg[0], "output", n)==0 && nArg==2 ){
    if( p->outfile[0]=='|' ){
      pclose(p->out);
    }else{
      output_file_close(p->out);
    }
    p->outfile[0] = 0;
    if( azArg[1][0]=='|' ){
      p->out = popen(&azArg[1][1], "w");
      if( p->out==0 ){
        fprintf(stderr,"Error: cannot open pipe \"%s\"\n", &azArg[1][1]);
        p->out = stdout;
        rc = 1;
      }else{
        sqlite3_snprintf(sizeof(p->outfile), p->outfile, "%s", azArg[1]);
      }
    }else{
      p->out = output_file_open(azArg[1]);
      if( p->out==0 ){
        if( strcmp(azArg[1],"off")!=0 ){
          fprintf(stderr,"Error: cannot write to \"%s\"\n", azArg[1]);
        }
        p->out = stdout;
        rc = 1;
      } else {
        sqlite3_snprintf(sizeof(p->outfile), p->outfile, "%s", azArg[1]);
      }
    }

```
The post seems a bit old, but I just want to update for any visitor looking for similar information. There is an open source C/C++ API for SQLite3 database import/export functions.

The API can be accessed via [here](https://github.com/fnoyanisi)