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(this.executor, {this.supportsVariables = true})
    : typeSystem = executor?.typeSystem ?? SqlTypeSystem.defaultInstance;