Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Python Example Code

Make sure you have installed the RapidsDB Python library before running this.

import pyRDP as pyRDP

conn = pyRDP.connect(host = "domain_name or ip_address",
                     port = 4333,
                     user = 'RAPIDS',
                     password = 'rapids',
                     catalog = 'connector_name',
                     schema = "database_name")

cursor = conn.cursor()
sql = "select * from table_name;" 

results = cursor.fetchall()