A program I'm working on can import data from another program (not ours) that uses sqlite files. I need indices that don't already exist in the sqlite files, but I don't want to have to modify someone's data just to let them import it. The index is used by many queries. Thus, I would like to create a temp index that lives only as long as the connection
I've seen the following obvious syntax referenced (in mailing list messages from 2003...):
$ sqlite3 thirdparty.sqlite
SQLite version 3.7.4
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> CREATE TEMP INDEX foo ON SomeTable(SomeCol);
Error: near "INDEX": syntax error
Is it possible to do something like this? Right now, we're just making a copy of file before the import, but these files can be quite large so that's rather impractical.