# Postgres INSERT/SELECT Function Image This function executes an INSERT or SELECT against a table in a given postgres server. ``` # Create your func.yaml file fn init /func-postgres # Build the function fn build # Test it ./test.sh # Push it to Docker Hub fn push # Create routes to this function on IronFunctions fn apps create --config SERVER= fn routes create --config TABLE= --config COMMAND=INSERT //insert fn routes create --config TABLE= --config COMMAND=SELECT //select ``` Now you can call your function on IronFunctions: ``` echo | fn call ///insert echo | fn call ///select ```