GenerationContext.fromDb constructor

GenerationContext.fromDb(
  1. DatabaseConnectionUser executor, {
  2. bool supportsVariables = true,
})

Constructs a GenerationContext by copying the relevant fields from the database.

Implementation

GenerationContext.fromDb(
  DatabaseConnectionUser this.executor, {
  this.supportsVariables = true,
})
  // ignore: deprecated_member_use_from_same_package
  : options = executor.options,
     typeMapping = executor.typeMapping;