enumCopyForceKind
enum CopyForceKind
Public API: explicitly declared with
@visibility public.Which FORCE option of the old COPY syntax an item sets: FORCE QUOTE, FORCE NOT NULL or FORCE NULL.
Each sets the generic option force_quote, force_not_null or force_null. Source: https://www.postgresql.org/docs/17/sql-copy.html#id-1.9.3.55.10.
$copy = (new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('COPY t FROM STDIN CSV FORCE NOT NULL a');
$copy->statement->legacy[1]->kind // => \SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForceKind::NotNullCases§
case Quotecase NotNullcase NullTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Constant reads 12
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:64
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:65
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:66
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:67
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:68
- class-const SqlSemantics\Platform\PostgreSql\Lowering\Manipulation\CopyOptionRule packages/sql-semantics-postgres/src/Lowering/Manipulation/CopyOptionRule.php:69
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForce::option() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyForce.php:57
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForce::option() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyForce.php:58
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForce::option() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyForce.php:59
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForce::render() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyForce.php:69
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForce::render() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyForce.php:70
- class-const SqlSemantics\Platform\PostgreSql\Statement\Manipulation\Copy\CopyForce::render() packages/sql-semantics-postgres/src/Statement/Manipulation/Copy/CopyForce.php:71