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

Function makeCompiler

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

Source from the content-addressed store, hash-verified

937 * @since 4.0.0
938 */
939export 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
951type CompiledStatement = readonly [sql: string, binds: ReadonlyArray<unknown>]
952

Callers 1

makeCompilerSqliteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected