https://github.com/dataform-co/dataform-fivetran-stripe
https://github.com/dataform-co/dataform-fivetran-stripe
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/dataform-co/dataform-fivetran-stripe
- Owner: dataform-co
- License: apache-2.0
- Archived: true
- Created: 2020-11-11T12:03:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T08:36:28.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T13:42:05.042Z (over 1 year ago)
- Language: JavaScript
- Size: 49.8 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dataform-fivetran-stripe
BETA package for transforming Stripe datasets managed by a Fivetran connector. An ERD of the source data is [here](https://docs.google.com/presentation/d/1nqPBWtH_h_8iVjF9-GselWhIyfLH7dgEk7P92s66eEc/edit).
## Installation
Add the package to your `package.json` file in your Dataform project. You can find the most up to package version on the [releases page](https://github.com/dataform-co/dataform-fivetran-stripe/releases).
## Configure the package
Create a new JS file in your `definitions/` folder and create the Fivetran Stripe tables as in the following example.
By default, the package will look for source data in the `fivetran_stripe` schema. If this is not where your Fivetran connector writes Stripe data to, you can override it when calling the package:
```js
const fivetran_stripe = require("fivetran-stripe");
const models = fivetran_stripe({
fivetranStripeSchema: "stripe_fivetran",
fivetranStripeDatabase: "dataform-corp",
tablePrefix: "",
stagingTablePrefix: "",
stagingSchema: "fivetran_stripe_package_stg",
usingSubscriptions: true,
usingInvoices: true,
usingPaymentMethod: true,
defaultConfig: {
schema: "fivetran_stripe_package",
tags: ["fivetran_stripe"],
type: "table",
},
});
```
## Supported warehouses:
- BigQuery
- Snowflake
- Redshift