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

docs(state-sync/dozer): first version #3033

Merged
merged 16 commits into from
Aug 22, 2024
Merged

Conversation

qbzzt
Copy link
Contributor

@qbzzt qbzzt commented Aug 15, 2024

No description provided.

Copy link

changeset-bot bot commented Aug 15, 2024

⚠️ No Changeset found

Latest commit: e96848f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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


This query looks for some fields from a single table.

1. Create a file, `query.json`, with this content.
Copy link
Member

Choose a reason for hiding this comment

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

to simplify even more and have a "just copy and run this" experience, should we skip creating a file and parsing it with jq, and instead just put the query inline in the curl command?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IMHO, no. It's easier to edit a file than it is to edit the query on the command line.

}
```

Here we only care about the first result, so from now on we use this command line to tell `jq` to only show us that information.
Copy link
Member

Choose a reason for hiding this comment

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

even better: put limit 1 in the query so we only download the first row

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Different things. LIMIT 1 means the first row of the query result. jq .results[0] means the first result (because there could be multiple queries).

@qbzzt qbzzt requested a review from alvrs August 15, 2024 18:18
@qbzzt qbzzt merged commit 0af11fa into alvrs/dozer-query Aug 22, 2024
13 checks passed
@qbzzt qbzzt deleted the 240814-dozer-docs branch August 22, 2024 16:43
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.

3 participants