Improved schema example for sqlite-utils extract

This commit is contained in:
Simon Willison 2021-12-10 13:12:38 -08:00 committed by GitHub
commit e328db8eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1288,12 +1288,13 @@ This would produce the following schema:
[TreeAddress] TEXT,
[species_id] INTEGER,
FOREIGN KEY(species_id) REFERENCES species(id)
)
);
CREATE TABLE [species] (
[id] INTEGER PRIMARY KEY,
[species] TEXT
)
);
CREATE UNIQUE INDEX [idx_species_species]
ON [species] ([species]);
The command takes the following options: