Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Once you have established a connection, you can execute SQL queries against the TileDB Cloud database. To do so, create a Statement
object and call the executeQuery
method with your SQL query.
You can then handle the results like this:
The TileDB-Cloud JDBC driver provides seamless integration with popular Business Intelligence (BI) tools such as Tableau and Microsoft Power BI. With the driver, you can connect your BI tools directly to TileDB Cloud and leverage the powerful visualization and analytics capabilities of these tools.
The TileDB Cloud JDBC library can be configured programmatically in your Java code. The configuration options include:
apiKey(String)
: Your TileDB-Cloud API Token. (recommended)
username(String)
: Your TileDB-Cloud username
password(String)
: Your TileDB-Cloud password
rememberMe(boolean)
: Whether the JDBC driver will remeber your login credentials in the future.
verifySSL(boolean)
: Whether the JDBC driver will use SSL
overwritePrevious(boolean)
: Whether the JDBC driver will overwrite existing credentials. This option can be combined with rememberMe.
Here's an example of configuring the driver where NAMESPACE
is your TileDB-Cloud namespace
You can also include your API Token in the connection String like this:
SQL queries use , and can be executed with the TileDB Cloud client as follows.
Supposing that there is an array tiledb://user/array_name
that you have write permissions for, you can run a SQL query that writes the results to that array as follows:
You can run any SQL statement, including CTEs.
If the array does not exist, you will just need to create and pass an array schema that complies with the result schema.
We also provide an auxiliary function exec_and_fetch
, which executes a SQL query as above, but then opens the resulting output array so that it is ready for use.
If you are a member of an organization, then by default the organization is charged for your SQL query. If you would like to charge the SQL query to yourself, you just need to add one extra argument namespace
.
Each serverless SQL runs by default in an isolated environment with 2 CPUs and 2 GB of memory. You can choose an alternative runtime environment from the following list:
Charges are based on the total number of CPUs selected, not on actual use.
To run a serverless SQL in a specific environment, set the resource_class
parameter to the name of the environment.
An asynchronous version of serverless SQL is available. The _async
version returns a future.
It is also possible to use SQL to create a new array.
See Retry Settings for more information on this topic.
is a type 4 Java Database Connectivity (JDBC) driver that allows you to connect to and interact with TileDB Cloud using the JDBC API. It provides a seamless integration between your Java applications and TileDB Cloud, enabling you to perform various database operations and execute SQL queries.
This documentation will guide you through the installation process, configuration options, and usage examples of the TileDB Cloud JDBC library.
To use the TileDB Cloud JDBC library, follow these steps:
Ensure you have Java Development Kit (JDK) version 11 or higher installed on your system.
Download the latest release of the TileDB Cloud JDBC library from the .
Add the tiledb-cloud-jdbc-x.x.x.jar
file to your project's classpath. Replace x.x.x
with the version number of the library.
To load the driver at runtime write Class.forName("io.tiledb.TileDBCloudDriver")
, in conjunction with TileDB, offers a comprehensive business intelligence platform that enables users to connect, transform, and visualize data stored in TileDB Cloud. With Power BI's intuitive interface and robust analytics features, organizations can gain valuable insights, create interactive reports and dashboards, and make data-driven decisions effectively.
Then, click ok and your bridge should be set up. Now, open PowerBI Desktop and follow these steps:
Click on "Get Data" in the Home tab.
Select "More..." and search for "ODBC" in the data connectors list.
Choose the "ODBC" option and click "Connect".
In the ODBC dialog, select the bridged JDBC driver as a data source from the list.
By expanding the "Advanced options" section you can insert a custom SQL query. Otherwise click next and you will be displayed your owned, shared and public arrays from TileDB-Cloud
Tableau is a leading business intelligence and data visualization tool that allows users to create interactive and insightful visualizations, reports, and dashboards. Together with TileDB, Tableau empowers users to connect, explore, and visualize their data stored in TileDB Cloud, enabling seamless integration of advanced analytics and visualization capabilities into their data workflows.
To connect with , the TileDB-Cloud JDBC driver requires the use of our custom . Tableau has a built-in store for connectors, however, this TileDB connector is not currently available for download and needs to be manually placed in the appropriate directory.
To do this, copy the connector
directory from the repo (ignoring the LICENSE and README files) to the following location:
MacOS
~/Documents/My\ Tableau\ Repository/Connectors
Windows
C:\Users\[Windows User]\Documents\My Tableau Repository\Connectors
In addition to the connector placement, ensure that you have also placed the TileDB-Cloud JDBC driver (.jar file)
in the appropriate directory. If the directory doesn't already exist, create it.
MacOS
~/Library/Tableau/Drivers
Windows
C:\Program Files\Tableau\Drivers
To launch Tableau, use the following commands:
MacOS
/Applications/Tableau\ Desktop\ [version].app/Contents/MacOS/Tableau -DConnectPluginsPath=/Users/<USER>/Documents/My\ Tableau\ Repository/Connectors
Windows
tableau.exe -DConnectPluginsPath=C:\Users\[Windows User]\Documents\My Tableau Repository\Connectors
Once Tableau launches, choose TileDB-Cloud JDBC, by TileDB
from the left sidebar and enter your credentials to login.
Once you login choose All TileDB arrays
from the dropdown menu on the top left corner and you will be able to see all your owned and shared arrays. You can also add an array you have access to by using the Custom SQL Query
option.
Query results are limited to 2GBs in size.
This JDBC driver uses our custom Mytile MariaDB storage engine which comes with it's limitations as well. For more info see .
Name | Description |
---|---|
In order to use the JDBC driver for Power BI, a JDBC-to-ODBC bridge is required. We have used and tested the one from . Follow the instructions below:
standard
2 CPUs, 2 GB RAM
large
8 CPUs, 8 GB RAM
This connector is part of the TIleDB-Cloud-Py package. To install run:
Usage example
To configure the connector with your credentials you just need to configure TileDB-Cloud-Py. For more details see here.
TileDB-Cloud-Py package includes a Python DB API 2.0 connector, which aligns with PEP 249. It offers a convenient way for Python developers to connect to TileDB-Cloud and perform all necessary operations.