MCPcopy Create free account
hub / github.com/Effect-TS/effect / makeCompiler

Function makeCompiler

packages/effect/src/unstable/sql/Statement.ts:795–805  ·  view source on GitHub ↗
(
  options: CompilerOptions<C>
)

Source from the content-addressed store, hash-verified

793 * @since 4.0.0
794 */
795export 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
807type CompiledStatement = readonly [sql: string, binds: ReadonlyArray<unknown>]
808

Callers 1

makeCompilerSqliteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected