( options: CompilerOptions<C> )
| 793 | * @since 4.0.0 |
| 794 | */ |
| 795 | export const makeCompiler = <C extends Custom<any, any, any, any> = any>( |
| 796 | options: CompilerOptions<C> |
| 797 | ): Compiler => { |
| 798 | const self = Object.create(CompilerProto) |
| 799 | self.options = options |
| 800 | self.dialect = options.dialect |
| 801 | self.disableTransforms = false |
| 802 | self.statementCache = new WeakMap<Fragment, CompiledStatement>() |
| 803 | self.statementCacheNoTransform = new WeakMap<Fragment, CompiledStatement>() |
| 804 | return self |
| 805 | } |
| 806 | |
| 807 | type CompiledStatement = readonly [sql: string, binds: ReadonlyArray<unknown>] |
| 808 |
no outgoing calls
no test coverage detected