Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/catalog/stripe.md
Original file line number Diff line number Diff line change
Expand Up @@ -1010,6 +1010,7 @@ create foreign table stripe.subscriptions (
currency text,
current_period_start timestamp,
current_period_end timestamp,
status text,
attrs jsonb
)
server stripe_server
Expand Down
1 change: 1 addition & 0 deletions wrappers/src/fdw/stripe_fdw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This is a foreign data wrapper for [Stripe](https://stripe.com/) developed using

| Version | Date | Notes |
| ------- | ---------- | ---------------------------------------------------- |
| 0.1.13 | 2026-08-10 | Added missing 'status' column to 'subscriptions' |
| 0.1.12 | 2025-03-06 | Added import foreign schema support |
| 0.1.11 | 2024-09-20 | Added Meter object |
| 0.1.10 | 2024-08-26 | Added 'api_key_name' server option |
Expand Down
3 changes: 2 additions & 1 deletion wrappers/src/fdw/stripe_fdw/stripe_fdw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ fn create_table_config() -> TableConfig {
("currency", "text"),
("current_period_start", "timestamp"),
("current_period_end", "timestamp"),
("status", "text"),
],
),
),
Expand Down Expand Up @@ -667,7 +668,7 @@ fn inc_stats_request_cnt(stats_metadata: &mut JsonB) -> StripeFdwResult<()> {
}

#[wrappers_fdw(
version = "0.1.12",
version = "0.1.13",
author = "Supabase",
website = "https://github.com/supabase/wrappers/tree/main/wrappers/src/fdw/stripe_fdw",
error_type = "StripeFdwError"
Expand Down
8 changes: 6 additions & 2 deletions wrappers/src/fdw/stripe_fdw/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,16 +392,20 @@ mod tests {
.unwrap(),
)
.zip(r.get_by_name::<Timestamp, _>("current_period_end").unwrap())
.zip(r.get_by_name::<&str, _>("status").unwrap())
})
.collect::<Vec<_>>();
assert_eq!(
results,
vec![(
(
("cus_QXg1o8vcGmoR32", "usd"),
(
("cus_QXg1o8vcGmoR32", "usd"),
Timestamp::try_from(287883090000000i64).unwrap()
),
Timestamp::try_from(287883090000000i64).unwrap()
),
Timestamp::try_from(287883090000000i64).unwrap()
"active"
)]
);

Expand Down
Loading