Skip to main content

Connect Supabase CSV file and Dremio in our serverless environment

Use this template to Read CSV file entries from Supabase bucket using them to insert data in Dremio.


Read CSV file entries from Supabase bucket

Used integrations:
class SupabaseSourceReadRemoteCsv {
async init() {
// TODO: Create your supabase credential
// More info at
this.supabase = yepcode.integration.supabase(

async fetch(publish, done) {
// You may check the full API documentation at:
const {
} = await
if (error) {
throw error;
delimiter: ",",
columns: true,
.on("data", publish)
.on("end", done);

async close() {}

Do you need help solving this integration with YepCode?

Let's talk

Insert data in Dremio

Used integrations:
class HttpTargetDremioInsert {
async init() {
// TODO: Create your http credential with dremio information:
// More info at
// Official docs:
this.dremio = await yepcode.integration.http(
async consume(item) {
const projectId = "<your-dremio-project-id>";
// TODO: Map your item to row and customize INSERT statement
// More info at
const query = `INSERT INTO your_source_path.your_table VALUES (${}, ${})`;

// Use the SQL API to submit queries. The response contains the ID for the job associated with the SQL query
// Official docs:
const {
data: job
} = await`${projectId}/sql`, {
sql: query,

// Use the Job API to check the job status. Jobs final status are COMPLETED, FAILED and CANCELED
// Official docs:
const finalJobStates = ["COMPLETED", "FAILED", "CANCELED"];
let jobInfoResponse = null;
do {
jobInfoResponse = await this.dremio.get(
} while (!finalJobStates.includes(;

const {
data: jobInfo
} = jobInfoResponse;

if (jobInfo.jobState === "COMPLETED") {
} else if (jobInfo.jobState === "FAILED") {
console.log(`Uups! Something was wrong: ${jobInfo.errorMessage}`);
} else {
`The job's been cancelled: ${jobInfo.cancellationReason}`

async close() {}

Other combinations

View recipes

Related recipes


YepCode is a SaaS platform that allows to create, execute and monitor integrations and automations using source code in a serverless environment.

We like to call it the Zapier for developers, since we bring all the agility and benefits of NoCode tools (avoid server provisioning, environment configuration, deployments,...), but with all the power of being able to use a programming language like JavaScript or Python.

These recipes are a good starting point for you to build your own YepCode processes and solve your integration and automation problems.

You only have to fill the sign up form and your account will be created with our FREE plan (no credit card required).

YepCode has been created with a clear enterprise approach (multi-tenant environment, team management, high security and auditing standards, IdP integrations, on-premise options,...) so we can be the Swiss army knife of any team of engineering, especially those that need to extract or send information to external systems, and where a certain dynamism or adaptation to change is necessary in that process.

Sure! You just need to do some configuration to allow YepCode servers to connect to that service. Check our docs page to get more information.