Closed pydemo closed 4 years ago
That's odd. You're saying that desc ME_13F
works but .schema ME_13F
doesn't work?
yes, only PRAGMA table_info([ME_13F])
works as expected.
i do not need table DDL when i do desc, i need column list
Good point. I'll change desc
and describe
to show what pragma
does.
Amjith has fixed this in https://github.com/dbcli/litecli/pull/67, please update your litecli to the latest version.
This is still an issue in version 1.2:
litecli Configuration/configuration.db
Version: 1.2.0
Mail: https://groups.google.com/forum/#!forum/litecli-users
GitHub: https://github.com/dbcli/litecli
Configuration/configuration.db> .schema `SemanticIRI`
Time: 0.001s
Configuration/configuration.db>
Compared to vanilla sqlite:
sqlite3 Configuration/configuration.db
SQLite version 3.28.0 2019-04-16 19:49:53
Enter ".help" for usage hints.
sqlite> .schema SemanticIRI
CREATE TABLE SemanticIRI (Id INTEGER PRIMARY KEY, IRI TEXT UNIQUE, ObjectInstanceId INTEGER);
CREATE UNIQUE INDEX SemanticIRIIndex ON SemanticIRI(IRI);
tried for table ME_13F:
.schema [ME_13F]
Result:\dt ME_13F
Result:describe table ME_13F
Result:desc ME_13F
Result:PRAGMA table_info([ME_13F])
Result: