1. A method for offloading multiple processing operations to an accelerator comprising: receiving, by a processing device, a database query from an application; performing analysis on the database query; selecting an accelerator template from a plurality of accelerator templates based on the analysis of the database query; transmitting an indication of the accelerator template to the accelerator; and executing at least a portion of the database query on the accelerator.