Skip to content

Commit

Permalink
Update docs with schema being set
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaldwin-rs committed Apr 11, 2024
1 parent 1e56234 commit da5557a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,15 @@ Feel free to log issues against this client through GitHub.

## JDBC

The Rockset JDBC driver is packaged as part of this java client. Here is an [one example](https://github.com/rockset/rockset-java-client/blob/master/src/test/java/com/rockset/jdbc/FirstExample.java) that shows how to use it.
The Rockset JDBC driver is packaged as part of this java client. Here is [one example](https://github.com/rockset/rockset-java-client/blob/master/src/test/java/com/rockset/jdbc/FirstExample.java) that shows how to use it.

A JDBC schema corresponds to a Rockset workspace.
To scope your queries to a particular workspace without needing to fully qualify the workspace name, set the schema on the connection object.
```java
Connection connection = DriverManager.getConnection(...);
connection.setSchema("my_workspace");
```
To see the behavior of this configuration, look at the [Schema Tests](https://github.com/rockset/rockset-java-client/blob/master/src/test/java/com/rockset/jdbc/TestSchema.java).

## License

Expand Down

0 comments on commit da5557a

Please sign in to comment.