When I'm adding a virtual layer to a project using QGIS 3.12.2, it cannot be toggled to edit mode. That is: the pencil icon is greyed colored. This can be said for layers created either by the
Create Virtual Layer or the
DB Manager SQL query.
Is it possible to edit a virtual layer? If so, how can it be done? If not, is there any documentation or reference regarding this aspect?