crates/fivetran_destination/docs/setup-guide.md
Follow our setup guide to connect Fivetran to Convex as a destination.
NOTE: This destination is partner-built. For any questions related to the Convex destination and its documentation, refer to Convex's support team. For SLA details, see Convex's Status and Guarantees documentation.
To connect your Convex deployment to Fivetran, you need the following:
https://jaded-raven-991.convex.cloud).schema.ts. The error message will give you code to
copy-paste into your schema.ts. It may take around 20 minutes for the error to appear.schema.ts with npx convex deploy.The example below is a sample schema.ts for a source with a single table email.cars.
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";
const fivetranTables = {
email_cars: defineTable({
description: v.union(v.string(), v.null()),
fivetran: v.object({
columns: v.object({
directory: v.union(v.string(), v.null()),
file: v.union(v.string(), v.null()),
line: v.union(v.int64(), v.null()),
modified: v.union(v.float64(), v.null()),
}),
synced: v.float64(),
}),
make: v.union(v.string(), v.null()),
model: v.union(v.string(), v.null()),
price: v.union(v.float64(), v.null()),
year: v.union(v.int64(), v.null()),
})
.index("by_fivetran_synced", ["fivetran.synced"])
.index("by_primary_key", [
"fivetran.columns.directory",
"fivetran.columns.file",
"fivetran.columns.line",
"fivetran.columns.modified",
]),
};
export default defineSchema({
...fivetranTables,
});
<i aria-hidden="true" class="material-icons">description</i> Destination Overview
<b> </b>
<i aria-hidden="true" class="material-icons">home</i> Documentation Home