current property

Database? get current

The innermost Database whose executeStmt is currently on the call stack, or null when none is. Used by context-sensitive scalar functions.

Implementation

static Database? get current =>
    _executionStack.isEmpty ? null : _executionStack.last;