Database based caching via diesel & SQLite added.

This commit is contained in:
Micha Glave
2020-06-28 16:31:56 +02:00
parent e493d37860
commit 3eb6e425f5
13 changed files with 196 additions and 10 deletions

View File

@@ -0,0 +1 @@
DROP TABLE IF EXISTS images;

View File

@@ -0,0 +1,12 @@
CREATE TABLE images (
id VARCHAR(40) PRIMARY KEY NOT NULL,
path VARCHAR(500) NOT NULL,
title VARCHAR(200),
last_changed TIMESTAMP NOT NULL,
published BOOLEAN NOT NULL DEFAULT 'f'
);
INSERT INTO images (id, path, title, last_changed, published) VALUES
('8e153cab-7dc9-46c7-9a72-91e56ac174ca', './BlueSquare.jpg', 'Blaues Quadrat', '2020-05-27 13:33:56.747473', false );
INSERT INTO images (id, path, title, last_changed, published) VALUES
('ea01f5cd-a532-4232-810c-bae977cc4336', './Canon_40D.jpg', 'Canon 40d', '2020-05-27 13:33:56.747473', false );