@aws-amplify/graphql-model-transformer 0.17.0-rds-support.0 → 0.17.0-rdsv2preview.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/lib/graphql-model-transformer.d.ts.map +1 -1
  3. package/lib/graphql-model-transformer.js +12 -8
  4. package/lib/graphql-model-transformer.js.map +1 -1
  5. package/lib/rds-lambda.zip +0 -0
  6. package/lib/resolvers/generators/rds-vtl-generator.d.ts.map +1 -1
  7. package/lib/resolvers/generators/rds-vtl-generator.js +1 -1
  8. package/lib/resolvers/generators/rds-vtl-generator.js.map +1 -1
  9. package/lib/resolvers/rds/index.d.ts +1 -0
  10. package/lib/resolvers/rds/index.d.ts.map +1 -1
  11. package/lib/resolvers/rds/index.js +1 -0
  12. package/lib/resolvers/rds/index.js.map +1 -1
  13. package/lib/resolvers/rds/mutation.d.ts.map +1 -1
  14. package/lib/resolvers/rds/mutation.js +7 -2
  15. package/lib/resolvers/rds/mutation.js.map +1 -1
  16. package/lib/resolvers/rds/query.d.ts +2 -0
  17. package/lib/resolvers/rds/query.d.ts.map +1 -0
  18. package/lib/resolvers/rds/query.js +25 -0
  19. package/lib/resolvers/rds/query.js.map +1 -0
  20. package/lib/resolvers/rds/resolver.d.ts.map +1 -1
  21. package/lib/resolvers/rds/resolver.js +10 -9
  22. package/lib/resolvers/rds/resolver.js.map +1 -1
  23. package/package.json +7 -7
  24. package/rds-lambda/clients/DBClient.ts +3 -3
  25. package/rds-lambda/clients/mysql/MySQLClient.ts +54 -15
  26. package/rds-lambda/clients/mysql/MySQLPasswordClient.ts +4 -3
  27. package/rds-lambda/interfaces/BaseRequest.ts +2 -2
  28. package/rds-lambda/interfaces/ListRequest.ts +11 -0
  29. package/rds-lambda/node_modules/.package-lock.json +399 -391
  30. package/rds-lambda/node_modules/@aws-sdk/abort-controller/package.json +2 -2
  31. package/rds-lambda/node_modules/@aws-sdk/client-ssm/package.json +30 -30
  32. package/rds-lambda/node_modules/@aws-sdk/client-sso/package.json +26 -26
  33. package/rds-lambda/node_modules/@aws-sdk/client-sso-oidc/package.json +26 -26
  34. package/rds-lambda/node_modules/@aws-sdk/client-sts/package.json +29 -29
  35. package/rds-lambda/node_modules/@aws-sdk/config-resolver/package.json +5 -5
  36. package/rds-lambda/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  37. package/rds-lambda/node_modules/@aws-sdk/credential-provider-imds/package.json +5 -5
  38. package/rds-lambda/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  39. package/rds-lambda/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  40. package/rds-lambda/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  41. package/rds-lambda/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  42. package/rds-lambda/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  43. package/rds-lambda/node_modules/@aws-sdk/fetch-http-handler/package.json +5 -5
  44. package/rds-lambda/node_modules/@aws-sdk/hash-node/package.json +2 -2
  45. package/rds-lambda/node_modules/@aws-sdk/invalid-dependency/package.json +2 -2
  46. package/rds-lambda/node_modules/@aws-sdk/middleware-content-length/package.json +3 -3
  47. package/rds-lambda/node_modules/@aws-sdk/middleware-endpoint/package.json +7 -7
  48. package/rds-lambda/node_modules/@aws-sdk/middleware-host-header/package.json +3 -3
  49. package/rds-lambda/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
  50. package/rds-lambda/node_modules/@aws-sdk/middleware-recursion-detection/package.json +3 -3
  51. package/rds-lambda/node_modules/@aws-sdk/middleware-retry/package.json +7 -7
  52. package/rds-lambda/node_modules/@aws-sdk/middleware-sdk-sts/package.json +6 -6
  53. package/rds-lambda/node_modules/@aws-sdk/middleware-serde/package.json +2 -2
  54. package/rds-lambda/node_modules/@aws-sdk/middleware-signing/package.json +6 -6
  55. package/rds-lambda/node_modules/@aws-sdk/middleware-stack/package.json +2 -2
  56. package/rds-lambda/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
  57. package/rds-lambda/node_modules/@aws-sdk/node-config-provider/package.json +4 -4
  58. package/rds-lambda/node_modules/@aws-sdk/node-http-handler/package.json +5 -5
  59. package/rds-lambda/node_modules/@aws-sdk/property-provider/package.json +2 -2
  60. package/rds-lambda/node_modules/@aws-sdk/protocol-http/package.json +2 -2
  61. package/rds-lambda/node_modules/@aws-sdk/querystring-builder/package.json +2 -2
  62. package/rds-lambda/node_modules/@aws-sdk/querystring-parser/package.json +2 -2
  63. package/rds-lambda/node_modules/@aws-sdk/service-error-classification/package.json +2 -2
  64. package/rds-lambda/node_modules/@aws-sdk/shared-ini-file-loader/package.json +2 -2
  65. package/rds-lambda/node_modules/@aws-sdk/signature-v4/package.json +4 -4
  66. package/rds-lambda/node_modules/@aws-sdk/smithy-client/package.json +3 -3
  67. package/rds-lambda/node_modules/@aws-sdk/token-providers/package.json +5 -5
  68. package/rds-lambda/node_modules/@aws-sdk/types/package.json +1 -1
  69. package/rds-lambda/node_modules/@aws-sdk/url-parser/package.json +3 -3
  70. package/rds-lambda/node_modules/@aws-sdk/util-defaults-mode-browser/package.json +4 -4
  71. package/rds-lambda/node_modules/@aws-sdk/util-defaults-mode-node/package.json +7 -7
  72. package/rds-lambda/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  73. package/rds-lambda/node_modules/@aws-sdk/util-middleware/package.json +2 -2
  74. package/rds-lambda/node_modules/@aws-sdk/util-retry/package.json +3 -3
  75. package/rds-lambda/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  76. package/rds-lambda/node_modules/@aws-sdk/util-user-agent-node/package.json +4 -4
  77. package/rds-lambda/node_modules/@aws-sdk/util-waiter/package.json +3 -3
  78. package/rds-lambda/node_modules/caniuse-lite/README.md +2 -88
  79. package/rds-lambda/node_modules/caniuse-lite/package.json +2 -6
  80. package/rds-lambda/node_modules/electron-to-chromium/full-chromium-versions.json +1 -1
  81. package/rds-lambda/node_modules/electron-to-chromium/full-versions.json +1 -1
  82. package/rds-lambda/node_modules/electron-to-chromium/package.json +1 -1
  83. package/rds-lambda/node_modules/long/LICENSE +202 -202
  84. package/rds-lambda/node_modules/long/README.md +246 -280
  85. package/rds-lambda/node_modules/long/package.json +32 -43
  86. package/rds-lambda/node_modules/mysql2/README.md +2 -8
  87. package/rds-lambda/node_modules/mysql2/node_modules/lru-cache/LICENSE +1 -1
  88. package/rds-lambda/node_modules/mysql2/node_modules/lru-cache/README.md +102 -775
  89. package/rds-lambda/node_modules/mysql2/node_modules/lru-cache/package.json +9 -49
  90. package/rds-lambda/node_modules/mysql2/node_modules/yallist/LICENSE +15 -0
  91. package/rds-lambda/node_modules/mysql2/node_modules/yallist/README.md +204 -0
  92. package/rds-lambda/node_modules/mysql2/node_modules/yallist/package.json +29 -0
  93. package/rds-lambda/node_modules/mysql2/package.json +15 -21
  94. package/rds-lambda/package-lock.json +798 -782
  95. package/rds-lambda/package.json +1 -1
  96. package/rds-lambda/utils/rds_utils.ts +107 -0
  97. package/src/__tests__/model-transformer.test.ts +89 -1
  98. package/src/__tests__/test-utils/rds_utils.test.ts +299 -0
  99. package/src/graphql-model-transformer.ts +5 -1
  100. package/src/resolvers/generators/rds-vtl-generator.ts +2 -1
  101. package/src/resolvers/rds/index.ts +1 -0
  102. package/src/resolvers/rds/mutation.ts +7 -2
  103. package/src/resolvers/rds/query.ts +33 -0
  104. package/src/resolvers/rds/resolver.ts +25 -16
  105. package/tsconfig.tsbuildinfo +1 -1
  106. package/rds-lambda/node_modules/long/umd/package.json +0 -3
@@ -6,9 +6,7 @@
6
6
  [![Node.js Version][node-version-image]][node-version-url]
7
7
  [![Linux Build][travis-image]][travis-url]
8
8
  [![Windows Build][appveyor-image]][appveyor-url]
9
- [![License][license-image]][license-url]
10
-
11
- English | [简体中文](./documentation_zh-cn/)
9
+ [![License][license-image]][license-url]
12
10
 
13
11
  > MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl [much more](https://github.com/sidorares/node-mysql2/tree/master/documentation)
14
12
 
@@ -132,8 +130,6 @@ const pool = mysql.createPool({
132
130
  database: 'test',
133
131
  waitForConnections: true,
134
132
  connectionLimit: 10,
135
- maxIdle: 10, // max idle connections, the default value is the same as `connectionLimit`
136
- idleTimeout: 60000, // idle connections timeout, in milliseconds, the default value 60000
137
133
  queueLimit: 0
138
134
  });
139
135
  ```
@@ -250,9 +246,7 @@ con.query({ sql: 'select 1 as foo, 2 as foo', rowsAsArray: true }, function(err,
250
246
 
251
247
  MySQL2 is mostly API compatible with [Node MySQL][node-mysql]. You should check their API documentation to see all available API options.
252
248
 
253
- One known incompatibility is that `DECIMAL` values are returned as strings whereas in [Node MySQL][node-mysql] they are returned as numbers. This includes the result of `SUM()` and `AVG()` functions when applied to `INTEGER` arguments. This is done deliberately to avoid loss of precision - see https://github.com/sidorares/node-mysql2/issues/935.
254
-
255
- If you find any other incompatibility with [Node MySQL][node-mysql], Please report via Issue tracker. We will fix reported incompatibility on priority basis.
249
+ If you find any incompatibility with [Node MySQL][node-mysql], Please report via Issue tracker. We will fix reported incompatibility on priority basis.
256
250
 
257
251
  ## Documentation
258
252
 
@@ -1,6 +1,6 @@
1
1
  The ISC License
2
2
 
3
- Copyright (c) 2010-2022 Isaac Z. Schlueter and Contributors
3
+ Copyright (c) Isaac Z. Schlueter and Contributors
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above