GenerationContext constructor

GenerationContext(
  1. DriftDatabaseOptions options,
  2. DatabaseConnectionUser? executor, {
  3. bool supportsVariables = true,
})

Constructs a custom GenerationContext by setting the fields manually. See GenerationContext.fromDb for a more convenient factory.

Implementation

GenerationContext(this.options, this.executor,
    {this.supportsVariables = true})
    : typeMapping = options
          .createTypeMapping(executor?.executor.dialect ?? SqlDialect.sqlite);