To generate an empty project run
syncmaven init| Folder | Description |
|---|---|
models | Defines Model. Each model contains an SQL query and metadata |
connections | Defines Connections. Each connection tells Syncmaven on how to connect to a certain service. Connections are used in syncs, see below |
syncs | Defines Syncs. Each syncs define how data should be synced from a source to a destination |
.yml or .yaml file (models can be defined with .sql files as well). Every file can reference environment variables using the ${env.VAR_NAME} syntax.
The project can contain .env and .env.local files. If any of these files exist, Syncmaven will load the environment variables from them (.env.local will override .env).
Environment Variables
Environment variables can be used in the project files. In fact, they must be used for sensitive information like passwords or API keys. In addition to variables passed to a process, Syncmaven will from.envfile in the project root.env.localfile in the project root.envfile in the current working directory.env.localfile in the current working directory- Variables from file specified by
--env-filecommand line argument. It’s possible to specify multiple files by using the--env-fileargument multiple times.