Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

部分实现$random (#20) #24

Closed
wants to merge 4 commits into from
Closed

Conversation

ifrvn
Copy link
Contributor

@ifrvn ifrvn commented Apr 13, 2023

#20

支持了SQLite和MySQL,可以使用.orderBy(() => $.random())来让数据库随机排序了。不接受参数。

core里的Eval.*** = 部分不是很理解,是在memory里用的?不确定是不是这么写

mongo不太熟,不会改...

@codecov
Copy link

codecov bot commented Apr 13, 2023

Codecov Report

Merging #24 (d24c21d) into master (fbb2248) will decrease coverage by 0.04%.
The diff coverage is 90.32%.

@@            Coverage Diff             @@
##           master      #24      +/-   ##
==========================================
- Coverage   97.83%   97.80%   -0.04%     
==========================================
  Files          23       23              
  Lines        4525     4548      +23     
  Branches     1068     1093      +25     
==========================================
+ Hits         4427     4448      +21     
- Misses         98      100       +2     
Impacted Files Coverage Δ
packages/sql-utils/src/index.ts 97.46% <85.71%> (-0.43%) ⬇️
packages/core/src/eval.ts 94.53% <100.00%> (+0.14%) ⬆️
packages/mysql/src/index.ts 97.66% <100.00%> (+<0.01%) ⬆️
packages/sqlite/src/index.ts 96.81% <100.00%> (+<0.01%) ⬆️

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

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