Recognize the connection and name scope
#sqlite3 opens an embedded database file. :memory: creates a connection-local in-memory database. Dot commands belong to the CLI, not SQL sent through an application driver .
Fragment
Shell command; CLI dot commands are shown in comments.