Is there any way to change the sqlite3_temp_directory global?  I'm running
sqlite under iis and the user doesn't have write access to their temp
directory.

 

I've made my own little function and exported it through the def file.  Is
it possible to include something like this in a future release, I'd really
like to keep to the standard dll.  Maybe there's some way to get at the
global from my application?

 

Here's my function:

 

int sqlite3_set_temp_directory(char *zBuf){

  if ( zBuf==0 ) return 0;

  // can't set it again

  if ( sqlite3_temp_directory ) return 0;

  sqlite3_temp_directory = sqliteMalloc(strlen(zBuf) + 1);

  strcpy(sqlite3_temp_directory, zBuf);

  return 1;

}

 

Thanks.

 

Reply via email to