Runs SQL that may hold several statements, without parameters (the simple query protocol), and discards any rows. For migrations and scripts. Without an explicit BEGIN the whole string runs as one implicit transaction, so the first error stops it and undoes the statements before it.
- c: the connection.
- sql: the statements, separated by semicolons.
execute_script :: (c: *Connection, sql: string) -> Pg_Error
Runs SQL that may hold several statements, without parameters (the simple query protocol), and discards any rows. For migrations and scripts. Without an explicit BEGIN the whole string runs as one implicit transaction, so the first error stops it and undoes the statements before it.
Parameters
- c: *Connection
- the connection.
- sql: string
- the statements, separated by semicolons.