Skip to main content

Module build

Module build 

Source
Expand description

SQL template building functionality

This module provides functionality to build (render) SQL from Tera templates. It handles both single SQL files and directories containing multiple template files.

The build process:

  1. Loads all .sql files from the working directory as templates
  2. Renders the target template (or index.sql if a directory is provided)
  3. Outputs the rendered SQL to stdout or a file

Structsยง

Build

Constantsยง

INDEX_SQL_FILENAME ๐Ÿ”’
SQL_FILE_EXTENSION ๐Ÿ”’

Functionsยง

build
call
get_dirs ๐Ÿ”’