Run raw sql -- with some optional very basic mustache templating
Arguments:
sql
[string] - SQL query to runargs
[object] - (optional) key/val of arguments to replace
Inserts raw string, which is not escaped
e.g. pgm.func('CURRENT_TIMESTAMP')
to use in default
option for column definition
Arguments:
sql
[string] - string to not be escaped
Allows to run DB queries with same DB connection migration is running See pg.Client.query
Returns promise with either result of query or returned rows of query (in case of select
).