cycle / database

Database Abstraction Layer, Schema Introspection, Schema Generation, Query Builders
MIT License
53 stars 22 forks source link

Add `enableForeignKeyConstraints` and `disableForeignKeyConstraints` methods #130

Closed msmakouz closed 9 months ago

msmakouz commented 10 months ago

What was changed

Added enableForeignKeyConstraints and disableForeignKeyConstraints methods. These methods can be useful, for example, in testing.

codecov[bot] commented 10 months ago

Codecov Report

Merging #130 (e0ebfdc) into 2.x (fc0c2da) will increase coverage by 0.02%. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x     #130      +/-   ##
============================================
+ Coverage     94.68%   94.70%   +0.02%     
- Complexity     1666     1676      +10     
============================================
  Files            96       96              
  Lines          4494     4512      +18     
============================================
+ Hits           4255     4273      +18     
  Misses          239      239              
Files Changed Coverage Δ
src/Driver/MySQL/MySQLHandler.php 94.54% <100.00%> (+0.42%) :arrow_up:
src/Driver/Postgres/PostgresHandler.php 96.29% <100.00%> (+0.29%) :arrow_up:
src/Driver/SQLServer/SQLServerHandler.php 93.44% <100.00%> (+0.71%) :arrow_up:
src/Driver/SQLite/SQLiteHandler.php 90.36% <100.00%> (+0.48%) :arrow_up: