relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
Loading...
Searching...
No Matches
relx::migrations::DropTableOperation< Table > Class Template Reference

DROP TABLE migration operation. More...

#include <relx/migrations/core.hpp>

Inheritance diagram for relx::migrations::DropTableOperation< Table >:
relx::migrations::MigrationOperation

Public Member Functions

 DropTableOperation (const Table &table)
 
MigrationResult< std::string > to_sql () const override
 
MigrationResult< std::string > rollback_sql () const override
 
OperationType type () const override
 
- Public Member Functions inherited from relx::migrations::MigrationOperation
virtual ~MigrationOperation ()=default
 
virtual MigrationResult< std::vector< std::string > > bind_params () const
 
virtual MigrationResult< std::vector< std::string > > rollback_bind_params () const
 

Detailed Description

template<schema::TableConcept Table>
class relx::migrations::DropTableOperation< Table >

DROP TABLE migration operation.

Definition at line 122 of file core.hpp.

Constructor & Destructor Documentation

◆ DropTableOperation()

template<schema::TableConcept Table>
relx::migrations::DropTableOperation< Table >::DropTableOperation ( const Table &  table)
inlineexplicit

Definition at line 127 of file core.hpp.

Member Function Documentation

◆ rollback_sql()

template<schema::TableConcept Table>
MigrationResult< std::string > relx::migrations::DropTableOperation< Table >::rollback_sql ( ) const
inlineoverridevirtual

Implements relx::migrations::MigrationOperation.

Definition at line 140 of file core.hpp.

◆ to_sql()

template<schema::TableConcept Table>
MigrationResult< std::string > relx::migrations::DropTableOperation< Table >::to_sql ( ) const
inlineoverridevirtual

Implements relx::migrations::MigrationOperation.

Definition at line 129 of file core.hpp.

◆ type()

template<schema::TableConcept Table>
OperationType relx::migrations::DropTableOperation< Table >::type ( ) const
inlineoverridevirtual

Implements relx::migrations::MigrationOperation.

Definition at line 151 of file core.hpp.


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