# Source: https://mikro-orm.io/api/core/function/createSqlFunction.md

# createSqlFunction<!-- -->

### Callable

* ****createSqlFunction**\<T, R>(func, key): R

***

* #### Parameters

  * ##### func: string
  * ##### key: string | (alias) => string


  #### Returns R