File tree 4 files changed +30
-23
lines changed
4 files changed +30
-23
lines changed Original file line number Diff line number Diff line change 5
5
The query engine's job is to take a ` QueryRequest ` , which contains information about the query a user would like to run,
6
6
translate it to PostgreSQL SQL, execute it against the database, and return the results as a ` QueryResponse ` .
7
7
8
- One place in particular that uses the Query Engine is the ` /query ` endpoint (defined in the ` ndc-hub ` repository).
8
+ One place in particular that uses the Query Engine is the ` /query ` endpoint (defined in the ` ndc-sdk-rs ` repository).
9
9
10
10
` /query ` endpoints receives a ` QueryRequest ` , and calls the ` translate ` function from the Query Engine
11
11
with it and with the information about the tables tracked in the metadata to receive and ` ExecutionPlan ` .
@@ -65,9 +65,9 @@ pub struct ExecutionPlan<Query> {
65
65
/// The query we want to run with some additional information.
66
66
pub struct Query {
67
67
/// The root field name of the top-most collection.
68
- pub root_field : String ,
68
+ pub root_field : CollectionName ,
69
69
/// foreach variables.
70
- pub variables : Option <Vec <BTreeMap <String , serde_json :: Value >>>,
70
+ pub variables : Option <Vec <BTreeMap <ArgumentName , serde_json :: Value >>>,
71
71
/// The query.
72
72
pub query : sql :: ast :: Select ,
73
73
}
Original file line number Diff line number Diff line change 2
2
3
3
` ndc-postgres ` is a [ Hasura] ( https://hasura.io/ ) connector for PostgreSQL.
4
4
5
- - [ Usage] ( ./usage.md )
6
5
- [ Architecture] ( ./architecture.md )
7
6
- [ Code of Conduct] ( ./code-of-conduct.md )
8
7
- [ Debugging] ( ./debugging.md )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 10
10
The Hasura PostgreSQL Connector allows for connecting to a PostgreSQL database giving you an instant
11
11
GraphQL API on top of your PostgreSQL data.
12
12
13
- This connector is built using the [ Rust Data Connector SDK] ( https://github.com/hasura/ndc-hub#rust- sdk )
13
+ This connector is built using the [ Rust Data Connector SDK] ( https://github.com/hasura/ndc-sdk-rs )
14
14
and implements the [ Data Connector Spec] ( https://github.com/hasura/ndc-spec ) .
15
15
16
16
- [ Connector information in the Hasura Hub] ( https://hasura.io/connectors/postgres )
17
17
- [ Hasura V3 Documentation] ( https://hasura.io/docs/3.0 )
18
18
19
+ ## Features
20
+
21
+ Below, you'll find a matrix of all supported features for the PostgreSQL connector:
22
+
23
+ | Feature | Supported |
24
+ | ---------------------- | --------- |
25
+ | Native Queries | ✅ |
26
+ | Native Mutations | ✅ |
27
+ | Simple Object Query | ✅ |
28
+ | Filter / Search | ✅ |
29
+ | Simple Aggregation | ✅ |
30
+ | Sort | ✅ |
31
+ | Paginate | ✅ |
32
+ | Table Relationships | ✅ |
33
+ | Views | ✅ |
34
+ | Mutations | ✅ |
35
+ | Distinct | ✅ |
36
+ | Enums | ✅ |
37
+ | Default Values | ✅ |
38
+ | User-defined Functions | ❌ |
39
+
40
+ ## Using the PostgreSQL connector
41
+
42
+ Hasura DDN's [ Getting Started] ( https://hasura.io/docs/3.0/getting-started/build/connect-to-data/connect-a-source?db=PostgreSQL )
43
+ guide contains information about how to use the PostgreSQL connector as part of a Hasura DDN project.
44
+
19
45
## Support & Troubleshooting
20
46
21
47
The documentation and community will help you troubleshoot most issues.
You can’t perform that action at this time.
0 commit comments