Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Gil Mizrahi committed Jan 26, 2024
1 parent 9f0dad7 commit 60865e9
Show file tree
Hide file tree
Showing 2 changed files with 108 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/connectors/ndc-postgres/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ fn delete_to_procedure(name: &String, delete: &delete::DeleteMutation) -> models
},
);

arguments.insert(
"%predicate".to_string(),
models::ArgumentInfo {
argument_type: models::Type::Predicate {
collection_name: collection_name.clone(),
},
description: Some("a predicate".to_string()),
},
);

models::ProcedureInfo {
name: name.to_string(),
description: Some(description.to_string()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4041,6 +4041,13 @@ expression: result
"name": "v1_delete_Album_by_AlbumId",
"description": "Delete any value on the Album table using the AlbumId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Album"
}
},
"AlbumId": {
"description": "The identifier of an album",
"type": {
Expand All @@ -4058,6 +4065,13 @@ expression: result
"name": "v1_delete_Artist_by_ArtistId",
"description": "Delete any value on the Artist table using the ArtistId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Artist"
}
},
"ArtistId": {
"description": "The identifier of an artist",
"type": {
Expand All @@ -4075,6 +4089,13 @@ expression: result
"name": "v1_delete_Customer_by_CustomerId",
"description": "Delete any value on the Customer table using the CustomerId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Customer"
}
},
"CustomerId": {
"description": "The identifier of customer",
"type": {
Expand All @@ -4092,6 +4113,13 @@ expression: result
"name": "v1_delete_Employee_by_EmployeeId",
"description": "Delete any value on the Employee table using the EmployeeId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Employee"
}
},
"EmployeeId": {
"type": {
"type": "named",
Expand All @@ -4108,6 +4136,13 @@ expression: result
"name": "v1_delete_Genre_by_GenreId",
"description": "Delete any value on the Genre table using the GenreId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Genre"
}
},
"GenreId": {
"type": {
"type": "named",
Expand All @@ -4124,6 +4159,13 @@ expression: result
"name": "v1_delete_InvoiceLine_by_InvoiceLineId",
"description": "Delete any value on the InvoiceLine table using the InvoiceLineId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "InvoiceLine"
}
},
"InvoiceLineId": {
"type": {
"type": "named",
Expand All @@ -4140,6 +4182,13 @@ expression: result
"name": "v1_delete_Invoice_by_InvoiceId",
"description": "Delete any value on the Invoice table using the InvoiceId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Invoice"
}
},
"InvoiceId": {
"type": {
"type": "named",
Expand All @@ -4156,6 +4205,13 @@ expression: result
"name": "v1_delete_MediaType_by_MediaTypeId",
"description": "Delete any value on the MediaType table using the MediaTypeId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "MediaType"
}
},
"MediaTypeId": {
"type": {
"type": "named",
Expand All @@ -4172,6 +4228,13 @@ expression: result
"name": "v1_delete_Playlist_by_PlaylistId",
"description": "Delete any value on the Playlist table using the PlaylistId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Playlist"
}
},
"PlaylistId": {
"type": {
"type": "named",
Expand All @@ -4188,6 +4251,13 @@ expression: result
"name": "v1_delete_Track_by_TrackId",
"description": "Delete any value on the Track table using the TrackId key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "Track"
}
},
"TrackId": {
"type": {
"type": "named",
Expand All @@ -4204,6 +4274,13 @@ expression: result
"name": "v1_delete_custom_dog_by_id",
"description": "Delete any value on the custom_dog table using the id key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "custom_dog"
}
},
"id": {
"type": {
"type": "named",
Expand All @@ -4220,6 +4297,13 @@ expression: result
"name": "v1_delete_spatial_ref_sys_by_srid",
"description": "Delete any value on the spatial_ref_sys table using the srid key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "spatial_ref_sys"
}
},
"srid": {
"type": {
"type": "named",
Expand All @@ -4236,6 +4320,13 @@ expression: result
"name": "v1_delete_topology_topology_by_id",
"description": "Delete any value on the topology_topology table using the id key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "topology_topology"
}
},
"id": {
"type": {
"type": "named",
Expand All @@ -4252,6 +4343,13 @@ expression: result
"name": "v1_delete_topology_topology_by_name",
"description": "Delete any value on the topology_topology table using the name key",
"arguments": {
"%predicate": {
"description": "a predicate",
"type": {
"type": "predicate",
"collection_name": "topology_topology"
}
},
"name": {
"type": {
"type": "named",
Expand Down

0 comments on commit 60865e9

Please sign in to comment.