Skip to content

About

A SQL interface for Amazon DynamoDB.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Calcite DynamoDB Adapter

Calcite DynamoDB Adapter is SQL interface for Amazon DynamoDB.


How to compile the source code and run unit tests

Make sure you installed Maven and Java8, in the project home directory run maven command:

mvn clean package

How it works

Calcite DynamoDB Adapter is build on top of Apache Calcite, when connect it via JDBC, the connect string contains a json model file:

{
  "version": "1.0",
  "defaultSchema": "DEMO",
  "schemas": [
    {
      "name": "DEMO",
      "type": "custom",
      "factory": "calcite.adapter.dynamodb.DynamoDBSchemaFactory",
      "operand": {
        "region": "us-west-2",
        "meta": "meta"
      }
    }
  ]
}

In this json model file, "region": "us-west-2" means DynamoDB region is us-west-2, and "meta": "meta" means the DynamoDB table "meta" stores table metadata.

Then Calcite DynamoDB Adapter will scan DynamoDB table "meta" to generate all of the available tables under DEMO schema.

More details please see unit test

About

A SQL interface for Amazon DynamoDB.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages