env "name"for a database environmentvariable "name"for user-defined inputs
Minimum config
env “name”
url(string) Connection string. Supportsenv("NAME").exclude(list<string>, optional) Patterns to ignore.migrations(block) Migration settings.tls(block, optional) TLS certificate settings for custom CA and mTLS:ca_file(string, required iftlsis set) Path to CA certificate in PEM format.cert_file(string, optional) Client certificate in PEM format.key_file(string, optional) Client key in PEM format. Must be provided together withcert_file.
migrations
dir(string) Path to migrations directory.table(block, optional) Tracking table settings.table.name(string, optional) Custom tracking table.table.is_replicated(bool, optional, defaultfalse) Use replicated tracking table withON CLUSTER.table.cluster_name(string, optional) Cluster name override forON CLUSTER. Useful when multiple clusters exist.table.replication_path(string, optional) Replication path for the tracking table. If set, replicated mode is enabled even whentable.is_replicatedis omitted.
vars(object, optional) Variables for Handlebars templates.