Examples

Runnable scripts live in the GitHub examples/ directory.

Run them

pip install "sqlrules>=1,<2"
python examples/basic_compile.py
python examples/select_usage.py

pip install "sqlrules[postgresql]"
python examples/postgresql_pattern.py

From a clone (contributors): make install then make examples.

Script

Shows

basic_compile.py

Core compile + where

select_usage.py

Literal + compiled select()

postgresql_pattern.py

Why pattern needs a plugin, then Postgres fix

Expected shape: printed field names and a SELECT with bound parameters.

Next