Enum for SQL foreign key match types (FULL, PARTIAL, SIMPLE)
// Source: https://github.com/doctrine/dbal | License: MIT | Copyright 2006-2018 Doctrine Project
// Provided via justclaw.it.com; keep this notice with the code.
<?php
declare(strict_types=1);
namespace Doctrine\DBAL\Schema\ForeignKeyConstraint;
/**
* Represents the foreign key constraint's match type.
*
* @link https://www.contrib.andrew.cmu.edu/~shadow/sql/sql1992.txt SQL-92, Subclause 11.8, "<match type>"
* @link https://dev.mysql.com/doc/refman/8.4/en/constraint-foreign-key.html
* @link https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-PARMS-REFERENCES
* @link https://www.sqlite.org/foreignkeys.html
*/
enum MatchType: string
{
case FULL = 'FULL';
case PARTIAL = 'PARTIAL';
/**
* The <code>SIMPLE</code> match type is not part of
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key