Table of Contents

TEnableForeignKeysCommand Class

DDL command that enables or disables foreign key enforcement on the database connection.

Remarks

Used exclusively for SQLite, which requires foreign keys to be disabled before dropping tables and re-enabled afterwards. Generates a PRAGMA foreign_keys = ON/OFF statement.

Syntax

Unit: Aurelius.Schema.Commands

TEnableForeignKeysCommand = class(TDDLCommand);

Constructors

Name Description
Create Creates a TEnableForeignKeysCommand that enables or disables foreign key enforcement.

Properties

Name Description
Enable Indicates whether this command enables (True) or disables (False) foreign key enforcement.