Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebridges/rdbms-to-graphql
A Java CLI program that generates a GraphQL schema from a JDBC data source.
https://github.com/ebridges/rdbms-to-graphql
graphql java rdbms schema sql
Last synced: 3 months ago
JSON representation
A Java CLI program that generates a GraphQL schema from a JDBC data source.
- Host: GitHub
- URL: https://github.com/ebridges/rdbms-to-graphql
- Owner: ebridges
- License: mit
- Created: 2017-08-03T13:15:37.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-08T22:26:48.000Z (over 6 years ago)
- Last Synced: 2024-04-24T17:26:08.036Z (7 months ago)
- Topics: graphql, java, rdbms, schema, sql
- Language: Java
- Size: 82 KB
- Stars: 51
- Watchers: 4
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-graphql-java - rdbms-to-graphql
README
[![CircleCI Status](https://circleci.com/gh/ebridges/rdbms-to-graphql.svg?style=shield&circle-token=:circle-token)](https://circleci.com/gh/ebridges/rdbms-to-graphql) [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)
## RDBMS to GraphQL
This is a command line tool useful for generating a GraphQL schema from an RDBMS database. It currently works with MySQL
& PostgreSQL. It can be extended to support other databases.It offers support for reading tables & columns in a database, detecting foreign key relationships and representing these
accurately as a GraphQL schema useful in a GraphQL server for querying the database.### Usage
```
RDBMS to GraphQL.Usage:
rdbms2graphql generate --jdbc-url= --jdbc-driver= --username= --password= [--schema=] [--tables=] [--output-dir=] [--verbose]
rdbms2graphql --version
rdbms2graphql [-h|--help]Options:
-h --help Show this screen.
--version Show version.
--verbose Verbose logging.
--jdbc-url= DB JDBC URL.
--jdbc-driver= FQCN of driver class.
--username= DB Username.
--password= DB Password.
--output-dir= Output directory [default: ./generated-schema].
--schema= Output directory [default: '%'].
--tables= CSV list of tables to include [default: '%'].
```