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.
go install github.com/kmulvey/go-graphql
go-graphql [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: ""])
Apache2 licensed. See LICENSE.