Certain Datasources allow for initial sql to be passed. Being able to programmatically modify it would be extremely useful.