Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

386 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQLQuack evidence

Recorded database answers that back SQLQuack's syntax and translation checks.

  • syntax/<dialect>/ holds the SQL that was run (cases/) and whether the database accepted it (receipts/, with re-runs in repeats/).
  • convert/<dialect>/ holds translation cases (cases/) and the rows the source database returned (results/, named by case hash), with later re-recordings in repeats/.
  • referee/<dialect>/ holds type and signature checks (cases/, results/, functions/).

Files are only ever added or appended to. SQLQuack pins one commit of this repository in its evidence.toml, with the SHA-256 of its files, and its make targets fetch and verify that commit. No credentials, account names or raw query logs are stored here.

Cases must match their receipts

Every pull request runs the Cases match their receipts check. For each syntax/<dialect>/ the pull request changes, it rebuilds the cases with SQLBabel's builder against the pull request's receipts and fails when a cases file differs, such as one built before its receipts were recorded. Rebuild the cases with the receipts present, then push.

The builder is SQLBabel main's head unless the pull request body names one SQLBabel commit by its full SHA on a line of its own:

Builder: 0123456789abcdef0123456789abcdef01234567

Name the head of the SQLBabel pull request that pins this evidence when its builder change has not reached main yet. The commit must be on a SQLBabel branch; one reachable only through a pull request ref fails. A pull request that changes no syntax/ directory passes at once.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages