1.10.3 • Published 5 months ago

@effect-aws/client-athena v1.10.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@effect-aws/client-athena

npm version npm downloads

Installation

npm install --save @effect-aws/client-athena

Usage

With default AthenaClient instance:

import { Athena } from "@effect-aws/client-athena";

const program = Athena.startQueryExecution(args);

const result = pipe(
  program,
  Effect.provide(Athena.defaultLayer),
  Effect.runPromise,
);

With custom AthenaClient instance:

import { Athena } from "@effect-aws/client-athena";

const program = Athena.startQueryExecution(args);

const result = await pipe(
  program,
  Effect.provide(
    Athena.baseLayer(() => new AthenaClient({ region: "eu-central-1" })),
  ),
  Effect.runPromise,
);

With custom AthenaClient configuration:

import { Athena } from "@effect-aws/client-athena";

const program = Athena.startQueryExecution(args);

const result = await pipe(
  program,
  Effect.provide(Athena.layer({ region: "eu-central-1" })),
  Effect.runPromiseExit,
);

or use Athena.baseLayer((default) => new AthenaClient({ ...default, region: "eu-central-1" }))

1.10.3

5 months ago

1.10.2

5 months ago

1.10.0

5 months ago

1.9.5

6 months ago

1.9.3

7 months ago