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

AfterConstruction

see TObject.AfterConstruction

BeforeDestruction

see TObject.BeforeDestruction.

Create

constructor

CursorOpen

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

Destroy

destructor.

GetFreespace

This function returns the free space of the device the database is stored on. Result is in bytes.

GetPath

The text for this method has been generated automatically. This means that it is not documented.

LookupByID

This is the class function that returns the object with a certain ID.

StatementAlloc

StatementExecDirect

The text for this method has been generated automatically. This means that it is not documented.

TableAddIndex

With TableAddIndex you can create a new index.

TableAutoIncGet

This function returns the next AutoInc value for the specified table.

TableBuild

This function creates a new table.

TableDelete

This function deletes the table with the given aTableName.

TableDropIndex

This function deletes an index.

TableEmpty

This function deletes all records from the table with the given aTableName.

TableExists

TableGetDictionary

With TableGetDictionary you can fill a TnxDataDictionary instance with the information about an existing table.

TableGetList

TableGetList fills the given aList with all table names of the current database.

TablePack

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.

TableRebuildIndex

ReIndexTable starts an asynchronous re indexing of a certain index of a table.

TableRecover

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.

TableRename

This function renames a table from aOldName to aNewName, it the table is not in use.

TableRestructure

With this method you can start an asynchronous restructure of a given table.

TransactionCommit

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.

TransactionCorrupted

This method marks the transaction (level) as corrupted and thus preventing it from ever being committed.

TransactionGetLevel

This method returns the nesting level of the current transaction.

TransactionRollback

Rollback rolls (as the name says) back a pending transaction (level). All changes since the last StartTransaction (or equivalent) call are lost.

TransactionStart

TransactionStartWith

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

Session

This property returns the session the database is linked to.

 
File

 
nxsdServerEngine

Home | Site Contents | Documentation | NexusDB Manual V4 | Class Reference | Symbol Reference | Classes