Files
raven/docs/8.0/ayanova/docs/ops-config-db.md
2018-06-28 23:41:48 +00:00

966 B

DATABASE

AyaNova uses PostgreSQL as it's database server in all configurations, no other database is supported.

Default connection string

If no connection string is specified AyaNova will use a default value: "Server=localhost;".

Setting the connection string

AyaNova expects the connection string to be provided by an environment variable or command line parameter named:

AYANOVA_DB_CONNECTION

Example command line parameter:

dotnet run --AYANOVA_DB_CONNECTION="Server=localhost;Database=MyAyaNovaDB;"

Example environment variable:

Windows:

set "AYANOVA_DB_CONNECTION=Server=localhost;Database=MyAyaNovaDB;"

Linux:

export AYANOVA_DB_CONNECTION="Server=localhost;Database=MyAyaNovaDB;"

If both a command line parameter and an environment variable are set the command line parameter takes precedence.

Default database

If no default database is specified AyaNova will use the default value: "AyaNova".