constructQuery method
Constructs the query that can then be sent to the database executor.
This is used internally by drift to run the query. Users should use the other methods explained in the documentation.
Implementation
GenerationContext constructQuery() {
final ctx = GenerationContext.fromDb(database);
writeInto(ctx);
ctx.buffer.write(';');
return ctx;
}