From e328db8eba1fbf29a69eda95dfec861954f9e771 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 10 Dec 2021 13:12:38 -0800 Subject: [PATCH] Improved schema example for sqlite-utils extract --- docs/cli.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/cli.rst b/docs/cli.rst index a096fde..1e3b330 100644 --- a/docs/cli.rst +++ b/docs/cli.rst @@ -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: