Object Storage Configuration
Storage Connection
AnyVar supports several different database engines. Use the ANYVAR_STORAGE_URI environment variable to designate the database engine and its location.
Environment Variable |
Default Value |
|---|---|
|
|
A libpq connection string constructs a PostgreSQL connection. This is the default database engine and is recommended for most use cases.
a URI with a
duckdb://scheme constructs a DuckDB connection. Use a relative file path, egduckdb:///my_variants.duckdb, for a file-based instance, orduckdb:///:memory:for an in-memory instance. See theduckdbAPI reference page for more information.An empty string (ie
export ANYVAR_STORAGE_URI="") enables stateless mode.
Rename Tables
For cases where AnyVar storage is shared with other applications and an additional naming scheme may be beneficial, all AnyVar database tables can be renamed by an environment variable of the pattern "ANYVAR_<table>_TABLE_NAME".
Environment Variable |
Default Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|