# @dawadk/replication-client

> This is a reference-implementation for the [DAWA](https://dawa.aws.dk) [replication api](https://dawa.aws.dk/dok/guide/replikering).

Latest version **1.4.1** (published 2023-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dawadk/replication-client
pnpm add @dawadk/replication-client
yarn add @dawadk/replication-client
bun add @dawadk/replication-client
```

Provides the command `dawa-replication-client`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.1 |
| Published | 2023-11-30 |
| First published | 2018-12-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=10.0.0 |
| Dependencies | 10 |
| Unpacked size | 57.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Styrelsen for Dataforsyning og Infrastruktur |
| Maintainers | iamfrank, dataforsyningen-user |
| Keywords | dawa, replication client, SDFI |

## Links

- npm: https://www.npmjs.com/package/@dawadk/replication-client
- Repository: https://github.com/SDFIdk/DAWA
- Homepage: https://github.com/SDFIdk/DAWA/tree/master/packages/replication-client#readme
- Issues: https://github.com/SDFIdk/DAWA/issues
- npm.io page: https://npm.io/package/@dawadk/replication-client

## Dependencies (10)

- [ajv](https://npm.io/package/ajv.md) ^6.6.1
- [urijs](https://npm.io/package/urijs.md) ^1.19.1
- [split2](https://npm.io/package/split2.md) ^3.0.0
- [request](https://npm.io/package/request.md) ^2.88.0
- [underscore](https://npm.io/package/underscore.md) ^1.9.1
- [@dawadk/common](https://npm.io/package/@dawadk/common.md) ^4.0.0
- [transducers-js](https://npm.io/package/transducers-js.md) ^0.4.174
- [request-promise](https://npm.io/package/request-promise.md) ^4.2.4
- [@dawadk/import-util](https://npm.io/package/@dawadk/import-util.md) ^6.0.0
- [terraformer-wkt-parser](https://npm.io/package/terraformer-wkt-parser.md) ^1.2.0

## Recent versions

- 1.4.1 (latest) — 2023-11-30
- 1.4.0 — 2023-10-31
- 1.3.37 — 2021-03-31
- 1.3.19 — 2019-09-17
- 1.3.18 — 2019-08-20
- 1.3.17 — 2019-07-04
- 1.3.15 — 2019-06-26
- 1.3.14 — 2019-05-28
- 1.3.2 — 2019-05-02
- 1.3.1 — 2019-05-02
- 1.3.0 — 2019-05-02
- 1.1.15 — 2019-03-08
- 1.1.12 — 2019-01-17
- 1.1.11 — 2019-01-17
- 1.1.10 — 2019-01-10
- … 6 more at https://npm.io/package/@dawadk/replication-client/versions

## README

# DAWA replication client

This is a reference-implementation for the [DAWA](https://dawa.aws.dk) [replication api](https://dawa.aws.dk/dok/guide/replikering).

The client can be used to establish and update a local database copy of the data provided by DAWA.

The reference client is command-line based and currently only supports PostgreSQL.

## Usage
The following commands are supported: 
```
Usage: dawa-replication-client [options] [command]

Options:
  -v, --version              output the version number
  -h, --help                 output usage information

  replicate [options]        Replicate data to local database
  gen-config [options]       Generate a configuration for the client
  gen-schema [options]       Generate a database schema
  validate-config [options]  Validate a configuration file.
```

You can get help on a specific command by using the <code>-h</code> option:

```
ahj$ dawa-replication-client gen-config -h
Usage: gen-config [options]

Generate a configuration for the client.

Options:
  --url [value]       URL of replication API, default "https://dawa.aws.dk/replikering"
  --file [value]      Output file for configuration
  --entities [value]  Comma-separated list of entities to include
  -h, --help          output usage information 
```

Check out the [guide](https://dawa.aws.dk/dok/guide/replikeringsklient) for information on how to use the client.

## Contributing
We welcome contributions to this project. Please get in touch by email or by opening a feature request.

## Additional database support
We have no plans for adding support for additional databases in the near future.

## Support
Please use use the [Digitaliser forum](https://digitaliser.dk/group/334445/forum).

## license
Copyright Styrelsen for Dataforsyning og Infrastruktur ([SDFI(https://sdfi.dk))

Licensed under the MIT/X11 license.

---
_Source: https://npm.io/package/@dawadk/replication-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
