CHARP conf config.sh - pupitetris/charp GitHub Wiki

This file is under the conf base directory and it is not a scripting utility, but it can be used to set up the environment of your current shell so it works the same as the utilities that source it, such as initdb.sh and diff.sh.

Particularly, after sourcing, a function called db_filter will be defined, which allows you to manually evaluate the SQL scripts in the sql directory, just as they are called from init.sh.

Usage

$ source ../conf/config.sh

$ db_filter ''file'' ''options''

Example

This will re-evaluate the function definitions stored in 05-functions.sql inside the project's database. The conf_user psql variable will be correctly set:

 $ db_filter ../sql/05-functions.sql
⚠️ **GitHub.com Fallback** ⚠️