|
relx 0.1.0
A Modern C++23 Type-Safe SQL Query Builder
|
Represents a foreign key constraint on a table. More...
#include <relx/schema/foreign_key.hpp>
Public Member Functions | |
| foreign_key () | |
| Default constructor. | |
| foreign_key (reference_action on_delete, reference_action on_update) | |
| Constructor with custom actions. | |
| std::string | sql_definition () const |
| Get SQL definition for the FOREIGN KEY constraint. | |
Represents a foreign key constraint on a table.
| LocalColumnPtr | Pointer to the local column |
| ReferencedColumnPtr | Pointer to the referenced column |
Definition at line 42 of file foreign_key.hpp.
|
inline |
Default constructor.
Definition at line 45 of file foreign_key.hpp.
|
inline |
Constructor with custom actions.
Definition at line 51 of file foreign_key.hpp.
|
inline |
Get SQL definition for the FOREIGN KEY constraint.
Definition at line 56 of file foreign_key.hpp.