Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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: '%'].
```