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

feat(store-sync): add util to fetch snapshot from indexer with SQL API #2996

Merged
merged 32 commits into from
Sep 18, 2024

Conversation

alvrs
Copy link
Member

@alvrs alvrs commented Jul 31, 2024

Adding utils and docs to interact with experimental SQL API

Copy link

changeset-bot bot commented Jul 31, 2024

🦋 Changeset detected

Latest commit: b04a4d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 26 packages
Name Type
@latticexyz/protocol-parser Patch
@latticexyz/store-sync Patch
@latticexyz/cli Patch
@latticexyz/explorer Patch
@latticexyz/stash Patch
@latticexyz/store-indexer Patch
@latticexyz/store Patch
@latticexyz/world Patch
@latticexyz/dev-tools Patch
ts-benchmarks Patch
@latticexyz/world-modules Patch
mock-game-contracts Patch
@latticexyz/react Patch
@latticexyz/world-module-metadata Patch
@latticexyz/abi-ts Patch
@latticexyz/block-logs-stream Patch
@latticexyz/common Patch
@latticexyz/config Patch
create-mud Patch
@latticexyz/faucet Patch
@latticexyz/gas-report Patch
@latticexyz/recs Patch
@latticexyz/schema-type Patch
solhint-config-mud Patch
solhint-plugin-mud Patch
@latticexyz/utils Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

holic
holic previously approved these changes Sep 4, 2024

type PartialTable = Pick<Table, "schema" | "key">;

type KeySchema = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should prob export this?

return result.slice(1);
}

export type DecodeDozerRecordsResult<schema extends Schema = Schema> = getSchemaPrimitives<schema>[];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we update all the type names without "Dozer"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh yes missed that one, good catch

@alvrs alvrs changed the title feat(store-sync): add util to fetch snapshot from dozer feat(store-sync): add util to fetch snapshot from indexer with SQL API Sep 18, 2024
@alvrs alvrs merged commit 8b4110e into main Sep 18, 2024
13 checks passed
@alvrs alvrs deleted the alvrs/dozer-query branch September 18, 2024 17:56
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.

4 participants