Categorygithub.com/cockroachdb/cockroachdb-parser
modulepackage
22.1.0-beta.3.x+incompatible
Repository: https://github.com/cockroachdb/cockroachdb-parser.git
Documentation: pkg.go.dev

# README

cockroachdb-parser

cockroachdb-parser is a snapshot of the parser package and all its dependencies from the CockroachDB repo. The smaller package is Apache licensed and contains less dependencies to pull in when configuring compared to go get.

The SHA this is based off is available in version.

Example usage

import (
  ...
	"github.com/cockroachdb/cockroachdb-parser/pkg/sql/parser"
  ...
)

func Parse() error {
	ast, err := parser.ParseOne("SELECT 1")
  if err != nil {
    return err
  }
  // Do something with the AST
  _ = ast
}

Generating a snapshot

Ensure the repo is cloned in your $GOPATH, and then type:

./snapshot.sh

# Packages

No description provided by the author