Create an memory-resident database

saf_setProps_MemoryResident is a function defined in dbprops.c.

Synopsis:

int saf_setProps_MemoryResident(SAF_DbProps *properties)

Description: Setting this property permits the creation of a memory-resident database. A memory-resident database is convenient for creating objects that you would like to be transient. All objects created in a memory-resident database will be lost when the database is closed.

Preconditions:

  • properties must not be null. (low-cost)

Return Value: The constant SAF__SUCCESS is returned when this function is successful. Otherwise this function either returns an error number or throws an exception, depending on the value of the library’s error handling property.

Parallel Notes: This function can be called independently, however all tasks must agree whether promise mode is to be used for a particular database when that database is opened.

See Also: