Lightweight 0.20260213.0
Loading...
Searching...
No Matches
Lightweight::SqlDropTablePlan Struct Reference

Represents a SQL DROP TABLE plan. More...

#include <MigrationPlan.hpp>

Public Attributes

std::string_view schemaName
 The schema name of the table to drop.
 
std::string_view tableName
 The name of the table to drop.
 
bool ifExists { false }
 If true, generates DROP TABLE IF EXISTS instead of DROP TABLE.
 
bool cascade { false }
 

Detailed Description

Represents a SQL DROP TABLE plan.

Definition at line 394 of file MigrationPlan.hpp.

Member Data Documentation

◆ schemaName

std::string_view Lightweight::SqlDropTablePlan::schemaName

The schema name of the table to drop.

Definition at line 397 of file MigrationPlan.hpp.

◆ tableName

std::string_view Lightweight::SqlDropTablePlan::tableName

The name of the table to drop.

Definition at line 400 of file MigrationPlan.hpp.

◆ ifExists

bool Lightweight::SqlDropTablePlan::ifExists { false }

If true, generates DROP TABLE IF EXISTS instead of DROP TABLE.

Definition at line 403 of file MigrationPlan.hpp.

◆ cascade

bool Lightweight::SqlDropTablePlan::cascade { false }

If true, drops all foreign key constraints referencing this table first. On PostgreSQL, uses CASCADE. On MS SQL, drops FK constraints explicitly.

Definition at line 407 of file MigrationPlan.hpp.


The documentation for this struct was generated from the following file: