Sparksee
6.0.2
|
Database class. More...
Instance Methods | |
(NSString *) | - getAlias |
Gets the alias of the Database. More... | |
(NSString *) | - getPath |
Gets the path of the Database. More... | |
(STSSession *) | - createSession |
Creates a new Session. | |
(void) | - enableRollback |
Enables the rollback mechanism. | |
(void) | - disableRollback |
Disables the rollback mechanism. | |
(void) | - getStatistics: |
Gets Database statistics. More... | |
(int) | - getCacheMaxSize |
Gets the cache maximum size (in MB). More... | |
(void) | - setCacheMaxSize: |
Sets the cache maximum size (in MB). More... | |
(void) | - fixCurrentCacheMaxSize |
Sets the cache maximum size to the current cache size in use. | |
(void) | - dumpSchema: |
Dump the database schema to the given file using the Sparksee scripting format. More... | |
(void) | - redoPrecommitted: |
Redo a pending precommitted transaction recovered. More... | |
(void) | - close |
Closes the Database instance. More... | |
(BOOL) | - isClosed |
Check if the Database instance is closed. | |
Database class.
All the data of the Database is stored into a persistent file which just can be created or open through a Sparksee instance.
Also, all the manipulation of a Database must be done by means of a Session which can be initiated from a Database instance.
Multiple Databases do not share the memory, that is there is no negotiation among them. In those cases, memory must be prefixed for each Database. To do that, use the SPARKSEEConfig.
- (void) close |
Closes the Database instance.
It must be called to ensure the integrity of all data.
- (void) dumpSchema: | (NSString *) | filePath |
Dump the database schema to the given file using the Sparksee scripting format.
filePath | null |
- (NSString*) getAlias |
Gets the alias of the Database.
- (int) getCacheMaxSize |
Gets the cache maximum size (in MB).
- (NSString*) getPath |
Gets the path of the Database.
- (void) getStatistics: | (STSDatabaseStatistics *) | stats |
Gets Database statistics.
stats | [out] The DatabaseStatistics instance. |
- (void) redoPrecommitted: | (long long) | txId |
Redo a pending precommitted transaction recovered.
YOU SHOULD NOT USE THIS METHOD. This method only exists for a specific service.
txId | null |
- (void) setCacheMaxSize: | (int) | megaBytes |
Sets the cache maximum size (in MB).
0 means unlimited which is all the physical memory of the computer minus a small margin.
megaBytes | [in] The new cache max size. |