-
Notifications
You must be signed in to change notification settings - Fork 162
feat: new query syntax #185
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
Merged
Changes from 88 commits
Commits
Show all changes
92 commits
Select commit
Hold shift + click to select a range
0450cff
starting point...
samwillis 7f6b55a
checkpoint
samwillis 19b8749
checkpoint
samwillis e28ec03
tests
samwillis 3c7ced9
more
samwillis 7d03505
tidy
samwillis 2211d48
checkpoint
samwillis 5cc2b8a
more
samwillis d9cbd36
basic test of full build -> compile -> run
samwillis 197e04a
checkpoint
samwillis 85f6519
more
samwillis 006898b
WIP groupby
samwillis c640cbf
groupby with having
samwillis f5118c0
fix lint errors
samwillis 33f724e
fix lint warnings
samwillis e7f9cd5
fix tets
samwillis 119d193
fix test type errors
samwillis 9171963
fix lint
samwillis b4f0c2f
move tests
samwillis d6dc39c
fix return type for select
samwillis ffbc839
fix return type when no select
samwillis 4ae3cba
fix lint errors
samwillis 976bd07
update d2mini
samwillis f04e87f
Merge branch 'main' into query2
samwillis d1276bb
type tests
samwillis 8d213dd
test for query with no select
samwillis b200a43
join tests
samwillis c76996f
tidy
samwillis a83e432
fix test
samwillis fe8e23b
fix join types
samwillis 839a0e9
remove unused fn
samwillis 2339381
move type tests out into test-d files
samwillis de646c0
tests for the query builder callback enspression builder types and fi…
samwillis 29ab969
test subqueries
samwillis ea051af
fix types for refs and results in joins
samwillis 2aba326
fix lint
samwillis 7ef09d7
Merge branch 'main' into query2
samwillis 4e51e94
fix after merge
samwillis 2ba4cd6
enable use of spread in a select expression
samwillis bc85141
subquery compiling caching to dedupe
samwillis 12dceae
simplify funciton sigs
samwillis b159b3a
compiling rather than evaluation of expressions
samwillis e011f5c
refactor compiled pipeline to have better structure
samwillis 0c67aee
checkpoint before checking out cursor/implement-prd-proposals-and-run…
samwillis c7c80d3
Merge branch 'main' into query2
samwillis 353e0fc
refactor orderby
samwillis 4723520
fix tests
samwillis eb4ed13
remove old query engine
samwillis dcfc38d
tidy
samwillis f43ddd7
more tests
samwillis d58b12f
remove unused utils
samwillis b175c11
remove files
samwillis ec5f3c4
Merge branch 'main' into query2
samwillis 460a153
incorporate collection lifecycle into live queries
samwillis 6b7d116
ensure that live queries are not set to ready untill all their source…
samwillis c701c9a
port over missing change
samwillis c5dbf89
wip react useLiveQuery
samwillis 87fe4f6
Merge branch 'main' into query2
samwillis 44be0f6
wip tests
samwillis ffe3929
vue useLiveQuery WIP
samwillis 702b915
tidy
samwillis deb731f
fix lint warnings
samwillis 761954d
add a failing for for insert-update-delete with orderBy
samwillis 02a6615
add a new rowUpdateMode option, fixes orderby
samwillis 6dccf10
remove store dep
samwillis ab6835f
react useLiveQuery can be passed a collection
samwillis 5c654ab
passing a collection to the react and vue useLiveQuery done
samwillis 1a9f9ba
fix types
samwillis a315a5d
declutter type prompt in query builder
samwillis 8e1368d
WIP functional variants of the select, where and having query builder…
samwillis 59b065c
jsdoc for the query builder
samwillis c200ea8
remove alias in test for isIn
samwillis 5d8f995
fix multiple where/having clauses
samwillis c485605
rename isIn to inArray
samwillis 6435efa
wip change exmaple to use new query syntax
samwillis a8b7bdb
Merge branch 'main' into query2
samwillis 04f8e50
fix type bug
samwillis d5a2afc
wip fixes to example
samwillis 47bf1ff
bump d2mini to latest - fixes multi batch joins
samwillis 029c3ad
ensure that the status is set before sending the batch of messages
samwillis b2e8e19
batch events from optimistic removal when applying sync
samwillis 0bf575e
fix type errors in demo
samwillis a45f497
rename derived to optimistic
samwillis e0f31f1
make react useLiveQuery data and state values lazy
samwillis 502b33e
make vue useLiveQuery more fine grade
samwillis 24bdccd
fix linting
samwillis 55b162d
update overview docs to use new syntax
samwillis 4992c5f
tidy up map like methods
samwillis 1b73361
use useSyncExternalStore for useLiveQuery (#225)
samwillis 45bd564
Merge branch 'main' into query2
samwillis e125e90
post review changes
samwillis 8b3086a
enable a `new Query.from(...) syntax
samwillis 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
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.