/go-graphql

get going with graphql

Primary LanguageGoApache License 2.0Apache-2.0

Go Graphql

Build Status Coverage Status Go Report Card

Generate a graphql schema in Go from an existing sql database.

This is currently alpha software that "works" for mysql but thats about it, help is welcome.

Usage

go install github.com/kmulvey/go-graphql

go-graphql [options]

Options:

  • --output - Directory to use when generating code (string [required])
  • --schema - Schema name (string [required])
  • --hostname - Hostname of database server (string [default: "localhost"])
  • --port - Port number of database server (number)
  • --username - Username to use when connecting (string [default: "root"])
  • --password - Password to use when connecting (string [default: ""])

License

Apache2 licensed. See LICENSE.