-
Notifications
You must be signed in to change notification settings - Fork 200
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
Package: Analytics Engine #399
Open
CraigglesO
wants to merge
29
commits into
cloudflare:master
Choose a base branch
from
CraigglesO:package/analytics-engine
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
6319887
first up
CraigglesO e6351c5
remove TODOs; adjust readmes
CraigglesO 6eac0a4
migrate to execute sql data inside engine code
CraigglesO 3ae1bfd
parse INTERVAL; add test cases
CraigglesO da11a07
interval, complete test cases
CraigglesO b307341
add miniflare api access + tests; drop 'UNIQUE'
CraigglesO a5d2fee
fix options; all analytics exists inside singular db now
CraigglesO cc1547d
add jest testings
CraigglesO 5fb6b54
add jest testings
CraigglesO b2810df
fix get->all; add http testing in minfilare; remove unique
CraigglesO 11b2692
add vitest tests
CraigglesO 13916f2
fix internal problem
CraigglesO d798479
TODATETIME fix
CraigglesO 9b359ac
support QUANTILEWEIGHTED
CraigglesO 39ed5cf
support QUANTILEWEIGHTED
CraigglesO 7cb5d40
add formatting; minor fixes/adjustments
CraigglesO 556d5eb
import sorting fix
CraigglesO 16b28f0
more error cases
CraigglesO 7abffeb
re-arrange
CraigglesO 8e1e310
writeDataPoint is sync
CraigglesO 44dc3d8
minor fixes
CraigglesO c25b639
ensure added functions & keywords are working
CraigglesO 5865e9e
temporarily edit npx-import to get passing tests
CraigglesO 62f63d5
pre-add better-sqlite
CraigglesO 55b1d93
tmp move npx-import
CraigglesO ca5fe4f
ensure TODATETIME sticks to UTC
CraigglesO aabd9fb
update to latest master
CraigglesO c9b272d
first fix set
CraigglesO f93f54e
bug fixes
CraigglesO File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
parse INTERVAL; add test cases
- Loading branch information
commit 3ae1bfd8fb0581e4ab69182f9d8d4e82b326ca08
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like an SQL injection vulnerability. 🙁 Rather than passing values in directly, could you insert placeholders and then fill in the actual values in the
this.#db.prepare()
call? This also means blob values aren't affected by thereplaceAll
calls below?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused on this if you don't mind expounding. I'm only inserting
blob1, blob2, ...
,@blob1, @blob2, ...
and the same for doubles depending upon length as far as I am aware.