RFC: template system for Postgres

Поиск
Список
Период
Сортировка
Искать

RFC: template system for Postgres

От:
Jim Nasby <Jim.Nasby@BlueTreble.com>
Дата:
I've sketched out a design for a templating system for Postgres, and I'm 
looking for feedback from anyone that might be interested in it.

My goal is to allow people to register different template languages in 
it (anything that can be loaded in a Postgres procedure language would 
work), and allow storing named templates. My personal desire for this is 
to support a meta-programming system for Postgres [1], but I expect most 
people would want to use it for things like email or report templates. 
In a scenario like that, you might do something like:

-- Store a template email to send to new users
SELECT trunklet.template__store(
   'template language'
   , 'new user email'
   , '
FAQ