Table of Contents

ISQLGenerator.GenerateEnableForeignKeys Method

Generates a SQL statement that enables or disables all foreign key constraint checks in the database.

Syntax

Unit: Aurelius.Sql.Interfaces

function ISQLGenerator.GenerateEnableForeignKeys(AEnable: Boolean): string; virtual; abstract;

Parameters

<-> Parameter Type Description
AEnable Boolean When True, generates a statement to enable foreign key checks; when False, generates a statement to disable them.

Returns

The SQL statement that enables or disables foreign key enforcement, or an empty string if the database does not support this operation.

See also