Skip to content

cloudspannerecosystem/memefish

Repository files navigation

méméfish

méméfish is the Spanner SQL parser for Go.

GoDoc Reference

News

ℹ️

Since 2023/4/1, this repository has been moved from MakeNowJust to cloudspannerecosystem. You may need to migrate import paths from github.com/MakeNowJust/memefish to github.com/cloudspannerecosystem/memefish like:

 import (
-	"github.com/MakeNowJust/memefish/pkg/parser"
+	"github.com/cloudspannerecosystem/memefish/pkg/parser"
 )
ℹ️

Since 2023/4/12, the layout of this repository has been changed. Now, the old parser package has been moved to the top of the repository as the new memefish package, and sub-packages in the pkg directory are placed under the top. You may need to migrate import paths like:

 import (
-	"github.com/cloudspannerecosystem/memefish/pkg/token"
-	"github.com/cloudspannerecosystem/memefish/pkg/parser"
+	parser "github.com/cloudspannerecosystem/memefish"
+	"github.com/cloudspannerecosystem/memefish/token"
 )

In addition, we removed the analyzer package from the repository. Thus, if you want to use the old analyzer package, please pin the dependency by the commit hash before this change.

Features

  • Parse Spanner SQL to AST
  • Generate Spanner SQL from AST (unparse)

Notice

This project is originally developed under "Expert team Go Engineer (Backend)" of Mercari Summer Internship for Engineer 2019.

License

This project is licensed under MIT license.