Skip to content

cardano.db-sync

cardano.db-sync.enable

Whether to enable Cardano DB Sync provides a way to query local cardano node.

Cardano DB sync connects to a cardano node and saves blocks to a database. You need to either provide the db connection arguments:

1
2
3
4
5
6
7
services.cardano-db-sync.database = {
  # these are the defaults:
  name = "cardano-db-sync";
  user = "cardano-db-sync";
  port = 5432;
  socketdir = "/run/postgresql";
};

or enable the default postgresql service with services.cardano-db-sync.postgres.enable and possibly overwrite the services.postgresql options for your need. .

Type: boolean

Default: false

Example: true

Declared by: - https://github.com/mlabs-haskell/cardano.nix/tree/main/modules/db-sync.nix

cardano.db-sync.postgres.enable

Whether to enable Run postgres and connect dbsync to it…

Type: boolean

Default: true

Example: true

Declared by: - https://github.com/mlabs-haskell/cardano.nix/tree/main/modules/db-sync.nix