assert
oliphant · SQL assertions for database tests
Overview
Usage
Sources:
assert is Oliphant’s SQL assertion toolkit. Successful checks return normally; failed checks raise an exception that can fail a test transaction.
Core Workflow
Operational Boundaries
These are legacy pure-SQL/PLpgSQL utilities originally documented for PostgreSQL 9.x. Current-major compatibility is unverified. Installation uses the control defaults and needs administrator privileges; no shared library or preload is required. assert_equals and assert_not_equals do not reject NULL arguments; combine them with assert_is_null or assert_is_not_null when required. Object checks include assert_table_exists, assert_column_exists, assert_function_exists and assert_trigger_exists. assert_raises executes caller-supplied SQL and verifies its SQLSTATE, so use trusted test statements.