Convex.dev is a reactive non-relational database. Convex is an open‑source, reactive backend‑as‑a‑service platform tailored for modern web and mobile developers. It provides a TypeScript-first experience—including database schemas, queries, and server functions—where everything is code, making backend development feel like frontend work.
In order to sync data from your Convex database to the Peliqan data warehouse, you need to set up a custom pipeline in Peliqan.
Setup Convex
Create a function in Convex to query e.g. one table. Simple example:
// File location: convex/MyQueryFunction.ts
import { query } from "./_generated/server";
export const all = query({
handler: async (ctx) => {
return await ctx.db.query("MyTableName").take(10);
},
});Use npx convex dev or npx convex deploy to deploy your function to the Convex cloud.
Setup Peliqan
In Peliqan, set up a custom pipeline using a Python script. Update the settings in the script.
Set a schedule on the script to run e.g. hourly or daily.
Create a deploy key in Convex under Settings > URL & Deploy Key > button “+ Generate Development Deploy Key”. and paste the deploy key in the script, or store it in the Peliqan Secrets Store.
Example custom pipeline: