Vacuum a database
#include <qdb/qdb.h>
int qdb_vacuum ( qdb_hdt_t *db,
int scope );
qdb
This function starts a vacuum operation on the specified database and any auto-attached databases (which are listed in the main databases' .aa file). This is an alternative to using the VACUUM command for each database.
You can call qdb_getdbsize() to determine whether a database should be vacuumed.
If the auto-vacuum mode is enabled (see the PRAGMA SQL command for details), databases are vacuumed whenever free space is created. By default, auto-vacuum mode is disabled.
QNX Neutrino
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |