Data Connectors
Data Connectors
Section titled “Data Connectors”Querri supports connecting to various data sources through its connector system. This guide covers setting up and using connectors.
Supported Connectors
Section titled “Supported Connectors”Database Connectors
Section titled “Database Connectors”- MySQL - Connect to MySQL and MariaDB databases
- PostgreSQL - Connect to PostgreSQL databases
- SQL Server (MSSQL) - Connect to Microsoft SQL Server
- SQLite - Connect to SQLite database files
- ODBC - Generic ODBC connector for other databases
File Connectors
Section titled “File Connectors”- CSV - Comma-separated values
- Excel - .xlsx and .xls files
- JSON - JSON data files
- Parquet - Columnar data format
API Connectors
Section titled “API Connectors”- REST API - Generic HTTP/REST API connector
- OAuth Services - OAuth 2.0 enabled services
- HubSpot - CRM and marketing platform
Creating a Database Connector
Section titled “Creating a Database Connector”MySQL Connector
Section titled “MySQL Connector”-
Navigate to Connectors
- Go to Settings → Connectors
- Click “Add Connector”
-
Select MySQL
- Choose “MySQL” from the connector types
-
Configure Connection
Host: localhost (or your server IP)Port: 3306 (default MySQL port)Database: your_database_nameUsername: your_usernamePassword: your_password-
Test Connection
- Click “Test Connection” to verify
- Save the connector if successful
-
Use in Projects
- Create a new step in your project
- Select “Database Query”
- Choose your MySQL connector
- Write your SQL query
PostgreSQL Connector
Section titled “PostgreSQL Connector”Similar to MySQL with these defaults:
Host: localhostPort: 5432Database: your_database_nameUsername: postgresPassword: your_passwordAdditional Options:
- SSL Mode: require, prefer, disable
- Schema: public (default)
SQL Server (MSSQL) Connector
Section titled “SQL Server (MSSQL) Connector”Host: localhostPort: 1433Database: your_database_nameUsername: saPassword: your_passwordOptions:
- Authentication: SQL Server or Windows
- Encrypt: yes/no
- Trust Server Certificate: yes/no
ODBC Connector
Section titled “ODBC Connector”For databases not directly supported:
DSN: your_odbc_dsn_nameUsername: your_usernamePassword: your_passwordOr use a connection string:
Connection String:DRIVER={MySQL ODBC 8.0 Driver};SERVER=localhost;DATABASE=mydb;USER=root;PASSWORD=secret;Using Connectors in Projects
Section titled “Using Connectors in Projects”Create a Data Source Step
Section titled “Create a Data Source Step”- Add Step in your project
- Select “Database Query”
- Choose your connector
- Write your query or use visual query builder
SQL Query Example
Section titled “SQL Query Example”SELECT customer_id, customer_name, SUM(order_total) as total_revenueFROM ordersWHERE order_date >= '2024-01-01'GROUP BY customer_id, customer_nameORDER BY total_revenue DESCLIMIT 100;Query Parameters
Section titled “Query Parameters”Use parameters for dynamic queries:
SELECT * FROM salesWHERE date BETWEEN {{start_date}} AND {{end_date}}AND region = {{region}}Set parameter values when executing the step.
Connector Management
Section titled “Connector Management”Edit Connectors
Section titled “Edit Connectors”- Go to Settings → Connectors
- Click the connector to edit
- Update configuration
- Save changes
Note: Changes affect all projects using this connector.
Delete Connectors
Section titled “Delete Connectors”- Go to Settings → Connectors
- Click delete icon
- Confirm deletion
Warning: Projects using this connector will need to be updated.
Share Connectors
Section titled “Share Connectors”Connectors are organization-level resources:
- Organization admins can create/edit/delete
- All members can use connectors in their projects
- Credentials are encrypted and not visible to users
Security Best Practices
Section titled “Security Best Practices”Use Service Accounts
Section titled “Use Service Accounts”Create dedicated database users for Querri:
-- MySQL exampleCREATE USER 'querri_readonly'@'%'IDENTIFIED BY 'secure_password';
GRANT SELECT ON mydb.*TO 'querri_readonly'@'%';
FLUSH PRIVILEGES;Limit Permissions
Section titled “Limit Permissions”Grant only necessary permissions:
- Read-only for analysis workloads
- Write access only when needed for data updates
- No DROP or TRUNCATE permissions
Use Connection Pooling
Section titled “Use Connection Pooling”For better performance and security:
- Connectors use connection pooling automatically
- Connections are reused across queries
- Idle connections timeout after 5 minutes
Secure Credentials
Section titled “Secure Credentials”- Credentials are encrypted at rest
- Never logged or exposed in API responses
- Accessible only to connector owner and org admins
File Upload Connectors
Section titled “File Upload Connectors”Upload CSV Files
Section titled “Upload CSV Files”-
Create new step → “Upload File”
-
Select CSV file
-
Configure options:
- Delimiter:
,(comma),;(semicolon),\t(tab) - Header row: Yes/No
- Encoding: UTF-8, ISO-8859-1, etc.
- Delimiter:
-
Preview data
-
Confirm to create data source
Upload Excel Files
Section titled “Upload Excel Files”- Select .xlsx or .xls file
- Choose sheet to import
- Specify header row
- Preview and confirm
Upload JSON Files
Section titled “Upload JSON Files”Supports:
- JSON array:
[{...}, {...}] - JSON lines: One JSON object per line
- Nested JSON: Automatically flattened
OAuth Connectors
Section titled “OAuth Connectors”HubSpot Connector
Section titled “HubSpot Connector”-
Create Connector
- Go to Settings → Connectors
- Select “HubSpot”
-
Authenticate
- Click “Connect to HubSpot”
- Log in to your HubSpot account
- Authorize Querri access
-
Use in Projects
- Create step → “HubSpot”
- Select object type:
- Contacts
- Companies
- Deals
- Tickets
- Custom objects
-
Automatic Syncing
- Data syncs automatically
- Configure sync frequency in connector settings
Other OAuth Services
Section titled “Other OAuth Services”Support for OAuth-enabled APIs:
- Configure OAuth app credentials
- Authorize access
- Use in API connector steps
REST API Connector
Section titled “REST API Connector”For custom API integrations:
-
Create API Connector
- Settings → Connectors → “REST API”
-
Configure
Base URL: https://api.example.comAuthentication: Bearer Token / API Key / OAuthHeaders:Content-Type: application/jsonX-API-Key: your_key -
Use in Steps
Method: GETEndpoint: /usersQuery Parameters:limit: 100offset: 0
Troubleshooting
Section titled “Troubleshooting”Connection Timeouts
Section titled “Connection Timeouts”If connections are timing out:
- Check network access to database server
- Verify firewall rules allow connection
- Increase timeout in connector settings
- Check database server load
Authentication Failures
Section titled “Authentication Failures”- Verify username/password are correct
- Check user has necessary permissions
- For Windows auth, verify domain settings
- Check password hasn’t expired
Slow Query Performance
Section titled “Slow Query Performance”- Add indexes to queried columns
- Limit result set size
- Use query parameters for filtering
- Check database server performance
SSL/TLS Errors
Section titled “SSL/TLS Errors”For secure connections:
- Enable SSL in connector settings
- Upload CA certificate if required
- Verify server certificate is valid
- Check TLS version compatibility
Next Steps
Section titled “Next Steps”- Working with Data - Transform and analyze data
- Building Dashboards - Visualize your data
- AI Chat Interface - Query data with natural language