attach-stmt syntax documentation ?
In the documentation for attach-stmt (syntax/attach-stmt.html) and
I don't understand how the syntax diagram for expr describes a path to the database file that is being attached.
The expression may be arbitrarily complex, so long as it resolves to a value suitable for use as a file name. As a trivial example:
attach 'a' || '.db' as foo