Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Latest commit

 

History

History
33 lines (23 loc) · 1.03 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.03 KB

paste-rs Build Status

Database

Setup the database with something like the following:

CREATE USER 'pasteuser'@'localhost' IDENTIFIED BY 'pastepass';

CREATE DATABASE IF NOT EXISTS paste;
USE paste;
CREATE TABLE IF NOT EXISTS paste (
    id           INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    code         TEXT,
    time_created TIMESTAMP,
    data         BLOB
);

GRANT SELECT, INSERT, UPDATE, DELETE ON paste.paste TO 'pasteuser'@'localhost';
FLUSH PRIVILEGES;

Credits

This project was inspired by pxqz by my friend Uiri.

Additional inspiration (particularly for the nickel.rs routing and layout) from superlogical/rusty.

Dependencies used: