Skip to content

How do you get started? #812

@xeoncross

Description

@xeoncross

The quick start doesn't seem to work because of the dependency on TiDB.

I start by including both packages:

go get github.com/pingcap/parser
go get github.com/pingcap/tidb

This leaves me with a go.mod which looks like this:

...
github.com/pingcap/parser v3.0.12+incompatible
github.com/pingcap/tidb v2.0.11+incompatible // indirect
github.com/pingcap/tipb v0.0.0-20200417094153-7316d94df1ee // indirect 
...

The main issue seems to be that in the version of tidb used, the tidb/types package does not contain parser_driver.

Screen Shot 2020-04-17 at 6 46 41 PM

It looks like it exists in the recent v3.1.0 release.

I tried to force that version but it doesn't seem to be working.

$ go get github.com/pingcap/[email protected]
go get github.com/pingcap/[email protected]: github.com/pingcap/[email protected]: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v3

How do I get the parser working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions