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

Added aliases for cmd inspect flags; added aliases for order_by and group_by #340

Merged
merged 1 commit into from
Nov 22, 2023

Conversation

neilotoole
Copy link
Owner

  • sq inspect: added flag shorthand -C for --catalogs and -S for --schemata.

  • SLQ group_by function
    now has a synonym gb, and order_by now has synonym ob.
    These synonyms are experimental. The motivation is to reduce typing, especially the underscore (_)
    in both function names, but it's not clear that the loss of clarity is worth it. Maybe synonyms
    group and order might be better? Feedback welcome.

    # Previously
    $ sq '.payment | .customer_id, sum(.amount) | group_by(.customer_id) | order_by(.customer_id)'
    
    # Now
    $ sq '.payment | .customer_id, sum(.amount) | gb(.customer_id) | ob(.customer_id)'

@neilotoole neilotoole merged commit 880c817 into master Nov 22, 2023
11 checks passed
@neilotoole neilotoole deleted the chore/synonyms-and-shorthand branch November 22, 2023 19:19
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