How to get a list of column names with Sqlite.swift?
问题 For debugging purposes I am trying to get a simple list of the column names in my SQLite table. I am using the SQLite.swift framework. My question is more specific than How to get a list of column names on sqlite3 / iPhone? so I am creating a new question. Using try db.execute("PRAGMA table_info(table_name);") by applying this answer to the documentation didn't work for me (nothing happened). 回答1: Assuming you already have a database connection called db set up, to get a list of the column