SQLITE3_DESTRUCTOR_TYPE(3) Library Functions Manual SQLITE3_DESTRUCTOR_TYPE(3)

sqlite3_destructor_type, SQLITE_STATIC, SQLITE_TRANSIENTconstants defining special destructor behavior

#include <sqlite3.h>

typedef void (*sqlite3_destructor_type)(void*);

#define SQLITE_STATIC
#define SQLITE_TRANSIENT

These are special values for the destructor that is passed in as the final argument to routines like (). If the destructor argument is SQLITE_STATIC, it means that the content pointer is constant and will never change. It does not need to be destroyed. The SQLITE_TRANSIENT value means that the content will likely change in the near future and that SQLite should make its own private copy of the content before returning.

The typedef is necessary to work around problems in certain C++ compilers.

These declarations were extracted from the interface documentation at line 6029.

typedef void (*sqlite3_destructor_type)(void*);
#define SQLITE_STATIC      ((sqlite3_destructor_type)0)
#define SQLITE_TRANSIENT   ((sqlite3_destructor_type)-1)

sqlite3_result_blob(3)

January 24, 2024 NetBSD 11.0