Skip to content

Commit

Permalink
docs: remove example queries
Browse files Browse the repository at this point in the history
  • Loading branch information
tammo committed Jan 16, 2020
1 parent 5a8e74d commit 4cc3b87
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions etc/sqlite/queries.sql
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,3 @@ CREATE TABLE IF NOT EXISTS blocks (
FOREIGN KEY (prev) REFERENCES blocks(signature),
FOREIGN KEY (ref_block) REFERENCES blocks(signature)
);

-- example queries
INSERT INTO blockchains (id, public_key) VALUES (?,?)
INSERT INTO blocks (id, chain_id, type, signature) VALUES (?,?,?,?)

-- select data query
SELECT * from blocks WHERE signature IN (?)

-- update leaf query
UPDATE blockchains SET leaf_id = ? WHERE id = ?

0 comments on commit 4cc3b87

Please sign in to comment.