Skip to content

Commit

Permalink
Fix: specify init duckdb database so quickstart works (#3800)
Browse files Browse the repository at this point in the history
  • Loading branch information
treysp authored Feb 7, 2025
1 parent ebad540 commit 89a253b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sqlmesh/cli/example_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ def _gen_config(
required = field.is_required() or field_name == "type"
option_str = f" {'# ' if not required else ''}{field_name}: {default_value}\n"

# specify the DuckDB database field so quickstart runs out of the box
if engine == "duckdb" and field_name == "database":
option_str = " database: db.db\n"
required = True

if required:
required_fields.append(option_str)
else:
Expand Down

0 comments on commit 89a253b

Please sign in to comment.