nlib
sqlite3.h File Reference

Includes the original sqlite3.h and declares the nLib independent extended function. More...

#include "sqlite3.h"

Go to the source code of this file.

Functions

int sqlite3_nlib_set_directory (int type, const char *dir)
 Sets the directory for SQLite3. More...
 

Detailed Description

Includes the original sqlite3.h and declares the nLib independent extended function.

Definition in file sqlite3.h.

Function Documentation

◆ sqlite3_nlib_set_directory()

sqlite3_nlib_set_directory ( int  type,
const char *  dir 
)

Sets the directory for SQLite3.

Parameters
[in]typeSQLITE_NLIB_DATA_DIRECTORY_TYPE or SQLITE_NLIB_TEMP_DIRECTORY_TYPE.
[in]dirThe directory to set.
Returns
Returns SQLITE_OK when successful.
Description
  • SQLITE_NLIB_DATA_DIRECTORY_TYPE specifies a database file directory.
  • SQLITE_NLIB_TEMP_DIRECTORY_TYPE specifies a directory created by a temporary file.
You must set both types of directories ahead of time if you are accessing files.
Examples:
oss/readsqldb/readsqldb.cpp.