{% extends "base.html" %} {% block sidebar %} {% endblock %} {% block content %}
Configuration-Driven INSERT Handling
Define database inserts in pyproject.toml and use them automatically in your collections
Define all your insert SQL in pyproject.toml - no code changes needed
Map collections to their pre-configured inserts for automatic execution
Use semicolon-separated strings or lists - whatever works best for you
Optional parameter means your existing code continues to work unchanged
[tool.render-engine.pg]
insert_sql = { posts = "INSERT INTO authors..." }
PGMarkdownCollectionParser.create_entry(
content=markdown,
collection_name="posts",
connection=db,
table="posts"
)
Pre-configured inserts execute automatically before the markdown entry