GenerationContext constructor
GenerationContext(
- DriftDatabaseOptions options,
- DatabaseConnectionUser? executor, {
- 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,
);