public static class JdbcSchema.Factory extends Object implements org.apache.calcite.schema.SchemaFactory
JdbcSchema.
This allows you to create a jdbc schema inside a model.json file, like this:
{
"version": "1.0",
"defaultSchema": "FOODMART_CLONE",
"schemas": [
{
"name": "FOODMART_CLONE",
"type": "custom",
"factory": "org.apache.calcite.adapter.jdbc.JdbcSchema$Factory",
"operand": {
"jdbcDriver": "com.mysql.jdbc.Driver",
"jdbcUrl": "jdbc:mysql://localhost/foodmart",
"jdbcUser": "foodmart",
"jdbcPassword": "foodmart"
}
}
]
}| Modifier and Type | Field and Description |
|---|---|
static JdbcSchema.Factory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
org.apache.calcite.schema.Schema |
create(org.apache.calcite.schema.SchemaPlus parentSchema,
String name,
Map<String,Object> operand) |
public static final JdbcSchema.Factory INSTANCE
Copyright © 2020–2023 The Apache Software Foundation. All rights reserved.