installExtension

suspend fun installExtension(file: Pair<String, String>)(source)

Installs an extension by executing SQL statements from the provided file. The file content is split into individual SQL statements, which are executed in a single transaction.

Parameters

file

A pair containing the file name as the first element and the file content (SQL statements as a string) as the second element.

Throws

If the provided file is empty or if there is an error during SQL execution.