( options: CompilerOptions<C> )
| 937 | * @since 4.0.0 |
| 938 | */ |
| 939 | export const makeCompiler = <C extends Custom<any, any, any, any> = any>( |
| 940 | options: CompilerOptions<C> |
| 941 | ): Compiler => { |
| 942 | const self = Object.create(CompilerProto) |
| 943 | self.options = options |
| 944 | self.dialect = options.dialect |
| 945 | self.disableTransforms = false |
| 946 | self.statementCache = new WeakMap<Fragment, CompiledStatement>() |
| 947 | self.statementCacheNoTransform = new WeakMap<Fragment, CompiledStatement>() |
| 948 | return self |
| 949 | } |
| 950 | |
| 951 | type CompiledStatement = readonly [sql: string, binds: ReadonlyArray<unknown>] |
| 952 |
no outgoing calls
no test coverage detected