Skip to content

Commit ccea9aa

Browse files
authored
Merge pull request #90 from grafbase/tomhoule-xnwotmuqynym
postgres-introspection: fix typo in composite-schemas spec url
2 parents 125f0d2 + 175e2a7 commit ccea9aa

File tree

8 files changed

+58
-57
lines changed

8 files changed

+58
-57
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/postgres/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "grafbase-postgres"
3-
version = "0.3.4"
3+
version = "0.3.5"
44
edition = "2024"
55
license = "Apache-2.0"
66

cli/postgres/grafbase-postgres.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extension_url = "http://example.com/gbpg"

crates/postgres-introspection/src/render/schema_directives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub fn render<'a>(database_definition: &'a DatabaseDefinition, extension_url: &'
5454

5555
directive.push_argument(Argument::string(
5656
"url",
57-
"https://specs.grafbase.com/composite-schema/v1",
57+
"https://specs.grafbase.com/composite-schemas/v1",
5858
));
5959

6060
directive.push_argument(Argument::new(

extensions/postgres/tests/introspection/configuration.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ async fn globally_disabled_mutations() {
6363
]
6464
)
6565
@link(
66-
url: "https://specs.grafbase.com/composite-schema/v1",
66+
url: "https://specs.grafbase.com/composite-schemas/v1",
6767
import: [
6868
"@lookup",
6969
"@key"
@@ -517,7 +517,7 @@ async fn globally_disabled_queries() {
517517
]
518518
)
519519
@link(
520-
url: "https://specs.grafbase.com/composite-schema/v1",
520+
url: "https://specs.grafbase.com/composite-schemas/v1",
521521
import: [
522522
"@lookup",
523523
"@key"
@@ -1098,7 +1098,7 @@ async fn disable_mutations_per_schema() {
10981098
]
10991099
)
11001100
@link(
1101-
url: "https://specs.grafbase.com/composite-schema/v1",
1101+
url: "https://specs.grafbase.com/composite-schemas/v1",
11021102
import: [
11031103
"@lookup",
11041104
"@key"
@@ -1722,7 +1722,7 @@ async fn disable_queries_per_schema() {
17221722
]
17231723
)
17241724
@link(
1725-
url: "https://specs.grafbase.com/composite-schema/v1",
1725+
url: "https://specs.grafbase.com/composite-schemas/v1",
17261726
import: [
17271727
"@lookup",
17281728
"@key"
@@ -2441,7 +2441,7 @@ async fn disable_mutations_per_table() {
24412441
]
24422442
)
24432443
@link(
2444-
url: "https://specs.grafbase.com/composite-schema/v1",
2444+
url: "https://specs.grafbase.com/composite-schemas/v1",
24452445
import: [
24462446
"@lookup",
24472447
"@key"
@@ -3394,7 +3394,7 @@ async fn disable_queries_per_table() {
33943394
]
33953395
)
33963396
@link(
3397-
url: "https://specs.grafbase.com/composite-schema/v1",
3397+
url: "https://specs.grafbase.com/composite-schemas/v1",
33983398
import: [
33993399
"@lookup",
34003400
"@key"
@@ -4428,7 +4428,7 @@ async fn schema_mutations_setting_takes_precedence_over_global_setting() {
44284428
]
44294429
)
44304430
@link(
4431-
url: "https://specs.grafbase.com/composite-schema/v1",
4431+
url: "https://specs.grafbase.com/composite-schemas/v1",
44324432
import: [
44334433
"@lookup",
44344434
"@key"
@@ -5054,7 +5054,7 @@ async fn schema_queries_setting_takes_precedence_over_global_setting() {
50545054
]
50555055
)
50565056
@link(
5057-
url: "https://specs.grafbase.com/composite-schema/v1",
5057+
url: "https://specs.grafbase.com/composite-schemas/v1",
50585058
import: [
50595059
"@lookup",
50605060
"@key"
@@ -5767,7 +5767,7 @@ async fn table_mutations_setting_takes_precedence_over_global_setting() {
57675767
]
57685768
)
57695769
@link(
5770-
url: "https://specs.grafbase.com/composite-schema/v1",
5770+
url: "https://specs.grafbase.com/composite-schemas/v1",
57715771
import: [
57725772
"@lookup",
57735773
"@key"
@@ -6393,7 +6393,7 @@ async fn table_queries_setting_takes_precedence_over_global_setting() {
63936393
]
63946394
)
63956395
@link(
6396-
url: "https://specs.grafbase.com/composite-schema/v1",
6396+
url: "https://specs.grafbase.com/composite-schemas/v1",
63976397
import: [
63986398
"@lookup",
63996399
"@key"
@@ -7117,7 +7117,7 @@ async fn table_mutations_setting_takes_precedence_over_schema_setting() {
71177117
]
71187118
)
71197119
@link(
7120-
url: "https://specs.grafbase.com/composite-schema/v1",
7120+
url: "https://specs.grafbase.com/composite-schemas/v1",
71217121
import: [
71227122
"@lookup",
71237123
"@key"
@@ -8075,7 +8075,7 @@ async fn table_queries_setting_takes_precedence_over_schema_setting() {
80758075
]
80768076
)
80778077
@link(
8078-
url: "https://specs.grafbase.com/composite-schema/v1",
8078+
url: "https://specs.grafbase.com/composite-schemas/v1",
80798079
import: [
80808080
"@lookup",
80818081
"@key"
@@ -9125,7 +9125,7 @@ async fn disable_queries_globally_for_views() {
91259125
]
91269126
)
91279127
@link(
9128-
url: "https://specs.grafbase.com/composite-schema/v1",
9128+
url: "https://specs.grafbase.com/composite-schemas/v1",
91299129
import: [
91309130
"@lookup",
91319131
"@key"
@@ -9734,7 +9734,7 @@ async fn disable_queries_per_view() {
97349734
]
97359735
)
97369736
@link(
9737-
url: "https://specs.grafbase.com/composite-schema/v1",
9737+
url: "https://specs.grafbase.com/composite-schemas/v1",
97389738
import: [
97399739
"@lookup",
97409740
"@key"

extensions/postgres/tests/introspection/mod.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ async fn table_with_generated_always_identity_primary_key() {
4949
]
5050
)
5151
@link(
52-
url: "https://specs.grafbase.com/composite-schema/v1",
52+
url: "https://specs.grafbase.com/composite-schemas/v1",
5353
import: [
5454
"@lookup",
5555
"@key"
@@ -518,7 +518,7 @@ async fn table_with_generated_by_default_identity_primary_key() {
518518
]
519519
)
520520
@link(
521-
url: "https://specs.grafbase.com/composite-schema/v1",
521+
url: "https://specs.grafbase.com/composite-schemas/v1",
522522
import: [
523523
"@lookup",
524524
"@key"
@@ -1019,7 +1019,7 @@ async fn table_with_serial_primary_key() {
10191019
]
10201020
)
10211021
@link(
1022-
url: "https://specs.grafbase.com/composite-schema/v1",
1022+
url: "https://specs.grafbase.com/composite-schemas/v1",
10231023
import: [
10241024
"@lookup",
10251025
"@key"
@@ -1527,7 +1527,7 @@ async fn table_with_enum_field() {
15271527
]
15281528
)
15291529
@link(
1530-
url: "https://specs.grafbase.com/composite-schema/v1",
1530+
url: "https://specs.grafbase.com/composite-schemas/v1",
15311531
import: [
15321532
"@lookup",
15331533
"@key"
@@ -2107,7 +2107,7 @@ async fn table_with_int_primary_key() {
21072107
]
21082108
)
21092109
@link(
2110-
url: "https://specs.grafbase.com/composite-schema/v1",
2110+
url: "https://specs.grafbase.com/composite-schemas/v1",
21112111
import: [
21122112
"@lookup",
21132113
"@key"
@@ -2608,7 +2608,7 @@ async fn table_with_int_unique() {
26082608
]
26092609
)
26102610
@link(
2611-
url: "https://specs.grafbase.com/composite-schema/v1",
2611+
url: "https://specs.grafbase.com/composite-schemas/v1",
26122612
import: [
26132613
"@lookup",
26142614
"@key"
@@ -3110,7 +3110,7 @@ async fn table_with_serial_primary_key_string_unique() {
31103110
]
31113111
)
31123112
@link(
3113-
url: "https://specs.grafbase.com/composite-schema/v1",
3113+
url: "https://specs.grafbase.com/composite-schemas/v1",
31143114
import: [
31153115
"@lookup",
31163116
"@key"
@@ -3700,7 +3700,7 @@ async fn table_with_composite_primary_key() {
37003700
]
37013701
)
37023702
@link(
3703-
url: "https://specs.grafbase.com/composite-schema/v1",
3703+
url: "https://specs.grafbase.com/composite-schemas/v1",
37043704
import: [
37053705
"@lookup",
37063706
"@key"
@@ -4234,7 +4234,7 @@ async fn two_schemas_same_table_name() {
42344234
]
42354235
)
42364236
@link(
4237-
url: "https://specs.grafbase.com/composite-schema/v1",
4237+
url: "https://specs.grafbase.com/composite-schemas/v1",
42384238
import: [
42394239
"@lookup",
42404240
"@key"
@@ -5063,7 +5063,7 @@ async fn table_with_an_array_column() {
50635063
]
50645064
)
50655065
@link(
5066-
url: "https://specs.grafbase.com/composite-schema/v1",
5066+
url: "https://specs.grafbase.com/composite-schemas/v1",
50675067
import: [
50685068
"@lookup",
50695069
"@key"
@@ -5658,7 +5658,7 @@ async fn table_with_jsonb_column() {
56585658
]
56595659
)
56605660
@link(
5661-
url: "https://specs.grafbase.com/composite-schema/v1",
5661+
url: "https://specs.grafbase.com/composite-schemas/v1",
56625662
import: [
56635663
"@lookup",
56645664
"@key"
@@ -6258,7 +6258,7 @@ async fn table_with_json_column() {
62586258
]
62596259
)
62606260
@link(
6261-
url: "https://specs.grafbase.com/composite-schema/v1",
6261+
url: "https://specs.grafbase.com/composite-schemas/v1",
62626262
import: [
62636263
"@lookup",
62646264
"@key"
@@ -6870,7 +6870,7 @@ async fn two_tables_with_single_column_foreign_key() {
68706870
]
68716871
)
68726872
@link(
6873-
url: "https://specs.grafbase.com/composite-schema/v1",
6873+
url: "https://specs.grafbase.com/composite-schemas/v1",
68746874
import: [
68756875
"@lookup",
68766876
"@key"
@@ -7885,7 +7885,7 @@ async fn foreign_key_to_a_table_without_a_key_should_not_create_a_relation() {
78857885
]
78867886
)
78877887
@link(
7888-
url: "https://specs.grafbase.com/composite-schema/v1",
7888+
url: "https://specs.grafbase.com/composite-schemas/v1",
78897889
import: [
78907890
"@lookup",
78917891
"@key"
@@ -8397,7 +8397,7 @@ async fn issue_november_2023() {
83978397
]
83988398
)
83998399
@link(
8400-
url: "https://specs.grafbase.com/composite-schema/v1",
8400+
url: "https://specs.grafbase.com/composite-schemas/v1",
84018401
import: [
84028402
"@lookup",
84038403
"@key"
@@ -9459,7 +9459,7 @@ async fn table_with_comment() {
94599459
]
94609460
)
94619461
@link(
9462-
url: "https://specs.grafbase.com/composite-schema/v1",
9462+
url: "https://specs.grafbase.com/composite-schemas/v1",
94639463
import: [
94649464
"@lookup",
94659465
"@key"
@@ -9970,7 +9970,7 @@ async fn table_with_commented_column() {
99709970
]
99719971
)
99729972
@link(
9973-
url: "https://specs.grafbase.com/composite-schema/v1",
9973+
url: "https://specs.grafbase.com/composite-schemas/v1",
99749974
import: [
99759975
"@lookup",
99769976
"@key"
@@ -10564,7 +10564,7 @@ async fn enum_with_comment() {
1056410564
]
1056510565
)
1056610566
@link(
10567-
url: "https://specs.grafbase.com/composite-schema/v1",
10567+
url: "https://specs.grafbase.com/composite-schemas/v1",
1056810568
import: [
1056910569
"@lookup",
1057010570
"@key"
@@ -11164,7 +11164,7 @@ async fn table_with_commented_foreign_key() {
1116411164
]
1116511165
)
1116611166
@link(
11167-
url: "https://specs.grafbase.com/composite-schema/v1",
11167+
url: "https://specs.grafbase.com/composite-schemas/v1",
1116811168
import: [
1116911169
"@lookup",
1117011170
"@key"

0 commit comments

Comments
 (0)