Hi,
I thought this was better opened as a feature, rather than wrapping it in a pull request.
I have an implementation for SQLite pragmas. It's currently a 'monkey-patch', which I would rewrite slightly to merge into core. I'll put the implementation into a block by itself.