Declaration
TnxAbstractDatabase = class(TnxAbstractTimeoutObject)
Description
The abstract declaration of a Server Database. All actual database implementations MUST be descendent from this class. This is the server side version of TnxDatabase.
Methods
see TObject.AfterConstruction
see TObject.BeforeDestruction.
constructor
This function opens a new cursor for a table and returns an instance of a descendent of TnxAbstractCursor. Each table can have as many Cursors as wanted active at the same time
destructor.
This function returns the free space of the device the database is stored on. Result is in bytes.
The text for this method has been generated automatically. This means that it is not documented.
This is the class function that returns the object with a certain ID.
The text for this method has been generated automatically. This means that it is not documented.
With TableAddIndex you can create a new index.
This function returns the next AutoInc value for the specified table.
This function creates a new table.
This function deletes the table with the given aTableName.
This function deletes an index.
This function deletes all records from the table with the given aTableName.
With TableGetDictionary you can fill a TnxDataDictionary instance with the information about an existing table.
TableGetList fills the given aList with all table names of the current database.
This method starts an asynchronous packing of the table. For this purpose a new identical table is created and the records are copied over from the old one.
ReIndexTable starts an asynchronous re indexing of a certain index of a table.
This function walks all the blocks in the table on disk, and copies healthy records to aTableName_recovered, and copies bad records to aTableName_Failed.
This function renames a table from aOldName to aNewName, it the table is not in use.
With this method you can start an asynchronous restructure of a given table.
This method commits a pending transaction (level). If an error occurs (e.g. deadlock detected or transaction level has been marked as corrupted) the transaction is not automatically rolled back.
This method marks the transaction (level) as corrupted and thus preventing it from ever being committed.
This method returns the nesting level of the current transaction.
Rollback rolls (as the name says) back a pending transaction (level). All changes since the last StartTransaction (or equivalent) call are lost.
Start a transaction if an exclusive lock can be granted on all specified cursors. If the grant fails one or more tables or an error occurs, an error code is returned.
Properties
This property returns the session the database is linked to.
File