IStorage.StorageReorg (METH) ¶ METHOD StorageReorg : ERROR The reorg function rebuilds the entire storgae. There are several reasons an application might do this: Unless the storgae is running with xAutoReorg = TRUE, when a large amount of data is deleted from the storage file it leaves behind empty space, or “free” storage pages. This means the database file might be larger than strictly necessary. Running the reorg function to rebuild the storage reclaims this space and reduces the size of the storage file. Frequent inserts, updates, and deletes can cause the database file to become fragmented - where data for a single table or index is scattered around the storage file. Running the reorg function ensures that each table and index is largely stored contiguously within the storage file. In some cases, the reorg function may also reduce the number of partially filled pages in the database, reducing the size of the database file further. The reorg function works by copying the contents of the database into a temporary storage file and then overwriting the original with the contents of the temporary file. When overwriting the original, a rollback journal or write-ahead log file is used just as it would be for any other storage transaction. This means that when reorganizing a storage, as much as twice the size of the original database file is required in free disk space. The reorg function will fail if there is an open transaction when it is run. InOut: Scope Name Type Return StorageReorg ERROR
IStorage.StorageSchemaVersion (PROP) ¶ PROPERTY StorageSchemaVersion : DINT
IStorage.StorageUserVersion (PROP) ¶ PROPERTY StorageUserVersion : DINT
IStorage.StorageVersion (PROP) ¶ PROPERTY StorageVersion : DINT
Table ¶ TableOpen (Method)
IStorage.TableOpen (METH) ¶ METHOD TableOpen : ITable InOut: Scope Name Type Return TableOpen ITable Input idTable CAA.IDENT Output eError ERROR
Transaction ¶ TransactionBegin (Method)
IStorage.TransactionBegin (METH) ¶ METHOD TransactionBegin : ITransaction InOut: Scope Name Type Return TransactionBegin ITransaction Input eMode TRANSACTION_MODE Output eError ERROR
Utilities ¶ UtilityGetCurrentDateAndTime (Method) UtilityRandomness (Method)
IStorage.UtilityGetCurrentDateAndTime (METH) ¶ METHOD UtilityGetCurrentDateAndTime : INT64 Julian day numbers, the number of days since noon in Greenwich on November 24, 4714 B.C. according to the proleptic Gregorian calendar InOut: Scope Name Type Return UtilityGetCurrentDateAndTime INT64 Output eError ERROR