Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ajitpratap0/GoSQLX
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: ajitpratap0/GoSQLX
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: feat/cli-dialect-flag
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 13 files changed
  • 3 contributors

Commits on Jul 10, 2026

  1. feat(cli): add --dialect flag to parse, format, analyze, lint

    The validate command already accepted a --dialect flag, but parse,
    format, analyze, and lint were hard-wired to the default (PostgreSQL)
    dialect and rejected dialect-specific SQL such as MySQL's
    `LIMIT offset, count`.
    
    Add a --dialect flag to each of the four commands, validate the value
    up front (unknown names are rejected), and thread it into the
    tokenizer and parser at the point each command tokenizes/parses.
    
    Shared helpers live in cmd_utils.go: validateDialectName, plus
    tokenizerForDialect and parserForDialect. For an explicit dialect a
    fresh, non-pooled tokenizer is created rather than reconfiguring a
    pooled one, because tokenizer.Reset does not clear dialect/keyword
    state and a pooled dialect-configured tokenizer would leak that state
    to later callers.
    
    The linter package gains an exported SetDialect method so lint can
    tokenize/parse dialect-specific syntax, and lint --security now parses
    with the selected dialect via gosqlx.ParseWithDialect.
    
    The default remains PostgreSQL, so behavior without --dialect is
    unchanged.
    
    Fixes: #523
    mem committed Jul 10, 2026
    Configuration menu
    Copy the full SHA
    4d75b95 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2026

  1. fix(trivy): resolve new CVEs breaking CI on all open PRs

    Ajit Pratap Singh Ajit Pratap Singh
    Ajit Pratap Singh authored and Ajit Pratap Singh committed Jul 30, 2026
    Configuration menu
    Copy the full SHA
    496f6cc View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2026

  1. chore: merge main to pick up Trivy CVE fix (#528)

    # Conflicts:
    #	.trivyignore
    ajitpratap0 committed Jul 31, 2026
    Configuration menu
    Copy the full SHA
    e1b1dc5 View commit details
    Browse the repository at this point in the history
Loading