cycle / database

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

Add the ability to disable cache #137

Closed msmakouz closed 8 months ago

msmakouz commented 9 months ago

The ability to disable caching has been introduced by using the Cycle\Database\Database class or driver classes that inherit from Cycle\Database\Driver\Driver. This can be beneficial in certain scenarios, such as when inserting large volumes of data with varying numbers of elements in each query. In such a situation, each query differs from the previous one and caches.

Part of #136

codecov[bot] commented 9 months ago

Codecov Report

Merging #137 (2cbe8b0) into 2.x (73d5f47) will increase coverage by 0.31%. Report is 42 commits behind head on 2.x. The diff coverage is 100.00%.

@@             Coverage Diff              @@
##                2.x     #137      +/-   ##
============================================
+ Coverage     94.71%   95.02%   +0.31%     
- Complexity     1682     1795     +113     
============================================
  Files            96      128      +32     
  Lines          4522     4945     +423     
============================================
+ Hits           4283     4699     +416     
- Misses          239      246       +7     
Files Coverage Δ
src/Database.php 100.00% <100.00%> (ø)
src/Driver/Driver.php 93.08% <100.00%> (+0.20%) :arrow_up:

... and 45 files with indirect coverage changes