Adds execQuery function to postgrator config. This function is in charge of executing a query for either migration or creating the versions table.
When providing this function, it is the responsibility of the package consumer to manage connections: The program implementing postgrator must connect to the database prior to migrating, and disconnect from the database when finished.
The benefit of this approach is that it pushes the database connection ownership to the user of the package, increasing flexibility of postgrator while also allowing this package to get out of the mapping-to-database-driver business 🎉
Adds
execQuery
function to postgrator config. This function is in charge of executing a query for either migration or creating the versions table.When providing this function, it is the responsibility of the package consumer to manage connections: The program implementing postgrator must connect to the database prior to migrating, and disconnect from the database when finished.
The benefit of this approach is that it pushes the database connection ownership to the user of the package, increasing flexibility of postgrator while also allowing this package to get out of the mapping-to-database-driver business 🎉