Skip to content

Commit

Permalink
Fix #2, "Update tutorial to reflect changes to Optiq's JDBC adapter".
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Feb 23, 2014
1 parent 11bdbc8 commit 94a6306
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions TUTORIAL.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ $ ./sqlline
sqlline> !connect jdbc:optiq:model=target/test-classes/model.json admin admin
```

(If you are running Windows, the command is `sqlline.bat`. Everything
else in this tutorial should be the same.)

Execute a metadata query:

```bash
Expand Down Expand Up @@ -521,12 +524,12 @@ For example, this schema reads from a MySQL "foodmart" database:
{
name: 'FOODMART',
type: 'custom',
factory: 'net.hydromatic.optiq.impl.jdbc.JdbcSchema.Factory',
factory: 'net.hydromatic.optiq.impl.jdbc.JdbcSchema$Factory',
operand: {
driver: 'com.mysql.jdbc.Driver',
url: 'jdbc:mysql://localhost/foodmart',
user: 'foodmart',
password: 'foodmart'
jdbcDriver: 'com.mysql.jdbc.Driver',
jdbcUrl: 'jdbc:mysql://localhost/foodmart',
jdbcUser: 'foodmart',
jdbcPassword: 'foodmart'
}
}
]
Expand Down Expand Up @@ -567,12 +570,12 @@ For example, the following model reads tables from a MySQL
{
name: 'FOODMART_CLONE',
type: 'custom',
factory: 'net.hydromatic.optiq.impl.clone.CloneSchema.Factory',
factory: 'net.hydromatic.optiq.impl.clone.CloneSchema$Factory',
operand: {
driver: 'com.mysql.jdbc.Driver',
url: 'jdbc:mysql://localhost/foodmart',
user: 'foodmart',
password: 'foodmart'
jdbcDriver: 'com.mysql.jdbc.Driver',
jdbcUrl: 'jdbc:mysql://localhost/foodmart',
jdbcUser: 'foodmart',
jdbcPassword: 'foodmart'
}
}
]
Expand All @@ -591,18 +594,18 @@ defined earlier in the model, like this:
{
name: 'FOODMART',
type: 'custom',
factory: 'net.hydromatic.optiq.impl.jdbc.JdbcSchema.Factory',
factory: 'net.hydromatic.optiq.impl.jdbc.JdbcSchema$Factory',
operand: {
driver: 'com.mysql.jdbc.Driver',
url: 'jdbc:mysql://localhost/foodmart',
user: 'foodmart',
password: 'foodmart'
jdbcDriver: 'com.mysql.jdbc.Driver',
jdbcUrl: 'jdbc:mysql://localhost/foodmart',
jdbcUser: 'foodmart',
jdbcPassword: 'foodmart'
}
},
{
name: 'FOODMART_CLONE',
type: 'custom',
factory: 'net.hydromatic.optiq.impl.clone.CloneSchema.Factory',
factory: 'net.hydromatic.optiq.impl.clone.CloneSchema$Factory',
operand: {
source: 'FOODMART'
}
Expand Down

0 comments on commit 94a6306

Please sign in to comment.