Overview
The OneSignal + SingleStore integration enables syncing of custom events from your SingleStore database to OneSignal to trigger automated messaging campaigns and Journeys based on user behavior. SingleStore is a distributed SQL database designed for real-time analytics and high-performance applications.Requirements
- Access to Custom Events (currently in beta)
- Updated Account Plan (not available on free apps).
SingleStore
- SingleStoreDB Cloud or SingleStoreDB v7.1+
- Database user with appropriate permissions
- Event tables containing structured behavioral data
- Network connectivity from OneSignal to your SingleStore cluster
Setup
1
Create dedicated user for OneSignal
Create a dedicated user account with a strong, unique password:
2
Grant permissions to event data
Provide read-only access to schemas containing your event data:
If you have multiple schemas containing event data, repeat the
GRANT SELECT
statement for each schema.3
Connect to OneSignal
In OneSignal, go to Data > Integrations and click Add Integration.Select SingleStore and provide the following connection details:
- Host: Your SingleStore cluster endpoint
- Port: 3306 (default)
- Database: Your database name
- Username:
CENSUS
- Password: The password from Step 1
Event data mapping
Map your to OneSignal’s custom events format:OneSignal Field | Description | Required | |
---|---|---|---|
name | event_name | Event identifier | Yes |
external_id | user_id | User identifier | Yes |
timestamp | event_timestamp | When event occurred | No |
properties | event_data | No |
Example Event Table Schema
SQL Query Mode
Write custom SQL queries to transform your event data:Advanced Network Configuration
OneSignal can successfully connect to SingleStore instances that are using advanced networking controls including region constraints and IP address allow lists. For more information about configuring network access, contact your SingleStore administrator or OneSignal support.Limitations
- Real-time analytics queries may impact cluster performance during high-traffic periods
- JSON operations should be optimized for distributed execution
FAQ
Can I connect to multiple SingleStore schemas?
Yes, you can grant the CENSUS user access to multiple schemas by running theGRANT SELECT
statement for each schema containing event data.