We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f39087 commit b11cbb0Copy full SHA for b11cbb0
1 file changed
sqlmesh/cli/example_project.py
@@ -3,6 +3,7 @@
3
from pathlib import Path
4
5
import click
6
+from sqlglot import Dialect
7
8
9
class ProjectTemplate(Enum):
@@ -12,7 +13,6 @@ class ProjectTemplate(Enum):
12
13
14
15
def _gen_config(dialect: t.Optional[str], template: ProjectTemplate) -> str:
-
16
default_configs = {
17
ProjectTemplate.DEFAULT: f"""gateways:
18
local:
@@ -194,6 +194,9 @@ def _create_folders(target_folders: t.Sequence[Path]) -> None:
194
195
196
def _create_config(config_path: Path, dialect: t.Optional[str], template: ProjectTemplate) -> None:
197
+ if dialect:
198
+ Dialect.get_or_raise(dialect)
199
+
200
project_config = _gen_config(dialect, template)
201
202
_write_file(
0 commit comments