@effect-aws/client-athena 1.9.3

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 (53) hide show
  1. package/AthenaClientInstance/package.json +6 -0
  2. package/AthenaService/package.json +6 -0
  3. package/AthenaServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +19 -0
  6. package/README.md +58 -0
  7. package/dist/cjs/AthenaClientInstance.d.ts +24 -0
  8. package/dist/cjs/AthenaClientInstance.d.ts.map +1 -0
  9. package/dist/cjs/AthenaClientInstance.js +50 -0
  10. package/dist/cjs/AthenaClientInstance.js.map +1 -0
  11. package/dist/cjs/AthenaService.d.ts +313 -0
  12. package/dist/cjs/AthenaService.d.ts.map +1 -0
  13. package/dist/cjs/AthenaService.js +127 -0
  14. package/dist/cjs/AthenaService.js.map +1 -0
  15. package/dist/cjs/AthenaServiceConfig.d.ts +25 -0
  16. package/dist/cjs/AthenaServiceConfig.d.ts.map +1 -0
  17. package/dist/cjs/AthenaServiceConfig.js +35 -0
  18. package/dist/cjs/AthenaServiceConfig.js.map +1 -0
  19. package/dist/cjs/Errors.d.ts +13 -0
  20. package/dist/cjs/Errors.d.ts.map +1 -0
  21. package/dist/cjs/Errors.js +14 -0
  22. package/dist/cjs/Errors.js.map +1 -0
  23. package/dist/cjs/index.d.ts +39 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/AthenaClientInstance.d.ts +24 -0
  28. package/dist/dts/AthenaClientInstance.d.ts.map +1 -0
  29. package/dist/dts/AthenaService.d.ts +313 -0
  30. package/dist/dts/AthenaService.d.ts.map +1 -0
  31. package/dist/dts/AthenaServiceConfig.d.ts +25 -0
  32. package/dist/dts/AthenaServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/Errors.d.ts +13 -0
  34. package/dist/dts/Errors.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +39 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/AthenaClientInstance.js +23 -0
  38. package/dist/esm/AthenaClientInstance.js.map +1 -0
  39. package/dist/esm/AthenaService.js +100 -0
  40. package/dist/esm/AthenaService.js.map +1 -0
  41. package/dist/esm/AthenaServiceConfig.js +31 -0
  42. package/dist/esm/AthenaServiceConfig.js.map +1 -0
  43. package/dist/esm/Errors.js +11 -0
  44. package/dist/esm/Errors.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/AthenaClientInstance.ts +33 -0
  50. package/src/AthenaService.ts +1109 -0
  51. package/src/AthenaServiceConfig.ts +52 -0
  52. package/src/Errors.ts +29 -0
  53. package/src/index.ts +44 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,IAAI,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,yBAAyB;IACzB,yBAAyB;IACzB,mBAAmB;IACnB,2BAA2B;IAC3B,+BAA+B;IAC/B,0BAA0B;CAClB,CAAC;AAUX,MAAM,CAAC,MAAM,QAAQ,GAAG,cAAc,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { AthenaService } from "./AthenaService.js";
5
+ /**
6
+ * @since 1.0.0
7
+ */
8
+ export * from "./Errors.js";
9
+ /**
10
+ * @since 1.0.0
11
+ */
12
+ export * as AthenaClientInstance from "./AthenaClientInstance.js";
13
+ /**
14
+ * @since 1.0.0
15
+ */
16
+ export * as AthenaServiceConfig from "./AthenaServiceConfig.js";
17
+ /**
18
+ * @since 1.0.0
19
+ */
20
+ export * from "./AthenaService.js";
21
+ /**
22
+ * @since 1.0.0
23
+ * @category exports
24
+ * @alias AthenaService
25
+ */
26
+ export const Athena = AthenaService;
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,cAAc,aAAa,CAAC;AAE5B;;GAEG;AACH,OAAO,KAAK,oBAAoB,MAAM,2BAA2B,CAAC;AAElE;;GAEG;AACH,OAAO,KAAK,mBAAmB,MAAM,0BAA0B,CAAC;AAEhE;;GAEG;AACH,cAAc,oBAAoB,CAAC;AAenC;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,aAAa,CAAC"}
@@ -0,0 +1,4 @@
1
+ {
2
+ "type": "module",
3
+ "sideEffects": []
4
+ }
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@effect-aws/client-athena",
3
+ "version": "1.9.3",
4
+ "description": "Effectful AWS Athena client",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "github:floydspace/effect-aws",
9
+ "directory": "packages/client-athena"
10
+ },
11
+ "sideEffects": [],
12
+ "author": {
13
+ "name": "Victor Korzunin",
14
+ "email": "ifloydrose@gmail.com"
15
+ },
16
+ "homepage": "https://floydspace.github.io/effect-aws/docs/client-athena",
17
+ "dependencies": {
18
+ "@aws-sdk/client-athena": "^3",
19
+ "@effect-aws/commons": "^0.2.0"
20
+ },
21
+ "peerDependencies": {
22
+ "effect": ">=3.0.4 <4.0.0"
23
+ },
24
+ "main": "./dist/cjs/index.js",
25
+ "module": "./dist/esm/index.js",
26
+ "types": "./dist/dts/index.d.ts",
27
+ "exports": {
28
+ "./package.json": "./package.json",
29
+ ".": {
30
+ "types": "./dist/dts/index.d.ts",
31
+ "import": "./dist/esm/index.js",
32
+ "default": "./dist/cjs/index.js"
33
+ },
34
+ "./AthenaClientInstance": {
35
+ "types": "./dist/dts/AthenaClientInstance.d.ts",
36
+ "import": "./dist/esm/AthenaClientInstance.js",
37
+ "default": "./dist/cjs/AthenaClientInstance.js"
38
+ },
39
+ "./AthenaService": {
40
+ "types": "./dist/dts/AthenaService.d.ts",
41
+ "import": "./dist/esm/AthenaService.js",
42
+ "default": "./dist/cjs/AthenaService.js"
43
+ },
44
+ "./AthenaServiceConfig": {
45
+ "types": "./dist/dts/AthenaServiceConfig.d.ts",
46
+ "import": "./dist/esm/AthenaServiceConfig.js",
47
+ "default": "./dist/cjs/AthenaServiceConfig.js"
48
+ },
49
+ "./Errors": {
50
+ "types": "./dist/dts/Errors.d.ts",
51
+ "import": "./dist/esm/Errors.js",
52
+ "default": "./dist/cjs/Errors.js"
53
+ }
54
+ },
55
+ "typesVersions": {
56
+ "*": {
57
+ "AthenaClientInstance": [
58
+ "./dist/dts/AthenaClientInstance.d.ts"
59
+ ],
60
+ "AthenaService": [
61
+ "./dist/dts/AthenaService.d.ts"
62
+ ],
63
+ "AthenaServiceConfig": [
64
+ "./dist/dts/AthenaServiceConfig.d.ts"
65
+ ],
66
+ "Errors": [
67
+ "./dist/dts/Errors.d.ts"
68
+ ]
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,33 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import { AthenaClient } from "@aws-sdk/client-athena";
5
+ import { Context, Effect, Layer } from "effect";
6
+ import * as AthenaServiceConfig from "./AthenaServiceConfig.js";
7
+
8
+ /**
9
+ * @since 1.0.0
10
+ * @category tags
11
+ */
12
+ export class AthenaClientInstance extends Context.Tag(
13
+ "@effect-aws/client-athena/AthenaClientInstance",
14
+ )<AthenaClientInstance, AthenaClient>() {}
15
+
16
+ /**
17
+ * @since 1.0.0
18
+ * @category constructors
19
+ */
20
+ export const make = Effect.flatMap(
21
+ AthenaServiceConfig.toAthenaClientConfig,
22
+ (config) =>
23
+ Effect.acquireRelease(
24
+ Effect.sync(() => new AthenaClient(config)),
25
+ (client) => Effect.sync(() => client.destroy()),
26
+ ),
27
+ );
28
+
29
+ /**
30
+ * @since 1.0.0
31
+ * @category layers
32
+ */
33
+ export const layer = Layer.scoped(AthenaClientInstance, make);