I have a polygon layer I want to explode into single lines. I preferably wish to do so in spatialite since I work almost exclusively in QGIS DB-manager. No matter which function I use the number of features stays the same:
ST_DissolveSegments(st_boundary(geometry))
ST_LinesCutAtNodes(st_boundary(geometry),st_dissolvepoints(geometry))
Now there is also that concept of ElementaryGeometries which is spatialite specific and does not seem to be implemented in geopackage or QGIS virtual layers (please correct me if I am wrong here). Also there's this answer that I honestly fail to follow due to sparse documentation as well as on whether this is implemented in QGIS' DB-manager environment or not.
I know there's a bunch of native tools that do the job but I'd really love to keep my workflow streamlined and avoid intermediate result layer as much as possible.