1 | import {
|
2 | obj, str, ObjectNode, ListNode
|
3 | } from 'graphql-mapping-template';
|
4 |
|
5 | /**
|
6 | * The class that contains the resolver templates for interacting
|
7 | * with the Relational Database data source.
|
8 | */
|
9 | export default class RelationalDBMappingTemplate {
|
10 |
|
11 | /**
|
12 | * Provided a SQL statement, creates the rds-query item resolver template.
|
13 | *
|
14 | * @param param0 - the SQL statement to use when querying the RDS cluster
|
15 | */
|
16 | public static rdsQuery({statements}: {
|
17 | statements: ListNode
|
18 | }): ObjectNode {
|
19 | return obj({
|
20 | version: str('2018-05-29'),
|
21 | statements: statements
|
22 | })
|
23 | }
|
24 | } |
\ | No newline at end of file |