Hacker News new | ask | show | jobs
by epgui 1290 days ago
Sounds just like dbt, but less organized and without jinja templates.
1 comments

People who don't use dbt usually have a half baked implementation they wrote themselves in python
I write my SQL queries in Jupyter Lab, mixed in Python code and f-strings, which is enough of a template engine to my needs atm. I can also directly visualize stuff with pandas (etc.)

    species: str = 'acer'
    structure: str = 'trees.table'
    query = f"""
    SELECT * FROM {structure} WHERE species = {species}
    """