plpipes.action.driver.sql.jinja2#
This module contains the logic for generating SQL code using the Jinja2 template system. It provides several convenient helpers for easing SQL generation.
render_template(src, global_vars)
#
Render a Jinja2 template with the given source and global variables.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
src
|
str
|
The source template string. |
required |
global_vars
|
dict
|
A dictionary of global variables to be passed to the template. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
The rendered template output. |