1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | const graphql_mapping_template_1 = require("graphql-mapping-template");
|
4 | /**
|
5 | * The class that contains the resolver templates for interacting
|
6 | * with the Relational Database data source.
|
7 | */
|
8 | class RelationalDBMappingTemplate {
|
9 | /**
|
10 | * Provided a SQL statement, creates the rds-query item resolver template.
|
11 | *
|
12 | * @param param0 - the SQL statement to use when querying the RDS cluster
|
13 | */
|
14 | static rdsQuery({ statements }) {
|
15 | return graphql_mapping_template_1.obj({
|
16 | version: graphql_mapping_template_1.str('2018-05-29'),
|
17 | statements: statements
|
18 | });
|
19 | }
|
20 | }
|
21 | exports.default = RelationalDBMappingTemplate;
|
22 | //# sourceMappingURL=RelationalDBMappingTemplate.js.map |
\ | No newline at end of file |