I learned about the sqlite_master table from this stack overflow answer. This helps make a lot of sense to how sqlite works. The master table contains all the sqlite objects and the sql to create them.
The .tables, and .schema βhelperβ functions donβt look into ATTACHed databases: they just query the SQLITE_MASTER table for the βmainβ database. Consequently, if you used
sqlite3 database.db "SELECT * from sqlite_master;"
Note
This post is a thought. Itβs a short note that I make about someone elseβs content online #thoughts