Я изменил порядок импорта в моем app.module.ts
, как упомянуто здесь
Так что вам нужно иметь его, например, так:
imports: [
BrowserModule,
FormsModule,
HeroesModule,
AppRoutingModule
]
Наиболее важным является иметь первый BrowserModule
и в конце AppRoutingModule
.
sqlite> .header on
sqlite> .mode column
sqlite> create table ABC(A TEXT, B VARCHAR);
sqlite> pragma table_info(ABC);
cid name type notnull dflt_value pk
---------- ---------- ---------- ---------- ---------- ----------
0 A TEXT 0 0
1 B VARCHAR 0 0
The PRAGMA
statement suggested by @pragmanatu works fine through any programmatic interface, too. Alternatively, the sql
column of sqlite_master
has the SQL
statement CREATE TABLE &c &c
that describes the table (but, you'd have to parse that, so I think PRAGMA table_info
is more... pragmatic;-).