Skip to content

Conversation

shmax
Copy link
Contributor

@shmax shmax commented Sep 16, 2023

With this change, pluck works more like the Rails implementation, in that we talk directly to the database and no models are created.

Also:

  • converted Connection::query_and_fetch to return a generator so we can clean up all the ugly callback stuff
  • added Relation::distinct()

@codecov
Copy link

codecov bot commented Sep 16, 2023

Codecov Report

Merging #78 (0887542) into master (28811e3) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master      #78      +/-   ##
============================================
- Coverage     96.26%   96.26%   -0.01%     
+ Complexity      963      960       -3     
============================================
  Files            33       33              
  Lines          2330     2328       -2     
============================================
- Hits           2243     2241       -2     
  Misses           87       87              
Files Changed Coverage Δ
lib/Connection.php 91.56% <100.00%> (ø)
lib/Model.php 98.03% <100.00%> (+<0.01%) ⬆️
lib/Relation.php 100.00% <100.00%> (ø)
lib/SQLBuilder.php 97.36% <100.00%> (+0.01%) ⬆️
lib/Table.php 96.69% <100.00%> (+0.04%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@shmax shmax merged commit 23c36a2 into master Sep 16, 2023
@shmax shmax deleted the optimize-pluck branch September 16, 2023 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant