Package the code as a PostgreSQL extension to be deployed using SQL. For example: ```sql CREATE EXTENSION hba_sql; DROP EXTENSION hba_sql; ``` References: - https://www.postgresql.org/docs/current/extend-extensions.html - https://www.postgresql.org/docs/current/sql-createextension.html