diff options
author | Joris | 2024-06-02 14:38:13 +0200 |
---|---|---|
committer | Joris | 2024-06-02 14:38:22 +0200 |
commit | 1019ea1ed341e3a7769c046aa0be5764789360b6 (patch) | |
tree | 1a0d8a4f00cff252d661c42fc23ed4c19795da6f /init-db.sql | |
parent | e8da9790dc6d55cd2e8883322cdf9a7bf5b4f5b7 (diff) |
Migrate to Rust and Hyper
With sanic, downloading a file locally is around ten times slower than
with Rust and hyper.
Maybe `pypy` could have helped, but I didn’t succeed to set it up
quickly with the dependencies.
Diffstat (limited to 'init-db.sql')
-rw-r--r-- | init-db.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init-db.sql b/init-db.sql index 57afd00..bbfe6c7 100644 --- a/init-db.sql +++ b/init-db.sql @@ -1,7 +1,7 @@ CREATE TABLE files( id TEXT PRIMARY KEY, + created_at STRING NOT NULL, + expires_at STRING NOT NULL, filename TEXT NOT NULL, - created TEXT NOT NULL, - expires TEXT NOT NULL, content_length INTEGER NOT NULL ) |