Integrate Presto with JetBrains RubyMine using CData JDBC Drivers
CData JDBC Driver for Presto offer standardized JDBC connectivity to 200+ data sources, allowing developers to treat SaaS and cloud APIs as relational databases. By integrating these drivers into JetBrains RubyMine, user can connect IDE directly to external systems like CRM or ERP platforms, enabling SQL based data access and real-time querying.
RubyMine is a advanced IDE for Ruby and Rails development that offers advanced coding assistance, debugging, and database tools. Through CData JDBC integration, developers can link RubyMine with Presto for easy access to live Presto data.
Overview
Here is a quick overview of the integration process:
- Set Up Environment: Configure the Ruby interpreter in RubyMine
- Install JDBC Driver: Add the CData JDBC Driver for Presto to RubyMine's database configuration
- Connect: Establish a live connection to Presto and begin querying Presto data
About Presto Data Integration
Accessing and integrating live data from Trino and Presto SQL engines has never been easier with CData. Customers rely on CData connectivity to:
- Access data from Trino v345 and above (formerly PrestoSQL) and Presto v0.242 and above (formerly PrestoDB)
- Read and write access all of the data underlying your Trino or Presto instances
- Optimized query generation for maximum throughput.
Presto and Trino allow users to access a variety of underlying data sources through a single endpoint. When paired with CData connectivity, users get pure, SQL-92 access to their instances, allowing them to integrate business data with a data warehouse or easily access live data directly from their preferred tools, like Power BI and Tableau.
In many cases, CData's live connectivity surpasses the native import functionality available in tools. One customer was unable to effectively use Power BI due to the size of the datasets needed for reporting. When the company implemented the CData Power BI Connector for Presto they were able to generate reports in real-time using the DirectQuery connection mode.
Getting Started
Configure the Ruby Interpreter in RubyMine
After installing the Ruby interpreter, open RubyMine and configure the environment.
- Create a New Empty Project
- Select the interpreter for example, C:\Ruby34-x64\bin uby.exe
- Click Create to initialize the project
Add the CData JDBC Driver for Presto
Next, configure the CData JDBC Driver for Presto within RubyMine.
- Go to View, select Tool Windows and click Database to open the database panel
- Click the "+" icon and choose Driver from the dropdown
- In the Data Sources and Drivers window:
- Provide a Name for the driver (e.g., CData Presto JDBC)
- Click "+" in the Driver Files section and select Custom JARs
- Locate and open the cdata.jdbc.presto.jar file
- Set the Class to cdata.jdbc.presto.PrestoDriver
Create the Presto data source
- Click Create Data Source and choose the newly created driver
- In the connection window, confirm that the selected driver is correct
- Enter your connection details:
- Name: Presto Connection
- URL: jdbc:presto:User=username;Password=password;
- Username and Password: User Presto credentials
- Click Test Connection. If successful, click OK to save
Query live Presto data
Once the connection is established, you can query live Presto data directly within RubyMine.
- Open the Database Console
- Run SQL queries, for example:
SELECT * FROM Presto data_Table LIMIT 10;
Developers can now easily access and manipulate Presto data using SQL inside RubyMine bridging code development and live data access in one unified environment.
Connect RubyMine to 300+ Data Sources with CData
CData JDBC Drivers bring real time data connectivity to your development environment. With support for over 300+ sources, including CRM, ERP, analytics, and cloud APIs, developers can query, visualize, and build data driven applications without leaving their IDE.
Start your 30-day free trial to experience the full potential of live data connectivity.