prql

package module
v0.0.3-0...-62bf27c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2020 License: BSD-2-Clause-Views Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

prql ("Prequel"): a command line MySQL syntax checker

EXAMPLE

$ prql examples
examples/apples.sql:2: syntax error at byte position 17 near 'SEL'

See prql -help for more options.

DOWNLOAD

https://github.com/mcandre/prql/releases

API DOCUMENTATION

https://godoc.org/github.com/mcandre/prql

MAJOR FEATURES

  • Validates MySQL statements.
  • Scans multi-statement scripts.
  • Recurses along large folder trees.
  • No dependency on live MySQL servers or clients.
  • Ops-friendly exit code for CI, script chaining.

COMPLEX SCRIPT MATCHING

$ find examples -type f -name '*.sql' -print0 |
    while IFS= read -r -d '' f; do
        prql "$f" || exit 1
    done
examples/apples.sql:2: syntax error at byte position 17 near 'SEL'

RUNTIME REQUIREMENTS

  • N/A

CONTRIBUTING

See DEVELOPMENT.md.

LICENSE

FreeBSD

CREDITS

Documentation

Index

Constants

View Source
const Version = "0.0.2"

Version is semver.

Variables

This section is empty.

Functions

func Prql

func Prql(pth string) error

Prql recursively scans a directory or file path for SQL scripts. On successful parsing of all files, returns nil. Otherwise, returns a parse error.

Types

This section is empty.

Directories

Path Synopsis
cmd
prql command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL